:root {
  --bg: #0b0f14;
  --bg-alt: #111822;
  --panel: #16202c;
  --line: #24384a;
  --text: #e6edf3;
  --muted: #9fb1c1;
  --accent: #3ddc97;
  --accent-ink: #04130c;
  --link: #7fe7ff;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8f7;
    --bg-alt: #ecf1ef;
    --panel: #ffffff;
    --line: #cfdad5;
    --text: #12201a;
    --muted: #4b5f56;
    --accent: #0f7a4d;
    --accent-ink: #ffffff;
    --link: #0b6480;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 46rem; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); color: var(--muted); font-size: 0.95rem; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.bar p { margin: 0; }
.bar nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.bar nav a { color: var(--text); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.brand { font-family: var(--mono); font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
.brand-mark { color: var(--accent); }

/* Sections */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 7vw, 5rem); border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--bg), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, var(--line) 31px 32px);
}
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.button {
  display: inline-block; padding: 0.7rem 1.15rem; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--text); font-weight: 600; text-decoration: none;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; }
.card h3 { font-family: var(--mono); color: var(--accent); }
.card p { margin: 0; color: var(--muted); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem 3rem; }

.list { margin: 0 0 1em; padding-left: 1.2rem; }
.list li { margin-bottom: 0.55em; }
.list li::marker { color: var(--accent); }

/* Policy page */
.policy { padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: clamp(2.5rem, 7vw, 4.5rem); }
.policy h2 { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.policy h3 { margin-top: 1.6em; color: var(--accent); font-family: var(--mono); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
