@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=IM+Fell+English:ital@0;1&display=swap');

@layer reset, base, layout, components, motion;

/* ═══════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — Taverns & Tales · Option 2 (Torchlit Poster)
═══════════════════════════════════════════════════════════════════════ */
:root {
  /* Forest environment */
  --forest:          #050a04;
  --forest-mid:      #091008;
  --tree-back:       #0c1a0b;
  --tree-front:      #070e06;

  /* Parchment */
  --parchment:       #f2e6c2;
  --parchment-2:     #e8d5a8;
  --parchment-3:     #dfc99a;

  /* Ink */
  --ink:             #1c1208;
  --ink-mid:         #3d2a14;
  --ink-faint:       #6b4c2a;

  /* Brand accents */
  --crimson:         #8b1a1a;
  --crimson-dim:     rgba(139 26 26 / 0.12);
  --gold:            #9a7c2e;
  --gold-dim:        rgba(154 124 46 / 0.18);
  --gold-border:     rgba(154 124 46 / 0.45);

  /* ── Component compatibility aliases ──────────────────────────────
     Dormant component CSS references these generic tokens.
     They map to the parchment palette so components auto-adapt.
  ── */
  --bg:              #f2e6c2;
  --surface:         #e8d5a8;
  --surface-2:       #dfc99a;
  --border:          rgba(154 124 46 / 0.18);
  --border-strong:   rgba(154 124 46 / 0.45);
  --text:            #1c1208;
  --text-muted:      #3d2a14;
  --text-faint:      #6b4c2a;
  --accent:          #9a7c2e;
  --accent-dim:      rgba(154 124 46 / 0.15);
  --accent-glow:     rgba(154 124 46 / 0.35);
  --blue:            #8b1a1a;   /* repurposed → crimson for component accents */
  --blue-dim:        rgba(139 26 26 / 0.10);

  /* Typography */
  --font:            'IM Fell English', Georgia, serif;
  --font-heading:    'Cinzel', Georgia, serif;
  --font-mono:       ui-monospace, 'Cascadia Code', monospace;

  /* Scale — fluid */
  --text-sm:   clamp(0.8rem,  0.5vw + 0.65rem, 0.9rem);
  --text-base: clamp(1rem,    0.5vw + 0.85rem, 1.1rem);
  --text-lg:   clamp(1.1rem,  1vw   + 0.75rem, 1.35rem);
  --text-xl:   clamp(1.4rem,  2vw   + 0.75rem, 2rem);
  --text-2xl:  clamp(2rem,    4vw   + 0.5rem,  3.5rem);
  --text-hero: clamp(2.5rem,  5vw   + 0.75rem, 4.75rem);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.75rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 8rem;

  /* Misc */
  --radius:    4px;
  --radius-lg: 8px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:     60px;
  --poster-w:  720px;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════════════════ */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  img, svg { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; }
  ul, ol { list-style: none; }
  a { color: inherit; text-decoration: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════════════════════ */
@layer base {
  body {
    background: var(--forest);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.15;
    letter-spacing: 0.03em;
    text-wrap: balance;
    color: var(--ink);
  }

  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-lg); }

  p { max-width: 60ch; }

  ::selection { background: var(--crimson); color: var(--parchment); }

  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 3px;
  }

  [id] { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
}

/* ═══════════════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════════════ */
@layer layout {

  .container {
    width: min(100%, 1100px);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
  }

  /* ── NAV — floats above torch overlay ───────────────────
     z-index: 100 places it above the overlay (z-index: 50)
     so it is always fully legible regardless of scroll position.
  ── */
  .nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
    background: rgba(5 10 4 / 0.93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(154 124 46 / 0.18);
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.6em;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--gold);
  }

  .logo-wordmark {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold);
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: rgba(154 124 46 / 0.75);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
  }

  .nav-links a:not(.btn):hover { color: var(--parchment); }

  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--gold);
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }

  .nav--open .nav-toggle span:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav--open .nav-toggle span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* ── POSTER WRAP ─────────────────────────────────────── */
  .poster-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-block-start: calc(var(--nav-h) + var(--space-xl));
    padding-block-end: var(--space-2xl);
    padding-inline: var(--space-md);
  }

}

