/* ================================================================
   Mediaș — Nucleul Transilvaniei
   A warm, editorial one-page identity for the four stories of Mediaș.
   Fonts are loaded from fonts.css (self-contained).
   ================================================================ */

/* -------------------------------------------------------- variables -- */
:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --paper: #f3ecdf;
  --paper-light: #fbf7ef;
  --paper-deep: #ece2d1;
  --ink: #1b1812;
  --ink-soft: #4f493d;
  --muted: #6b6152;
  --line: rgba(27, 24, 18, .14);
  --line-strong: rgba(27, 24, 18, .28);
  --gold: #c18b2b;
  --gold-bright: #e4b24c;
  --gold-pale: #ecd5a5;
  --gold-ink: #8a5f12;
  --wine: #772b36;
  --steel: #2e5668;
  --dark: #17150f;
  --dark-soft: #211e17;
  --cream-on-dark: #f2e9da;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 22px 60px rgba(47, 34, 13, .09);
  --shadow-lift: 0 30px 80px rgba(47, 34, 13, .16);
}

/* ----------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd, dt, figure, blockquote { margin: 0; }
address { font-style: normal; }
::selection { background: var(--gold-pale); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.association :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-bright); }
button, input, textarea, select { font: inherit; }

.wrap { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
section[id], footer[id] { scroll-margin-top: 106px; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 10000;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------- typography -- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(193, 139, 43, .12);
}
.eyebrow__rule { width: 34px; height: 1px; background: var(--line-strong); }
.eyebrow__muted { color: var(--muted); }
.eyebrow--light { color: rgba(242, 233, 218, .54); }
.eyebrow--light .eyebrow__dot { background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(228, 178, 76, .12); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
  padding: 7px 0 6px;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: gap .3s var(--ease), color .3s, border-color .3s;
}
.text-link:hover { gap: 16px; color: var(--wine); border-color: var(--wine); }

/* ------------------------------------------------------------ header -- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(243, 236, 223, .86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 92px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  transition: background-color .3s, color .3s, border-color .3s;
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.brand:hover .brand__mark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.1;
}
.brand__tag {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 42px); }
.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 12px 0;
  text-transform: uppercase;
  transition: color .25s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transition: right .3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }
.header__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.lang-switch { position: relative; flex: 0 0 auto; }
.lang-switch summary { list-style: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  transition: background-color .3s, color .3s, border-color .3s;
}
.lang-switch__button:hover, .lang-switch[open] .lang-switch__button { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lang-switch__globe { width: 16px; height: 16px; flex: 0 0 auto; }
.lang-switch__chevron { width: 12px; height: 12px; flex: 0 0 auto; opacity: .65; transition: transform .25s var(--ease); }
.lang-switch[open] .lang-switch__chevron { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  width: min(242px, calc(100vw - 36px));
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: 0 22px 60px rgba(47, 34, 13, .18);
  padding: 7px;
}
.lang-switch__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color .2s, color .2s;
}
.lang-switch__menu a:hover { background: var(--paper-deep); color: var(--ink); }
.lang-switch__menu a.is-current { background: var(--ink); color: var(--paper); }
.lang-switch__name { font-weight: 600; }
.lang-switch__tag { color: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: .12em; }
.lang-switch__menu a.is-current .lang-switch__tag { color: var(--gold-bright); }

.sound-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 13px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color .3s, color .3s, border-color .3s;
}

.sound-toggle__icon { width: 18px; height: 18px; flex: 0 0 auto; overflow: visible; }
.sound-toggle__waves { transition: opacity .25s; }
.sound-toggle__slash { opacity: 0; transition: opacity .25s; }
.sound-toggle.is-muted .sound-toggle__waves { opacity: 0; }
.sound-toggle.is-muted .sound-toggle__slash { opacity: 1; }
.sound-toggle.is-playing { border-color: rgba(193, 139, 43, .65); }
.sound-toggle.is-playing::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: sound-pulse 2.4s ease-in-out infinite;
}
.sound-toggle:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sound-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(130px, 15vh, 174px) 0 clamp(44px, 7vh, 72px);
  overflow: clip;
}
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 79% 38%, rgba(219, 173, 86, .17), transparent 31%),
    radial-gradient(circle at 8% 79%, rgba(119, 43, 54, .05), transparent 24%),
    linear-gradient(180deg, #f6efe4 0%, var(--paper) 73%);
}
.hero__watermark {
  position: absolute;
  z-index: 0;
  right: -2.4%;
  bottom: -10%;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(19rem, 36vw, 39rem);
  font-weight: 300;
  letter-spacing: -.07em;
  line-height: .68;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(27, 24, 18, .055);
  transform: rotate(-4deg);
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr);
  align-items: center;
  gap: clamp(36px, 5vw, 82px);
}
.hero__copy { max-width: 620px; }
.hero__title {
  margin: 27px 0 24px;
  font-family: var(--font-display);
  font-weight: 540;
  letter-spacing: -.045em;
  line-height: .84;
}
.hero__place {
  display: block;
  font-size: clamp(4.35rem, 8.6vw, 8.2rem);
  font-weight: 560;
  letter-spacing: -.055em;
  line-height: .82;
  text-transform: uppercase;
}
.hero__name {
  display: block;
  margin-top: 19px;
  color: var(--ink);
  font-size: clamp(1.85rem, 3.3vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -.022em;
  line-height: 1.01;
}
.hero__name em { color: var(--wine); font-weight: 300; }
.hero__lede {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.22vw, 17px);
  line-height: 1.72;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .3s, background-color .3s, border-color .3s, transform .3s var(--ease);
}
.btn .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--wine); border-color: var(--wine); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.2vw, 44px);
  margin-top: 42px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.hero__stats div { display: flex; flex-direction: column; gap: 1px; }
.hero__stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}
.hero__stats sup { color: var(--gold); font-size: .45em; top: -.75em; }
.hero__stats dd {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- seal -- */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.seal { position: relative; width: 100%; max-width: 600px; }
.seal__tap { display: none; }
.seal__aura {
  position: absolute;
  inset: 3%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 178, 76, .17), rgba(228, 178, 76, .04) 48%, transparent 69%);
  filter: blur(18px);
  pointer-events: none;
}
.seal__orbit {
  position: absolute;
  inset: -3.3%;
  z-index: -1;
  border: 1px dashed rgba(193, 139, 43, .32);
  border-radius: 50%;
  pointer-events: none;
  animation: spin 130s linear infinite;
}
.seal__stage { position: relative; width: 100%; aspect-ratio: 1600 / 1599; }
.seal__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 42px rgba(48, 33, 11, .13));
}
.seal__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 5px 12px;
  width: min(100%, 440px);
  min-height: 34px;
  margin: 8px auto 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 0 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.seal__caption-label {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: color .25s;
}
.seal__caption-url {
  color: var(--gold-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .25s;
}
.seal__caption.is-live .seal__caption-label { color: var(--wine); }
.seal__caption.is-live .seal__caption-url { color: var(--ink-soft); }
.seal__hint {
  max-width: 56ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}
.seal__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 15px;
}
.seal__legend a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  min-height: 34px;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.seal__legend a span { color: var(--gold); font-size: 8px; }
.seal__legend a i { font-style: normal; opacity: .5; transition: opacity .25s, transform .25s; }
.seal__legend a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
.seal__legend a:hover i { opacity: 1; transform: translate(1px, -1px); }

