/* =====================================================================
   Hearthgrove Commons — site styles
   A cozy, cottagecore–fantasy design system for the static site.
   Plain CSS, no build step, no runtime. Palette drawn from the crest:
   forest-green letters, cabin wood, parchment, lantern amber, blossoms.
   ===================================================================== */

:root {
  /* ---- Palette: sampled straight from the Hearthgrove crest ----
     Deepened to sit closer to the logo's dark cabin-wood frame, olive
     forest greens, and warm cream center (rather than the old light-
     parchment reading). Text stays dark-on-parchment for readability. */
  --color-bg:          #e3cfa2; /* toasted parchment (the crest's center, deepened) */
  --color-bg-deep:     #d0b982; /* deeper parchment (gradient floor) */
  --color-surface:     #f4e9cf; /* card / panel — lit parchment, pops against the bg */
  --color-surface-2:   #ead9b3; /* secondary panel */
  --color-text:        #2a1d0f; /* deep warm-brown ink */
  --color-text-soft:   #493a26; /* muted ink for body copy */
  --color-divider:     #c3a877; /* wood-tinted hairline / border */

  --color-forest:      #46601f; /* the "HC" green — secondary accent */
  --color-forest-deep: #2e4416; /* darker leaf green */
  --color-leaf:        #6d8d3d; /* foliage */
  --color-moss:        #5a5a1e; /* olive moss straight from the crest leaves */

  --color-wood:        #5a3d1e; /* cabin timber */
  --color-wood-deep:   #3a2712; /* shadowed timber (headings) */
  --color-wood-dark:   #241608; /* darkest espresso — the crest's frame */
  --color-wood-light:  #8a5f34; /* lit timber edge / grain highlight */

  --color-ember:       #d8842b; /* lantern glow — primary accent */
  --color-ember-deep:  #b3641b; /* deeper ember — hovers */
  --color-ember-soft:  #f0b86a; /* firelight highlight */

  --color-stone:       #8d8474; /* the crest's stone base */
  --color-cream:       #fdf8ec; /* button ink / brightest cream */
  --color-blossom:     #fbf6ee; /* white flower */

  --color-grove-100:   #dbe0b0; /* pale grove-green panel */
  --color-grove-200:   #c7ce96; /* slightly deeper grove panel */

  /* ---- Wood-plank / grain textures (reused by header, footer, .wood) ----
     Horizontal boards: each plank gets a lit top edge and a dark seam
     below; fine grain runs lengthwise along the beam. */
  --wood-planks:
    repeating-linear-gradient(180deg,
      rgba(255,224,180,0.06) 0 1px,
      rgba(18,10,4,0.00) 1px 42px,
      rgba(18,10,4,0.55) 42px 44px);
  --wood-grain:
    repeating-linear-gradient(0deg,
      rgba(255,244,224,0.03) 0 2px, rgba(24,14,6,0.05) 2px 5px);
  --wood-fill:
    linear-gradient(180deg, #593a1c 0%, #3d2814 55%, #2a1a0d 100%);
  /* ---- Pixel-vine garland tile (footer crown / dividers) ---- */
  --leaf-garland: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2226%22%20viewBox%3D%220%200%2064%2026%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%220%22%20y%3D%2215%22%20width%3D%224%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2215%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%2346601f%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2216%22%20width%3D%2212%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2216%22%20width%3D%2212%22%20height%3D%221%22%20fill%3D%22%2346601f%22%2F%3E%3Crect%20x%3D%2216%22%20y%3D%2217%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%2216%22%20y%3D%2217%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2346601f%22%2F%3E%3Crect%20x%3D%2217%22%20y%3D%2216%22%20width%3D%2212%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%2217%22%20y%3D%2216%22%20width%3D%2212%22%20height%3D%221%22%20fill%3D%22%2346601f%22%2F%3E%3Crect%20x%3D%2229%22%20y%3D%2215%22%20width%3D%227%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%2229%22%20y%3D%2215%22%20width%3D%227%22%20height%3D%221%22%20fill%3D%22%2346601f%22%2F%3E%3Crect%20x%3D%2236%22%20y%3D%2214%22%20width%3D%2225%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%2236%22%20y%3D%2214%22%20width%3D%2225%22%20height%3D%221%22%20fill%3D%22%2346601f%22%2F%3E%3Crect%20x%3D%2261%22%20y%3D%2215%22%20width%3D%223%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%2261%22%20y%3D%2215%22%20width%3D%223%22%20height%3D%221%22%20fill%3D%22%2346601f%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%227%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%228%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%229%22%20width%3D%226%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%226%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2211%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2213%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%229%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%23243611%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%229%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%23243611%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%229%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%2390b256%22%2F%3E%3Crect%20x%3D%2219%22%20y%3D%2223%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%2222%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2217%22%20y%3D%2221%22%20width%3D%226%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2217%22%20y%3D%2220%22%20width%3D%226%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%2219%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2219%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2219%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%2217%22%20y%3D%2220%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%23243611%22%2F%3E%3Crect%20x%3D%2222%22%20y%3D%2220%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%23243611%22%2F%3E%3Crect%20x%3D%2219%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%2390b256%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%226%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2230%22%20y%3D%227%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2229%22%20y%3D%228%22%20width%3D%226%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2229%22%20y%3D%229%22%20width%3D%226%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2230%22%20y%3D%2210%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%2211%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%2229%22%20y%3D%228%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%23243611%22%2F%3E%3Crect%20x%3D%2234%22%20y%3D%228%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%23243611%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%228%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%2390b256%22%2F%3E%3Crect%20x%3D%2243%22%20y%3D%2223%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2242%22%20y%3D%2222%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2241%22%20y%3D%2221%22%20width%3D%226%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2241%22%20y%3D%2220%22%20width%3D%226%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2242%22%20y%3D%2219%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2243%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2243%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%2241%22%20y%3D%2220%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%23243611%22%2F%3E%3Crect%20x%3D%2246%22%20y%3D%2220%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%23243611%22%2F%3E%3Crect%20x%3D%2243%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%2390b256%22%2F%3E%3Crect%20x%3D%2255%22%20y%3D%227%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2254%22%20y%3D%228%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2253%22%20y%3D%229%22%20width%3D%226%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2253%22%20y%3D%2210%22%20width%3D%226%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2254%22%20y%3D%2211%22%20width%3D%224%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2255%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%235a7a2e%22%2F%3E%3Crect%20x%3D%2255%22%20y%3D%2213%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%232e4416%22%2F%3E%3Crect%20x%3D%2253%22%20y%3D%229%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%23243611%22%2F%3E%3Crect%20x%3D%2258%22%20y%3D%229%22%20width%3D%221%22%20height%3D%222%22%20fill%3D%22%23243611%22%2F%3E%3Crect%20x%3D%2255%22%20y%3D%229%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%2390b256%22%2F%3E%3Crect%20x%3D%2232%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2233%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2230%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2233%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2234%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2233%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2232%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2232%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23d8842b%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2213%22%20y%3D%2223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%2223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%2224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2213%22%20y%3D%2224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%2224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2216%22%20y%3D%2224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2213%22%20y%3D%2225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%2225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23f3ecda%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23d8842b%22%2F%3E%3C%2Fsvg%3E");

  /* ---- Spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 36px;
  --space-7: 48px;
  --space-8: 64px;

  /* ---- Radii ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* ---- Type ---- */
  --font-body:    'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Metamorphous', Georgia, serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif; /* elegant italic flourishes */

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(52, 40, 26, 0.06), 0 6px 18px rgba(52, 40, 26, 0.07);
  --shadow-md: 0 2px 6px rgba(52, 40, 26, 0.08), 0 16px 40px rgba(52, 40, 26, 0.12);
  --shadow-glow: 0 6px 22px rgba(216, 132, 43, 0.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Layered parchment: a warm hearth-glow up top, a soft grove tint at the
     foot, over a faint paper weave — kept low-contrast so text stays crisp. */
  background-color: var(--color-bg);
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(216, 132, 43, 0.20), transparent 62%),
    radial-gradient(100% 60% at 100% 108%, rgba(70, 96, 31, 0.22), transparent 60%),
    radial-gradient(90% 55% at 0% 100%, rgba(58, 39, 18, 0.16), transparent 60%),
    radial-gradient(145% 120% at 50% 45%, transparent 58%, rgba(36, 22, 8, 0.13)),
    repeating-linear-gradient(115deg, rgba(58, 39, 18, 0.035) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* A thin ember-to-grove ribbon crowns the page — a small storybook frame. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 60;
  background: linear-gradient(90deg,
    var(--color-forest) 0%, var(--color-leaf) 22%,
    var(--color-ember) 50%, var(--color-leaf) 78%, var(--color-forest) 100%);
  opacity: 0.9;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--color-wood-deep);
}

p { color: var(--color-text-soft); }

a { color: var(--color-ember-deep); text-underline-offset: 2px; }
a:hover { color: var(--color-ember); }

img { max-width: 100%; display: block; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared page-width container */
.wrap { max-width: 1100px; margin: 0 auto; padding-left: var(--space-4); padding-right: var(--space-4); }

/* ===== Site header (sticky, translucent parchment) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #2c1c0d;
  background-image: var(--wood-grain), var(--wood-planks), var(--wood-fill);
  -webkit-backdrop-filter: saturate(1.15) blur(6px);
  backdrop-filter: saturate(1.15) blur(6px);
  border-bottom: 1px solid var(--color-wood-dark);
  box-shadow: inset 0 1px 0 rgba(255, 224, 180, 0.12),
              inset 0 -2px 5px rgba(0, 0, 0, 0.35);
}
/* Nav sits on wood now — links go warm cream, accents stay ember */
.site-header .nav-brand { color: #f6ecd4; }
.site-header .nav a:not(.nav-brand):not(.btn) { color: #efe3c6; }
.site-header .nav a:not(.nav-brand):not(.btn):hover,
.site-header .nav a[aria-current="page"]:not(.btn) { color: var(--color-ember-soft); }
.site-header .nav-toggle { border-color: rgba(240, 228, 200, 0.35); }
.site-header .nav-toggle:hover { border-color: var(--color-ember); }
.site-header .nav-toggle span { background: #efe3c6; }
.site-header .nav-logo { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5)); }

/* ===== Navigation ===== */
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  font-size: 15px;
}
.nav-brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--color-wood-deep);
  text-decoration: none;
}
.nav-logo {
  width: 42px;
  height: 42px;
  flex: none;
  filter: drop-shadow(0 2px 5px rgba(52, 40, 26, 0.28));
  transition: transform 0.3s ease;
}
.nav-brand:hover .nav-logo { transform: rotate(-4deg) scale(1.06); }
.nav a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.18s ease;
}
.nav a:not(.nav-brand):not(.btn):hover { color: var(--color-ember-deep); }
.nav a[aria-current="page"]:not(.btn) {
  color: var(--color-ember-deep);
  font-weight: 600;
}

