:root {
  --bg: #faf7f2;
  --band: #f1ebe0;
  --ink: #1f2a2e;
  --muted: #55646a;
  --accent: #1f5f5b;
  --accent-ink: #ffffff;
  --line: #ddd3c2;
  --focus: #b4541a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14191b;
    --band: #1b2224;
    --ink: #eee8dc;
    --muted: #a9b4b8;
    --accent: #7cc4bc;
    --accent-ink: #0f1a19;
    --line: #2c3639;
    --focus: #f0a066;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font: 700 20px/1 system-ui, sans-serif; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 18px; font: 15px/1 system-ui, sans-serif; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
nav a:hover { color: var(--ink); }

h1, h2, .eyebrow, .btn, table, label, .small, .sources { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 24px; }
h2 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--accent); margin: 0 0 16px; font-weight: 600; }

.hero { padding: 72px 0 64px; }
.lede { font-size: 1.25rem; max-width: 620px; margin: 0 0 14px; }
.soft { color: var(--muted); }
section { padding: 56px 0; }
.band { background: var(--band); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  padding: 12px 22px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.08); }

.steps, .ticks { padding-left: 22px; }
.steps li, .ticks li { margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

.builder { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
input {
  font: 16px system-ui, sans-serif; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink);
}
.message {
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 18px 20px; white-space: pre-wrap;
}
.small { font-size: 14px; color: var(--muted); margin-top: 14px; }
.sources { font-size: 15px; padding-left: 20px; }
.sources li { margin-bottom: 10px; }
sup a { text-decoration: none; font: 12px system-ui, sans-serif; padding: 0 1px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font: 15px system-ui, sans-serif; }

.doornote { display: none; }

@media print {
  body > *:not(.doornote) { display: none !important; }
  body { background: #fff; color: #000; }
  .doornote {
    display: block; max-width: 520px; margin: 0 auto; padding: 36px; border: 3px solid #000;
    font-family: Georgia, serif; text-align: center;
  }
  .dn-kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; margin: 0; }
  .dn-title { font-size: 40px; margin: 8px 0 16px; }
  .dn-body { font-size: 20px; }
  .doornote dl { text-align: left; font-size: 20px; margin: 24px 0; display: grid; grid-template-columns: 130px 1fr; gap: 10px 12px; }
  .doornote dt { font-weight: 700; }
  .doornote dd { margin: 0; border-bottom: 1px solid #000; min-height: 1.4em; }
  .dn-foot { font-size: 16px; margin-bottom: 0; }
}
