/* ═══════════════════════════════════════════════════════════════════
   JAY AT 40 · Design System — Western Luxury refinement
   Cream & leather editorial · oxblood + aged brass accents · cinematic
   espresso hero and footer. Mobile-first. Fluid type. Reduced-motion safe.
   Type: Barlow Condensed (nav, labels, controls, counters, dates)
         · Instrument Serif (hero, titles, quotes, editorial) · Inter (body, forms).
   Every component reads semantic tokens, so dark bands (hero, footer,
   Friday) override --text/--accent/--line locally rather than hard-coding.
═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Raw palette — leather, cream, oxblood, aged brass */
  --bg-cream:        #F3EBDD;
  --bg-sand:         #D8C3A5;
  --bg-champagne:    #E8D8BE;
  --text-charcoal:   #2B2926;
  --text-muted:      #635A50;
  --text-cream:      #F8F3EA;
  --leather-light:   #B8875D;
  --leather-mid:     #7A4C2D;
  --leather-dark:    #3B2418;
  --leather-espresso:#21150F;
  --accent-maroon:   #651F2D;
  --accent-oxblood:  #4D1822;
  --accent-gold:     #B49355;
  --accent-brass:    #8F713D;
  --accent-slate:    #58616A;
  --border-light:    rgba(59, 36, 24, 0.18);
  --border-gold:     rgba(180, 147, 85, 0.72);
  --shadow-soft:     0 18px 45px rgba(33, 21, 15, 0.12);
  --shadow-deep:     0 28px 70px rgba(16, 10, 7, 0.28);

  /* Legacy names kept so nothing that references them breaks — repointed
     to the leather system. */
  --black:      var(--leather-espresso);
  --coal:       #2A1B12;
  --navy:       #2E1C12;             /* Friday band, was deep navy */
  --navy-hi:    #4A2E1C;
  --maroon:     var(--accent-maroon);
  --maroon-hi:  #7D2A38;
  --maroon-text:#7E2634;             /* oxblood, AA on cream */
  --ivory:      var(--text-cream);
  --gold:       var(--accent-gold);
  --gold-hi:    #CDAE72;             /* brass tint for dark surfaces */
  --gold-deep:  var(--accent-brass);

  /* Semantic — light cream is the campaign default */
  --bg:           var(--bg-cream);
  --bg-raised:    rgba(122, 76, 45, 0.045);
  --bg-navy:      linear-gradient(160deg, #35200F, var(--leather-espresso));
  --bg-maroon:    linear-gradient(160deg, var(--accent-maroon), var(--accent-oxblood));
  --line:         var(--border-light);
  --line-gold:    rgba(143, 113, 61, 0.42);
  --text:         var(--text-charcoal);
  --text-dim:     var(--text-muted);
  --text-faint:   #8C8175;
  --accent:       var(--leather-mid);    /* links, eyebrows on cream */
  --accent-hi:    #5C3A22;
  --on-accent:    var(--text-cream);     /* text on leather buttons */
  --error:        #9B342C;

  /* Surfaces (theme-aware — flipped under [data-theme="night"]) */
  --surface-card:    var(--text-cream);
  --surface-panel:   var(--bg-champagne);
  --field-bg:        #FBF6EC;
  --field-bg-focus:  #FFFFFF;
  --header-bg:       color-mix(in srgb, var(--bg-cream) 88%, transparent);

  /* Typography */
  --font-editorial: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-display:   'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step--1: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.2rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.2vw, 3.35rem);
  --step-4:  clamp(2.7rem, 1.9rem + 3.8vw, 4.9rem);
  --step-5:  clamp(3.5rem, 2.1rem + 6.6vw, 7.25rem);
  --tracking-wide: 0.18em;

  /* Spacing */
  --space-2xs: clamp(0.375rem, 0.35rem + 0.15vw, 0.5rem);
  --space-xs:  clamp(0.625rem, 0.55rem + 0.3vw, 0.85rem);
  --space-s:   clamp(1rem, 0.9rem + 0.5vw, 1.4rem);
  --space-m:   clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --space-l:   clamp(2.75rem, 2.1rem + 2.4vw, 4.5rem);
  --space-xl:  clamp(4rem, 3rem + 4vw, 7rem);
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --measure:   60ch;

  /* Surfaces */
  --radius-s: 2px;
  --radius-m: 4px;
  --radius-l: 8px;
  --shadow-1: var(--shadow-soft);
  --shadow-2: var(--shadow-deep);
  --shadow-gold: 0 0 0 1px var(--line-gold), var(--shadow-soft);

  /* Motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:  160ms;
  --dur-base:  320ms;
  --dur-slow:  700ms;

  --bp-sm: 480px;
  --bp-md: 720px;
  --bp-lg: 1024px;
}

/* Reusable dark cinematic surface: hero, footer, Friday band. Flips the
   semantic tokens so child components render cream-on-espresso with brass
   accents — no per-element color hard-coding needed. */
.on-dark {
  --bg-raised:  rgba(248, 243, 234, 0.05);
  --line:       rgba(248, 243, 234, 0.14);
  --line-gold:  rgba(205, 174, 114, 0.42);
  --text:       var(--text-cream);
  --text-dim:   rgba(248, 243, 234, 0.72);
  --text-faint: rgba(248, 243, 234, 0.48);
  --accent:     var(--gold-hi);
  --accent-hi:  #E2C98C;
}

/* ── Day / night toggle control ─────────────────────────────────── */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; padding: 0;
  background: transparent; border: 1px solid var(--line-gold);
  border-radius: 50%; color: var(--accent); cursor: pointer;
  font-size: 0.95rem; line-height: 1;
  transition: color var(--dur-fast), border-color var(--dur-fast),
              background var(--dur-fast), transform var(--dur-fast);
}
.theme-toggle:hover { color: var(--accent-hi); border-color: var(--accent-brass); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-brass); outline-offset: 2px; }
.theme-toggle .tt-icon-night { display: none; }
:root[data-theme="night"] .theme-toggle .tt-icon-day { display: none; }
:root[data-theme="night"] .theme-toggle .tt-icon-night { display: inline; }
header.site-head nav li.theme-toggle-item { display: flex; align-items: center; }

