/* ───────────────────────────────────────────────────────────────────────────
   Wirksworth Wizarding Day — the front door

   Night sky for the arrival, parchment for the reading. The same inks as
   `shared/parchment.css` (the quiz and trail) so the four sites read as one
   family, but the body type is EB Garamond rather than IM Fell: IM Fell is
   lovely for a heading and tiring for a travel timetable.

   Nothing on this page animates beyond a hover. See the "bake visuals,
   never animate them" rule the map learned on phones.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --night:        #10142a;
  --night-2:      #1a2042;
  --night-3:      #262d57;
  --ink:          #2a1a0b;
  --ink-soft:     #4c3517;
  --ink-faint:    rgba(42, 26, 11, 0.6);
  --parchment:    #f4e8cc;
  --parchment-2:  #ead8ae;
  --parchment-3:  #d9c08a;
  --gold:         #c9a24a;
  --gold-bright:  #ecc976;
  --gold-deep:    #8a6a22;
  --wax:          #8d2b1e;
  --wax-bright:   #b23a28;
  --star:         #fdf3d6;

  --display: "IM Fell English", Georgia, serif;
  --caps:    "IM Fell English SC", Georgia, serif;
  --body:    "EB Garamond", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 20, 42, .12), 0 8px 28px rgba(16, 20, 42, .16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.08rem, 0.4vw + 1rem, 1.22rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--wax); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wax-bright); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 3.4vw + 1rem, 3.2rem); }
h3 { font-size: clamp(1.4rem, 1vw + 1rem, 1.7rem); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }

.eyebrow {
  font-family: var(--caps);
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: lowercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: .8rem;
}
.eyebrow::before, .eyebrow::after { content: "✦"; font-size: .7em; color: var(--gold); }
.on-night .eyebrow { color: var(--gold-bright); }

.lede { font-size: 1.18em; color: var(--ink-soft); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-bright); color: var(--night); padding: .5em 1em; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em;
  font-family: var(--caps); font-size: 1.08rem; letter-spacing: .06em;
  text-decoration: none; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--night); box-shadow: 0 2px 0 var(--gold-deep), 0 8px 22px rgba(201,162,74,.28); }
.btn--gold:hover { color: var(--night); box-shadow: 0 2px 0 var(--gold-deep), 0 10px 28px rgba(236,201,118,.4); }
.btn--ghost { border-color: rgba(236,201,118,.6); color: var(--star); background: rgba(16,20,42,.35); }
.btn--ghost:hover { color: var(--night); background: var(--gold-bright); }
.btn--ink { background: var(--night); color: var(--star); }
.btn--ink:hover { color: var(--star); background: var(--night-3); }
.btn--line { border-color: var(--ink-soft); color: var(--ink); background: transparent; }
.btn--line:hover { color: var(--parchment); background: var(--ink); }
.btn .arrow { font-family: var(--body); transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ── header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 20, 42, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(201,162,74,.35);
  color: var(--star);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--star); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--gold-bright); }
.brand img { width: 62px; filter: invert(1) sepia(.5) saturate(2) hue-rotate(5deg) brightness(1.05); }
.brand span { font-family: var(--caps); font-size: 1.18rem; line-height: 1.05; letter-spacing: .04em; }
.brand small { display: block; font-size: .72rem; letter-spacing: .2em; color: var(--gold-bright); }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: var(--star); text-decoration: none;
  font-family: var(--caps); font-size: 1.05rem; letter-spacing: .05em;
  padding: .55em .8em; border-radius: 999px;
}
.nav a:hover { color: var(--gold-bright); }
.nav a[aria-current="page"] { color: var(--gold-bright); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .btn { margin-left: .5rem; min-height: 42px; padding: .5em 1.1em; font-size: 1rem; }

.menu-toggle {
  display: none; background: none; border: 1px solid rgba(236,201,118,.5); color: var(--star);
  border-radius: 999px; min-height: 44px; padding: 0 1rem; font-family: var(--caps); font-size: 1rem; gap: .5rem; align-items: center;
}
.menu-toggle .bars { width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars i { top: 5px; } .menu-toggle .bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .bars i { opacity: 0; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid rgba(201,162,74,.35);
    padding: .5rem var(--gutter) 1.2rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9em .2em; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; font-size: 1.2rem; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 1rem 0 0; border-bottom: 0; border-radius: 999px; }
  .brand span { font-size: 1.02rem; }
  .brand img { width: 50px; }
}

/* ── night sections (hero, games) ────────────────────────────────────────── */
.on-night { background: var(--night); color: var(--star); }
.on-night a:not(.btn) { color: var(--gold-bright); }
.starfield {
  background-color: var(--night);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(253,243,214,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, rgba(253,243,214,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 62%, rgba(253,243,214,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, rgba(253,243,214,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 84%, rgba(253,243,214,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 30%, rgba(236,201,118,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 88%, rgba(253,243,214,.6) 50%, transparent 51%),
    radial-gradient(ellipse at 50% -20%, var(--night-3), var(--night) 65%);
  background-size: 340px 340px, 280px 280px, 420px 420px, 310px 310px, 260px 260px, 520px 520px, 380px 380px, 100% 100%;
}

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 820px);
  display: grid; align-items: end;
  padding: clamp(5rem, 14vh, 9rem) 0 clamp(2.5rem, 7vh, 4.5rem);
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,20,42,.25) 0%, rgba(16,20,42,.1) 35%, rgba(16,20,42,.78) 75%, var(--night) 100%),
    radial-gradient(ellipse at 15% 85%, rgba(16,20,42,.85), transparent 60%);
}
.hero__crest { width: clamp(120px, 18vw, 190px); filter: invert(1) sepia(.6) saturate(2.4) hue-rotate(4deg) brightness(1.08) drop-shadow(0 4px 18px rgba(0,0,0,.6)); margin-bottom: 1rem; }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw + .4rem, 5.6rem);
  line-height: .95; margin-bottom: 1.2rem;
  color: var(--star);
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.hero h1 em { display: block; font-size: .44em; color: var(--gold-bright); font-style: italic; margin-top: .3em; letter-spacing: .01em; }
.hero__notice {
  display: inline-flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  background: rgba(16,20,42,.66); border: 1px solid rgba(236,201,118,.45);
  border-radius: 999px; padding: .55rem 1.2rem .55rem .6rem; margin-bottom: 1.6rem;
  font-size: 1.05rem;
}
.hero__notice b { font-family: var(--caps); font-weight: 400; background: var(--wax); color: var(--star); padding: .25em .85em; border-radius: 999px; letter-spacing: .06em; font-size: .95rem; }
@media (max-width: 560px) { .hero__notice { border-radius: 16px; padding: .7rem 1rem; } }