/* ═══════════════════════════════════════════════════════════════════════
   COMPONENTS
═══════════════════════════════════════════════════════════════════════ */
@layer components {

  /* ── TORCH OVERLAY ───────────────────────────────────────
     Fixed vignette that simulates torchlight held at upper-left.
     z-index: 50 places it above page content but below the nav.
     pointer-events: none so clicks/taps pass through.

     Scroll effect: as the user scrolls down, page content moves
     up into the lit zone naturally — no JavaScript required.
  ── */
  .torch-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background:
      /* warm amber torch glow — center-left, mid-page */
      radial-gradient(ellipse 60% 48% at 32% 38%,
        rgba(255, 145, 20, 0.09) 0%,
        rgba(255, 130, 15, 0.04) 35%,
        transparent 58%
      ),
      /* darkness vignette — open at torch position, dark elsewhere */
      radial-gradient(ellipse 68% 54% at 32% 38%,
        transparent 0%,
        transparent 24%,
        rgba(0, 0, 0, 0.28) 40%,
        rgba(0, 0, 0, 0.68) 60%,
        rgba(0, 0, 0, 0.93) 80%
      );
    /* static — no flicker */
  }

  /* ── FOREST SILHOUETTE ───────────────────────────────────
     Fixed SVG tree line at the bottom of the viewport.
     Two polygon layers create the illusion of depth.
     z-index: 1 places it behind the poster card (z-index: 10)
     but in front of the body background.
  ── */
  .forest-silhouette {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45vh;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
  }

  /* ── THE POSTER ──────────────────────────────────────────
     The parchment proclamation card — the centerpiece of the design.
     z-index: 10 lifts it above trees but below the torch overlay,
     so the overlay correctly darkens the parchment as you scroll.
  ── */
  .poster {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--poster-w);
    background:
      /* subtle lighter patch near upper-left (catches the torchlight) */
      radial-gradient(ellipse 80% 35% at 20% 6%, rgba(255, 252, 235, 0.35) 0%, transparent 55%),
      var(--parchment);
    /* double-border frame: outer gold → parchment gap → inner gold */
    border: 2px solid var(--gold);
    box-shadow:
      inset 0 0 0 5px var(--parchment),
      inset 0 0 0 7px rgba(154 124 46 / 0.38),
      0 0 2px rgba(0 0 0 / 0.35),
      0 28px 70px rgba(0 0 0 / 0.85),
      0 8px 24px rgba(0 0 0 / 0.55);
    padding: var(--space-xl) clamp(var(--space-lg), 6vw, var(--space-2xl));
  }

  /* ── POSTER HEADER ───────────────────────────────────── */
  .poster-header {
    text-align: center;
    padding-block-end: var(--space-lg);
  }

  .proclamation-label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--crimson);
    max-width: none;
    margin-block-end: var(--space-md);
  }

  .poster-d20 {
    width: 52px;
    height: 52px;
    color: var(--gold);
    margin-inline: auto;
    margin-block-end: var(--space-sm);
  }

  .poster-title {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-align: center;
    margin-block-end: var(--space-sm);
  }

  .poster-tagline {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mid);
    text-align: center;
    max-width: none;
  }

  /* ── POSTER DIVIDER ──────────────────────────────────── */
  .poster-divider {
    text-align: center;
    margin-block: var(--space-lg);
    line-height: 0;
  }

  .poster-divider svg {
    display: block;
    margin-inline: auto;
    width: 100%;
    max-width: 320px;
  }

  /* ── POSTER STATS ────────────────────────────────────── */
  .poster-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-block: var(--space-lg);
  }

  .poster-stat { text-align: center; }

  .poster-stat .stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.03em;
  }

  .poster-stat .stat-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--ink-mid);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-heading);
  }

  .stat-rule {
    width: 1px;
    height: 38px;
    background: var(--gold-border);
    flex-shrink: 0;
  }

  /* ── HERO ACTIONS (reused from poster sections) ───────── */
  .poster-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-block-start: var(--space-lg);
  }

  /* ── BUTTONS ─────────────────────────────────────────── */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.6em 1.4em;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-base);
    letter-spacing: 0.07em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
  }

  .btn--primary {
    background: var(--crimson);
    color: var(--parchment);
    border-color: rgba(0 0 0 / 0.25);
  }
  .btn--primary:hover {
    background: color-mix(in srgb, var(--crimson) 82%, #000);
    box-shadow: 0 0 24px rgba(139 26 26 / 0.45);
  }

  .btn--ghost {
    background: transparent;
    border-color: var(--gold-border);
    color: var(--ink-mid);
  }
  .btn--ghost:hover {
    border-color: var(--gold);
    color: var(--ink);
  }

  /* Nav ghost button on dark background */
  .nav .btn--primary {
    font-size: var(--text-sm);
    padding: 0.4em 1em;
  }

  .btn--sm  { font-size: var(--text-sm); padding: 0.4em 0.95em; }
  .btn--lg  { font-size: var(--text-lg); padding: 0.7em 1.75em; }
  .btn--full { width: 100%; justify-content: center; }

  /* ── EYEBROW / SECTION LABEL ─────────────────────────── */
  .poster-eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    max-width: none;
    margin-block-end: var(--space-xs);
  }

  /* ── POSTER SECTION ──────────────────────────────────── */
  .poster-section {
    margin-block: var(--space-lg);
  }

  .poster-section h2 {
    text-align: center;
    margin-block: var(--space-xs) var(--space-md);
  }

  .poster-section > p {
    color: var(--ink-mid);
    text-align: center;
    margin-inline: auto;
    font-style: italic;
  }

  /* ── SCROLL CARDS (What We Are / Find Us) ────────────── */
  .scroll-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-block-start: var(--space-lg);
  }

  .scroll-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
    margin-inline: auto;
  }

  .scroll-card {
    background: rgba(0 0 0 / 0.04);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: var(--space-md);
  }

  .scroll-card-icon {
    width: 28px;
    height: 28px;
    color: var(--crimson);
    margin-block-end: var(--space-sm);
  }

  .scroll-card h3 {
    font-size: var(--text-base);
    margin-block-end: var(--space-xs);
    color: var(--ink);
  }

  .scroll-card p {
    font-size: var(--text-sm);
    color: var(--ink-mid);
    font-style: italic;
    max-width: none;
  }

  /* ── CTA SECTION ─────────────────────────────────────── */
  .poster-cta-section {
    text-align: center;
    margin-block: var(--space-lg);
    padding-block: var(--space-lg);
    border-top: 1px solid var(--gold-border);
    border-bottom: 1px solid var(--gold-border);
  }

  .poster-cta-section h2 {
    text-align: center;
    margin-block: var(--space-xs) var(--space-sm);
  }

  .poster-cta-section p {
    color: var(--ink-mid);
    margin-inline: auto;
    font-style: italic;
  }

  /* ── POSTER FOOTER / WAX SEAL ────────────────────────── */
  .poster-footer {
    margin-block-start: var(--space-xl);
    padding-block-start: var(--space-lg);
    border-top: 1px solid var(--gold-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .wax-seal {
    width: 64px;
    height: 64px;
    opacity: 0.9;
  }

  .poster-footer-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
  }

  .poster-footer-links a {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    color: var(--ink-mid);
    transition: color 0.2s;
  }

  .poster-footer-links a:hover { color: var(--crimson); }

  .poster-footer-copy {
    font-size: var(--text-sm);
    color: var(--ink-faint);
    text-align: center;
    max-width: none;
  }

  /* ── SIGNUP / FORM CARD ──────────────────────────────── */
  .form-page {
    min-height: calc(100vh - var(--nav-h));
    display: grid;
    place-items: start center;
    padding-block: calc(var(--nav-h) + var(--space-xl)) var(--space-2xl);
    padding-inline: var(--space-md);
  }

  .form-card {
    position: relative;
    z-index: 10;
    width: min(100%, 560px);
    background:
      radial-gradient(ellipse 80% 35% at 20% 6%, rgba(255,252,235,0.3) 0%, transparent 55%),
      var(--parchment);
    border: 2px solid var(--gold);
    box-shadow:
      inset 0 0 0 5px var(--parchment),
      inset 0 0 0 7px rgba(154 124 46 / 0.38),
      0 28px 70px rgba(0 0 0 / 0.85);
    padding: var(--space-xl) var(--space-lg);
  }

  .form-card h1 {
    font-size: var(--text-2xl);
    text-align: center;
    margin-block-end: var(--space-xs);
  }

  .form-card .subtitle {
    color: var(--ink-mid);
    text-align: center;
    font-style: italic;
    margin-inline: auto;
    margin-block-end: var(--space-lg);
  }

  .event-details {
    background: rgba(0 0 0 / 0.04);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: var(--space-sm) var(--space-md);
    margin-block-end: var(--space-lg);
  }

  .event-details p {
    font-size: var(--text-sm);
    color: var(--ink-mid);
    max-width: none;
    line-height: 1.8;
    font-style: italic;
  }

  .event-details strong {
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
  }

  .signup-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
  }

  .form-group label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mid);
  }

  .label-optional {
    font-family: var(--font);
    font-weight: 400;
    font-size: var(--text-sm);
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-faint);
    font-style: italic;
  }

  .form-group input,
  .form-group textarea {
    background: rgba(0 0 0 / 0.04);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 0.65em 0.9em;
    color: var(--ink);
    width: 100%;
    font-family: var(--font);
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: var(--ink-faint);
    font-style: italic;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
  }

  /* Radio group */
  .radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    background: rgba(0 0 0 / 0.03);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 0.75em 1em;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
  }

  .radio-option:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-dim);
  }

  .radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-block-start: 0.2em;
    accent-color: var(--crimson);
    flex-shrink: 0;
    cursor: pointer;
  }

  .radio-content {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    min-width: 0;
  }

  .radio-content strong {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--ink);
    letter-spacing: 0.04em;
    display: block;
  }

  .radio-content span {
    font-size: var(--text-sm);
    color: var(--ink-mid);
    font-style: italic;
    display: block;
    word-break: break-word;
  }

  .char-count {
    font-size: var(--text-sm);
    color: var(--ink-faint);
    text-align: right;
    margin-block-start: 0.25em;
    max-width: none;
    font-style: italic;
  }

  .form-status {
    font-size: var(--text-sm);
    min-height: 1.5em;
    max-width: none;
    font-style: italic;
  }
  .form-status--success { color: #3a6e2e; }
  .form-status--error   { color: var(--crimson); }

  .form-success {
    display: none;
    text-align: center;
    padding-block: var(--space-lg);
  }
  .form-success.visible { display: block; }

  .form-success-icon {
    width: 52px;
    height: 52px;
    color: var(--gold);
    margin-inline: auto;
    margin-block-end: var(--space-md);
  }

  .form-success h2 {
    font-size: var(--text-xl);
    margin-block-end: var(--space-sm);
  }

  .form-success p {
    color: var(--ink-mid);
    margin-inline: auto;
    font-style: italic;
  }

  /* ── CoC PROSE PAGE ──────────────────────────────────── */
  .prose-page {
    padding-block: calc(var(--nav-h) + var(--space-xl)) var(--space-2xl);
    padding-inline: var(--space-md);
    display: flex;
    justify-content: center;
  }

  .prose-card {
    position: relative;
    z-index: 10;
    width: min(100%, var(--poster-w));
    background:
      radial-gradient(ellipse 80% 35% at 20% 6%, rgba(255,252,235,0.3) 0%, transparent 55%),
      var(--parchment);
    border: 2px solid var(--gold);
    box-shadow:
      inset 0 0 0 5px var(--parchment),
      inset 0 0 0 7px rgba(154 124 46 / 0.38),
      0 28px 70px rgba(0 0 0 / 0.85);
    padding: var(--space-xl) clamp(var(--space-lg), 6vw, var(--space-2xl));
  }

  .prose-card h1 {
    font-size: var(--text-2xl);
    text-align: center;
    margin-block-end: var(--space-sm);
  }

  .prose-card .page-intro {
    font-size: var(--text-lg);
    color: var(--ink-mid);
    font-style: italic;
    text-align: center;
    margin-inline: auto;
    margin-block-end: var(--space-xl);
    padding-block-end: var(--space-lg);
    border-bottom: 1px solid var(--gold-border);
  }

  .prose-card h2 {
    font-size: var(--text-xl);
    margin-block: var(--space-xl) var(--space-sm);
    color: var(--ink);
  }

  .prose-card p {
    color: var(--ink-mid);
    margin-block-end: var(--space-md);
    font-style: italic;
  }

  .prose-card ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-block-end: var(--space-md);
  }

  .prose-card ul li {
    display: flex;
    gap: 0.75em;
    color: var(--ink-mid);
    font-size: var(--text-base);
  }

  .prose-card ul li::before {
    content: '—';
    color: var(--gold);
    flex-shrink: 0;
    font-style: normal;
  }

  .prose-draft-note {
    margin-block-start: var(--space-2xl);
    padding: var(--space-md);
    background: var(--crimson-dim);
    border: 1px solid rgba(139 26 26 / 0.3);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    color: var(--ink-mid);
    max-width: none;
    font-style: italic;
  }

  /* ── DORMANT COMPONENTS (parchment-adapted) ───────────── */

  /* Video embed */
  .video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    margin-block-start: var(--space-lg);
  }
  .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
  .video-embed-caption { font-size: var(--text-sm); color: var(--text-muted); text-align: center; margin-block-start: var(--space-xs); max-width: none; font-style: italic; }

  /* Announce bar */
  .announce-bar { background: var(--crimson); color: var(--parchment); text-align: center; padding: 0.65em var(--space-sm); font-size: var(--text-sm); font-weight: 500; line-height: 1.4; font-family: var(--font-heading); letter-spacing: 0.04em; }
  .announce-bar a { color: var(--parchment); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }

  /* FAQ */
  .faq { margin-block-start: var(--space-lg); border-top: 1px solid var(--border); }
  .faq details { border-bottom: 1px solid var(--border); }
  .faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding-block: var(--space-md); cursor: pointer; font-weight: 500; font-size: var(--text-base); color: var(--text); list-style: none; user-select: none; font-family: var(--font-heading); letter-spacing: 0.03em; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: '+'; font-size: var(--text-xl); font-weight: 300; color: var(--accent); flex-shrink: 0; line-height: 1; transition: transform 0.2s var(--ease); font-family: var(--font); }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq-body { padding-block-end: var(--space-md); color: var(--text-muted); font-size: var(--text-sm); line-height: 1.75; font-style: italic; }

  /* Testimonial grid */
  .testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); margin-block-start: var(--space-lg); }
  .testimonial { background: rgba(0 0 0 / 0.04); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-lg); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-md); }
  .testimonial-quote { font-size: var(--text-base); color: var(--text-muted); line-height: 1.75; font-style: italic; }
  .testimonial-quote p::before { content: '\201C'; color: var(--accent); font-weight: 700; margin-inline-end: 0.1em; }
  .testimonial-quote p::after  { content: '\201D'; color: var(--accent); font-weight: 700; margin-inline-start: 0.1em; }
  .testimonial-source { display: flex; flex-direction: column; gap: 0.15em; padding-block-start: var(--space-sm); border-top: 1px solid var(--border); }
  .testimonial-name { color: var(--text); font-size: var(--text-sm); font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.04em; }
  .testimonial-org  { color: var(--text-faint); font-size: var(--text-sm); font-style: italic; }

  /* Calendar subscribe */
  .cal-subscribe { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); background: rgba(0 0 0 / 0.04); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-lg); margin-block-start: var(--space-lg); flex-wrap: wrap; }
  .cal-subscribe-title { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 600; letter-spacing: 0.04em; margin-block-end: var(--space-xs); }
  .cal-subscribe-desc  { font-size: var(--text-sm); color: var(--text-muted); max-width: 48ch; font-style: italic; }

  /* Social strip */
  .social-strip { display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; margin-block-start: var(--space-lg); }
  .social-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--text-muted); background: rgba(0 0 0 / 0.04); transition: border-color 0.2s, color 0.2s; flex-shrink: 0; }
  .social-link:hover { border-color: var(--gold); color: var(--gold); }
  .social-link svg { width: 18px; height: 18px; }

  /* Download card */
  .download-list { display: flex; flex-direction: column; gap: var(--space-sm); margin-block-start: var(--space-lg); }
  .download-card { display: flex; align-items: center; gap: var(--space-md); background: rgba(0 0 0 / 0.04); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-md) var(--space-lg); color: var(--text); transition: border-color 0.2s; }
  .download-card:hover { border-color: var(--gold); }
  .download-card-icon { width: 32px; height: 32px; color: var(--accent); flex-shrink: 0; }
  .download-card-info { flex: 1; display: flex; flex-direction: column; gap: 0.15em; }
  .download-card-name { font-weight: 600; font-family: var(--font-heading); letter-spacing: 0.03em; }
  .download-card-meta { font-size: var(--text-sm); color: var(--text-muted); font-style: italic; }
  .download-card-arrow { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; transition: color 0.2s, transform 0.2s; }
  .download-card:hover .download-card-arrow { color: var(--gold); transform: translateY(2px); }

  /* Map embed */
  .map-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); margin-block-start: var(--space-lg); }
  .map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

  /* Photo gallery */
  .photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-sm); margin-block-start: var(--space-lg); }
  .photo-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); display: block; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
  .photo-gallery img:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0 0 0 / 0.3); }

}