/* ── Night mode — the previous dark campaign, toggled via data-theme ─
   Matte black · deep navy · Aggie maroon · warm ivory · metallic gold.
   Re-points the semantic + surface tokens; components follow. */
:root[data-theme="night"] {
  color-scheme: dark;

  --navy: #0E1B2E; --navy-hi: #16283F;
  --maroon: #500000; --maroon-hi: #7B2233; --maroon-text: #D49A63;
  --ivory: #F2EBDD;
  --gold: #C2A15F; --gold-hi: #E0C489; --gold-deep: #8F7440;
  --leather-espresso: #0B0B0D;

  --accent-gold: #C2A15F;
  --accent-brass: #C2A15F;
  --accent-maroon: #D49A63;
  --accent-oxblood: #7B2233;

  --bg: #0B0B0D;
  --bg-raised: rgba(242, 235, 221, 0.04);
  --text: #F2EBDD;
  --text-dim: rgba(242, 235, 221, 0.62);
  --text-faint: rgba(242, 235, 221, 0.40);
  --accent: #C2A15F;
  --accent-hi: #E0C489;
  --on-accent: #14100A;
  --line: rgba(242, 235, 221, 0.10);
  --line-gold: rgba(194, 161, 95, 0.34);
  --border-gold: rgba(194, 161, 95, 0.55);
  --border-light: rgba(242, 235, 221, 0.12);
  --error: #E08A8A;

  --surface-card: rgba(242, 235, 221, 0.03);
  --surface-panel: rgba(194, 161, 95, 0.06);
  --field-bg: rgba(242, 235, 221, 0.03);
  --field-bg-focus: rgba(194, 161, 95, 0.10);
  --header-bg: color-mix(in srgb, #0B0B0D 82%, transparent);
}
:root[data-theme="night"] body {
  background:
    radial-gradient(120% 60% at 85% -5%, rgba(14, 27, 46, 0.55), transparent 60%),
    radial-gradient(90% 50% at 8% 104%, rgba(80, 0, 0, 0.30), transparent 62%),
    var(--bg);
}
/* Restore the original navy / maroon / gold day-bands in night. */
:root[data-theme="night"] .daycard-band.navy   { background: linear-gradient(135deg, rgba(14, 27, 46, 0.55), rgba(22, 40, 63, 0.42)); }
:root[data-theme="night"] .daycard-band.maroon { background: linear-gradient(135deg, rgba(80, 0, 0, 0.55), rgba(123, 34, 51, 0.42)); }
:root[data-theme="night"] .daycard-band.gold   { background: linear-gradient(135deg, rgba(194, 161, 95, 0.30), rgba(143, 116, 64, 0.20)); }
:root[data-theme="night"] .daycard-band.gold .day  { color: var(--text); }
:root[data-theme="night"] .daycard-band.gold .date { color: var(--text-dim); }
:root[data-theme="night"] .daycard-band.gold::after { color: var(--accent-gold); }
/* Footer already dark; keep its brass sig legible. */
:root[data-theme="night"] footer.site-foot { border-top-color: var(--accent-gold); }

/* ── Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 85% -5%, rgba(180, 147, 85, 0.16), transparent 60%),
    radial-gradient(90% 50% at 8% 104%, rgba(122, 76, 45, 0.12), transparent 62%),
    var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
iframe { border: 0; display: block; }
a { color: var(--accent); }
:focus-visible {
  outline: 2px solid var(--accent-brass);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--accent-gold); color: var(--leather-espresso); }

.skip-link {
  position: absolute; left: 50%; top: -3rem; transform: translateX(-50%);
  z-index: 999; padding: 0.6rem 1.2rem;
  background: var(--leather-mid); color: var(--text-cream);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* Accessible, visually hidden (e.g. the hero H1 the photo renders visually). */
.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;
}