/* the four real hotspots, aligned to the seal artwork (1600 × 1599) */
.spot {
  position: absolute;
  display: block;
  z-index: 4;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.spot--rocket { left: 46.125%; top: 15.7598%; width: 7.875%; height: 20.888%; }
.spot--castle { left: 21.8125%; top: 32.3952%; width: 14.75%; height: 26.5790%; }
.spot--grapes { left: 63.5625%; top: 41.9012%; width: 15.9375%; height: 16.4478%; }
.spot--derrick { left: 44.8125%; top: 63.2896%; width: 10.4375%; height: 21.0131%; }
.spot::before {
  content: "";
  position: absolute;
  inset: 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 154, .78), rgba(228, 178, 76, .22) 43%, transparent 72%);
  opacity: 0;
  filter: blur(11px);
  transition: opacity .3s var(--ease);
}
/* invisible, slightly larger hit area for comfortable touch interaction */
.spot::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 24%;
}
.spot__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .25s var(--ease), filter .35s var(--ease);
}
.spot__badge {
  position: absolute;
  right: 0;
  top: 2%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-bright);
  color: var(--ink);
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transform: translateY(5px) scale(.8);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  box-shadow: 0 2px 8px rgba(50, 34, 9, .18);
}
.spot:hover::before,
.spot:focus-visible::before,
.spot.is-active::before { opacity: 1; }
.spot:hover .spot__icon,
.spot:focus-visible .spot__icon,
.spot.is-active .spot__icon {
  opacity: 1;
  filter:
    drop-shadow(0 0 3px rgba(255, 244, 211, .98))
    drop-shadow(0 0 10px rgba(224, 168, 54, .95))
    drop-shadow(0 0 30px rgba(224, 168, 54, .58))
    brightness(1.07)
    saturate(1.06);
}
.spot:hover .spot__badge,
.spot:focus-visible .spot__badge,
.spot.is-active .spot__badge { opacity: 1; transform: none; }
.spot:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero__scroll-line { display: block; width: 34px; height: 1px; background: var(--line-strong); }
.hero__scroll:hover { color: var(--ink); }

