/* The header and footer of every page: the home page's, shared with the older pages.
   It carries its own colours and typefaces so that it looks the same whichever stylesheet a page uses. */
.top,
.foot {
  --ground: #f5e8e2;
  --raise: #eedad3;
  --line: #d9bdb4;
  --line-soft: #e6d0c8;
  --ink: #3a1620;
  --ink-soft: #6a4650;
  --ink-mute: #7f5964;
  --accent: #8c3f52;
  --accent-line: #b88663;
  --btn-bg: #3a1620;
  --btn-ink: #f8eee9;
  --btn-hover: #8c3f52;
  --field: #fbf3ef;
  --shadow: rgba(80, 30, 40, 0.28);
  --text: "Jost", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --fs-label: 0.74rem;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: normal;
  color: var(--ink);
  text-align: start;
}
.top:lang(ar),
.foot:lang(ar) {
  --text: "Noto Sans Arabic", "Jost", "Segoe UI", Tahoma, sans-serif;
  --fs-label: 0.88rem;
  font-weight: 400;
}
.top *,
.foot *,
.top *::before,
.foot *::before {
  box-sizing: border-box;
}
:where(.top, .foot) a {
  color: inherit;
}
:where(.top, .foot) img {
  display: block;
  max-width: 100%;
}
.foot p {
  margin: 0;
  color: inherit;
}
.top .wrap,
.foot .wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.foot {
  background: var(--ground);
}
.top .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  font: 400 0.74rem/1 var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.4em;
  border-radius: 2px;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-ink);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.top .btn:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
}
.top:lang(ar) *,
.foot:lang(ar) * {
  letter-spacing: 0 !important;
}
.top:lang(ar) .btn {
  font-size: 0.9rem;
}
.top:lang(ar) .nav-link {
  font-size: 0.95rem;
}

.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}
.logo {
  display: block;
  height: 2.9rem;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.6vw, 2.2rem);
}
.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-link:hover {
  color: var(--ink);
}
@media (max-width: 820px) {
  .nav-link {
    display: none;
  }
}
.foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 3rem;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.foot-logo {
  height: 5.5rem;
  width: auto;
}
.foot-lines {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: end;
}
@media (max-width: 900px) {
  .foot-lines {
    text-align: start;
  }
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--accent);
}
.foot .company-line {
  max-width: 76rem;
  margin: 1.5rem auto 0;
  padding-inline: var(--gutter);
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.foot .company-line p + p {
  margin-top: 0.3rem;
}
.foot .company-line a {
  color: var(--ink-soft);
  text-underline-offset: 0.3em;
  text-decoration-color: var(--accent-line);
}
.pick {
  position: relative;
}
.pick summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding-inline: 0.35rem;
  list-style: none;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-radius: 2px;
}
.pick summary::-webkit-details-marker {
  display: none;
}
.pick summary:hover,
.pick[open] summary {
  color: var(--ink);
}
.pick-label {
  font-family: "Noto Sans Arabic", var(--text);
}
.pick-chevron {
  transition: transform 0.2s ease;
}
.pick[open] .pick-chevron {
  transform: rotate(180deg);
}
.pick-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 11.5rem;
  padding: 0.4rem;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 1.4rem 2.6rem -1.2rem var(--shadow);
}
.pick-list a {
  padding: 0.7rem 0.85rem;
  border-radius: 2px;
  font-family: "Noto Sans Arabic", var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
}
.pick-list a:hover {
  background: var(--raise);
}
.pick-list a[aria-current] {
  color: var(--accent);
}
.top .btn {
  white-space: nowrap;
}
.site-menu {
  display: none;
}
@media (max-width: 820px) {
  .site-menu {
    display: block;
  }
  .nav {
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .lang-menu .pick-label {
    display: none;
  }
  .top .btn-small {
    padding-inline: 1em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pick-chevron {
    transition: none;
  }
}

/* On a page shorter than the screen (page not found, unsubscribe) the footer still sits at the bottom. */
body:has(> .foot) {
  min-height: 100vh;
  min-height: 100dvh;
}
.foot {
  position: sticky;
  top: 100vh;
}

/* For keyboard and screen-reader users: the first stop on every page jumps past the header. */
.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -5rem;
  z-index: 30;
  padding: 0.8rem 1.1rem;
  border-radius: 2px;
  background: #3a1620;
  color: #f8eee9;
  font:
    400 0.95rem/1.2 "Jost",
    "Noto Sans Arabic",
    system-ui,
    sans-serif;
  text-decoration: none;
}
.skip:focus {
  top: 0.6rem;
}
