/* ==========================================================================
   Action2Day — site stylesheet
   Hand-written, framework-free. 8px spacing rhythm, fluid type, AA contrast.
   ========================================================================== */

:root {
  /* Brand */
  --terracotta: #C2552D;
  --terracotta-deep: #A8441F;   /* text-safe on cream (5.5:1) */
  --terracotta-soft: #F7E4D9;
  --terracotta-glow: #E9A487;   /* for text on espresso */
  --espresso: #2B1E17;
  --espresso-2: #3A2A21;
  --ink: #2B1E17;
  --ink-muted: #65513F;         /* 6.8:1 on cream */
  --cream: #FBF6EF;
  --cream-2: #F4EADD;
  --paper: #FFFDF9;
  --sage: #7A9A7E;
  --sage-deep: #45604A;         /* text-safe sage */
  --sage-soft: #E7EFE6;

  /* Lines and depth */
  --line: rgba(43, 30, 23, 0.12);
  --line-strong: #9C8B7E;       /* 3:1 form borders */
  --shadow-sm: 0 1px 2px rgba(43, 30, 23, 0.05), 0 4px 12px -4px rgba(43, 30, 23, 0.08);
  --shadow-md: 0 2px 6px rgba(43, 30, 23, 0.05), 0 18px 40px -16px rgba(43, 30, 23, 0.22);
  --shadow-lg: 0 30px 70px -28px rgba(43, 30, 23, 0.45);

  /* Shape */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;

  /* Type */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* 8px rhythm */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--espresso);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem); line-height: 1.25; }
p { text-wrap: pretty; }

a { color: var(--terracotta-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--espresso); }

:focus-visible {
  outline: 3px solid var(--terracotta-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: var(--terracotta-glow); }

::selection { background: #F2CDB9; color: var(--espresso); }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--espresso);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--cream); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.8;
}
.eyebrow--light { color: var(--terracotta-glow); }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 38em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px -10px rgba(168, 68, 31, 0.7); }
.btn-primary:hover { background: var(--terracotta-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(168, 68, 31, 0.75); }
.btn-outline { border-color: rgba(43, 30, 23, 0.28); color: var(--espresso); background: transparent; }
.btn-outline:hover { border-color: var(--espresso); color: var(--espresso); background: rgba(43, 30, 23, 0.04); }
.btn-light { background: var(--cream); color: var(--espresso); }
.btn-light:hover { background: #fff; color: var(--espresso); transform: translateY(-1px); }
.btn-ghost-light { border-color: rgba(255, 248, 240, 0.5); color: #FFF8F0; background: rgba(255, 248, 240, 0.06); }
.btn-ghost-light:hover { border-color: #FFF8F0; color: #FFF8F0; background: rgba(255, 248, 240, 0.14); }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: 0.925rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--terracotta-deep);
  text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--espresso); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 239, 0.84);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(43, 30, 23, 0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--espresso);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand:hover { color: var(--espresso); }
.brand-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(168, 68, 31, 0.8); }
.brand-name em { font-style: italic; font-weight: 500; color: var(--terracotta); padding-inline: 1px; }

.site-nav { display: flex; align-items: center; gap: var(--s-3); }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--espresso);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-link:hover { background: rgba(43, 30, 23, 0.06); color: var(--espresso); }
.nav-link[aria-current="page"] { color: var(--terracotta-deep); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--espresso);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); background: var(--espresso); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); background: var(--espresso); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    padding: var(--s-2) var(--gutter) var(--s-3);
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(43, 30, 23, 0.4);
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; animation: navIn 0.28s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 14px 12px; font-size: 1.125rem; border-radius: 12px; }
  .nav-link[aria-current="page"] { background: var(--terracotta-soft); }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-cta { width: 100%; min-height: 50px; font-size: 1rem; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--espresso); color: rgba(251, 246, 239, 0.8); }