.hero--page { min-height: min(56vh, 520px); }
.hero--page h1 { font-size: clamp(2.6rem, 6vw + .5rem, 5rem); max-width: 16ch; }
.hero--page p { font-size: 1.2em; max-width: 46ch; color: rgba(253,243,214,.9); text-shadow: 0 1px 12px rgba(0,0,0,.6); }

/* ── stat ribbon ─────────────────────────────────────────────────────────── */
.ribbon { border-top: 1px solid rgba(201,162,74,.3); border-bottom: 1px solid rgba(201,162,74,.3); }
.ribbon ul { list-style: none; margin-block: 0; padding: 1.4rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.ribbon li { display: grid; gap: .1rem; }
.ribbon strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); color: var(--gold-bright); line-height: 1; }
.ribbon span { font-family: var(--caps); letter-spacing: .08em; font-size: .95rem; color: rgba(253,243,214,.8); }
@media (max-width: 700px) { .ribbon ul { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; } }

/* ── sections ────────────────────────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; position: relative; }
.section--tint { background: var(--parchment-2); }
.section--paper {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(201,162,74,.18), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(138,95,40,.14), transparent 55%),
    var(--parchment);
}
.section__head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.divider { display: flex; align-items: center; gap: 1rem; color: var(--gold); margin: 0 auto; max-width: 420px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor, transparent); }
.divider svg { width: 26px; height: 26px; }

/* split layout */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--flip { grid-template-columns: .9fr 1.1fr; }
.split--flip > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split--flip { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

/* gilt frame for photographs */
.frame {
  position: relative; margin: 0;
  padding: 10px; background: linear-gradient(135deg, #f0d792, var(--gold) 40%, var(--gold-deep) 60%, #e9cd85);
  border-radius: 6px; box-shadow: var(--shadow);
}
.frame img, .frame video { border-radius: 2px; width: 100%; }
.frame::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255,248,220,.6); border-radius: 3px; pointer-events: none; }
.frame figcaption { font-family: var(--caps); font-size: .9rem; letter-spacing: .06em; color: var(--night); text-align: center; padding-top: .5rem; }
.tilt-l { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.4deg); }

