:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #545a63;
  --line: #e3e1dc;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-soft: #e6f1ed;
  --warn-soft: #fbf3e3;
  --radius: 10px;
  --max: 68rem;
  --text: 40rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111316;
    --surface: #181b1f;
    --ink: #eceae6;
    --muted: #a3a8af;
    --line: #2b2f35;
    --accent: #5cbfa3;
    --accent-ink: #0d1412;
    --accent-soft: #17302a;
    --warn-soft: #2c2618;
    color-scheme: dark;
  }
  .figure img { background: #ffffff; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.prose { max-width: var(--text); }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.brand svg { width: 1.5rem; height: 1.5rem; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .cta { color: var(--accent); font-weight: 600; }

/* sections */
section { padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.01em; max-width: 22ch; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: var(--text); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 0.5rem; }
.hero { padding: 4.5rem 0 3.5rem; }

.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0.7rem 1.2rem;
  border-radius: 999px; text-decoration: none; font-weight: 600; border: 0; font-size: 1rem; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card p:last-child { margin-bottom: 0; }

.scope {
  background: var(--warn-soft); border-radius: var(--radius); padding: 0.9rem 1.1rem; font-size: 0.95rem;
  max-width: var(--text); margin: 1rem 0;
}
.scope strong { font-weight: 600; }

.numbers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 1.5rem 0; }
.number { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.number .value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.number .label { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; }

.figure { margin: 1.5rem 0; }
.figure img { border: 1px solid var(--line); border-radius: var(--radius); }
.figure figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; max-width: var(--text); }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
ol.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1rem 3.4rem; position: relative; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 0.9rem;
}

ul.plain { padding-left: 1.2rem; margin: 0 0 1rem; }
ul.plain li { margin-bottom: 0.4rem; }

/* form */
form.pilot { display: grid; gap: 1rem; max-width: 36rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.65rem 0.75rem; width: 100%;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 0.88rem; }
.turnstile:empty { display: none; }
.form-status { padding: 0.9rem 1.1rem; border-radius: var(--radius); background: var(--accent-soft); display: none; }
.form-status.show { display: block; }
.form-status.error { background: var(--warn-soft); }

/* tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }

.page-head { padding: 3.5rem 0 1.5rem; border-bottom: 0; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; border-radius: 6px; z-index: 20; }

@media (max-width: 40rem) {
  body { font-size: 16px; }
  section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .nav { gap: 0.8rem; font-size: 0.9rem; }
}

.mt { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
section[id] { scroll-margin-top: 4.5rem; }
@media (max-width: 40rem) {
  .site-header { position: static; }
  section[id] { scroll-margin-top: 0.5rem; }
}
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: var(--text); }
.wrap.prose > .table-wrap { max-width: none; }