/* ── Type utilities ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--accent);
}
/* Hero statements, page titles, editorial moments — Cormorant Garamond. */
.display {
  font-family: var(--font-editorial);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
  color: var(--text);
}
.display em { font-style: italic; font-weight: 400; color: var(--accent-maroon); }
.on-dark .display em { color: var(--gold-hi); }
.lede {
  color: var(--text-dim); font-weight: 400;
  max-width: var(--measure); text-wrap: pretty;
}
/* Brass hairline divider with a lone-star heart. */
.rule {
  width: 100%; max-width: 30rem; height: auto; border: 0;
  display: flex; align-items: center; gap: 0.9rem;
  color: var(--accent-brass);
}
.rule::before, .rule::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-gold));
}
.rule::after { background: linear-gradient(90deg, var(--line-gold), transparent); }
.rule::before { flex: 0 0 2.5rem; }
.star-rule {
  display: flex; align-items: center; gap: 0.9rem;
  max-width: 34rem; border: 0;
}
.star-rule::before, .star-rule::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-gold));
}
.star-rule::after { background: linear-gradient(90deg, var(--line-gold), transparent); }
.star-rule svg { flex-shrink: 0; color: var(--accent-gold); }

/* Small lone-star glyph used as a restrained section / accent mark. */
.lone-star {
  display: inline-block; color: var(--accent-gold);
  font-style: normal; line-height: 1;
}

/* ── Header ─────────────────────────────────────────────────────── */
header.site-head {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-s);
  padding: 0.85rem var(--gutter);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}
header.site-head.scrolled { border-bottom-color: var(--line-gold); }
.brand {
  font-family: var(--font-editorial); font-style: italic; font-weight: 400;
  font-size: 1.4rem; line-height: 1; color: var(--text);
  text-decoration: none; white-space: nowrap;
}
.brand b { color: var(--accent-maroon); font-weight: 400; }
header.site-head nav ul {
  display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 2rem);
  list-style: none;
}
header.site-head nav a {
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
header.site-head nav a:hover { color: var(--accent); }
header.site-head nav a[aria-current="page"] {
  color: var(--accent); border-bottom-color: var(--border-gold);
}
header.site-head nav a.nav-cta {
  color: var(--text-cream); background: var(--leather-mid);
  padding: 0.6rem 1.3rem; border-radius: var(--radius-m); border: 1px solid var(--border-gold);
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
header.site-head nav a.nav-cta:hover { background: var(--leather-dark); transform: translateY(-1px); }
@media (max-width: 719.9px) {
  /* Two-row header on mobile: brand, then the nav on its own full-width
     row so the links can never clip. The bottom action bar owns RSVP. */
  header.site-head { flex-wrap: wrap; row-gap: 0.5rem; padding-inline: clamp(1rem, 4vw, 1.5rem); }
  .brand { font-size: 1.3rem; }
  header.site-head nav { flex: 1 0 100%; }
  header.site-head nav a.nav-cta { display: none; }
  header.site-head nav ul { flex-wrap: wrap; justify-content: flex-start; gap: 0.4rem 1.3rem; }
  header.site-head nav a { font-size: 0.7rem; letter-spacing: 0.1em; padding-top: 0; }
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--text-cream); background: linear-gradient(150deg, var(--leather-mid), var(--leather-dark));
  border: 1px solid var(--border-gold); border-radius: var(--radius-m); cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              filter var(--dur-fast);
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-deep);
  filter: brightness(1.06);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Secondary — outline speaks brass on cream, cream-brass on dark. */
.btn-outline {
  background: transparent; color: var(--accent);
  box-shadow: none; border-color: var(--border-gold);
}
.on-dark .btn-outline, .hero .btn-outline { color: var(--gold-hi); }
.btn-outline:hover:not(:disabled) {
  border-color: var(--accent-brass);
  background: rgba(143, 113, 61, 0.08);
  filter: none; box-shadow: var(--shadow-soft);
}
/* Oxblood secondary action */
.btn-oxblood {
  background: linear-gradient(150deg, var(--accent-maroon), var(--accent-oxblood));
  color: var(--text-cream); border-color: var(--border-gold);
}
.btn-ghost {
  background: transparent; color: var(--text-dim); box-shadow: none; border-color: transparent;
  padding-inline: 0.75rem;
}
.btn-ghost:hover:not(:disabled) { color: var(--text); transform: none; box-shadow: none; }

.text-link {
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  transition: color var(--dur-fast);
}
.text-link:hover { color: var(--accent-hi); }

/* ── Layout ─────────────────────────────────────────────────────── */
main { display: block; }
main > section, main > article {
  padding: var(--space-l) var(--gutter);
  max-width: 72rem; margin-inline: auto;
}
.section-head { margin-bottom: var(--space-l); }
.section-head .eyebrow { margin-bottom: 0.7rem; }
.section-head h2 { font-size: var(--step-3); color: var(--text); }

/* ── Hero — the portrait poster on a seamless near-black stage ───── */
/* The supplied portrait already sits on a near-black studio background and
   carries the "Jay at 40" title, so the stage is set to the same black —
   the photo dissolves in with no visible edge — and the overlay (date,
   actions, countdown) never sits over the artwork.
   Mobile: poster on top, copy below.  ≥960px: poster left, copy right. */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--space-m);
  min-height: clamp(34rem, 90svh, 54rem);
  padding: var(--space-l) var(--gutter) calc(var(--space-l) + 3.75rem);
  max-width: none;
  background: #070707;
}
.hero-media { position: relative; z-index: 0; width: 100%; display: flex; }
.hero-media img {
  width: 100%; height: auto; max-height: 62svh;
  object-fit: contain; object-position: center;
  margin-inline: auto;
  filter: contrast(1.03);
}
.hero-scrim { display: none; }
.hero-inner { width: 100%; max-width: 72rem; margin-inline: auto; }
@media (max-width: 719.9px) {
  .hero { padding-top: var(--space-s); }
  .hero-media { margin: 0 calc(-1 * var(--gutter)); }
  .hero-media img { max-height: none; }
}
@media (min-width: 960px) {
  /* Poster and copy side by side, centred as a group on the black stage. */
  .hero {
    flex-direction: row; align-items: center; justify-content: center;
    gap: clamp(2.5rem, 6vw, 6rem);
    min-height: clamp(42rem, 92svh, 58rem);
    padding-block: var(--space-l);
  }
  .hero-media { width: auto; flex: 0 1 auto; }
  .hero-media img { width: auto; max-width: min(40vw, 30rem); max-height: min(82svh, 44rem); }
  .hero-inner { flex: 0 1 34rem; max-width: 34rem; margin-inline: 0; }
}
.hero .eyebrow { margin-bottom: var(--space-s); font-size: var(--step--1); color: var(--gold-hi); }
.hero h1 {
  font-size: var(--step-5);
  margin-bottom: var(--space-s);
  max-width: 12ch;
  font-weight: 500;
  color: var(--text-cream);
}
.hero h1 em { color: var(--gold-hi); }
.hero .lede { font-size: var(--step-1); margin-bottom: var(--space-m); color: rgba(248, 243, 234, 0.82); font-family: var(--font-editorial); font-style: italic; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.7rem 1.3rem; margin-bottom: var(--space-m);
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(248, 243, 234, 0.72);
  list-style: none;
}
.hero-meta li { display: flex; align-items: center; gap: 1.3rem; }
.hero-meta li + li::before {
  content: '✦'; font-size: 0.7em; color: var(--accent-gold); opacity: 0.85;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }
