/* Layout: one quiet left-aligned column. On wide screens each section puts its heading in a narrow rail on the left and its text on the right; on a phone they stack. */
:root {
  --paper: #f4f7f7;
  --surface: #ffffff;
  --ink: #102a33;
  --muted: #4b636c;
  --line: #d2dde0;
  --accent: #0a6a65;
  --accent-ink: #ffffff;
  --todo-bg: #ffeea6;
  --todo-ink: #3f3200;

  --font-text: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-label: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --wide: 72rem;
  --narrow: 46rem;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b191e;
    --surface: #10232a;
    --ink: #e3ecee;
    --muted: #9cb1b8;
    --line: #233a41;
    --accent: #5ac6ba;
    --accent-ink: #04221f;
    --todo-bg: #574800;
    --todo-ink: #fff3bf;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b191e;
  --surface: #10232a;
  --ink: #e3ecee;
  --muted: #9cb1b8;
  --line: #233a41;
  --accent: #5ac6ba;
  --accent-ink: #04221f;
  --todo-bg: #574800;
  --todo-ink: #fff3bf;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: var(--narrow); }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Header and footer */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-block: 1rem;
}
.wordmark {
  color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em;
}
.wordmark span { font-weight: 400; color: var(--muted); }
.head-link { font-weight: 600; text-decoration: none; }
.head-link:hover { text-decoration: underline; }

.site-foot { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; padding-block: 1.6rem; }
.site-foot a { color: var(--muted); }

/* Home: opening */
.hero .wrap { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 {
  margin: 0 0 1.25rem; max-width: 17ch;
  font-family: var(--font-head); font-size: clamp(2.1rem, 5.4vw, 3.7rem); font-weight: 650;
  line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance;
}
.lede { margin: 0 0 2rem; max-width: 38rem; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; }
.button {
  display: inline-block; padding: 0.8rem 1.45rem; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* Home: sections */
.band { border-top: 1px solid var(--line); }
.band .wrap {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 1rem 3.5rem; padding-block: clamp(2.5rem, 5vw, 4rem);
}
.band h2 { margin: 0; font-family: var(--font-head); font-size: 1.35rem; font-weight: 650; line-height: 1.25; text-wrap: balance; }
.band .body { min-width: 0; max-width: 50rem; }
.band .body > :first-child { margin-top: 0; }
.band .body > :last-child { margin-bottom: 0; }
.band p { margin: 0 0 1rem; max-width: 40rem; }

.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.25rem;
}
.features li { min-width: 0; padding-top: 0.8rem; border-top: 2px solid var(--accent); }
.features strong { font-family: var(--font-head); }

.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.audience { min-width: 0; padding: 1.3rem 1.45rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.audience h3 { margin: 0 0 0.5rem; font-family: var(--font-head); font-size: 1.1rem; font-weight: 650; }
.audience p { margin: 0; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.steps li::before {
  content: counter(step);
  width: 2.1rem; height: 2.1rem; border: 1.5px solid var(--accent); border-radius: 50%;
  color: var(--accent); font-family: var(--font-label); font-size: 0.95rem; font-weight: 600;
  line-height: calc(2.1rem - 3px); text-align: center;
}
.steps li > div { padding-top: 0.2rem; }

.plain { margin: 0; padding-left: 1.2rem; max-width: 40rem; }
.plain li + li { margin-top: 0.55rem; }

/* Policy pages */
.doc .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc h1 {
  margin: 0 0 0.4rem; font-family: var(--font-head); font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance;
}
.effective { margin: 0 0 2rem; color: var(--muted); font-family: var(--font-label); font-size: 0.9rem; }
.doc p { margin: 0 0 1.1rem; }
.doc ul { margin: -0.4rem 0 1.25rem; padding-left: 1.2rem; }
.doc li + li { margin-top: 0.4rem; }

/* Gaps still to fill: shown only in the private preview; the live build refuses to run while any is left */
mark.todo { padding: 0.05em 0.35em; border-radius: 3px; background: var(--todo-bg); color: var(--todo-ink); font-size: 0.92em; }
.preview-note { background: var(--todo-bg); color: var(--todo-ink); font-size: 0.95rem; }
.preview-note .wrap { padding-block: 0.6rem; }

@media (max-width: 760px) {
  .band .wrap { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 600px) {
  .features, .audiences { grid-template-columns: minmax(0, 1fr); }
}