.section-dark h2, .section-dark h3 { color: #FFF8F0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 { max-width: 20ch; }
.section-head p { max-width: 36em; color: var(--ink-muted); margin-top: var(--s-2); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center h2 { margin-inline: auto; }
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(580px, 84vh, 800px);
  color: #FFF8F0;
  overflow: hidden;
  background: var(--espresso);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 38%;
  transform: scale(1.02);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(31, 21, 15, 0.9) 0%, rgba(31, 21, 15, 0.72) 34%, rgba(31, 21, 15, 0.28) 66%, rgba(31, 21, 15, 0.08) 100%),
    linear-gradient(0deg, rgba(31, 21, 15, 0.6) 0%, rgba(31, 21, 15, 0) 42%);
}
.hero-content { width: 100%; padding-block: clamp(112px, 16vw, 176px) clamp(48px, 7vw, 88px); }
.hero-copy { max-width: 700px; }
.hero h1 {
  color: #FFF8F0;
  font-size: clamp(2.6rem, 1.35rem + 4.8vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: italic; font-weight: 400; color: #F4B89C; }
.hero .lead { color: rgba(255, 248, 240, 0.9); margin-top: var(--s-3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(255, 248, 240, 0.82);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero-facts svg { width: 18px; height: 18px; color: #B9D0BB; flex: none; }
@media (max-width: 640px) {
  .hero { min-height: 640px; }
  .hero::before {
    background: linear-gradient(0deg, rgba(31, 21, 15, 0.94) 0%, rgba(31, 21, 15, 0.74) 50%, rgba(31, 21, 15, 0.38) 100%);
  }
  .hero-media img { object-position: 72% 30%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Topic strip under hero */
.topic-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.topic-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding-block: 20px;
}
.topic-strip-label {
  margin-right: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--espresso);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { border-color: var(--terracotta); background: var(--terracotta-soft); color: var(--espresso); }

/* ---------- Split / intro ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.split--flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
}
.media-frame { position: relative; isolation: isolate; margin: 0 16px 16px 0; }
.media-frame::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--sage-soft);
  border: 1px solid rgba(69, 96, 74, 0.15);
}
.media-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-note {
  position: absolute;
  left: -8px;
  bottom: 28px;
  max-width: 260px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--espresso);
}
.media-note span { display: block; margin-bottom: 4px; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep); }
@media (max-width: 520px) {
  .media-frame { margin: 0 12px 12px 0; }
  .media-frame::before { inset: 12px -12px -12px 12px; }
  .media-note { position: relative; left: 0; bottom: 0; max-width: none; margin-top: -40px; margin-inline: 16px; }
}

.split-copy h2 { margin-bottom: var(--s-3); }
.split-copy > p { color: var(--ink-muted); margin-bottom: var(--s-2); }

.values { display: grid; gap: var(--s-3); margin-top: var(--s-4); padding: 0; list-style: none; }
.value { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-2); align-items: start; }
.value-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--terracotta-soft);
  color: var(--terracotta-deep);
}
.value-icon svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.15rem; margin-bottom: 4px; }
.value p { color: var(--ink-muted); font-size: 0.98rem; }

/* ---------- Guide cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(43, 30, 23, 0.18); }
.card:focus-within { outline: 3px solid var(--terracotta-deep); outline-offset: 4px; }
.card:focus-within a:focus-visible { outline: none; }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px 24px 24px; }
.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.card-title { font-size: 1.32rem; line-height: 1.25; letter-spacing: -0.012em; }
.card-title a { color: var(--espresso); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-summary { color: var(--ink-muted); font-size: 0.97rem; line-height: 1.6; }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.card-meta span { display: inline-flex; align-items: center; gap: 8px; }
.card-meta svg { width: 16px; height: 16px; }
.card-arrow { color: var(--terracotta-deep); transition: transform 0.3s var(--ease); }
.card:hover .card-arrow { transform: translateX(4px); }
.card-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--espresso);
}

/* ---------- Starting points ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); padding: 0; list-style: none; }
@media (max-width: 820px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: center;
  padding: 24px 4px;
  border-top: 1px solid var(--line);
  color: var(--espresso);
  text-decoration: none;
}
.paths li:nth-last-child(-n + 2) .path { border-bottom: 1px solid var(--line); }
@media (max-width: 820px) {
  .paths li:nth-last-child(-n + 2) .path { border-bottom: 0; }
  .paths li:last-child .path { border-bottom: 1px solid var(--line); }
}
.path-q { font-family: var(--font-serif); font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); line-height: 1.3; }
.path-a { grid-column: 1; font-size: 0.925rem; color: var(--ink-muted); }
.path-icon {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--terracotta-deep);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.path-icon svg { width: 18px; height: 18px; }
.path:hover { color: var(--espresso); }
.path:hover .path-icon { background: var(--terracotta); border-color: var(--terracotta); color: #fff; transform: translateX(4px); }

/* ---------- Editorial standards ---------- */
.standards-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-4) clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.standards-intro p { color: rgba(251, 246, 239, 0.78); font-size: 1.075rem; }
@media (max-width: 860px) { .standards-intro { grid-template-columns: minmax(0, 1fr); } }
.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding: 0;
  list-style: none;
}
@media (max-width: 980px) { .standards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .standards-grid { grid-template-columns: minmax(0, 1fr); } }
.standard { padding-top: var(--s-3); border-top: 1px solid rgba(251, 246, 239, 0.18); }
.standard-num { display: block; margin-bottom: var(--s-2); font-family: var(--font-serif); font-size: 2.25rem; font-style: italic; font-weight: 400; line-height: 1; color: var(--terracotta-glow); }
.standard h3 { margin-bottom: 10px; font-size: 1.2rem; }
.standard p { font-size: 0.97rem; color: rgba(251, 246, 239, 0.76); }
.standards-foot { margin-top: clamp(40px, 5vw, 64px); }
.section-dark .text-link { color: var(--terracotta-glow); }
.section-dark .text-link:hover { color: #FFF8F0; }

/* ---------- Sign-up band ---------- */
.signup-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  border-radius: clamp(20px, 2vw, 28px);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(122, 154, 126, 0.22) 0%, rgba(122, 154, 126, 0) 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(194, 85, 45, 0.16) 0%, rgba(194, 85, 45, 0) 60%),
    var(--cream-2);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .signup-band { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .signup-band { padding: 24px 16px; } }
.signup-copy h2 { margin-bottom: var(--s-2); }
.signup-copy p { color: var(--ink-muted); }
.signup-points { display: grid; gap: 12px; margin-top: var(--s-3); padding: 0; list-style: none; }
.signup-points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--espresso); font-size: 0.98rem; }
.signup-points svg { width: 22px; height: 22px; margin-top: 2px; color: var(--sage-deep); }

/* ---------- Forms ---------- */
.form-card {
  position: relative;
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
@media (max-width: 520px) { .form-card { padding: 20px 16px; } }
.form-card h2, .form-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-card > p { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: var(--s-3); }
.form { position: relative; }
.field { display: grid; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field label { font-size: 0.925rem; font-weight: 600; color: var(--espresso); }
.optional { font-weight: 400; font-size: 0.85rem; color: var(--ink-muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--espresso);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #7C6A5D; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(194, 85, 45, 0.18);
}
.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--terracotta);
  cursor: pointer;
}
.check label { cursor: pointer; }
.check a { color: var(--terracotta-deep); font-weight: 500; }
.form-actions { margin-top: var(--s-3); }
.form-fine { margin-top: var(--s-2); font-size: 0.82rem; color: var(--ink-muted); }
.req { color: var(--terracotta-deep); }

.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: var(--s-2);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status.is-success { background: var(--sage-soft); color: #2C4530; border: 1px solid rgba(69, 96, 74, 0.35); }
.form-status.is-error { background: #FBE8E1; color: #8A2E12; border: 1px solid rgba(168, 68, 31, 0.35); }

.notice {
  margin-bottom: var(--s-3);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.notice-error { background: #FBE8E1; color: #8A2E12; border: 1px solid rgba(168, 68, 31, 0.35); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 72px);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(122, 154, 126, 0.16) 0%, rgba(122, 154, 126, 0) 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(194, 85, 45, 0.08) 0%, rgba(194, 85, 45, 0) 60%);
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: var(--s-3); }
.page-hero--compact h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); }
.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 900px) { .page-hero-split { grid-template-columns: minmax(0, 1fr); } }
.page-hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; object-fit: cover; }

.wide-figure { margin-top: clamp(8px, 2vw, 24px); }
.wide-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 640px) { .wide-figure img { aspect-ratio: 4 / 3; } }