/* Small lone star above the hero title */
.hero-star {
  display: block; color: var(--accent-gold); font-size: 1.1rem;
  letter-spacing: 0.5em; margin-bottom: var(--space-xs);
}

.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-hi);
  border: 1px solid var(--border-gold); border-radius: var(--radius-m);
  background: rgba(33, 21, 15, 0.55);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.chip:hover { border-color: var(--accent-gold); background: rgba(33, 21, 15, 0.7); }

/* ── Countdown ──────────────────────────────────────────────────── */
.countdown {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(1.2rem, 5vw, 3rem);
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(248, 243, 234, 0.14);
}
.countdown .cd-unit { display: grid; gap: 0.25rem; }
.countdown .cd-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-3); line-height: 1;
  color: var(--gold-hi); font-variant-numeric: tabular-nums;
}
.countdown .cd-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(248, 243, 234, 0.55);
}
.countdown .cd-live {
  font-family: var(--font-editorial); font-style: italic;
  font-size: var(--step-2); color: var(--gold-hi); line-height: 1.2;
}
.countdown .cd-live small {
  display: block; font-family: var(--font-display); font-style: normal;
  font-weight: 500;
  font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(248, 243, 234, 0.72); margin-top: 0.4rem;
}

/* ── On the Wire · broadcast lower third ────────────────────────── */
.wire {
  display: grid; align-items: center;
  grid-template-columns: auto 1fr;
  gap: 0.8rem var(--space-s);
  max-width: 72rem; margin-inline: auto;
  padding: 1rem var(--gutter) 1.1rem;
  border-block: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(122, 76, 45, 0.05), transparent);
}
.wire-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--text-cream);
  background: linear-gradient(150deg, var(--leather-mid), var(--leather-dark));
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-soft);
}
.wire-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-gold);
  animation: wire-pulse 2.2s ease-out infinite;
}
@keyframes wire-pulse {
  0% { box-shadow: 0 0 0 0 rgba(180, 147, 85, 0.55); }
  75%, 100% { box-shadow: 0 0 0 6px rgba(180, 147, 85, 0); }
}
.wire-badge { grid-row: 1; grid-column: 1; }
.wire .text-link { white-space: nowrap; justify-self: end; grid-row: 1; grid-column: 2; }
.wire-stage {
  position: relative; grid-row: 2; grid-column: 1 / -1; min-width: 0;
  min-height: 4.4rem;
  display: flex; align-items: center;
  overflow: hidden;
  padding-bottom: 0.45rem;
}
@media (min-width: 720px) {
  .wire { grid-template-columns: auto 1fr auto; }
  .wire-stage { grid-row: 1; grid-column: 2; min-height: 3.6rem; }
  .wire .text-link { grid-column: 3; }
}
.wire-item { display: grid; gap: 0.25rem; min-width: 0; }
.wire-who {
  display: flex; align-items: baseline; gap: 0.7rem; min-width: 0;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--maroon-text); white-space: nowrap;
}
.wire-who i {
  font-style: normal; font-weight: 500; letter-spacing: 0.08em;
  color: var(--text-faint); overflow: hidden; text-overflow: ellipsis;
}
.wire-msg {
  font-family: var(--font-body); font-weight: 500; font-style: normal;
  font-size: clamp(1rem, 0.93rem + 0.35vw, 1.2rem); line-height: 1.55;
  color: var(--text); text-wrap: pretty;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; overflow: hidden;
}
@media (min-width: 720px) { .wire-msg { -webkit-line-clamp: 2; } }
.wire-item.is-in { animation: wire-in 380ms var(--ease-out) both; }
.wire-item.is-out { animation: wire-out 240ms ease-in both; }
@keyframes wire-in {
  from { opacity: 0; transform: translateY(0.7em); }
  to   { opacity: 1; transform: none; }
}
@keyframes wire-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-0.6em); }
}
.wire-progress {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent-brass), var(--accent-gold));
  border-radius: 1px;
}
.wire-empty {
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); opacity: 0.75;
}
@media (prefers-reduced-motion: reduce) {
  .wire-item.is-in, .wire-item.is-out { animation: none; }
  .wire-progress { display: none; }
}