/* ═══════════════════════════════════════════════════════════════════════
   MOTION
═══════════════════════════════════════════════════════════════════════ */
@layer motion {

  /* Lightning strike — double-flash pattern: bright → near-dark → afterglow → gone */
  @keyframes lightning-strike {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    14%  { opacity: 0.05; }
    26%  { opacity: 0.7; }
    44%  { opacity: 0; }
    100% { opacity: 0; }
  }

  /* Scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .scroll-grid.visible .scroll-card:nth-child(2) { transition-delay: 0.1s; }
  .scroll-grid.visible .scroll-card:nth-child(3) { transition-delay: 0.2s; }

  /* ── LIGHTNING SKY ──────────────────────────────────────
     Sits at z-index 0, behind the tree silhouette (z-index 1).
     JS injects a radial-gradient at a random x position and
     adds .strike to trigger the flash animation.
  ── */
  .lightning-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
  }

  .lightning-sky.strike {
    animation: lightning-strike 0.65s ease-out forwards;
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .lightning-sky { display: none; }
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
═══════════════════════════════════════════════════════════════════════ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(154 124 46 / 0.35);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(154 124 46 / 0.15);
  border-color: var(--gold);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Show sun in dark mode (click → go light); show moon in light mode (click → go dark) */
[data-theme="dark"]  .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   Applied when <html data-theme="light">.
   Hides the atmospheric layers; nav and body shift to a warm daytime palette.
═══════════════════════════════════════════════════════════════════════ */
[data-theme="light"] body {
  background: #c2b49a;
}

[data-theme="light"] .torch-overlay,
[data-theme="light"] .forest-silhouette,
[data-theme="light"] .lightning-sky {
  display: none !important;
}

[data-theme="light"] .nav {
  background: rgba(230, 217, 188, 0.97);
  border-bottom: 1px solid rgba(154 124 46 / 0.3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .nav-links a:not(.btn) {
  color: var(--ink);
}

[data-theme="light"] .nav-links a:not(.btn):hover {
  color: var(--crimson);
}

[data-theme="light"] .logo-wordmark {
  color: var(--ink);
}

[data-theme="light"] .logo-icon {
  color: var(--crimson);
}

[data-theme="light"] .nav-toggle span {
  background: var(--ink);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(28 18 8 / 0.3);
  color: var(--ink);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(28 18 8 / 0.08);
  border-color: var(--ink);
}

/* Mobile nav dropdown in light mode */
@media (max-width: 768px) {
  [data-theme="light"] .nav-links {
    background: rgba(230, 217, 188, 0.99);
    border-bottom: 1px solid rgba(154 124 46 / 0.25);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    inset-block-start: var(--nav-h);
    inset-inline: 0;
    flex-direction: column;
    background: rgba(5 10 4 / 0.97);
    border-bottom: 1px solid rgba(154 124 46 / 0.2);
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .nav--open .nav-links { display: flex; }
  .nav-toggle { display: flex; }

  .scroll-grid { grid-template-columns: 1fr; }
  .scroll-grid--2 { grid-template-columns: 1fr; }
  .stat-rule { display: none; }
  .poster { padding-inline: var(--space-md); }
  .form-card { padding: var(--space-lg) var(--space-md); }
  .prose-card { padding: var(--space-lg) var(--space-md); }
}