.breadcrumb { margin-bottom: var(--s-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--ink-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: rgba(43, 30, 23, 0.35); }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta-deep); text-decoration: underline; }

/* ---------- Content blocks (about, legal) ---------- */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .content-grid { grid-template-columns: minmax(0, 1fr); } }
.content-grid > h2 { position: sticky; top: calc(var(--header-h) + 24px); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
@media (max-width: 900px) { .content-grid > h2 { position: static; } }
.content-grid + .content-grid { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }

.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); padding: 0; list-style: none; }
@media (max-width: 640px) { .feature-list { grid-template-columns: minmax(0, 1fr); } }
.feature-list li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.feature-list h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-list p { font-size: 0.97rem; color: var(--ink-muted); }

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--espresso);
  color: rgba(251, 246, 239, 0.8);
}
.contact-strip h2 { color: #FFF8F0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 8px; }
.contact-strip a.mail { color: #FFF8F0; font-weight: 600; }

/* ---------- Prose ---------- */
.prose { font-size: 1.1rem; line-height: 1.75; color: #33251D; }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  margin-top: clamp(40px, 5vw, 56px);
  font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.05rem);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h3 { margin-top: 32px; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.38rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--terracotta); font-weight: 600; }
.prose strong { font-weight: 650; color: var(--espresso); }
.prose .lede {
  padding-left: 20px;
  border-left: 3px solid var(--terracotta);
  font-size: clamp(1.18rem, 1.08rem + 0.4vw, 1.32rem);
  line-height: 1.7;
  color: var(--espresso);
}
.legal .prose .lede, .content-grid .prose .lede { padding-left: 0; border-left: 0; }

/* Key takeaways */
.takeaways {
  margin-bottom: var(--s-5);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(69, 96, 74, 0.22);
  border-radius: var(--radius);
  background: var(--sage-soft);
}
.takeaways h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.takeaways h2 svg { width: 20px; height: 20px; }
.takeaways ul { display: grid; gap: 12px; padding: 0; list-style: none; }
.takeaways li {
  position: relative;
  padding-left: 32px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--espresso);
}
.takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Callouts */
.callout {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  margin-block: 32px;
  padding: 24px;
  border: 1px solid rgba(168, 68, 31, 0.2);
  border-left: 4px solid var(--terracotta);
  border-radius: 6px var(--radius) var(--radius) 6px;
  background: #FBEDE5;
  font-size: 1.02rem;
  line-height: 1.65;
}
.callout-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--terracotta-deep); }
.callout-icon svg { width: 20px; height: 20px; }
.callout-title { margin: 0 0 6px; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--espresso); }
.callout p + p, .callout p + ul, .callout ul + p { margin-top: 10px; }
.callout ul { padding-left: 1.2em; }
.callout li + li { margin-top: 6px; }
.callout--sage { border-color: rgba(69, 96, 74, 0.24); border-left-color: var(--sage); background: var(--sage-soft); }
.callout--sage .callout-icon { color: var(--sage-deep); }
@media (max-width: 520px) {
  .callout { grid-template-columns: minmax(0, 1fr); padding: 20px; }
}