/* ------------------------------------------------------------- ribbon -- */
.ribbon { position: relative; z-index: 2; background: var(--ink); color: var(--paper); }
.ribbon__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.ribbon a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border-left: 1px solid rgba(242, 233, 218, .13);
  padding: 17px clamp(14px, 2.2vw, 27px);
  color: rgba(242, 233, 218, .7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .3s, background-color .3s;
}
.ribbon a:first-child { border-left: 0; }
.ribbon a span {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}
.ribbon a i { margin-left: auto; font-style: normal; font-size: 12px; opacity: .4; transition: opacity .3s, transform .3s; }
.ribbon a:hover { background: rgba(242, 233, 218, .055); color: var(--paper); }
.ribbon a:hover i { opacity: 1; transform: translate(2px, -2px); }

/* ----------------------------------------------------------- manifest -- */
.manifest {
  position: relative;
  overflow: clip;
  padding: clamp(88px, 11vw, 142px) 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.manifest::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 90% 20%, rgba(193, 139, 43, .08), transparent 27%);
}
.manifest__figure {
  position: absolute;
  right: -2%;
  bottom: -26%;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(14rem, 31vw, 31rem);
  font-weight: 300;
  letter-spacing: -.08em;
  line-height: .7;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(27, 24, 18, .055);
}
.manifest__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .55fr 1.25fr .95fr;
  align-items: start;
  gap: clamp(26px, 4vw, 62px);
}
.manifest__side { display: flex; flex-direction: column; gap: 26px; }
.manifest__line { display: block; width: 1px; height: 72px; margin-left: 3px; background: linear-gradient(180deg, var(--gold), transparent); }
.manifest__statement h2 {
  max-width: 9ch;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 5.3rem);
  font-weight: 400;
  letter-spacing: -.042em;
  line-height: .95;
}
.manifest__statement h2 em { color: var(--wine); font-weight: 300; }
.manifest__note { max-width: 42ch; padding-top: 7px; }
.manifest__lead {
  margin-bottom: 20px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}
.manifest__note p:not(.manifest__lead) { color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.manifest__note .text-link { margin-top: 25px; }

/* ------------------------------------------------------------ stories -- */
.stories {
  position: relative;
  overflow: clip;
  padding: clamp(82px, 10vw, 130px) 0 clamp(88px, 11vw, 144px);
  background: var(--paper-deep);
}
.stories::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
}
.stories__head {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: clamp(32px, 6vw, 100px);
  margin-bottom: clamp(42px, 5vw, 62px);
}
.stories__head h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.3vw, 5.1rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .94;
}
.stories__head h2 em { color: var(--wine); font-weight: 300; }
.stories__note {
  max-width: 38ch;
  padding-bottom: 5px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}