/* ── Day cards ──────────────────────────────────────────────────── */
.days {
  display: grid; gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
article.daycard {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface-card); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base), box-shadow var(--dur-base);
}
article.daycard:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-deep);
}
.daycard-band {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; padding: 1.15rem 1.4rem;
  position: relative;
}
/* A single restrained lone star marks each day band. */
.daycard-band::after {
  content: '✦'; position: absolute; top: 0.75rem; right: 1.2rem;
  font-size: 0.7rem; color: var(--accent-gold); opacity: 0.7;
}
/* Friday — deep espresso, evening energy */
.daycard-band.navy {
  background: linear-gradient(150deg, #3A2415, var(--leather-espresso));
  color: var(--text-cream);
}
.daycard-band.navy .day { color: var(--text-cream); }
.daycard-band.navy .date { color: rgba(248, 243, 234, 0.72); }
/* Saturday — oxblood, the most important day */
.daycard-band.maroon {
  background: linear-gradient(150deg, var(--accent-maroon), var(--accent-oxblood));
  color: var(--text-cream);
}
.daycard-band.maroon .day { color: var(--text-cream); }
.daycard-band.maroon .date { color: rgba(248, 243, 234, 0.75); }
/* Sunday — warm sand, relaxed finish */
.daycard-band.gold {
  background: linear-gradient(150deg, var(--bg-sand), var(--leather-light));
  color: var(--leather-espresso);
}
.daycard-band.gold::after { color: var(--leather-dark); }
.daycard-band.gold .day { color: var(--leather-espresso); }
.daycard-band.gold .date { color: var(--leather-dark); }
.daycard-band .day {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-2);
  line-height: 1; letter-spacing: 0.04em; text-transform: uppercase;
}
.daycard-band .date {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.daycard-body { flex: 1; display: grid; gap: 0.55rem; padding: 1.35rem 1.4rem 1.6rem; }
.daycard-body h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--text); }
.daycard-body .meta {
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-brass);
}
.daycard-body p { font-size: 0.9rem; font-weight: 400; color: var(--text-dim); }
.daycard-body .dress {
  font-size: 0.72rem; color: var(--text-faint);
}
.daycard-body .dress b { color: var(--text-dim); font-weight: 600; }
.daycard-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  margin-top: auto; padding-top: 0.7rem;
}
a.daycard-cover {
  position: absolute; inset: 0; z-index: 1;
}
.daycard-links a, .daycard-band, .daycard-body { position: relative; z-index: 2; }
a.daycard-cover:focus-visible { outline-offset: -3px; }

/* ── RSVP hub ───────────────────────────────────────────────────── */
.rsvp-list { display: grid; gap: var(--space-s); }
.rsvp-row {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.rsvp-row:hover { border-color: var(--border-gold); box-shadow: var(--shadow-deep); }
.rsvp-row .what { display: grid; gap: 0.2rem; }
.rsvp-row .what strong {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-2);
  line-height: 1.1; color: var(--text);
}
.rsvp-row .what span {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
}
/* Understated social confirmation — a count and a small star, not a dashboard. */
.rsvp-row .count { display: grid; gap: 0.45rem; min-width: 10rem; }
.rsvp-row .count .nums {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--accent-maroon); line-height: 1.1;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 0.4rem;
}
.rsvp-row .count .nums::before {
  content: '✦'; color: var(--accent-gold); font-size: 0.78em; font-weight: 400;
}
.rsvp-row .count .nums small {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
}
/* The meter is now a fine brass hairline rather than a progress bar. */
.meter {
  height: 2px; border-radius: 1px; overflow: hidden;
  background: rgba(59, 36, 24, 0.12);
}
.meter > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent-brass), var(--accent-gold));
  border-radius: 1px;
  transition: width var(--dur-slow) var(--ease-out);
}
@media (min-width: 720px) {
  .rsvp-row { grid-template-columns: 1.4fr 1fr auto; }
}