/* The links + Join button, grouped so they can collapse together on mobile */
.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Hamburger toggle — hidden until the menu collapses on small screens */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--color-ember); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-wood-deep);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease,
              background 0.18s ease, border-color 0.18s ease, color 0.15s ease;
}
.btn-primary {
  background: linear-gradient(160deg, var(--color-ember-soft), var(--color-ember) 45%, var(--color-ember-deep));
  color: var(--color-cream);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  color: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(216, 132, 43, 0.44);
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-wood-deep);
  border-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--color-ember);
  color: var(--color-ember-deep);
  transform: translateY(-2px);
}

/* ===== Cards ===== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 100%, transparent), var(--color-surface));
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  overflow: hidden;
}
/* A faint firelit sheen at the top edge of every card */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-ember) 30%, var(--color-leaf) 70%, transparent);
  opacity: 0.55;
}
.elev-sm { box-shadow: var(--shadow-sm); }
a.card {
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.18s ease;
}
a.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--color-ember) 55%, var(--color-divider));
  box-shadow: var(--shadow-md);
}
.card-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--color-forest);
}
.card-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  color: var(--color-wood-deep);
}
.card-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--color-text-soft);
}

/* ===== Eyebrow / kicker (reusable) ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "❧";
  font-family: var(--font-accent);
  text-transform: none;
  font-size: 16px;
  color: var(--color-ember);
}

/* ===== Section titles ===== */
.section-title { font-size: clamp(24px, 4vw, 32px); margin: 0 0 var(--space-3); }

