/* =========================================================
   HappyGirlHappyHome — design tokens + components
   ========================================================= */

:root,
[data-theme='light'] {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.4rem, 1.5rem + 3.4vw, 4rem);

  /* Spacing (4px base) */
  --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;
  --space-32: 8rem;

  /* Surfaces — creamy, warm, never pure white */
  --color-bg: #faf6f0;
  --color-surface: #fdfaf5;
  --color-surface-2: #f4ece1;
  --color-surface-offset: #efe6da;
  --color-divider: #e6dbcd;
  --color-border: rgba(58, 51, 48, 0.14);

  /* Text — deep warm charcoal, never pure black */
  --color-text: #3a3330;
  --color-text-muted: #6b5f57;
  --color-text-faint: #948779;
  --color-text-inverse: #fbf7f1;

  /* Accents */
  --color-sage: #7d9070;
  --color-sage-deep: #55684e;
  --color-sage-soft: #e3e8dc;
  --color-terracotta: #a85334;
  --color-terracotta-deep: #8a4127;
  --color-terracotta-soft: #f2ddd1;
  --color-blush: #ecd0cb;
  --color-blush-deep: #96594f;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Shadows — warm tinted, very soft */
  --shadow-sm: 0 1px 2px rgba(90, 68, 52, 0.05);
  --shadow-md: 0 6px 18px rgba(90, 68, 52, 0.07);
  --shadow-lg: 0 18px 44px rgba(90, 68, 52, 0.1);

  --transition-interactive: 240ms cubic-bezier(0.33, 1, 0.68, 1);

  /* Widths */
  --content-narrow: 640px;
  --content-prose: 68ch;
  --content-default: 1000px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Helvetica, sans-serif;

  --hero-veil: rgba(250, 246, 240, 0.55);
}