/* ---------- Article ---------- */
.article-header { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.article-header h1 { max-width: 21ch; font-size: clamp(2.2rem, 1.35rem + 3.3vw, 3.9rem); line-height: 1.06; }
.article-dek { max-width: 40em; margin-top: var(--s-3); font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--ink-muted); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: var(--s-3);
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.article-meta li { display: inline-flex; align-items: center; gap: 8px; }
.article-meta svg { width: 17px; height: 17px; color: var(--sage-deep); }
.article-hero img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
@media (max-width: 640px) { .article-hero img { aspect-ratio: 4 / 3; } }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
}
.article-body { max-width: 760px; }
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-body { margin-inline: auto; width: 100%; }
}
.article-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: var(--s-3); }
@media (max-width: 1024px) { .article-aside { display: none; } }
.toc { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.toc-title { margin-bottom: 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.toc ol { display: grid; gap: 4px; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  padding: 6px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--espresso);
  text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: 0.75rem; font-weight: 600; color: var(--terracotta-deep); padding-top: 2px; }
.toc a:hover { color: var(--terracotta-deep); }
.aside-card { padding: 24px; border-radius: var(--radius); background: var(--espresso); color: rgba(251, 246, 239, 0.8); font-size: 0.93rem; }
.aside-card h2 { margin-bottom: 8px; font-size: 1.25rem; color: #FFF8F0; }
.aside-card .btn { margin-top: var(--s-2); width: 100%; }

.official { margin-top: clamp(48px, 6vw, 64px); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.official h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); }
.official > p { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 20px; }
.official ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.official li + li { margin-top: 0; }
.official a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--espresso);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.official a:hover { border-color: var(--terracotta); box-shadow: var(--shadow-sm); transform: translateY(-1px); color: var(--espresso); }
.official .org { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.official .domain { display: block; font-size: 0.85rem; color: var(--ink-muted); }
.official svg { width: 18px; height: 18px; flex: none; color: var(--terracotta-deep); }

.review-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  margin-top: var(--s-5);
  padding: 24px;
  border-radius: var(--radius);
  background: var(--cream-2);
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.review-note .mark { width: 44px; height: 44px; border-radius: 12px; }
.review-note strong { color: var(--espresso); }

/* Keep reading */
.keep-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 900px) { .keep-grid { grid-template-columns: minmax(0, 1fr); } }
.keep-list { display: grid; gap: 16px; padding: 0; list-style: none; }
.mini {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mini:focus-within { outline: 3px solid var(--terracotta-deep); outline-offset: 3px; }
.mini:focus-within a:focus-visible { outline: none; }
.mini img { width: 128px; height: 96px; object-fit: cover; border-radius: 10px; }
.mini-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep); }
.mini h3 { margin: 4px 0 6px; font-size: 1.05rem; line-height: 1.3; }
.mini h3 a { color: var(--espresso); text-decoration: none; }
.mini h3 a::after { content: ""; position: absolute; inset: 0; }
.mini-time { font-size: 0.82rem; color: var(--ink-muted); }
@media (max-width: 420px) {
  .mini { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .mini img { width: 96px; height: 80px; }
}

/* ---------- Resources index ---------- */
.org-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
@media (max-width: 980px) { .org-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .org-groups { grid-template-columns: minmax(0, 1fr); } }
.org-group { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.org-group h3 { margin-bottom: 16px; font-size: 1.2rem; }
.org-group ul { display: grid; gap: 4px; padding: 0; list-style: none; }
.org-group a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--espresso);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  line-height: 1.35;
}
.org-group li:last-child a { border-bottom: 0; }
.org-group a:hover { color: var(--terracotta-deep); }
.org-group .domain { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-muted); }
.org-group svg { width: 16px; height: 16px; flex: none; color: var(--terracotta-deep); }
.fine-print { margin-top: var(--s-4); font-size: 0.9rem; color: var(--ink-muted); max-width: 60em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.info-stack { display: grid; gap: var(--s-3); }
.info-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.info-card h2 { margin-bottom: 12px; font-size: 1.3rem; }
.info-card p, .info-card li { font-size: 0.97rem; color: var(--ink-muted); }
.info-card ul { display: grid; gap: 8px; padding-left: 1.2em; }
.info-card li::marker { color: var(--terracotta); }
.mail-link { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 600; color: var(--terracotta-deep); text-decoration: none; }
.mail-link:hover { color: var(--espresso); text-decoration: underline; }
.mail-link svg { width: 22px; height: 22px; }
.info-photo img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow-md); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq--spaced { margin-top: var(--s-4); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: box-shadow 0.25s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 560;
  color: var(--espresso);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--terracotta-deep);
  border-bottom: 2px solid var(--terracotta-deep);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:focus-visible { border-radius: var(--radius); outline-offset: -3px; }