/* ===== Tags ===== */
.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 13px;
  border-radius: 999px;
}
.tag-accent {
  background: color-mix(in srgb, var(--color-ember) 18%, transparent);
  color: var(--color-ember-deep);
}
.tag-accent-2 {
  background: var(--color-grove-100);
  color: var(--color-forest-deep);
}
.tag-outline {
  border: 1px solid var(--color-divider);
  color: var(--color-text-soft);
}
.tag-neutral {
  background: #ece2d1;
  color: var(--color-text-soft);
}

/* ===== Botanical divider ===== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  max-width: 620px;
  margin: var(--space-7) auto;
  color: var(--color-ember);
  font-family: var(--font-accent);
  font-size: 26px;
  line-height: 1;
  user-select: none;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 180px;
}
.divider::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-forest) 42%, transparent)); }
.divider::after  { background: linear-gradient(90deg, color-mix(in srgb, var(--color-forest) 42%, transparent), transparent); }

/* ===== Soft washed / grove panels (image & feature wrappers) ===== */
.washed {
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(160deg, var(--color-grove-100), var(--color-grove-200));
  border: 1px solid color-mix(in srgb, var(--color-forest) 18%, var(--color-divider));
}

/* ===== Feature medallion — the crest in a warm, glowing frame ===== */
.medallion {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: var(--space-6);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 184, 106, 0.55), transparent 62%),
    radial-gradient(circle at 50% 50%, var(--color-surface), var(--color-grove-100));
  border: 1px solid color-mix(in srgb, var(--color-wood) 30%, var(--color-divider));
  box-shadow: var(--shadow-md), inset 0 0 40px rgba(240, 184, 106, 0.25);
}
.medallion img {
  width: 78%;
  filter: drop-shadow(0 6px 14px rgba(52, 40, 26, 0.35));
  animation: sway 7s ease-in-out infinite;
}