.photo-stack { position: relative; padding: 0 0 12% 12%; }
.photo-stack .frame:last-child { position: absolute; width: 52%; left: 0; bottom: 0; }

/* ── thank-you / pull quote ──────────────────────────────────────────────── */
.dropcap::first-letter {
  float: left; font-family: var(--display); font-size: 4.2em; line-height: .8;
  padding: .08em .12em 0 0; color: var(--wax);
}
.notice {
  border: 1px solid var(--parchment-3); border-left: 4px solid var(--gold);
  background: rgba(255,255,255,.35); padding: 1rem 1.2rem; border-radius: 8px;
  font-size: .95em; color: var(--ink-soft);
}

/* ── the day: activity cards ─────────────────────────────────────────────── */
.activities { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.activity {
  background: var(--parchment); border: 1px solid var(--parchment-3); border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.1rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: .35rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 2px 10px rgba(42,26,11,.06);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.activity:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 26px rgba(42,26,11,.12); }
.activity .icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--gold-bright); margin-bottom: .4rem; }
.activity .icon svg { width: 24px; height: 24px; }
.activity h3 { font-size: 1.35rem; margin: 0; }
.activity p { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.activity .where { font-family: var(--caps); font-size: .92rem; letter-spacing: .04em; color: var(--wax); border-top: 1px dashed var(--parchment-3); padding-top: .6rem; margin-top: .6rem; }

.know {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--night); color: var(--star); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.know > div { padding: 1.3rem 1.4rem; border-right: 1px solid rgba(201,162,74,.22); }
.know > div:last-child { border-right: 0; }
.know h4 { font-family: var(--caps); color: var(--gold-bright); font-size: 1.05rem; letter-spacing: .08em; margin-bottom: .3rem; }
.know p { margin: 0; font-size: 1rem; color: rgba(253,243,214,.88); }
@media (max-width: 900px) { .know { grid-template-columns: 1fr 1fr; } .know > div:nth-child(2) { border-right: 0; } .know > div:nth-child(-n+2) { border-bottom: 1px solid rgba(201,162,74,.22); } }
@media (max-width: 520px) { .know { grid-template-columns: 1fr; } .know > div { border-right: 0; border-bottom: 1px solid rgba(201,162,74,.22); } }

.programme-cta { display: flex; gap: 1.4rem; align-items: center; margin-top: 2rem; flex-wrap: wrap; }
.programme-cta img { width: 110px; border-radius: 4px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.programme-cta p { margin: 0 0 .6rem; max-width: 46ch; }

/* ── online games ────────────────────────────────────────────────────────── */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .games { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.game {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--star);
  background: var(--night-2); border: 1px solid rgba(201,162,74,.35); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.on-night a.game { color: var(--star); }
.game:hover { transform: translateY(-4px); border-color: var(--gold-bright); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.game__art { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--night-3); }
.game__art img, .game__art video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transition: transform .5s var(--ease); }
.game:hover .game__art img, .game:hover .game__art video { transform: scale(1.04); }
.game__art--mark { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #3a3366, var(--night-2) 70%); }
.game__art--mark img { width: 52%; height: auto; object-fit: contain; filter: invert(1) sepia(.7) saturate(2.6) hue-rotate(3deg) brightness(1.05); }
.game__badge {
  position: absolute; top: .8rem; left: .8rem; font-family: var(--caps); font-size: .85rem; letter-spacing: .08em;
  padding: .25em .8em; border-radius: 999px; background: var(--gold-bright); color: var(--night);
}
.game__badge--soon { background: rgba(16,20,42,.85); color: var(--gold-bright); border: 1px solid var(--gold); }
.game__body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .4rem; align-content: start; }
.game__body h3 { margin: 0; color: var(--gold-bright); }
.game__body p { margin: 0; color: rgba(253,243,214,.82); font-size: 1rem; }
.game__go { font-family: var(--caps); letter-spacing: .06em; color: var(--star); margin-top: .5rem; }

/* ── good causes ─────────────────────────────────────────────────────────── */
.causes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.causes a, .causes span {
  display: flex; align-items: center; gap: .7rem; height: 100%;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--parchment); border: 1px solid var(--parchment-3);
  font-family: var(--display); font-size: 1.15rem; color: var(--ink); text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}
.causes a:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--wax); }
.causes .seal { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--wax-bright), var(--wax) 60%, #5e1b12); color: #f6d9b8; font-family: var(--caps); font-size: .95rem; box-shadow: 0 2px 4px rgba(0,0,0,.25); }