[data-theme='dark'] {
  --color-bg: #211d1a;
  --color-surface: #282320;
  --color-surface-2: #2f2925;
  --color-surface-offset: #353029;
  --color-divider: #3b342e;
  --color-border: rgba(237, 229, 219, 0.16);

  --color-text: #ece4da;
  --color-text-muted: #bcafa2;
  --color-text-faint: #93867a;
  --color-text-inverse: #241f1c;

  --color-sage: #a4b795;
  --color-sage-deep: #b7c8a9;
  --color-sage-soft: #333a2f;
  --color-terracotta: #dd9370;
  --color-terracotta-deep: #eaa985;
  --color-terracotta-soft: #40302a;
  --color-blush: #e0bbb3;
  --color-blush-deep: #e6c6bf;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.45);

  --hero-veil: rgba(33, 29, 26, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #211d1a;
    --color-surface: #282320;
    --color-surface-2: #2f2925;
    --color-surface-offset: #353029;
    --color-divider: #3b342e;
    --color-border: rgba(237, 229, 219, 0.16);
    --color-text: #ece4da;
    --color-text-muted: #bcafa2;
    --color-text-faint: #93867a;
    --color-text-inverse: #241f1c;
    --color-sage: #a4b795;
    --color-sage-deep: #b7c8a9;
    --color-sage-soft: #333a2f;
    --color-terracotta: #dd9370;
    --color-terracotta-deep: #eaa985;
    --color-terracotta-soft: #40302a;
    --color-blush: #e0bbb3;
    --color-blush-deep: #e6c6bf;
    --hero-veil: rgba(33, 29, 26, 0.6);
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide { max-width: var(--content-wide); }
.container--narrow { max-width: var(--content-narrow); }

.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section--tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.lede { font-size: var(--text-lg); color: var(--color-text-muted); line-height: 1.6; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
  padding-block: var(--space-3);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--color-text); }
.brand svg { color: currentColor; }
.brand:hover { color: var(--color-sage-deep); }

.nav-desktop { display: none; }
@media (width >= 900px) {
  .nav-desktop { display: flex; align-items: center; gap: var(--space-4); }
}
.nav-desktop a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  border-bottom: 1px solid transparent;
}
.nav-desktop a:hover { color: var(--color-text); border-bottom-color: var(--color-sage); }
.nav-desktop a[aria-current='page'] { color: var(--color-text); border-bottom-color: var(--color-terracotta); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.icon-btn:hover { background: var(--color-surface-2); color: var(--color-text); }
.nav-toggle { display: grid; }
@media (width >= 900px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr min(84vw, 340px);
  visibility: hidden;
}
.nav-drawer.is-open { visibility: visible; }
.nav-drawer__scrim {
  background: rgba(58, 51, 48, 0.35);
  opacity: 0;
  transition: opacity 260ms ease;
  border: 0;
  width: 100%;
  height: 100%;
}
.nav-drawer.is-open .nav-drawer__scrim { opacity: 1; }
.nav-drawer__panel {
  background: var(--color-surface);
  padding: var(--space-6) var(--space-6) var(--space-10);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.33, 1, 0.68, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.nav-drawer.is-open .nav-drawer__panel { transform: translateX(0); }
.nav-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.nav-drawer__panel a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.nav-drawer__panel a:hover { color: var(--color-sage-deep); }
.nav-drawer__note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary { background: var(--color-terracotta); color: #fdf7f2; }
.btn--primary:hover { background: var(--color-terracotta-deep); }
[data-theme='dark'] .btn--primary { color: #241f1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .btn--primary { color: #241f1c; } }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn--ghost:hover { background: var(--color-surface-2); border-color: var(--color-sage); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-terracotta);
  text-decoration: none;
}
.text-link::after { content: '\2192'; transition: transform var(--transition-interactive); }
.text-link:hover { color: var(--color-terracotta-deep); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(var(--space-10), 6vw, var(--space-20)); }
.hero__grid {
  display: grid;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  align-items: center;
}
@media (width >= 880px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}
.hero__title em { font-style: italic; color: var(--color-terracotta); }
.hero__text p { max-width: 46ch; color: var(--color-text-muted); font-size: var(--text-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__figure { position: relative; }
.hero__figure img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.hero__stamp {
  position: absolute;
  left: calc(-1 * var(--space-4));
  bottom: calc(-1 * var(--space-5));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  box-shadow: var(--shadow-md);
  max-width: 62%;
}
@media (width < 560px) { .hero__stamp { position: static; margin-top: var(--space-4); max-width: none; } }

/* ---------- Page head (interior pages) ---------- */
.page-head { padding-block: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-8); }
.page-head h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-block: var(--space-3) var(--space-4);
}
.page-head p { max-width: 60ch; color: var(--color-text-muted); font-size: var(--text-lg); }

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.section-head h2 { font-family: var(--font-display); font-size: var(--text-xl); }
.section-head p { color: var(--color-text-muted); max-width: 52ch; margin-top: var(--space-2); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: clamp(var(--space-6), 3vw, var(--space-8));
  grid-template-columns: repeat(auto-fill, minmax(min(288px, 100%), 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(0.33, 1, 0.68, 1), box-shadow 260ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__media { position: relative; background: var(--color-surface-2); }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: var(--space-5) var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--text-xs); color: var(--color-text-muted); }
.card__title { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.25; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card__title a:hover { color: var(--color-terracotta); }
.card__excerpt { color: var(--color-text-muted); font-size: var(--text-base); margin-top: auto; }

.tag {
  display: inline-block;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-blush);
  color: var(--color-blush-deep);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
[data-theme='dark'] .tag { background: var(--color-terracotta-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .tag { background: var(--color-terracotta-soft); } }
.tag--sage { background: var(--color-sage-soft); color: var(--color-sage-deep); }

/* Featured card (spans two columns on wide screens) */
.card--feature { grid-column: 1 / -1; }
@media (width >= 780px) {
  .card--feature { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .card--feature .card__media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .card--feature .card__body { padding: clamp(var(--space-6), 3vw, var(--space-10)); justify-content: center; }
  .card--feature .card__title { font-size: var(--text-xl); }
}

/* ---------- Topic previews ---------- */
.topics { display: grid; gap: var(--space-5); }
@media (width >= 700px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (width >= 1000px) { .topics { grid-template-columns: repeat(3, 1fr); } }
.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  text-decoration: none;
  border: 1px solid transparent;
}
.topic:hover { border-color: var(--color-sage); background: var(--color-surface-offset); }
.topic h3 { font-family: var(--font-display); font-size: var(--text-lg); }
.topic p { color: var(--color-text-muted); font-size: var(--text-sm); }
.topic__count { font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.topic__body { display: flex; flex-direction: column; gap: var(--space-2); }
.topic img { display: none; }
.topic--wide { grid-column: 1 / -1; padding: var(--space-4); }
.topic--wide img {
  display: block; width: 100%; border-radius: var(--radius-md);
  aspect-ratio: 16 / 10; object-fit: cover;
}
.topic--wide .topic__body { padding: var(--space-4) var(--space-3) var(--space-2); }
@media (width >= 700px) {
  .topic--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: var(--space-5); }
  .topic--wide img { width: 46%; aspect-ratio: 4 / 3; }
  .topic--wide .topic__body { padding: var(--space-2) var(--space-4) var(--space-2) 0; }
}
@media (width >= 1000px) { .topic--wide { grid-column: span 2; } }

.prose-figure { margin: var(--space-10) 0; }
.prose-figure img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.prose-figure--portrait img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
.prose-figure--contain img { aspect-ratio: auto; object-fit: contain; background: #f5f4f2; }
.prose-figure figcaption {
  margin-top: var(--space-3); font-size: var(--text-sm); font-style: italic;
  color: var(--color-text-faint);
}
@media (width >= 900px) { .prose-figure { margin-inline: calc(-1 * var(--space-10)); } }

/* ---------- Band / signup ---------- */
.band {
  background: var(--color-surface-2);
  border-block: 1px solid var(--color-divider);
}
.band__grid { display: grid; gap: clamp(var(--space-6), 4vw, var(--space-10)); align-items: center; }
@media (width >= 860px) { .band__grid { grid-template-columns: 1fr 1fr; } }
.band h2 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-4); }
.band p { color: var(--color-text-muted); max-width: 46ch; }
.band img { border-radius: var(--radius-xl); aspect-ratio: 16/10; object-fit: cover; box-shadow: var(--shadow-md); }

.signup { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.signup label { flex: 1 1 220px; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.field {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  min-height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}
.field:hover { border-color: var(--color-sage); }
.form-note { font-size: var(--text-sm); color: var(--color-text-faint); margin-top: var(--space-3); font-style: italic; }
.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-sage-soft);
  color: var(--color-sage-deep);
  font-size: var(--text-sm);
}

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.chip {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
}
.chip:hover { border-color: var(--color-sage); color: var(--color-text); }
.chip[aria-pressed='true'] {
  background: var(--color-sage-deep);
  border-color: var(--color-sage-deep);
  color: #fbf8f2;
}
[data-theme='dark'] .chip[aria-pressed='true'] { color: #241f1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .chip[aria-pressed='true'] { color: #241f1c; } }

.empty-state {
  padding: var(--space-16) var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}
.empty-state p { margin-inline: auto; max-width: 40ch; }

/* ---------- Article ---------- */
.post-hero { padding-block: var(--space-10) var(--space-8); }
.post-hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; font-size: var(--text-xs); color: var(--color-text-muted); }
.post-hero h1 { font-family: var(--font-display); font-size: var(--text-2xl); margin-block: var(--space-5) var(--space-5); max-width: 20ch; }
.post-hero__dek { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 56ch; }
.post-figure { margin-block: var(--space-8); }
.post-figure img { width: 100%; border-radius: var(--radius-xl); object-fit: cover; box-shadow: var(--shadow-md); }
.post-figure figcaption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-text-faint); font-style: italic; }

.prose { max-width: var(--content-prose); margin-inline: auto; }
.prose p { margin-bottom: var(--space-6); line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-size: var(--text-lg); margin-block: var(--space-10) var(--space-4); }
.prose ul { margin: 0 0 var(--space-6) var(--space-5); display: grid; gap: var(--space-2); }
.prose .table-wrap { overflow-x: auto; margin: 0 0 var(--space-8); }
.prose table { font-size: var(--text-sm); margin: 0; }
.prose th, .prose td { padding: 0.55rem 0.65rem; text-align: left; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.prose th { font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.prose a[rel~="sponsored"] { font-weight: 600; font-style: italic; text-decoration: underline; text-underline-offset: 0.18em; }
.prose blockquote {
  margin: var(--space-10) 0;
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-sage);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text);
}
@media (width >= 1100px) {
  .prose blockquote { margin-inline: calc(-1 * var(--space-12)) 0; }
}
.prose .signoff { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--color-text-muted); }

.post-foot {
  max-width: var(--content-prose);
  margin: var(--space-12) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}
.byline { display: flex; align-items: center; gap: var(--space-4); }
.byline img { width: 72px; height: 72px; border-radius: var(--radius-full); object-fit: cover; }
.byline p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 40ch; }
.byline strong { color: var(--color-text); font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
@media (width >= 900px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; } }
.about-portrait { position: sticky; top: 96px; }
.about-portrait img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); aspect-ratio: 2/3; object-fit: cover; }
@media (width < 900px) { .about-portrait { position: static; } }
.fact-list { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.fact-list li { display: flex; gap: var(--space-4); align-items: baseline; }
.fact-list .num { font-family: var(--font-display); color: var(--color-terracotta); font-size: var(--text-sm); min-width: 1.6em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
@media (width >= 880px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.form-stack { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-2); }
.form-row label { font-size: var(--text-sm); font-weight: 600; }
.form-row .hint { font-size: var(--text-xs); color: var(--color-text-faint); font-weight: 400; }
textarea.field { min-height: 160px; resize: vertical; line-height: 1.6; }
.error-text { font-size: var(--text-sm); color: var(--color-terracotta-deep); min-height: 0; }
.field[aria-invalid='true'] { border-color: var(--color-terracotta); }
.success-card {
  border: 1px solid var(--color-sage);
  background: var(--color-sage-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.success-card h2 { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-3); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
}
.footer-grid { display: grid; gap: clamp(var(--space-8), 4vw, var(--space-12)); }
@media (width >= 780px) { .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; } }
.site-footer h2 { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-3); }
.site-footer p { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 40ch; }
.footer-nav { display: grid; gap: var(--space-2); }
.footer-nav a { font-size: var(--text-sm); text-decoration: none; color: var(--color-text-muted); width: fit-content; }
.footer-nav a:hover { color: var(--color-terracotta); }
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 600ms ease, transform 600ms cubic-bezier(0.33, 1, 0.68, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
