/* The look every page past the landing page shares: tokens, ruled paper,
   header, type scale, button, card, footer, and the closing band.
   Values are copied from dist/index.html, so a sub page reads as the same site.
   A page keeps only the rules that belong to it. */
:root {
  --paper:  #f9f7f2;
  --panel:  #f3efe6;
  --ink:    #1a1c21;
  --muted:  #4a443a;
  --rule:   #ddd6c7;
  --navy:   #1a2b4a;
  --credit: #2e7d4f;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --frame: 1512px;
  --gutter: clamp(25.2px, 5vw, 60.48px);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 23.94px; line-height: 1.6; color: var(--ink);
  -webkit-font-smoothing: antialiased; background: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 44.1px, rgba(34,37,43,.055) 44.1px 45.36px); }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums lining-nums; }
.wrap { width: 100%; max-width: var(--frame); margin: 0 auto; padding-inline: var(--gutter); }

/* ---- Header ------------------------------------------------------------ */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1.89px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 17.64px; height: 80.64px; }
.mark-home { display: flex; align-items: center; gap: 11.34px; min-width: 0; text-decoration: none; }
.mark-home img { width: 30.24px; height: 30.24px; border-radius: 7.56px; flex: none; }
.mark-home .wordmark { font: 600 22.68px/1 var(--mono); color: var(--navy); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30.24px; flex: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 18.9px; font-weight: 500; transition: color .2s ease, box-shadow .2s ease; }
.nav-links a:not(.nav-dl).active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--credit); }
.nav-links .nav-dl { background: var(--navy); color: var(--paper); padding: 10.08px 20.16px; border-radius: 8.82px; font-weight: 700; }

/* ---- Type -------------------------------------------------------------- */
h1 { font-size: clamp(42.84px, 3.8vw, 68.04px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 20.16px; color: var(--navy); }
h1 .hl { box-shadow: inset 0 -0.28em 0 rgba(46,125,79,.22); }
h2 { font-size: clamp(37.8px, 3.8vw, 55.44px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 12.6px; color: var(--navy); }
.lede { font-size: 26.46px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 46ch; }
.eyebrow { font: 600 16.38px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--credit); margin: 0 0 17.64px; }
.small-print { font: 500 17.64px/1.6 var(--mono); color: var(--muted); }

/* The first band of a page: a big title, one line under it, air around both. */
.page-head { padding-block: clamp(45.36px, 5vw, 80.64px) clamp(30.24px, 3vw, 50.4px); }
.checks { display: flex; flex-wrap: wrap; gap: 10.08px 35.28px; margin: 25.2px 0 0; padding: 0; list-style: none; font: 600 17.64px/1 var(--mono); color: var(--ink); }
.checks li::before { content: "\2713\00a0"; color: var(--credit); font-weight: 700; }

/* ---- Button and card ----------------------------------------------------- */
.cta { display: inline-flex; align-items: baseline; gap: 12.6px; background: var(--navy); color: var(--paper); text-decoration: none; padding: 20.16px 35.28px; border-radius: 11.34px; font-weight: 700; font-size: 23.94px; cursor: pointer;
  box-shadow: 0 2.52px 5.04px rgba(34,37,43,.10), 0 12.6px 37.8px rgba(26,43,74,.18); transition: transform .15s ease, box-shadow .15s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 3.78px 7.56px rgba(34,37,43,.12), 0 17.64px 45.36px rgba(26,43,74,.24); }
.card { border: 1.89px solid var(--ink); border-radius: 12.6px; background: var(--panel); box-shadow: 10.08px 12.6px 0 rgba(26,43,74,.16); }

/* ---- Bands, footer ------------------------------------------------------- */
.band { border-top: 1.89px solid var(--ink); background: var(--panel); }
.band .wrap { padding-block: clamp(40.32px, 4.5vw, 70.56px); }
footer { background: var(--navy); color: rgba(247,245,240,.75); font: 18.9px/1.6 var(--mono); padding-block: 30.24px; text-align: center; }
footer a { color: var(--paper); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2.52px solid var(--navy); outline-offset: 2px; }

@media (max-width: 1310.4px) { .nav-links { gap: 21.42px; } }
@media (max-width: 1083.6px) {
  .nav .wrap { height: 73.08px; }
  .mark-home img { width: 27.72px; height: 27.72px; }
  .mark-home .wordmark { font-size: 20.16px; }
  .nav-links .nav-dl { padding: 10.08px 17.64px; font-size: 17.64px; }
  body { background-image: repeating-linear-gradient(180deg, transparent 0 44.1px, rgba(34,37,43,.05) 44.1px 45.36px); }
}
@media (max-width: 756px) {
  body { font-size: 21.42px; }
  .nav-links a:not(.nav-dl) { display: none; }
  h1 { font-size: 37.8px; margin-bottom: 10.08px; text-wrap: balance; }
  .lede { font-size: 18.9px; line-height: 1.45; }
  .checks { font-size: 15.12px; gap: 7.56px 17.64px; }
  .cta { font-size: 21.42px; padding: 16.38px 27.72px; }
  .card { box-shadow: 6.3px 7.56px 0 rgba(26,43,74,.16); }
}
@media (prefers-reduced-motion: reduce) { .cta, .nav-links a { transition: none; } }