/* ── Editorial split / dress code ───────────────────────────────── */
.split {
  display: grid; gap: var(--space-m);
  align-items: center;
}
@media (min-width: 720px) {
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .split.flip > figure { order: -1; }
}
.split figure { margin: 0; position: relative; }
.split figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px var(--border-gold), var(--shadow-deep);
}
.split figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint);
}
.dress-grid {
  display: grid; gap: var(--space-2xs); margin-top: var(--space-s);
  list-style: none;
}
.dress-grid li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-m); background: var(--surface-panel);
  font-size: 0.87rem;
}
.dress-grid .d-day {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-maroon); min-width: 5.5rem;
}
.dress-grid .d-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.03em; color: var(--text); }
.dress-grid .d-note { flex-basis: 100%; color: var(--text-dim); font-weight: 400; font-size: 0.82rem; }

/* ── Photo strip ────────────────────────────────────────────────── */
.photo-strip {
  display: grid; gap: var(--space-s);
  grid-template-columns: repeat(3, 1fr);
  margin-block: var(--space-m);
}
.photo-strip img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-m);
  filter: sepia(0.18) saturate(1.02);
  transition: filter var(--dur-base), transform var(--dur-base) var(--ease-out);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-soft);
}
.photo-strip a:hover img, .photo-strip a:focus-visible img {
  filter: sepia(0) saturate(1.05); transform: scale(1.03);
}
.photo-strip a:nth-child(2) { transform: translateY(calc(var(--space-s) * 1.5)); }

/* ── Feature cards (Fuel / Gallery CTAs) ────────────────────────── */
.feature-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s);
  padding: var(--space-m);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--surface-card);
  color: inherit; text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base), box-shadow var(--dur-base);
}
.feature-card:hover {
  transform: translateY(-3px); border-color: var(--border-gold);
  box-shadow: var(--shadow-deep);
}
.feature-card .fc-body { flex: 1 1 16rem; display: grid; gap: 0.3rem; }
.feature-card h3 { font-family: var(--font-editorial); font-weight: 400; font-size: var(--step-2); line-height: 1.1; color: var(--text); }
.feature-card p { font-size: 0.9rem; font-weight: 400; color: var(--text-dim); }
.feature-card .fc-go { white-space: nowrap; }
.feature-card img.fc-avatar {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-gold); flex-shrink: 0;
}

/* ── Cash App handle panel (Fuel for 40) ────────────────────────── */
.cashapp-panel {
  margin-top: var(--space-l);
  display: grid; gap: var(--space-s);
  padding: var(--space-m);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}
.handle-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-1); letter-spacing: 0.06em;
  color: var(--accent-maroon);
  display: flex; align-items: center; gap: 0.6rem;
}
.handle-label::before { content: '✦'; color: var(--accent-gold); font-size: 0.75em; }
.cashapp-copy { max-width: var(--measure); font-size: 0.9rem; color: var(--text-dim); }

.handle-row {
  display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center;
}
.handle-chip {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  min-width: 10rem; padding: 0.5rem 0.75rem;
  font-family: var(--font-display); letter-spacing: 0.02em; font-size: 0.95rem;
  color: var(--text);
  border: 1px solid var(--accent-gold); border-radius: var(--radius-m);
  background: var(--surface-panel);
}
.handle-chip strong { font-weight: 600; color: var(--accent-maroon); }

.copy-handle-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-maroon); background: transparent;
  border: 1px solid var(--accent-maroon); border-radius: var(--radius-m);
  cursor: pointer; box-shadow: var(--shadow-soft);
  transition: background var(--dur-fast), color var(--dur-fast),
              transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.copy-handle-pill:hover {
  background: var(--accent-maroon); color: #f9f3eb;
  transform: translateY(-1px); box-shadow: var(--shadow-deep);
}
.copy-handle-pill:focus-visible { outline: 2px solid var(--accent-brass); outline-offset: 2px; }
.copy-status { font-size: 0.68rem; text-transform: none; letter-spacing: 0; color: var(--text-faint); }
.copy-handle-pill.copied { background: var(--accent-maroon); color: #f9f3eb; }
.copy-handle-pill.copied .copy-status { color: #f9f3eb; }

.cashapp-qr {
  display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center;
  margin-top: var(--space-2xs);
}
.qr-placeholder {
  flex: 0 0 auto;
  width: 8.5rem; height: 8.5rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint);
  border: 1px dashed var(--border-gold); border-radius: var(--radius-m);
  background: var(--surface-panel);
}
.qr-image {
  flex: 0 0 auto;
  width: 8.5rem; height: 8.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border-gold); border-radius: var(--radius-m);
  background: #fff;
}
.qr-caption { flex: 1 1 14rem; max-width: var(--measure); font-size: 0.82rem; color: var(--text-dim); }
.qr-caption strong { color: var(--accent-maroon); font-weight: 600; }