/* ── travel teaser band ──────────────────────────────────────────────────── */
.band { position: relative; isolation: isolate; color: var(--star); overflow: hidden; }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img, .band__bg video { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,20,42,.94) 0%, rgba(16,20,42,.85) 45%, rgba(16,20,42,.35) 100%); }
@media (max-width: 860px) { .band::before { background: rgba(16,20,42,.86); } }
.band .eyebrow { color: var(--gold-bright); }
.band h2 { color: var(--star); }
.band p { color: rgba(253,243,214,.88); max-width: 52ch; }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.8rem 0 2rem; max-width: 720px; }
.way { background: rgba(16,20,42,.6); border: 1px solid rgba(236,201,118,.35); border-radius: 12px; padding: 1rem; }
.way svg { width: 28px; height: 28px; color: var(--gold-bright); margin-bottom: .4rem; }
.way strong { display: block; font-family: var(--caps); font-weight: 400; letter-spacing: .05em; font-size: 1.1rem; color: var(--star); }
.way span { font-size: .95rem; color: rgba(253,243,214,.78); line-height: 1.4; display: block; }
@media (max-width: 600px) { .ways { grid-template-columns: 1fr; } }

/* ── quote ───────────────────────────────────────────────────────────────── */
.quote { text-align: center; max-width: 880px; margin: 0 auto; }
.quote blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 1.6vw + 1rem, 2.1rem); line-height: 1.35; color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--gold); font-style: normal; margin-bottom: .6rem; }
.quote cite { display: block; margin-top: 1.2rem; font-family: var(--caps); font-style: normal; letter-spacing: .1em; color: var(--gold-deep); }

/* ── supporters ──────────────────────────────────────────────────────────── */
.supporters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); margin-top: 1.8rem; }
.supporters img { height: 64px; width: auto; object-fit: contain; filter: grayscale(.15); opacity: .92; transition: opacity .2s, filter .2s; }
.supporters img:hover { opacity: 1; filter: none; }
.supporters .s-technolog { height: 72px; mix-blend-mode: multiply; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.site-footer { padding: clamp(3rem, 7vw, 5rem) 0 2rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--caps); color: var(--gold-bright); letter-spacing: .1em; font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: rgba(253,243,214,.9); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); text-decoration: underline; }
.footer-brand img { width: 120px; filter: invert(1) sepia(.5) saturate(2) hue-rotate(5deg); margin-bottom: 1rem; }
.footer-brand p { color: rgba(253,243,214,.75); font-size: .95rem; max-width: 40ch; }
.footer-base { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(201,162,74,.25); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; color: rgba(253,243,214,.6); }
.footer-base p { margin: 0; max-width: 70ch; }