/* ===== Image placeholders =====
   Empty-state slots where community photos can be dropped in later.
   Replace a slot with <img src="..." alt="..."> when you have the image. */
.img-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-grove-100) 55%, var(--color-surface));
  border: 1px dashed color-mix(in srgb, var(--color-forest) 32%, transparent);
  color: var(--color-forest-deep);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
}
.img-slot--circle { border-radius: 50%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.hero-logo {
  width: clamp(150px, 26vw, 220px);
  margin: 0 auto var(--space-5);
  filter: drop-shadow(0 10px 26px rgba(52, 40, 26, 0.4));
  animation: sway 7s ease-in-out infinite;
}
.hero-logo-wrap {
  position: relative;
  display: inline-block;
}
/* Warm halo of firelight behind the crest */
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 184, 106, 0.55), rgba(240, 184, 106, 0) 68%);
  animation: pulse-glow 6s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.03;
  margin: 0 auto var(--space-4);
  max-width: 14ch;
  color: var(--color-wood-deep);
  text-shadow: 0 2px 0 rgba(255, 248, 236, 0.6);
}
.hero .lede {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 auto var(--space-6);
  color: var(--color-text-soft);
}

/* ===== Fireflies / drifting embers (hero decoration) ===== */
.fireflies { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-ember-soft), rgba(240, 184, 106, 0));
  box-shadow: 0 0 8px 2px rgba(240, 184, 106, 0.6);
  opacity: 0;
  animation: drift 9s ease-in-out infinite;
}
.hero > .wrap, .hero > * { position: relative; z-index: 1; }

@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(1.2deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}
@keyframes drift {
  0%   { opacity: 0; transform: translate(0, 10px) scale(0.6); }
  15%  { opacity: 0.9; }
  50%  { opacity: 0.7; transform: translate(14px, -26px) scale(1); }
  85%  { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-8px, -52px) scale(0.7); }
}

/* ===== Call-to-action band ===== */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(216, 132, 43, 0.16), transparent 55%),
    linear-gradient(150deg, var(--color-grove-100), var(--color-grove-200));
  border: 1px solid color-mix(in srgb, var(--color-forest) 20%, var(--color-divider));
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.cta-band h3 { margin: 0 0 var(--space-2); font-size: 24px; color: var(--color-wood-deep); }
.cta-band p { margin: 0; max-width: 44ch; color: var(--color-text-soft); }

