@font-face {
  font-family: "Utopia";
  src: url("/brand/heading.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Plex Sans Arabic";
  src: url("/fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plex Sans Arabic";
  src: url("/fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f3eddf;
  --paper: #faf6ec;
  --ink: #252520;
  --muted: #625f55;
  --brown: #80563f;
  --line: #d3cec3;
  --gutter: clamp(1rem, 5vw, 4.5rem);
  --heading: "Utopia", Georgia, serif;
  --body: "Plex Sans", system-ui, sans-serif;
}

:root[lang="ar"] {
  --heading: "Plex Sans Arabic", "Plex Sans", system-ui, sans-serif;
  --body: var(--heading);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  background: var(--cream) radial-gradient(120% 70% at 80% 20%, #f8f1e2, var(--cream) 60%) no-repeat;
}

p, h1, h2 { margin: 0; }
a { color: #70462f; text-underline-offset: .25em; }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }

.skip-link {
  position: absolute;
  inset-inline-start: .75rem;
  inset-block-start: -4rem;
  z-index: 3;
  padding: .5rem .9rem;
  color: white;
  background: var(--ink);
}

.skip-link:focus { inset-block-start: .75rem; }

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .75rem var(--gutter);
}

.brand { grid-area: 1 / 2; }
.brand img { display: block; width: auto; height: clamp(3.375rem, 5.2vw, 4.75rem); }
.language { grid-area: 1 / 1; justify-self: start; padding: .5rem .25rem; color: inherit; text-decoration: none; }
.language:hover { text-decoration: underline; }

main {
  display: grid;
  flex: 1;
  align-content: start;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  width: 100%;
  max-width: 68.75rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 3.5rem) var(--gutter) clamp(3.5rem, 8vw, 6.875rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(.875rem, 4vw, 3rem);
}

.hero-copy { display: grid; gap: .875rem; padding-block-end: clamp(.5rem, 2vw, 1.75rem); }
.eyebrow { color: var(--brown); font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
:root[lang="ar"] .eyebrow { font-size: 1rem; letter-spacing: normal; }
h1, h2 { font-family: var(--heading); font-weight: 400; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); line-height: 1; }
:root[lang="ar"] h1, :root[lang="ar"] h2 { font-weight: 600; }
:root[lang="ar"] h1 { font-size: clamp(2.25rem, 5.6vw, 4.5rem); line-height: 1.25; }
.lead { max-width: 34em; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.updated { color: var(--muted); font-size: .9375rem; }

.mascot {
  --guide-width: clamp(4.5rem, 17vw, 11.25rem);
  --mark-size: max(1.375rem, calc(var(--guide-width) * .27));
  position: relative;
  width: var(--guide-width);
  aspect-ratio: 540 / 938;
  margin-inline: calc(var(--guide-width) * .6);
  margin-block-end: calc(var(--guide-width) * .42);
}

.mascot img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 14px #3d2a1c40);
}

.medallion {
  position: absolute;
  top: 6%;
  left: -45%;
  width: 190%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 37%, #e4c5a191, transparent 54%),
    radial-gradient(70% 80% at 10% 0%, #ab795c, transparent 62%),
    linear-gradient(135deg, #8f6248, #6b4229);
  box-shadow: inset 0 0 0 1px #ffffff32, 0 28px 40px -28px #3d2a1cba;
}

.medallion::after {
  position: absolute;
  inset: 4%;
  border: 1px solid #f3dcb655;
  border-radius: 50%;
  content: "";
}

.village-pattern {
  position: absolute;
  inset: 0;
  background: url("/privacy/village-pattern.webp") center / calc(var(--guide-width) * 1.5) auto;
  mask-image: radial-gradient(circle, transparent 22%, #000 80%);
}

.village-mark, .pearl { position: absolute; z-index: 1; aspect-ratio: 1; border-radius: 50%; }

.village-mark {
  top: var(--y);
  left: var(--x);
  width: var(--mark-size);
  transform: translate(-50%, -50%);
  background: var(--mark-colour);
  box-shadow: 0 0 0 2px var(--paper), 0 6px 12px -6px #3d2a1c;
}

.village-mark::after {
  position: absolute;
  inset: 16%;
  background: #fff;
  mask: var(--symbol) center / contain no-repeat;
  content: "";
}

.al-silaa { --x: -34%; --y: 86.4%; --mark-colour: #8d9e94; --symbol: url("/discovery/village-al-silaa.svg"); }
.masfout { --x: -35%; --y: 36.8%; --mark-colour: #9d8b77; --symbol: url("/discovery/village-masfout.svg"); }
.al-rams { --x: 114%; --y: 20%; --mark-colour: #617482; --symbol: url("/discovery/village-al-rams.svg"); }
.al-shuwaib { --x: 145%; --y: 60.8%; --mark-colour: #9a624b; --symbol: url("/discovery/village-al-shuwaib.svg"); }
.qidfa { --x: 114%; --y: 101.5%; --mark-colour: #5b5b4f; --symbol: url("/discovery/village-qidfa.svg"); }

.pearl {
  background: radial-gradient(circle at 34% 27%, white, #eeeae0 42%, #aaa69e);
  box-shadow: 0 4px 9px #3d2a1c65;
}

.pearl-one { top: 34%; left: 112%; width: 12%; }
.pearl-two { top: 52%; left: -24%; width: 7%; }
.pearl-three { top: 78%; left: 98%; width: 5.5%; }

.policy {
  width: 100%;
  max-width: 53.75rem;
  padding: clamp(1.375rem, 4vw, 2.75rem);
  border-radius: 1.5rem;
  background: var(--paper);
  box-shadow: inset 0 1px #fff, 0 18px 40px -30px #3d2a1c66;
  overflow-wrap: anywhere;
}

.policy h2 { margin-block-end: .625rem; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
:root[lang="ar"] .policy h2 { line-height: 1.4; }
.policy section + section { margin-block-start: 1.625rem; padding-block-start: 1.625rem; border-block-start: 1px solid var(--line); }
.policy p + p { margin-block-start: .625rem; }
.policy ul { display: grid; gap: .5rem; margin: 0; padding-inline-start: 1.2em; }
.policy li::marker { color: #a36447; }

footer {
  padding: 1.625rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--line);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .375rem 1.375rem;
  font-size: .9375rem;
  text-align: center;
}

@media (max-width: 420px) {
  .brand img { height: 2.875rem; }
}

@media (max-width: 350px) {
  .mascot { --guide-width: 3.5rem; }
  h1 { font-size: 2.25rem; }
  :root[lang="ar"] h1 { font-size: 2rem; }
}