/* Hero subheadline (Fuel value story) */
.hero-subhead {
  margin-top: var(--space-2xs); max-width: var(--measure);
  font-family: var(--font-editorial); font-style: italic;
  font-size: var(--step-2); line-height: 1.15; color: var(--accent-maroon);
}

.fuel-trust {
  margin-top: var(--space-m); max-width: var(--measure);
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 1.1rem 1.3rem;
  font-size: 0.88rem; color: var(--text-dim);
  border: 1px solid var(--line); border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-m); background: var(--surface-panel);
}
.fuel-trust .ft-icon { color: var(--accent-gold); font-size: 0.9em; line-height: 1.5; flex-shrink: 0; }

/* Cross-link from Gifts back to Send Fuel */
.gift-crosslink {
  margin-top: var(--space-l); max-width: var(--measure);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent-maroon);
  border-radius: var(--radius-m); background: var(--surface-panel);
  font-size: 0.88rem; color: var(--text-dim);
}
.gift-crosslink a { font-weight: 600; }

/* ── Info notes (dress / parking on day pages) ──────────────────── */
.info-note {
  padding: 1.2rem 1.4rem; max-width: 42rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-m);
  background: var(--surface-panel);
}
.info-note .in-label {
  display: block; font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-maroon);
}
.info-note .in-title {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  margin-top: 0.4rem;
  color: var(--text);
}
.info-note p { font-size: 0.86rem; font-weight: 400; color: var(--text-dim); margin-top: 0.4rem; }

/* ── Venue block ────────────────────────────────────────────────── */
.venue {
  display: grid; gap: var(--space-m);
  max-width: 42rem;
}
@media (min-width: 720px) { .venue { grid-template-columns: 1fr 1fr; } }
.venue .map {
  min-height: 280px; border-radius: var(--radius-m); overflow: hidden;
  border: 1px solid var(--border-gold);
}
.venue .map iframe { width: 100%; height: 100%; min-height: 280px; }
.venue aside {
  display: grid; align-content: center; gap: 0.6rem;
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface-card); box-shadow: var(--shadow-soft);
}
.venue aside h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.1; color: var(--text); }
.venue aside p { font-size: 0.88rem; font-weight: 400; color: var(--text-dim); }
.venue figure { grid-column: 1 / -1; margin: 0; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--border-gold); }
.venue figure img { width: 100%; height: clamp(200px, 40vw, 320px); object-fit: cover; }
.venue figcaption {
  padding: 0.7rem 1rem; background: var(--surface-panel);
  font-family: var(--font-display);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Forms ──────────────────────────────────────────────────────── */
form.rsvp-form, form.word-form { max-width: 32rem; display: grid; gap: 1.2rem; }
/* Same reason as the archive gate: the display:grid above beats UA [hidden],
   so the form would stay on screen next to its own success message. */
form.rsvp-form[hidden], form.word-form[hidden] { display: none; }
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field-group { display: grid; gap: 0.5rem; }
.field-group label {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-brass);
}
.field-group input, .field-group select, .field-group textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-body); font-size: 16px; font-weight: 400;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--border-light); border-radius: var(--radius-m);
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.field-group textarea { min-height: 7rem; resize: vertical; }
.field-group input::placeholder, .field-group textarea::placeholder { color: var(--text-faint); }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus {
  outline: none; border-color: var(--accent-brass);
  background: var(--field-bg-focus);
  box-shadow: 0 0 0 3px rgba(143, 113, 61, 0.16);
}
.field-group input[aria-invalid="true"], .field-group textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { min-height: 1rem; font-size: 0.72rem; color: var(--error); }
.form-error-banner { display: none; font-size: 0.8rem; color: var(--error); }
.form-error-banner:not(:empty) { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-form-success] { display: none; }
[data-form-success]:not([aria-hidden="true"]) {
  display: block;
  font-family: var(--font-editorial); font-style: italic;
  font-size: var(--step-2); color: var(--accent-maroon);
  padding: var(--space-s) 0;
}

/* ── Counter box (day pages) — understated confirmation panel ───── */
.counter-box {
  display: grid; gap: 0.6rem; max-width: 26rem;
  padding: 1.3rem 1.6rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-m);
  background: var(--surface-panel);
}
.counter-label {
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-maroon);
  display: flex; align-items: center; gap: 0.45rem;
}
.counter-label::before { content: '✦'; color: var(--accent-gold); font-size: 0.85em; }
.counter-nums {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-3);
  line-height: 1; color: var(--text); font-variant-numeric: tabular-nums;
}
.counter-nums .cap { font-size: 0.42em; font-weight: 500; font-family: var(--font-display); letter-spacing: 0.06em; color: var(--text-dim); }
.counter-bar { height: 2px; border-radius: 1px; overflow: hidden; background: rgba(59, 36, 24, 0.12); }
.counter-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-brass), var(--accent-gold));
  border-radius: 1px; transition: width var(--dur-slow) var(--ease-out);
}