/* ===== Numbered steps (rules / join) ===== */
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-cream);
  background: linear-gradient(160deg, var(--color-ember-soft), var(--color-ember) 55%, var(--color-ember-deep));
  box-shadow: var(--shadow-sm);
}

/* ===== Site footer ===== */
.site-footer {
  border-top: 1px solid var(--color-divider);
  background: linear-gradient(180deg, transparent, rgba(109, 75, 46, 0.06));
  margin-top: var(--space-8);
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
  color: var(--color-text-soft);
  font-size: 13.5px;
}
.site-footer img { width: 40px; height: 40px; filter: drop-shadow(0 2px 4px rgba(52,40,26,0.25)); }
.site-footer .foot-brand { font-family: var(--font-heading); font-size: 16px; color: var(--color-wood-deep); }
.site-footer .foot-tag { margin: 0; }
.site-footer .foot-links { margin-left: auto; display: flex; gap: var(--space-4); flex-wrap: wrap; }
.site-footer .foot-links a { color: var(--color-text-soft); text-decoration: none; }
.site-footer .foot-links a:hover { color: var(--color-ember-deep); }

/* =====================================================================
   Pixel-art decor — cozy blocky accents that nod to Minecraft while
   keeping the storybook palette. All artwork is inline SVG with
   crisp (un-antialiased) edges; colours reuse the crest variables so
   the pixels sit inside the same world as the rest of the site.
   ===================================================================== */

/* Every pixel drawing renders with hard edges */
.pixel svg,
svg.pixel { shape-rendering: crispEdges; image-rendering: pixelated; }

/* ---- Fancier buttons: a beveled edge + a firelit shine sweep ---- */
.btn { overflow: hidden; isolation: isolate; }
/* Diagonal glint that sweeps across on hover — the "fancy" flourish */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 28%, rgba(255, 248, 236, 0.55) 46%,
    rgba(255, 248, 236, 0.15) 54%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.btn:hover::after,
.btn:focus-visible::after { transform: translateX(130%); }
.btn:active { transform: translateY(1px); }
/* Beveled, hand-tooled look for the primary (ember) button */
.btn-primary {
  box-shadow: var(--shadow-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(107, 47, 12, 0.22);
}
.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(216, 132, 43, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(107, 47, 12, 0.22);
}
/* Secondary gets a warm firelit wash on hover */
.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-ember-soft) 22%, var(--color-surface));
}

/* ===== The hearth scene (home) — a framed, glowing vignette ===== */
.hearth-scene {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 1 / 1;
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 70% at 50% 88%, rgba(240, 184, 106, 0.5), transparent 60%),
    radial-gradient(circle at 50% 50%, var(--color-surface), var(--color-grove-100));
  border: 1px solid color-mix(in srgb, var(--color-wood) 30%, var(--color-divider));
  box-shadow: var(--shadow-md), inset 0 0 46px rgba(240, 184, 106, 0.28);
  overflow: hidden;
}
/* Soft, breathing firelight cast on the room around the hearth */
.hearth-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 78%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 184, 106, 0.55), transparent 66%);
  animation: pulse-glow 5.5s ease-in-out infinite;
  z-index: 0;
}
.hearth-svg {
  position: relative;
  z-index: 1;
  width: min(300px, 82%);
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(52, 40, 26, 0.28));
}