.faq .faq-body { padding: 0 24px 22px; color: var(--ink-muted); font-size: 0.99rem; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; }
.legal .prose { font-size: 1.04rem; }
.legal .prose h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem); }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-3); padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-muted); }
.updated svg { width: 16px; height: 16px; flex: none; color: var(--sage-deep); }
.legal-toc { margin: 0 0 var(--s-5); padding: 24px; border-radius: var(--radius); background: var(--cream-2); }
.legal-toc p { margin-bottom: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.legal-toc ol { columns: 2; column-gap: 32px; padding-left: 1.2em; font-size: 0.95rem; }
.legal-toc li { break-inside: avoid; padding-block: 3px; }
.legal-toc a { color: var(--espresso); text-decoration: none; }
.legal-toc a:hover { color: var(--terracotta-deep); text-decoration: underline; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }

/* ---------- Status pages ---------- */
.status-page { padding-block: clamp(72px, 10vw, 140px); text-align: center; }
.status-page .lead { margin-inline: auto; margin-top: var(--s-3); }
.status-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto var(--s-4); border-radius: 22px; background: var(--sage-soft); color: var(--sage-deep); }
.status-icon svg { width: 34px; height: 34px; }
.status-icon--warm { background: var(--terracotta-soft); color: var(--terracotta-deep); }
.status-page h1 { max-width: 18ch; margin-inline: auto; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s-5); }
.status-code { display: block; margin-bottom: var(--s-2); font-family: var(--font-serif); font-size: clamp(4rem, 3rem + 5vw, 7rem); font-style: italic; font-weight: 400; line-height: 1; color: var(--terracotta); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(64px, 8vw, 96px) 32px;
  background: var(--espresso);
  color: rgba(251, 246, 239, 0.74);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand { color: #FFF8F0; }
.site-footer .brand-name em { color: var(--terracotta-glow); }
.footer-brand p { max-width: 30em; margin-top: var(--s-2); }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s-3); color: #FFF8F0; font-weight: 600; text-decoration: none; }
.footer-mail svg { width: 20px; height: 20px; color: var(--terracotta-glow); }
.footer-mail:hover { color: #FFF8F0; text-decoration: underline; }
.footer-title {
  margin-bottom: var(--s-2);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFF8F0;
}
.footer-links { display: grid; gap: 10px; padding: 0; list-style: none; }
.footer-links a { color: rgba(251, 246, 239, 0.78); text-decoration: none; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: #FFF8F0; text-decoration: underline; }
.footer-legal {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(251, 246, 239, 0.14);
}
.footer-disclaimer {
  max-width: 82ch;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(251, 246, 239, 0.7);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: var(--s-3);
  font-size: 0.85rem;
  color: rgba(251, 246, 239, 0.62);
}
.footer-bottom a { color: rgba(251, 246, 239, 0.82); }
.footer-bottom a:hover { color: #FFF8F0; }

/* ---------- Reveal on scroll ----------
   Content is never hidden on load. Only once the visitor scrolls does main.js mark
   the sections still below the fold as pending, and they ease in as they arrive. */
.reveal-pending { opacity: 0; transform: translateY(20px); }
.reveal-pending.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-pending.is-in.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-pending.is-in.reveal-delay-2 { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal-pending { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}

@media print {
  .site-header, .site-footer, .article-aside, .keep-reading, .signup-section { display: none !important; }
  body { background: #fff; }
}