.stories__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.story {
  --accent: var(--gold);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 17px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: clamp(19px, 2.2vw, 27px);
  background: var(--paper-light);
  box-shadow: 0 3px 0 rgba(61, 43, 16, .018);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.story:hover {
  transform: translateY(-5px);
  border-color: rgba(27, 24, 18, .22);
  box-shadow: var(--shadow-lift);
}
.story--oberth { --accent: #8a5f12; }
.story--gas { --accent: #315d70; }
.story--castle { --accent: #6e4534; }
.story--wine { --accent: #7b2c38; }
.story__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.story__index {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .8;
}
.story__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: right;
}
.story__tag img { width: 20px; height: 20px; object-fit: contain; }
.story__body {
  display: grid;
  grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(14px, 2vw, 22px);
  flex: 1;
}
.story__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 270px;
}
.story__figure img {
  width: 100%;
  height: clamp(278px, 25vw, 348px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 16px 16px rgba(52, 36, 12, .14));
  transition: transform .5s var(--ease);
}
.story:hover .story__figure img { transform: translateY(-3px) scale(1.018); }
.story__guide-name {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1.2;
  text-align: center;
}
.story__guide-name::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin: 0 auto 6px;
  background: var(--accent);
  opacity: .55;
}
.story__copy { display: flex; flex-direction: column; min-width: 0; }
.story__copy h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.15vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: .98;
}
.story__deck {
  margin-bottom: 13px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.32;
}
.story__copy p:not(.story__deck) { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.story__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .25s;
}
.story__arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 11px;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.story__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.story__link:hover { color: var(--accent); }
.story__link:hover .story__arrow { background: var(--accent); border-color: var(--accent); color: var(--paper-light); transform: translate(2px, -2px); }

/* --------------------------------------------------------- association -- */
.association {
  position: relative;
  overflow: clip;
  background: var(--dark);
  color: var(--cream-on-dark);
}
.association__glow {
  position: absolute;
  top: -20%;
  right: -8%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 139, 43, .14), transparent 62%);
  pointer-events: none;
}
.association::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image: radial-gradient(rgba(242, 233, 218, .12) .6px, transparent .6px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 42%);
  mask-image: linear-gradient(180deg, #000, transparent 42%);
}
.association__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(38px, 7vw, 104px);
  padding: clamp(78px, 10vw, 124px) 0 clamp(65px, 8vw, 98px);
}
.association__visual { display: flex; flex-direction: column; align-items: center; }
.association__frame {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(20px, 3vw, 30px);
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
  transform: rotate(-1.8deg);
  transition: transform .6s var(--ease);
}
.association__frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(27, 24, 18, .13);
  pointer-events: none;
}
.association__frame:hover { transform: rotate(0deg) translateY(-3px); }
.association__frame img { width: 100%; height: auto; }
.association__caption {
  margin-top: 17px;
  color: rgba(242, 233, 218, .62);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
}
.association__content h2 {
  margin: 19px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .94;
}
.association__content h2 em { color: var(--gold-bright); font-weight: 300; }
.association__name {
  max-width: 48ch;
  margin: 0 0 15px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
}
.association__lead {
  max-width: 48ch;
  color: var(--cream-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.48;
}
.association__text {
  max-width: 50ch;
  margin-top: 15px;
  color: rgba(242, 233, 218, .62);
  font-size: 13.5px;
  line-height: 1.75;
}
.association__contact {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  margin-top: 34px;
  padding-top: 23px;
  border-top: 1px solid rgba(242, 233, 218, .16);
}
.association__contact-block { min-width: 0; }
.association__label {
  display: block;
  margin-bottom: 8px;
  color: rgba(242, 233, 218, .62);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.association__email {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(228, 178, 76, .52);
  padding-bottom: 3px;
  color: var(--gold-bright);
  font-size: clamp(.92rem, 1.4vw, 1.08rem);
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .25s, border-color .25s;
}
.association__email span { display: inline-block; transition: transform .25s var(--ease); }
.association__email:hover { color: var(--paper); border-color: var(--paper); }
.association__email:hover span { transform: translate(2px, -2px); }
.association__contact address {
  color: rgba(242, 233, 218, .7);
  font-size: 12.5px;
  line-height: 1.7;
}

/* -------------------------------------------------------------- donate -- */
.donation {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(242, 233, 218, .16);
  background: linear-gradient(180deg, rgba(193, 139, 43, .1), rgba(193, 139, 43, .02));
}
.donation__inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: clamp(28px, 4vw, 43px) 0;
}
.donation__panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
}
.donation__panel:first-child { padding-right: clamp(26px, 4vw, 58px); }
.donation__panel--games {
  border-left: 1px solid rgba(242, 233, 218, .16);
  padding-left: clamp(26px, 4vw, 58px);
}
.donation__title {
  margin-top: 0;
  color: var(--cream-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.13;
}
.donation__title--games {
  max-width: 34ch;
  font-size: clamp(1.15rem, 1.95vw, 1.55rem);
  line-height: 1.3;
}
.donation__button { flex: 0 0 auto; }
.btn--gold { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--dark); }
.btn--gold:hover { background: var(--paper); border-color: var(--paper); color: var(--dark); }
.btn--outline-gold { border-color: rgba(228, 178, 76, .64); background: transparent; color: var(--gold-bright); }
.btn--outline-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--dark); }