/* ---- Flickering flames ---- */
.pf-flame { transform-box: fill-box; transform-origin: 50% 100%; }
.pf-flame-1 { animation: flicker-a 1.6s ease-in-out infinite; }
.pf-flame-2 { animation: flicker-b 1.15s ease-in-out infinite; }
.pf-flame-3 { animation: flicker-a 0.9s ease-in-out infinite; }
.pf-flame-core { animation: flicker-b 0.7s ease-in-out infinite; }
.pf-ember { animation: ember-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
/* Glowing lantern on the mantel */
.pf-lantern-glow { animation: pulse-glow 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }

@keyframes flicker-a {
  0%, 100% { transform: scaleY(1) translateX(0); opacity: 0.95; }
  30%      { transform: scaleY(1.12) translateX(-0.4px); opacity: 1; }
  60%      { transform: scaleY(0.92) translateX(0.4px); opacity: 0.85; }
}
@keyframes flicker-b {
  0%, 100% { transform: scaleY(0.96) translateX(0.3px); opacity: 0.9; }
  40%      { transform: scaleY(1.15) translateX(-0.3px); opacity: 1; }
  70%      { transform: scaleY(1) translateX(0.2px); opacity: 0.8; }
}
@keyframes ember-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* ===== The cottage scene (story) — a glowing pixel-art vignette ===== */
.cottage-scene {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 3 / 4;
  padding: var(--space-6);
  overflow: hidden;
}
/* Warm firelight spilling from the window, gently breathing */
.cottage-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 70%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 184, 106, 0.45), transparent 66%);
  animation: pulse-glow 5.5s ease-in-out infinite;
  z-index: 0;
}
.cottage-svg {
  position: relative;
  z-index: 1;
  width: min(320px, 90%);
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(52, 40, 26, 0.28));
}
/* Firelit window flickers softly like the hearth's lantern */
.pc-window-glow { animation: pulse-glow 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
/* Chimney smoke curling up and fading out */
.pc-smoke { transform-box: fill-box; transform-origin: 50% 100%; }
.pc-smoke-1 { animation: smoke-rise 4.2s ease-in-out infinite; }
.pc-smoke-2 { animation: smoke-rise 4.2s ease-in-out infinite 1.4s; }
.pc-smoke-3 { animation: smoke-rise 4.2s ease-in-out infinite 2.8s; }

@keyframes smoke-rise {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
  25%  { opacity: 0.5; }
  60%  { opacity: 0.32; transform: translate(-3px, -9px) scale(1); }
  100% { opacity: 0; transform: translate(2px, -18px) scale(1.25); }
}

/* ===== Hanging pixel vines — drape from the top corners ===== */
.vine-frame {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 2;              /* behind the sticky header (z 50) */
  pointer-events: none;
}
.vine {
  position: absolute;
  top: 0;
  width: 52px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 3px 4px rgba(36, 22, 8, 0.28));
  transform-origin: top center;
  animation: vine-sway 8s ease-in-out infinite;
}
.vine svg { display: block; width: 100%; height: auto; }
.vine-left  { left: 8px; }
.vine-right { right: 8px; transform: scaleX(-1); animation: vine-sway-mirror 9s ease-in-out infinite; }

@keyframes vine-sway {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(1.8deg); }
}
@keyframes vine-sway-mirror {
  0%, 100% { transform: scaleX(-1) rotate(0deg); }
  50%      { transform: scaleX(-1) rotate(1.8deg); }
}
/* Only show the drape where there's real gutter room beside the 1100px
   content — each vine needs ~54px of clearance, so hide it until the
   viewport is wide enough that it sits in the margin instead of over the
   content (and, in particular, on tablets and phones). */
@media (max-width: 1240px) { .vine-frame { display: none; } }

/* ===== Responsive: stack two-column sections ===== */
@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: var(--space-6) var(--space-5);
  }

  /* ---- Collapsible mobile navigation ---- */
  .nav { gap: var(--space-3); }
  .nav-brand { font-size: 17px; gap: var(--space-2); }
  .nav-logo { width: 36px; height: 36px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid color-mix(in srgb, var(--color-divider) 70%, transparent);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) {
    padding: var(--space-3);
    border-radius: var(--radius-sm);
  }
  .nav-menu a:not(.btn):hover,
  .nav-menu a[aria-current="page"]:not(.btn) {
    background: color-mix(in srgb, var(--color-ember) 12%, transparent);
  }
  .nav-menu .btn {
    margin-top: var(--space-2);
    justify-content: center;
  }
}

/* =====================================================================
   High-end polish layer
   Progressive-enhancement upgrades that give the site the motion,
   depth, and micro-interaction detail of a premium storybook site —
   without touching the existing markup's meaning. Everything here
   degrades gracefully: no JS = fully visible content, reduced-motion
   = calm and still.
   ===================================================================== */