/* ── about: timeline + team ──────────────────────────────────────────────── */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 22px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.timeline li { text-align: center; position: relative; padding-top: 52px; font-family: var(--caps); letter-spacing: .04em; font-size: 1.05rem; }
.timeline li::before { content: ""; position: absolute; top: 12px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--parchment); border: 2px solid var(--gold-deep); }
.timeline li.done::before { background: var(--gold); }
.timeline li.next::before { background: var(--wax); border-color: var(--wax); box-shadow: 0 0 0 5px rgba(141,43,30,.18); }
.timeline li small { display: block; font-family: var(--body); letter-spacing: 0; font-size: .82rem; color: var(--ink-faint); }
.timeline li.next { color: var(--wax); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: .2rem; padding-left: 2.6rem; }
  .timeline::before { left: 12px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .timeline li { text-align: left; padding: .45rem 0; }
  .timeline li::before { top: .65rem; left: -2.6rem; margin-left: 2px; width: 18px; height: 18px; }
  .timeline li small { display: inline; margin-left: .5rem; }
}

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.member { background: var(--parchment); border: 1px solid var(--parchment-3); border-radius: var(--radius); padding: 1.3rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.member .seal { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--wax-bright), var(--wax) 60%, #5e1b12); color: #f6d9b8; font-family: var(--caps); font-size: 1.2rem; box-shadow: 0 2px 5px rgba(0,0,0,.25), inset 0 0 0 3px rgba(0,0,0,.12); }
.member h3 { font-size: 1.3rem; margin: 0 0 .15rem; }
.member .title { font-family: var(--display); font-style: italic; color: var(--wax); margin: 0 0 .35rem; font-size: 1.05rem; }
.member p { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.45; }

.press { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ── food & drink ────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filters button {
  font-family: var(--caps); font-size: 1.02rem; letter-spacing: .04em; min-height: 44px;
  padding: .4em 1.1em; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid var(--parchment-3);
  transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--gold-deep); }
.filters button[aria-pressed="true"] { background: var(--night); color: var(--gold-bright); border-color: var(--night); }
.filters .count { opacity: .65; font-size: .85em; margin-left: .3em; }

.venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.venue { background: var(--parchment); border: 1px solid var(--parchment-3); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 2px 10px rgba(42,26,11,.06); }
.venue[hidden] { display: none; }
.venue__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--parchment-2); }
.venue__img img, .venue__img video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.venue:hover .venue__img img, .venue:hover .venue__img video { transform: scale(1.03); }
.venue__body { padding: 1.2rem 1.3rem 1.3rem; display: grid; gap: .5rem; align-content: start; }
.venue__body h3 { margin: 0; font-size: 1.5rem; }
.venue__body p { margin: 0; font-size: 1rem; color: var(--ink-soft); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font-family: var(--caps); font-size: .82rem; letter-spacing: .06em; padding: .15em .7em; border-radius: 999px; background: var(--parchment-2); color: var(--ink-soft); border: 1px solid var(--parchment-3); }
.tag--day { background: var(--night); color: var(--gold-bright); border-color: var(--night); }
.venue .on-day { font-size: .95rem; background: rgba(201,162,74,.14); border-left: 3px solid var(--gold); padding: .5rem .7rem; border-radius: 0 6px 6px 0; color: var(--ink); }
.venue__link { font-family: var(--caps); letter-spacing: .05em; font-size: 1rem; margin-top: .2rem; }

/* ── travel ──────────────────────────────────────────────────────────────── */
.jump { display: flex; flex-wrap: wrap; gap: .6rem; }
.jump a { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .4em 1.1em; border-radius: 999px; text-decoration: none; background: var(--parchment); color: var(--ink); border: 1.5px solid var(--parchment-3); font-family: var(--caps); font-size: 1.05rem; }
.jump a:hover { border-color: var(--gold-deep); color: var(--wax); }
.jump svg { width: 20px; height: 20px; color: var(--gold-deep); }

