/* ── Palette / Typography / Spacing tokens — mirror of DESIGN.md ──
   Mirror DESIGN.md changes here. NEVER hardcode hex codes outside :root. */
:root {
  /* GATE 2 — Bake & Cake palette: dark-luxe bakery (charcoal + champagne gold).
     Mirrored from DESIGN.md. NEVER hardcode hex codes outside this :root block. */
  --bg:        #14110F;   /* deep charcoal canvas */
  --surface:   #1C1815;   /* elevated card surface */
  --surface-2: #221E1A;   /* nested / promo strip surface */
  --ink:       #F5EFE6;   /* warm cream — primary text on dark */
  --ink-muted: #A89F92;   /* muted warm grey — body copy, captions */
  --accent:    #D4A24C;   /* champagne gold — wordmark, headlines, CTAs */
  --accent-2:  #B8860B;   /* deep gold — eyebrows, promo, hairlines */
  --hairline:  rgba(212, 162, 76, 0.22);   /* gold hairline divider */
  --border:    rgba(245, 239, 230, 0.08);  /* subtle cream border on dark */
  --border-strong: rgba(245, 239, 230, 0.18);

  /* GATE 3 — typography pair: Playfair Display (serif italic for hero) + Inter. */
  --font-display: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* GATE 11 — spacing tokens on a 4/8px ladder. */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii on a single scale. */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* GATE 12 — multi-layer shadow recipe tuned for dark surfaces.
     Wide ambient + subtle gold inner highlight so cards feel lifted off the charcoal. */
  --shadow-card:        0 6px 18px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(212, 162, 76, 0.06) inset;
  --shadow-card-hover:  0 30px 60px -18px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(212, 162, 76, 0.18) inset;
  --shadow-elevated:    0 40px 80px -20px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(212, 162, 76, 0.10) inset;
  --glow-gold:          0 0 0 1px rgba(212, 162, 76, 0.4), 0 8px 24px rgba(212, 162, 76, 0.18);

  /* Motion. GATE 13 — transitions live in the 200-300ms range. */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:   180ms;
  --t-base:   240ms;

  --width:        1180px;
  --width-narrow: 720px;
}

/* ── Reset / base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--ink); }
::selection { background: var(--accent); color: var(--bg); }

/* ── Display typography (Playfair Display serif) ──────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
}
h1.display, .hero h1 {
  /* GATE 4 — hero h1 IS massive. Italic serif is the signature move. */
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.96;
  color: var(--accent);
  margin-bottom: var(--space-5);
}
h2, .display.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--space-6);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: var(--space-2) 0 var(--space-2);
  color: var(--ink);
}
h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
p { color: var(--ink-muted); margin-bottom: var(--space-4); max-width: 65ch; }
strong { color: var(--ink); font-weight: 600; }

/* ── Layout primitives ────────────────────────────────────────── */
.container {
  max-width: var(--width);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container.narrow { max-width: var(--width-narrow); }

.section {
  /* GATE 11 — section padding scales fluidly, never a one-off 2rem. */
  padding-block: clamp(3rem, 8vw, 6rem);
}
.section-tight {
  /* Used for the stats strip directly under the hero — half the vertical
     padding so the strip reads as part of the hero zone, not a new chapter. */
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
.section-soft {
  background: var(--surface);
  border-block: 1px solid var(--hairline);
}
.section-darker {
  /* For the Meet the Team band that needs to feel set apart. */
  background: linear-gradient(180deg, var(--bg) 0%, #100E0C 100%);
  border-block: 1px solid var(--hairline);
}
.section-center {
  /* Centers narrow content sections (about / mission) so the eyebrow + h2
     don't float awkwardly on the left edge of a centered narrow container. */
  text-align: center;
}
.section-center .eyebrow,
.section-center .display {
  margin-inline: auto;
}
.section-center p {
  margin-inline: auto;
}
.section-lead {
  /* Subtitle paragraph between an h2 and a card grid. Slightly larger than
     body copy so it pairs with the display heading instead of fading away. */
  font-size: 1.0625rem;
  max-width: 56ch;
  margin-bottom: var(--space-8);
}

/* GATE 6 — every list of similar items goes in .grid + grid-N. */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── Eyebrow ── deep-gold pill with hairline border, used for "Limited Edition" promo strip. */
.eyebrow {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: transparent;
  color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent-2) 60%, transparent);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.eyebrow-cool {
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.eyebrow-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.005em;
  font-size: 1rem;
  color: var(--accent);
  border: none;
  padding: 0;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  /* GATE 13 — every interactive element has hover + transition. */
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #1A1410;
  box-shadow: var(--shadow-card);
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #E0B45F;
  color: #1A1410;
  box-shadow: var(--shadow-card-hover), var(--glow-gold);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #1A1410;
  transform: translateY(-2px);
  border-color: var(--accent);
}
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: 0.82rem; }

/* ── Nav (GATE 5) — dark backdrop-blur with gold hairline + serif italic wordmark ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 17, 15, 0.78);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding-block: var(--space-4);
}

/* Logo — italic serif "Bake & Cake" + gold crown glyph above. */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
  text-decoration: none;
  color: var(--accent);
}
.logo-mark {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  filter: drop-shadow(0 1px 2px rgba(212,162,76,0.4));
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.logo-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 1px;
}
.logo:hover .logo-text { color: #E5BB6E; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  position: relative;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  padding: var(--space-2) 0;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a::after {
  /* Gold hairline underline, expands on hover (GATE 13). */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--t-base) var(--ease), left var(--t-base) var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; left: 0; }