/* ---- Text selection + tap highlight tuned to the hearth palette ---- */
::selection {
  background: color-mix(in srgb, var(--color-ember) 32%, transparent);
  color: var(--color-wood-deep);
}
body { -webkit-tap-highlight-color: color-mix(in srgb, var(--color-ember) 22%, transparent); }

/* ---- A slim, cozy custom scrollbar (WebKit + Firefox) ---- */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: var(--color-ember-soft) transparent; }
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--color-ember) 55%, var(--color-wood));
    border: 3px solid var(--color-bg);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--color-ember-deep); }
}

/* =====================================================================
   Scroll-reveal — content drifts up into place as it enters the view.
   The hidden state only applies once JS has flagged <html>, so no-JS
   and reduced-motion visitors always see everything immediately.
   ===================================================================== */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--rd, 0) * 90ms),
    transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--rd, 0) * 90ms);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   Sticky header — condenses and lifts off the page once you scroll.
   ===================================================================== */
.site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background-color: #26170a;
  border-bottom-color: var(--color-wood-dark);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.30),
              inset 0 1px 0 rgba(255, 224, 180, 0.10),
              inset 0 -2px 5px rgba(0, 0, 0, 0.4);
}
.site-header .nav-menu { border-top-color: rgba(240, 228, 200, 0.18); }
.nav { transition: padding 0.3s ease; }
.site-header.is-scrolled .nav { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.nav-logo, .site-header.is-scrolled .nav-logo { transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease; }

/* ---- Animated nav underline (desktop only — mobile uses the pill state) ---- */
@media (min-width: 761px) {
  .nav a:not(.nav-brand):not(.btn) { position: relative; }
  .nav a:not(.nav-brand):not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-ember), var(--color-leaf));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nav a:not(.nav-brand):not(.btn):hover::after,
  .nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
}

/* =====================================================================
   Cards — a firelight glow that follows the pointer, plus a warmer lift.
   Content is floated above the glow so text stays crisp.
   ===================================================================== */
.card > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .card { --mx: 50%; --my: -20%; }
  .card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(240px circle at var(--mx) var(--my),
      rgba(240, 184, 106, 0.20), transparent 62%);
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  .card:hover::after { opacity: 1; }
  /* Brighten the firelit top-edge sheen on hover */
  .card { transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
  .card:hover::before { opacity: 0.9; }
  .card.elev-sm:not(a):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--color-ember) 42%, var(--color-divider));
  }
}

/* =====================================================================
   Gallery tiles — lift and warm on hover. Scoped with :has() so the
   Story page's cottage vignette (also .washed) is left untouched.
   ===================================================================== */
@media (hover: hover) and (pointer: fine) {
  .washed:has(> .img-slot) {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }
  .washed:has(> .img-slot):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--color-forest) 40%, var(--color-divider));
  }
  .washed > .img-slot { transition: background 0.3s ease, color 0.3s ease; }
  .washed:has(> .img-slot):hover > .img-slot {
    background: color-mix(in srgb, var(--color-grove-100) 40%, var(--color-surface));
    color: var(--color-ember-deep);
  }
}

/* =====================================================================
   Hero — a gentle staggered entrance on load and a scroll cue.
   ===================================================================== */
.hero .eyebrow,
.hero h1,
.hero .lede,
.hero .hero-cta,
.hero-logo-wrap,
.hero .trust-strip {
  animation: hero-rise 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-logo-wrap { animation-delay: 0.05s; }
.hero .eyebrow  { animation-delay: 0.20s; }
.hero h1        { animation-delay: 0.30s; }
.hero .lede     { animation-delay: 0.42s; }
.hero .hero-cta { animation-delay: 0.54s; }
.hero .trust-strip { animation-delay: 0.66s; }

@keyframes hero-rise {
  0%   { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: none; }
}

/* ---- Trust strip: a slim row of qualitative badges under the hero CTAs ---- */
.trust-strip {
  list-style: none;
  margin: var(--space-6) auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  max-width: 620px;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text-soft);
}
.trust-strip li::before {
  content: "✦";
  color: var(--color-ember);
  font-size: 12px;
}