/* ── Schedule timeline ──────────────────────────────────────────── */
.timeline { display: grid; gap: var(--space-l); }
.timeline article {
  display: grid; gap: var(--space-xs);
  padding-left: var(--space-m);
  border-left: 2.5px solid var(--line);
  transition: border-color var(--dur-base);
}
.timeline article:hover { border-left-color: var(--border-gold); }
.timeline .t-day {
  display: flex; align-items: baseline; gap: 1rem;
}
.timeline .t-day h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1; color: var(--text); letter-spacing: 0.04em; text-transform: uppercase; }
.timeline .t-day span {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-maroon);
}
.timeline h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); color: var(--text); }
.timeline .t-meta {
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-brass);
}
.timeline p { max-width: var(--measure); font-weight: 400; color: var(--text-dim); font-size: 0.92rem; }
.timeline .t-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; padding-top: 0.35rem; }

/* ── Gallery (legacy grid fallback) ─────────────────────────────── */
.gallery { columns: 3 240px; column-gap: var(--space-s); }
.photo-card {
  break-inside: avoid; margin: 0 0 var(--space-s); display: block;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}
.photo-card img { width: 100%; transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow); }
.photo-card:hover img { transform: scale(1.04); filter: brightness(1.05); }
.empty, .error {
  max-width: 40rem; padding: 1.3rem 1.5rem;
  border: 1px solid var(--border-gold); border-radius: var(--radius-m);
  background: var(--surface-panel);
  color: var(--text-dim); font-size: 0.9rem;
}
.error { border-color: rgba(155, 52, 44, 0.4); color: var(--error); }
.loader {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-brass); opacity: 0.85;
}

/* ── Soundtrack embed ───────────────────────────────────────────── */
.soundtrack { max-width: 28rem; }
.soundtrack .eyebrow { margin-bottom: 0.6rem; display: block; }
.soundtrack iframe {
  width: 100%; height: 80px; border-radius: var(--radius-l);
  border: 1px solid var(--border-gold);
}

/* ── Footer — cinematic espresso ────────────────────────────────── */
footer.site-foot {
  margin-top: var(--space-l);
  padding: var(--space-l) var(--gutter) calc(var(--space-l) + 4.25rem);
  background: var(--leather-espresso);
  border-top: 2px solid var(--accent-brass);
  display: grid; gap: var(--space-s); justify-items: center; text-align: center;
  color: var(--text-cream);
}
footer.site-foot .sig {
  font-family: var(--font-editorial); font-style: italic; font-weight: 600;
  font-size: var(--step-3); color: var(--gold-hi);
}
footer.site-foot .sig::before, footer.site-foot .sig::after {
  content: '✦'; font-size: 0.5em; color: var(--accent-gold); vertical-align: middle;
  margin: 0 0.6rem; opacity: 0.7; font-style: normal;
}
footer.site-foot nav ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.4rem 1.4rem; list-style: none;
}
footer.site-foot nav a {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(248, 243, 234, 0.72); text-decoration: none;
}
footer.site-foot nav a:hover { color: var(--gold-hi); }
footer.site-foot small {
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(248, 243, 234, 0.5);
}

/* ── Mobile action bar (thumb reach) ────────────────────────────── */
nav.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: var(--accent-brass);
  border-top: 1px solid var(--border-gold);
  padding-bottom: env(safe-area-inset-bottom);
}
nav.actionbar a {
  display: grid; place-items: center; gap: 0.15rem;
  padding: 0.9rem 0.6rem;
  background: color-mix(in srgb, var(--leather-espresso) 96%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(248, 243, 234, 0.72); text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
}
nav.actionbar a:hover { color: var(--gold-hi); }
nav.actionbar a.primary { color: var(--leather-espresso); background: linear-gradient(150deg, var(--accent-gold), var(--leather-light)); }
@media (min-width: 720px) {
  nav.actionbar { display: none; }
  footer.site-foot { padding-bottom: var(--space-l); }
}

/* ── Scroll reveals ─────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none !important; }
}

/* ── Private archive gate ───────────────────────────────────────── */
.archive-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-m);
  background: var(--leather-espresso);
}
/* The author-level display:flex above outranks the UA [hidden] rule, so the
   overlay needs its own hidden case or it never clears after unlocking. */
.archive-gate[hidden] { display: none; }
.archive-gate form {
  width: 100%; max-width: 380px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  padding: var(--space-m);
  box-shadow: var(--shadow-deep);
}
.archive-gate .ag-eyebrow {
  font-family: var(--font-label, inherit); font-weight: 600;
  font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-gold); margin-bottom: var(--space-2xs);
}
.archive-gate h1 { font-size: var(--step-2); margin-bottom: var(--space-2xs); }
.archive-gate .ag-copy { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; margin-bottom: var(--space-s); }
.archive-gate input[type="password"] {
  width: 100%; padding: 0.8rem 1rem; margin-bottom: var(--space-s);
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font: inherit;
}
.archive-gate .ag-error { color: var(--accent-oxblood); font-size: 0.82rem; margin-top: var(--space-s); min-height: 1.2em; }
