:root {
  --paper: #F3EAD3;
  --ink: #3E2F26;
  --red: #A83E36;
  --apricot: #E8B67C;
  --green: #5B8A72;
  --tan: #D4A574;
  --unit: 8px;
  --corner: 8px;
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
}
header, main, footer { width: min(100%, 1280px); margin-inline: auto; padding-inline: 1.5rem; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -.045em; margin: 16px 0 24px; max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -.025em; margin: 0 0 24px; max-width: 34ch; }
h3 { font-size: 1.25rem; }
p, li, dt, dd, small, button, input, select, label, a { font-size: 1rem; }
p { margin: 0 0 16px; max-width: 72ch; }
p:last-child { margin-bottom: 0; }
ul { margin: 16px 0; padding-left: 24px; }
li { margin: 0 0 16px; max-width: 72ch; }
li:last-child { margin-bottom: 0; }
a { color: var(--red); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { background-color: var(--apricot); color: var(--ink); }
button, select { font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--corner); min-height: 48px; }
button { cursor: pointer; padding: 8px 24px; }
button:hover { color: var(--paper); background: var(--red); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
section, h2 { scroll-margin-top: 24px; }
section:focus, h2:focus { outline-offset: 8px; }
.measure { max-width: 72ch; }
.stack > * + * { margin-top: 24px; }
.u-rule { border-top: 2px solid var(--ink); }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; min-height: 48px; display: flex; align-items: center; padding: 8px 24px; background: var(--paper); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.masthead { display: grid; grid-template-columns: 1fr 232px 1fr; gap: 24px; align-items: center; padding-block: 24px; border-bottom: 2px solid var(--ink); }
.header-group { display: flex; flex-wrap: wrap; gap: 0 16px; align-content: center; }
.header-group:last-child { justify-content: flex-end; }
.header-group a { display: inline-flex; min-height: 48px; align-items: center; font-weight: 600; padding: 8px 0; text-decoration-thickness: 1px; }
.header-group a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--red); color: var(--ink); }
.brand { min-height: 96px; display: flex; flex-direction: column; justify-content: center; text-align: center; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: var(--corner); padding: 8px 16px; }
.brand strong { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.03em; }
.brand span { font-size: 1rem; }
.poster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 48px; align-items: stretch; padding-block: 48px; }
.poster-copy { align-self: center; min-width: 0; }
.eyebrow, .reading-label, .footnote-letter { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 1rem; }
.eyebrow { display: block; border-left: 8px solid var(--red); padding-left: 16px; }
.poster-copy .deck { max-width: 54ch; }
.poster-copy .deck + .deck { margin-top: 16px; }
.lead-link { display: inline-flex; min-height: 48px; align-items: center; gap: 16px; padding: 8px 24px; margin-top: 24px; color: var(--paper); background: var(--red); border: 2px solid var(--red); border-radius: var(--corner); font-weight: 700; text-decoration: none; }
.lead-link:hover { border-color: var(--ink); }
.geometry { position: relative; overflow: hidden; min-height: 344px; background: var(--apricot); border: 2px solid var(--ink); border-radius: var(--corner); }
.geometry::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent 0 7px, #3e2f2609 7px 8px); pointer-events: none; }
.sun { position: absolute; width: 54%; aspect-ratio: 1; border-radius: 50%; top: 8%; right: 10%; background: var(--paper); }
.sun::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; background: var(--red); }
.range { position: absolute; left: 0; width: 100%; height: 65%; bottom: -8%; background: var(--red); clip-path: polygon(0 55%, 26% 36%, 48% 61%, 72% 30%, 100% 56%, 100% 100%, 0 100%); }
.range-back { height: 80%; bottom: 10%; background: var(--green); clip-path: polygon(0 52%, 40% 15%, 61% 40%, 82% 8%, 100% 29%, 100% 100%, 0 100%); }
.route-line { position: absolute; width: 110%; height: 16%; left: -8%; bottom: 16%; border-top: 8px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-19deg); }
.geometry-key { position: absolute; top: 24px; left: 24px; width: 24px; height: 80px; border: 2px solid var(--ink); background: var(--tan); }
.reading-grid { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 48px; padding-block: 32px 64px; }
.reading-grid > * { min-width: 0; }
.jump-menu { align-self: start; position: sticky; top: 24px; border-top: 8px solid var(--red); border-bottom: 2px solid var(--ink); padding-block: 24px; }
.jump-menu p { font-weight: 700; }
.jump-menu ul { list-style: none; padding: 0; margin: 0; }
.jump-menu li { margin: 0; }
.jump-menu a { display: flex; min-height: 48px; align-items: center; padding-block: 8px; color: var(--ink); }
.jump-controls { display: grid; gap: 16px; }
.jump-controls label { font-weight: 600; }
.jump-controls select { width: 100%; min-width: 0; padding: 8px; }
.jump-controls button { width: 100%; }
.chapter { padding: 32px 0 32px 24px; border-left: 2px solid var(--tan); }
.chapter + .chapter { margin-top: 32px; }
.chapter.brief { padding: 32px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--corner); box-shadow: 8px 8px 0 var(--tan); }
.reading-label { display: block; margin-bottom: 16px; color: var(--red); }
.note-call { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--red); border-radius: var(--corner); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; margin-left: 8px; vertical-align: middle; text-decoration: none; }
.route-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.route-list li { margin: 0; min-width: 0; }
.route-list a { display: flex; flex-direction: column; min-height: 144px; height: 100%; padding: 24px; border: 2px solid var(--ink); border-radius: var(--corner); color: var(--ink); text-decoration: none; gap: 8px; }
.route-list strong { font-size: 1.25rem; line-height: 1.3; }
.route-list span { font-size: 1rem; }
.carry-on { margin-block: 48px; padding-block: 24px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.carry-on p { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.carry-on a { display: inline-flex; min-height: 48px; align-items: center; gap: 16px; padding: 8px 16px 8px 0; font-weight: 700; }
.footnotes { padding-top: 16px; }
.footnotes > p { margin-bottom: 24px; }
.footnotes ul { list-style: none; padding: 0; margin: 0; }
.footnotes li { margin: 0 0 24px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.footnote-letter { min-height: 48px; display: flex; align-items: center; justify-content: center; background: var(--tan); border-radius: var(--corner); }
.footnotes a { display: flex; min-height: 48px; padding-block: 8px; align-items: center; }
.footnotes .return-note { width: fit-content; color: var(--ink); }
footer { padding-block: 32px 48px; border-top: 2px solid var(--ink); }
footer > p { font-size: 1rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 24px; }
footer a { display: inline-flex; min-height: 48px; align-items: center; color: var(--ink); padding-block: 8px; }
[data-page="home"] .geometry { min-height: 424px; }
[data-page="red-flags"] #urgent-help { border: 3px solid var(--red); }
[data-page="red-flags"] #urgent-help p:nth-of-type(3) { font-weight: 700; }
@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .brand { grid-column: 1 / -1; grid-row: 1; min-height: 80px; }
  .header-group { gap: 0 16px; }
  .header-group:last-child { justify-content: flex-start; }
  .poster { gap: 24px; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); }
  .reading-grid { grid-template-columns: 184px minmax(0, 1fr); gap: 24px; }
  .route-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .masthead { padding-block: 16px; }
  .header-group { display: grid; grid-template-columns: 1fr; gap: 0; }
  .header-group a { min-height: 44px; padding-block: 4px; }
  .poster { grid-template-columns: 1fr; padding-block: 32px; gap: 32px; }
  .poster h1 { max-width: 18ch; }
  .geometry, [data-page="home"] .geometry { min-height: 176px; }
  .sun { width: 32%; top: -8%; }
  .geometry-key { top: 16px; left: 16px; height: 48px; width: 16px; }
  .reading-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 0 48px; }
  .jump-menu { position: static; padding-block: 16px; }
  .jump-menu ul { display: grid; grid-template-columns: 1fr; }
  .jump-controls { grid-template-columns: minmax(0, 1fr) 64px; gap: 8px; }
  .jump-controls label { grid-column: 1 / -1; }
  .jump-controls button { padding-inline: 8px; }
  .chapter { padding: 24px 0 24px 16px; }
  .chapter.brief { padding: 24px; box-shadow: 4px 4px 0 var(--tan); }
  .chapter + .chapter { margin-top: 32px; }
  .route-list a { padding: 16px; min-height: 120px; }
  .footnotes li { gap: 8px; }
  footer nav { display: grid; grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  body { background: white; color: black; }
  .masthead, .geometry, .jump-menu, .carry-on, footer nav, .skip-link, .note-call { display: none; }
  main, footer { width: 100%; padding-inline: 0; }
  .poster, .reading-grid { display: block; padding-block: 16px; }
  h1 { font-size: 2.5rem; max-width: none; }
  .chapter, .chapter.brief { box-shadow: none; border: 0; padding: 16px 0; background: transparent; }
  .chapter, .footnotes li { break-inside: avoid; }
  a { color: black; }
}

/* Page geometry */
.sun::after { border-radius: 0; } .route-line { transform: rotate(17deg); bottom: 24%; }