/* ---- Scroll cue: a small bobbing chevron inviting the first scroll ---- */
.scroll-cue {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: var(--space-7) auto 0;
  border-radius: 50%;
  color: var(--color-forest);
  border: 1px solid color-mix(in srgb, var(--color-forest) 30%, var(--color-divider));
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  text-decoration: none;
  animation: hero-rise 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.8s both;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.scroll-cue:hover {
  color: var(--color-ember-deep);
  border-color: var(--color-ember);
  transform: translateY(2px);
}
.scroll-cue svg { width: 16px; height: 16px; animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(3px); }
}

/* =====================================================================
   CTA band — a slow firelight shimmer sweeping across the panel.
   ===================================================================== */
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 40%, rgba(255, 248, 236, 0.28) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: band-shimmer 7s ease-in-out 2s infinite;
}
@keyframes band-shimmer {
  0%   { transform: translateX(-120%); }
  30%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.cta-band > * { position: relative; z-index: 1; }

/* =====================================================================
   Numbered steps (rules / join) — the medallion pops on row hover.
   ===================================================================== */
.step-row {
  transition: transform 0.2s ease;
}
.step-row .step-num {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .step-row:hover .step-num {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: var(--shadow-glow);
  }
}

/* ---- Copy button success flash on the Join page ---- */
#copy-btn.is-copied {
  background: color-mix(in srgb, var(--color-leaf) 26%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-forest) 45%, transparent);
  color: var(--color-forest-deep);
}

/* =====================================================================
   Footer — a warm hairline crowns it, brand mark lifts on hover.
   ===================================================================== */
.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent, color-mix(in srgb, var(--color-ember) 55%, transparent) 30%,
    color-mix(in srgb, var(--color-leaf) 55%, transparent) 70%, transparent);
  opacity: 0.6;
}
.site-footer img { transition: transform 0.3s ease; }
.site-footer .wrap:hover img { transform: rotate(-4deg) scale(1.05); }
.site-footer .foot-links a { position: relative; transition: color 0.18s ease; }

/* =====================================================================
   Wood frame + greenery — deepen the theme toward the crest.
   The header (above) and footer become dark cabin-wood beams that frame
   the parchment content, echoing the logo's timber-around-cream build,
   and a pixel-vine garland drapes the top of the footer.
   ===================================================================== */

/* ---- Footer: a wood beam crowned with a leafy garland ---- */
.site-footer {
  margin-top: var(--space-8);
  background-color: #2a1b0d;
  background-image: var(--wood-grain), var(--wood-planks), var(--wood-fill);
  border-top: 2px solid var(--color-wood-dark);
  color: #e2d3b4;
}
/* Garland draped along the very top edge of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  transform: translateY(-96%);
  background-image: var(--leaf-garland);
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 26px;
  opacity: 0.97;
  filter: drop-shadow(0 3px 3px rgba(20, 12, 4, 0.28));
  z-index: 1;
}
.site-footer .wrap { color: #d5c5a4; }
.site-footer .foot-brand { color: #f4ead0; }
.site-footer .foot-tag { color: #bfaf8c; }
.site-footer img { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5)); }
.site-footer .foot-links a { color: #d5c5a4; }
.site-footer .foot-links a:hover { color: var(--color-ember-soft); }

/* ---- Cards: a woodier edge so they read as framed parchment ---- */
.card { border-color: color-mix(in srgb, var(--color-wood) 24%, var(--color-divider)); }

/* ---- A garland-flanked variant of the botanical divider ----
   Opt in by adding class "divider-leafy"; the ❧ keeps its place while a
   thin vine runs out to each side. */
.divider-leafy::before,
.divider-leafy::after {
  height: 20px;
  max-width: 220px;
  background: var(--leaf-garland) center / auto 20px repeat-x;
  opacity: 0.9;
}

/* ---- Deepen the top ribbon into a richer forest-to-ember band ---- */
body::before {
  height: 5px;
  background: linear-gradient(90deg,
    var(--color-forest-deep) 0%, var(--color-forest) 16%, var(--color-leaf) 30%,
    var(--color-ember) 50%, var(--color-leaf) 70%, var(--color-forest) 84%,
    var(--color-forest-deep) 100%);
  opacity: 0.95;
}