/* -------------------------------------------------------------- footer -- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(242, 233, 218, .16);
  background: var(--dark);
  color: rgba(242, 233, 218, .54);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 24px 0 27px;
}
.footer__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 17px; font-size: 10px; letter-spacing: .03em; color: rgba(242, 233, 218, .66); }
.footer__heart {
  color: var(--cream-on-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0;
}
.footer__copy { font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .25s;
}
.footer__download span { font-size: 13px; transition: transform .25s var(--ease); }
.footer__download:hover { color: var(--paper); }
.footer__download:hover span { transform: translateY(2px); }
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: rgba(242, 233, 218, .72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  min-height: 40px;
  transition: color .25s;
}
.footer__top span { color: var(--gold-bright); font-size: 13px; transition: transform .25s var(--ease); }
.footer__top:hover { color: var(--paper); }
.footer__top:hover span { transform: translateY(-3px); }

/* ------------------------------------------------------------ reveals -- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .95s var(--ease) var(--delay, 0s), transform .95s var(--ease) var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------- responsive -- */
@media (min-width: 981px) and (max-height: 840px) {
  .hero { padding-top: 88px; padding-bottom: 22px; }
  .hero__title { margin-bottom: 17px; }
  .hero__lede { font-size: 15.5px; }
  .hero__actions { margin-top: 23px; }
  .hero__stats { margin-top: 25px; padding-top: 14px; }
  .seal { max-width: 490px; }
  .seal__caption { margin-top: 6px; }
  .seal__hint { display: block; margin-top: 8px; font-size: 9px; }
  .seal__legend { margin-top: 9px; }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .seal__legend { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 340px; gap: 6px; }
  .seal__legend a { justify-content: center; min-height: 34px; padding: 7px 8px; font-size: 9px; gap: 5px; }
}

@media (max-width: 1120px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(390px, .88fr); gap: 42px; }
  .hero__place { font-size: clamp(4.35rem, 8.4vw, 7.3rem); }
  .story__body { grid-template-columns: minmax(105px, 34%) minmax(0, 1fr); }
  .story__figure img { height: clamp(265px, 24vw, 320px); }
}