.nav-links a.is-active { color: var(--accent); }
.nav-links a.btn { padding: var(--space-3) var(--space-5); }
.nav-links a.btn::after { display: none; }

/* Nav utility cluster: search + cart with gold badge. */
.nav-utils {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--hairline); background: rgba(212,162,76,0.06); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #1A1410;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

/* ── Hero ── GATE 10 signature move: italic serif "Indulgence Awaits"
   overlapping a 3-card product showcase on a moody charcoal canvas with
   warm gold radial halos. Background photo placeholder uses gradients
   so the page renders fully even with no image hosting. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 18% 30%, rgba(212, 162, 76, 0.20), transparent 60%),
    radial-gradient(45% 55% at 88% 80%, rgba(184, 134, 11, 0.14), transparent 70%),
    linear-gradient(180deg, #1A1612 0%, #14110F 100%);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--hairline);
}
.hero::before {
  /* Faint gold gradient veil along the top edge — bridges into the nav. */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(212,162,76,0.05), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--width);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.lead {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 36ch;
  margin-block: var(--space-4) var(--space-7);
  line-height: 1.55;
}
.cta-row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }

/* Hero 3-card showcase grid: text card | centerpiece (taller) | product card.
   Headline overlaps the centerpiece via negative margin on the headline column. */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: var(--space-5);
  align-items: stretch;
  margin-top: var(--space-8);
}
.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.hero-card-media {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-card-media::after {
  /* Dark vignette so the card body text reads on any photo. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20,17,15,0.65) 100%);
}
.hero-card.is-feature .hero-card-media { aspect-ratio: 3 / 4; }
.hero-card-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.hero-card-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.hero-card-price {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.hero-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.hero-card-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
}

/* The headline column is just text — the visual "overlap" happens because
   the giant italic h1 spans wider than its column via negative right margin. */
.hero-head {
  padding: var(--space-6) 0 0;
  z-index: 2;
  position: relative;
}
.hero-head h1 {
  /* Push the headline right so it visually intrudes on the centerpiece. */
  margin-right: -8%;
}
.hero-head .hero-shop-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero-shop-meta::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-head { grid-column: 1 / -1; }
  .hero-head h1 { margin-right: 0; }
}
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ── Cards (GATES 6 + 12) ─ dark surface, hairline border, lifts gold on hover ─ */
.card {
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.feature .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
}
.feature p { margin-bottom: var(--space-5); }

/* Subtle in-card link — every feature card ends with one to give cards a
   clear "next action", which keeps them from feeling like dead read-only
   blocks. The arrow nudges right on hover (GATE 13). */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-link::after {
  content: "→";
  transition: transform var(--t-fast) var(--ease);
}
.card-link:hover { color: #E5BB6E; }
.card-link:hover::after { transform: translateX(4px); }

/* ── Stat cards (proof-point strip under the hero) ───────────────────────
   Smaller padding than feature cards, big display-font number, all-caps
   label underneath. The 4-column auto-fit grid collapses gracefully:
   4 → 2 → 1 columns as the viewport narrows. */
.stat-grid { gap: var(--space-4); }
.stat-card {
  padding: var(--space-6) var(--space-5);
  text-align: left;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.stat-num .stat-unit {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--accent);
  margin-left: 0.1em;
  vertical-align: 0.15em;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Testimonial card variant — for marketing-style social proof. */
.testimonial {
  position: relative;
  padding: var(--space-10) var(--space-8);
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: var(--space-3);
  left: var(--space-6);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: color-mix(in srgb, var(--accent-2) 60%, transparent);
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
  /* Indent the quote text past the giant ::before glyph so the first line
     never crowds the curl, even on the narrowest mobile viewports. */
  padding-left: var(--space-6);
}
@media (max-width: 480px) {
  .testimonial::before { font-size: 3.5rem; top: var(--space-2); left: var(--space-4); }
  .testimonial blockquote { padding-left: var(--space-4); font-size: 1.125rem; }
}
.testimonial cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ── Two-column split (form + info sidebar) ──────────────────────────────
   Used by the contact section. Auto-fit means the right card drops below
   the form on narrower viewports without a media query. */
.contact-head { margin-bottom: var(--space-8); max-width: 56ch; }
.contact-head p { font-size: 1.0625rem; margin-bottom: 0; }
.split { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-2) 6%, var(--surface)) 0%,
    var(--surface) 100%);
}
.info-card h3 { margin-top: 0; }
.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-2);
}
.info-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.info-foot {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 0;
}

/* ── Forms (GATE 7) ───────────────────────────────────────────── */
.form-card {
  display: grid;
  gap: var(--space-5);
  margin-top: 0;
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--ink);
  font: inherit;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--ink-muted) 70%, transparent); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ── Footer (GATE 8) ──────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, #fff 70%, transparent);
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-8);
  margin-top: var(--space-24);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 2fr repeat(2, 1fr);
}
.footer-brand p {
  color: color-mix(in srgb, #fff 60%, transparent);
  margin-top: var(--space-3);
  max-width: 36ch;
}
.logo-on-dark { color: #fff; }
.logo-on-dark:hover { color: var(--accent); }
.site-footer h4 { color: #fff; margin-bottom: var(--space-4); }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a {
  color: color-mix(in srgb, #fff 70%, transparent);
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-meta {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  font-size: 0.8125rem;
  color: color-mix(in srgb, #fff 50%, transparent);
}
.footer-meta p { margin: 0; color: inherit; max-width: none; }

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    padding: var(--space-4) var(--space-6);
    gap: var(--space-3);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* Reduced motion — respect user preference. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}