:root {
  --paper: #fbf8f2;
  --paper-2: #f3eee4;
  --ink: #1c2230;
  --muted: #566073;
  --rule: #e2dbcd;
  --accent: #1f5f4a;
  --accent-ink: #ffffff;
  --accent-soft: #e3eee8;
  --focus: #a8740a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13161b;
    --paper-2: #1a1e25;
    --ink: #ebe7df;
    --muted: #a6aebb;
    --rule: #2d333d;
    --accent: #7cc6a6;
    --accent-ink: #0e1914;
    --accent-soft: #1c2a24;
    --focus: #e0b64c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--paper); padding: 0.5rem 0.75rem; }
.skip:focus { left: 0.5rem; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
/* Reading column: left-aligned with the header and hero, 42rem wide. */
.prose > * { max-width: 42rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 600 1.15rem/1 var(--serif); white-space: nowrap; }
.brand img { width: 1.75rem; height: 1.75rem; }
.site-header nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 30rem) { .site-header nav .wide-only { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.35rem; }

/* Home */
.hero { padding: 3.5rem 0 3rem; }
@media (min-width: 48rem) { .hero { padding: 5.5rem 0 4rem; } }
.eyebrow { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.lede { font-size: 1.15em; color: var(--muted); max-width: 38rem; margin: 0 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0.8rem 1.35rem; border-radius: 0.5rem; text-decoration: none; font-weight: 600; }
.button:hover { filter: brightness(1.08); }

.section { padding: 3rem 0; }
.band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1.25rem 1.25rem 1.1rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 0.95rem/1 var(--sans); margin-bottom: 0.75rem; }
.steps p { margin: 0; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.65rem; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.5em; width: 0.85rem; height: 0.45rem; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Texting page */
.card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1.5rem; margin: 1.75rem 0; }
.card p { margin: 0 0 0.75rem; }
.card p:last-child { margin-bottom: 0; }
.label { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card .number { font: 600 clamp(1.5rem, 5vw, 2.1rem)/1.2 var(--sans); font-variant-numeric: tabular-nums; margin-bottom: 0.5rem; }
.consent { font-size: 0.95rem; border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1rem; }

/* Documents */
.doc { padding: 2.5rem 0 3rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 0.25rem; }
.doc .meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.5rem; }
.doc h2 { font-size: 1.4rem; margin: 2.25rem 0 0.6rem; }
.doc h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: 0.4rem 0; }
.summary { background: var(--accent-soft); border-radius: 0.75rem; padding: 1.1rem 1.35rem; margin: 0 0 1rem; }
.summary p { margin: 0; }
.summary ul { margin: 0.5rem 0 0; }
.table-scroll { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
.doc th { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.75rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0.25rem 0; }