@media (max-width: 980px) {
  .wrap { width: min(100% - 48px, 760px); }
  .sound-toggle { width: 40px; padding: 0; justify-content: center; }
  .sound-toggle__label { display: none; }
  .header__actions { gap: 7px; }
  .hero { min-height: auto; padding-top: 126px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: 700px; margin-inline: auto; text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__lede { margin-inline: auto; }
  .hero__visual { width: min(100%, 540px); margin-inline: auto; }
  .seal__tap { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 11px; color: var(--gold-ink); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
  .seal__tap-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
  .seal__hint { display: none; }
  .seal__legend { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 430px; gap: 6px; }
  .seal__legend a { justify-content: center; min-height: 38px; padding: 8px 9px; font-size: 9.5px; }
  .hero__scroll { display: none; }
  .hero__watermark { right: -12%; bottom: -4%; opacity: .8; }
  .ribbon__inner { grid-template-columns: repeat(2, 1fr); }
  .ribbon a:nth-child(3) { border-left: 0; }
  .ribbon a:nth-child(n+3) { border-top: 1px solid rgba(242, 233, 218, .13); }
  .manifest__grid { grid-template-columns: .45fr 1.55fr; }
  .manifest__note { grid-column: 2; max-width: 48ch; }
  .stories__head { grid-template-columns: 1fr; gap: 20px; }
  .stories__note { max-width: 50ch; }
  .stories__grid { grid-template-columns: 1fr; }
  .story__body { grid-template-columns: minmax(130px, 30%) minmax(0, 1fr); }
  .story__figure img { height: 340px; }
  .story__copy p:not(.story__deck) { font-size: 14px; }
  .association__grid { grid-template-columns: 1fr; gap: 48px; }
  .association__visual { order: 2; }
  .association__content { order: 1; }
  .association__frame { width: min(100%, 460px); }
  .association__caption { text-align: center; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .header__inner { height: 76px; gap: 14px; }
  .header__actions { gap: 7px; }
  .sound-toggle { width: 40px; padding: 0; justify-content: center; }
  .sound-toggle__label { display: none; }
  .sound-toggle.is-playing::after { right: 7px; }
  .site-nav { display: none; }
  .site-nav a { font-size: 9.5px; letter-spacing: .1em; }
  .brand__mark { width: 35px; height: 35px; font-size: 18px; }
  .brand__name { font-size: 17px; }
  .brand__tag { font-size: 7.5px; letter-spacing: .12em; }
  .hero { padding-top: 112px; padding-bottom: 54px; }
  .hero__grid { gap: 35px; }
  .hero__place { font-size: clamp(4.2rem, 19vw, 6.2rem); }
  .hero__name { margin-top: 15px; font-size: clamp(1.7rem, 6.3vw, 2.35rem); }
  .hero__title { margin-top: 23px; margin-bottom: 20px; }
  .hero__lede { font-size: 14.5px; line-height: 1.7; }
  .hero__actions { margin-top: 25px; }
  .btn { min-height: 45px; padding: 11px 17px; font-size: 9.5px; }
  .hero__stats { gap: 20px; margin-top: 31px; }
  .hero__stats dt { font-size: 1.45rem; }
  .hero__stats dd { font-size: 8.5px; letter-spacing: .1em; }
  .seal__caption { gap: 4px 9px; padding: 8px 0 0; }
  .seal__caption-label, .seal__caption-url { font-size: 9.5px; }
  .seal__tap { font-size: 9.5px; margin-bottom: 9px; }
  .seal__legend { gap: 6px; }
  .seal__legend a { min-height: 40px; padding: 8px 8px; font-size: 9px; letter-spacing: .04em; }
  .ribbon a { min-height: 60px; padding: 14px 14px; font-size: 9.5px; gap: 9px; }
  .ribbon a span { font-size: 15px; }
  .manifest { padding: 78px 0; }
  .manifest__grid { grid-template-columns: 1fr; gap: 26px; }
  .manifest__side { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .manifest__line { width: 90px; height: 1px; margin: 0; background: linear-gradient(90deg, var(--gold), transparent); }
  .manifest__statement h2 { max-width: 12ch; font-size: clamp(2.8rem, 11vw, 4rem); }
  .manifest__note { grid-column: auto; padding-top: 0; }
  .manifest__lead { margin-bottom: 15px; }
  .stories { padding: 76px 0 86px; }
  .stories__head h2 { font-size: clamp(2.8rem, 11vw, 4rem); }
  .story { padding: 18px; gap: 14px; }
  .story__body { grid-template-columns: 1fr; gap: 13px; }
  .story__figure { min-height: 0; height: 238px; order: -1; gap: 5px; }
  .story__figure img { height: 208px; }
  .story__guide-name { font-size: 14px; }
  .story__tag { font-size: 9px; letter-spacing: .08em; }
  .story__copy h3 { font-size: 1.6rem; }
  .story__copy p:not(.story__deck) { font-size: 13.5px; }
  .association__grid { padding-top: 68px; padding-bottom: 58px; gap: 38px; }
  .association__content h2 { font-size: clamp(2.8rem, 11vw, 4rem); }
  .association__name { font-size: 10.5px; }
  .association__contact { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; }
  .donation__inner { flex-direction: column; align-items: stretch; gap: 0; }
  .donation__panel:first-child { padding-right: 0; padding-bottom: 25px; }
  .donation__panel--games {
    border-top: 1px solid rgba(242, 233, 218, .16);
    border-left: 0;
    padding-top: 25px;
    padding-left: 0;
  }
  .donation__button { width: 100%; justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; padding: 21px 0 24px; }
  .footer__links { gap: 12px 20px; }
}

@media (max-width: 480px) {
  .hero .eyebrow { gap: 8px; font-size: 9px; letter-spacing: .11em; }
  .eyebrow__rule { width: 18px; }
  .hero__place { font-size: clamp(4rem, 21vw, 5.3rem); }
  .hero__name { font-size: clamp(1.55rem, 6.8vw, 1.95rem); }
  .hero__stats { gap: 17px; }
  .hero__stats dd { font-size: 8px; }
  .seal__legend a { letter-spacing: .03em; }
  .seal__legend a i { display: none; }
  .seal__caption-label, .seal__caption-url { font-size: 9px; }
  .manifest__figure { opacity: .55; }
}

@media (max-width: 380px) {
  .site-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- keyframes -- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes sound-pulse {
  0%, 100% { opacity: .5; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ------------------------------------------------------------- version -- */
.site-version {
  padding: 0 0 17px;
  color: rgba(242, 233, 218, .55);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1;
  text-align: center;
}

.footer__shop {
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 178, 76, .45);
  padding-bottom: 2px;
  margin-right: 4px;
}
.footer__shop:hover { color: var(--paper); border-color: var(--paper); }

/* Mobile navigation ----------------------------------------------------- */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--ink); border-color: var(--ink); }
.nav-toggle:hover .nav-toggle__line { background: var(--paper); }
.nav-toggle__line {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--ink);
  transition: transform .25s var(--ease), background-color .25s;
}
.nav-toggle__line:first-child { transform: translate(-50%, -4px); }
.nav-toggle__line:last-child { transform: translate(-50%, 4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:first-child { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:last-child { transform: translate(-50%, 0) rotate(-45deg); }
.nav-toggle[aria-expanded="true"]:hover .nav-toggle__line { background: var(--paper); }
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 90;
  max-height: calc(100svh - 76px);
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 24px 55px rgba(23, 21, 15, .16);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__inner { padding: 20px 0 25px; }
.mobile-nav .eyebrow { margin-bottom: 8px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--wine); }
.mobile-nav__num { color: var(--muted); font-family: var(--font-ui); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
body.nav-open { overflow: hidden; }
@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 380px) {
  .nav-toggle { width: 36px; height: 36px; }
  .header__actions { gap: 5px; }
}
@media (min-width: 701px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav a:focus { outline: 2px solid var(--wine); outline-offset: 3px; }

/* Keep the light interface readable when the phone OS is in dark mode. */
:root { color-scheme: light; }
.site-header { background: var(--paper); }
@media (max-width: 700px) {
  .nav-toggle,
  .lang-switch__button,
  .sound-toggle {
    background: var(--paper);
  }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
  html, body { background: var(--paper); color: var(--ink); }
  .site-header { background: var(--paper); }
  .nav-toggle,
  .lang-switch__button,
  .sound-toggle {
    background: var(--paper);
    color: var(--ink);
  }
  .nav-toggle__line { background: var(--ink); }
}

/* Five-item main navigation on tablet widths ---------------------------- */
@media (max-width: 980px) and (min-width: 701px) {
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 8.5px; letter-spacing: .08em; }
}

.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { right: 0; background: var(--gold); }