.alert {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--night); color: var(--star); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow);
}
.alert svg { width: 40px; height: 40px; color: var(--gold-bright); }
.alert h3 { margin: 0 0 .2rem; color: var(--gold-bright); font-size: 1.4rem; }
.alert p { margin: 0; color: rgba(253,243,214,.88); font-size: 1rem; }
@media (max-width: 760px) { .alert { grid-template-columns: 1fr; } .alert svg { display: none; } }

.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .routes { grid-template-columns: 1fr; } }
.route { background: var(--parchment); border: 1px solid var(--parchment-3); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .6rem; align-content: start; }
.route header { display: flex; align-items: center; gap: .8rem; }
.route .num { font-family: var(--caps); background: var(--night); color: var(--gold-bright); border-radius: 10px; padding: .2em .6em; font-size: 1.2rem; white-space: nowrap; }
.route h3 { margin: 0; font-size: 1.3rem; }
.route p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.times { list-style: none; margin: .2rem 0; padding: 0; display: grid; gap: .4rem; }
.times li { display: grid; grid-template-columns: 4.6rem 1fr; gap: .6rem; font-size: .98rem; padding: .45rem 0; border-bottom: 1px dashed var(--parchment-3); }
.times li:last-child { border-bottom: 0; }
.times b { font-family: var(--caps); font-weight: 400; color: var(--wax); letter-spacing: .03em; }

.drives { display: grid; gap: .8rem; }
.drives details { background: var(--parchment); border: 1px solid var(--parchment-3); border-radius: 12px; }
.drives summary { cursor: pointer; padding: 1rem 1.2rem; font-family: var(--display); font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; }
.drives summary::-webkit-details-marker { display: none; }
.drives summary::after { content: "+"; font-family: var(--body); font-size: 1.5rem; color: var(--gold-deep); transition: transform .2s; }
.drives details[open] summary::after { transform: rotate(45deg); }
.drives details > div { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.drives ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; }

.mapframe { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--parchment-3); box-shadow: var(--shadow); background: var(--parchment-2); }
.mapframe iframe { display: block; width: 100%; height: 420px; border: 0; filter: sepia(.35) saturate(.9); }
.mapframe p { margin: 0; padding: .7rem 1rem; font-size: .92rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

.small { font-size: .9rem; color: var(--ink-faint); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── activities (activities.html) ────────────────────────────────────────── */
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.act {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: var(--parchment); border: 1px solid var(--parchment-3); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 10px rgba(42,26,11,.06); scroll-margin-top: 90px;
}
.act[hidden] { display: none; }
.act:target { outline: 3px solid var(--gold); outline-offset: 3px; }
.act__img { background: var(--parchment-2); min-height: 100%; }
.act__img img, .act__img video { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.act__body { padding: 1.4rem 1.6rem 1.5rem; display: grid; gap: .1rem; align-content: start; }
.act__body h3 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 1.9rem); margin-bottom: .4rem; }
.act__body p { margin: 0 0 .7em; font-size: 1.02rem; color: var(--ink-soft); }
.act__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: .5rem 1.2rem;
  margin: .4rem 0 .9rem; padding: .8rem 0 0; border-top: 1px dashed var(--parchment-3);
}
.act__facts div { margin: 0; }
.act__facts dt { font-family: var(--caps); font-size: .9rem; letter-spacing: .06em; color: var(--wax); }
.act__facts dd { margin: 0; font-size: .98rem; line-height: 1.4; }
.act__by { font-style: italic; font-size: .92rem !important; }
.act .btn-row { margin-top: .2rem; }
@media (min-width: 861px) { .act:nth-child(even) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .act:nth-child(even) .act__img { order: 2; } }
@media (max-width: 860px) { .act { grid-template-columns: 1fr; } .act__img img, .act__img video { max-height: 340px; } }

/* ── living photographs ──────────────────────────────────────────────────────
   build.py swaps a photo for <video class="living"> when assets/video/<name>.mp4
   exists; the photo stays as its poster. site.js only loads and plays a video
   while it is on screen, and never for people who ask for reduced motion or
   to save data, who simply see the still. */
video.living { background: transparent; }
