@font-face {
  font-family: Assistant;
  src: url("../fonts/assistant.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3eee4;
  --bg-elev: #faf7f1;
  --bg-alt: #e8e0d2;
  --ink: #15211c;
  --ink-soft: #3c4a44;
  --muted: #5c6a63;
  --line: #d4cbb8;
  --pine: #165744;
  --pine-dark: #0e3d30;
  --pine-soft: #e4efe9;
  --clay: #a94a2c;
  --warn: #f3e3c4;
  --warn-ink: #5a3d0d;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(21, 33, 28, 0.04), 0 10px 30px rgba(21, 33, 28, 0.06);
  --max: 56rem;
  --narrow: 48rem;
  --font: Assistant, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem;
  min-height: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 0.18em; }
a:hover { color: var(--pine-dark); }
:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  right: 1rem;
  top: -3rem;
  background: var(--pine);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(var(--narrow), calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}
.logo-mark {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--pine-dark);
  letter-spacing: -0.03em;
}
.logo-tag { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a, .nav summary {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] {
  background: var(--pine-soft);
  color: var(--pine-dark);
}
.nav details { position: relative; }
.nav details summary::-webkit-details-marker { display: none; }
.nav details summary::after { content: " ▾"; font-size: 0.7em; opacity: 0.7; }
.nav details[open] summary { background: var(--pine-soft); }
.nav details ul {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 15rem;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  z-index: 50;
}
.nav details ul a { display: block; border-radius: 8px; font-weight: 500; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute;
    inset: calc(100% + 0px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
    gap: 0.2rem;
  }
  .site-header.is-open .nav { display: flex; }
  .nav details ul { position: static; box-shadow: none; border: 0; background: transparent; padding-inline: 0.6rem; }
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.4rem;
  text-align: center;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(22, 87, 68, 0.08), transparent 55%),
    radial-gradient(70% 60% at 50% 20%, rgba(169, 74, 44, 0.06), transparent 50%);
}
.hero h1 {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3.05rem);
  line-height: 1.25;
  font-weight: 800;
  margin: 0 auto 0.85rem;
  max-width: 18ch;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 auto 1.6rem;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-elev); color: var(--ink); }

.notice, .disclaimer, .draft-banner, .callout {
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
}
.disclaimer, .notice {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.draft-banner {
  background: var(--warn);
  border: 1px dashed #c4923a;
  color: var(--warn-ink);
}
.draft-banner strong { display: block; margin-bottom: 0.2rem; }
.callout { background: var(--pine-soft); border: 1px solid color-mix(in srgb, var(--pine) 22%, var(--line)); }

/* Cards */
.section { padding: 2.2rem 0; }
.section h2, .article-body h2, .article-body h3, .page-title {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 auto 0.9rem;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-align: center;
}
.page-title { font-size: clamp(1.75rem, 4vw, 2.35rem); margin-top: 0.4rem; max-width: 22ch; }
.section h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
.kicker {
  display: block;
  color: var(--clay);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
}
a.card:hover { border-color: color-mix(in srgb, var(--pine) 45%, var(--line)); }
.card h3 {
  font-family: var(--font);
  font-weight: 800;
  margin: 0.2rem 0 0.5rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.card p { margin: 0 0 1rem; color: var(--ink-soft); flex: 1; }
.card .more { font-weight: 700; color: var(--pine); }

.page-hero { padding: 2rem 0 0.5rem; text-align: center; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; }
.crumbs a { color: inherit; }
.meta { color: var(--muted); font-size: 0.92rem; margin: 0 auto 1rem; max-width: 40rem; }

.article-body { padding: 0.5rem 0 3rem; }
.article-body h2 { font-size: 1.35rem; margin-top: 2rem; }
.article-body h3 { font-size: 1.12rem; margin-top: 1.5rem; font-weight: 700; }
.article-body p, .article-body li, .article-body .disclaimer, .article-body .callout, .article-body .notice {
  text-align: start;
}
.article-body ul, .article-body ol { padding-inline-start: 1.3rem; text-align: start; }
.article-body li { margin: 0.3rem 0; }
.article-body .sources { margin-top: 2.4rem; font-size: 0.95rem; }
.article-body .sources li { overflow-wrap: anywhere; }

/* Wizard */
.wizard {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.3rem 1.4rem;
  margin: 1.6rem auto 2rem;
  text-align: center;
  max-width: 36rem;
}
.wizard h2 { margin-top: 0; }
.wizard p { text-align: start; }
.wiz-q { display: none; }
.wiz-q.is-on { display: block; }
.wiz-progress { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.6rem; }
.wiz-choices { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; justify-content: center; }
.wiz-choices button { min-width: 6.5rem; }
.wiz-result { display: none; }
.wiz-result.is-on { display: block; }
.wiz-result h3 { margin-top: 0; font-family: var(--font); font-weight: 800; }
.wiz-result [data-result-body] { text-align: start; }

/* Form */
.lead-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  margin: 2rem auto 0;
  text-align: center;
  max-width: 36rem;
}
.lead-form h2 { margin-top: 0; }
.lead-form > p { text-align: center; }
.lead-form .btn { margin-inline: auto; }
.field, .check, .consent-text, .lead-form .draft-banner { text-align: start; }
.field { margin: 0.85rem 0; }
.field label, .check label { display: block; font-weight: 650; margin-bottom: 0.25rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.check { margin: 0.8rem 0; }
.check label { display: flex; gap: 0.55rem; font-weight: 500; align-items: flex-start; }
.check input { margin-top: 0.35rem; flex: none; }
.consent-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
}
.form-status { margin-top: 0.8rem; font-weight: 650; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  background: #ebe4d6;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: var(--pine-dark); }
.site-footer h2 { font-size: 1rem; margin: 0 0 0.4rem; font-family: var(--font); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.2rem 0; }
.fine { margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
@media (max-width: 800px) {
  .footer-grid { text-align: center; }
  .site-footer ul { display: flex; flex-direction: column; align-items: center; }
}

.list-links { padding: 0.2rem 0 2.5rem; max-width: 28rem; margin-inline: auto; text-align: center; }
.list-links a { display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.list-links a:hover { color: var(--pine-dark); }
.section h2 { margin-bottom: 1.2rem; }
