:root {
  --page: #faf6e9;
  --paper: #fffdf6;
  --ink: #252723;
  --blue: #203ab3;
  --blue-wash: #e6ebff;
  --blue-dim: #d3dcff;
  --quiet: #55564c;
  --rule: #bdb9a8;
  --display: 'Oswald', 'Arial Narrow', 'Avenir Next Condensed', sans-serif;
  --book: Georgia, 'Times New Roman', serif;
  --measure: 68ch;
  --page-width: 1280px;
  --space: clamp(20px, 3vw, 44px);
  --line: 1.65;
  color-scheme: light;
  font-family: var(--book);
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font-size: 18px; line-height: var(--line); }
[hidden] { display: none !important; }
::selection { color: var(--paper); background: var(--blue); }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
a, button, summary { -webkit-tap-highlight-color: var(--blue-dim); }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { min-height: 48px; border: 2px solid var(--blue); border-radius: 0; padding: .5em 1em; background: var(--blue); color: var(--paper); }
button:hover { background: var(--ink); border-color: var(--ink); }
button:disabled { opacity: .7; cursor: default; }
input { min-width: 0; width: 100%; min-height: 52px; border: 2px solid var(--blue); border-radius: 0; padding: .5em .75em; background: var(--paper); color: var(--ink); }
input:disabled { opacity: .7; }
main:focus { outline: none; }

body > header { max-width: var(--page-width); margin: auto; padding: 30px var(--space) 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 3px solid var(--blue); }
body > header > a { position: absolute; left: 18px; top: 12px; z-index: 5; min-height: 48px; padding: 10px 18px; background: var(--paper); clip-path: inset(50%); white-space: nowrap; }
body > header > a:focus { clip-path: none; }
body > header > div > a { display: inline-flex; min-height: 44px; align-items: center; font-family: var(--display); font-size: 28px; font-weight: 600; text-decoration: none; color: var(--ink); }
body > header p { margin: 0; font-size: 16px; color: var(--quiet); }
body > header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
body > header nav a { display: inline-flex; align-items: center; min-height: 48px; font-size: 17px; }
main { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 40px; max-width: var(--page-width); padding: 56px var(--space) 76px; margin: auto; }
#anchor-rail { align-self: start; position: sticky; top: 24px; border-top: 7px solid var(--blue); padding-top: 12px; }
#anchor-rail p { margin: 0 0 9px; color: var(--quiet); font-size: 16px; }
#anchor-rail a { display: flex; min-height: 48px; align-items: center; padding: 8px 4px; font-size: 17px; }
article { min-width: 0; }
article > header { max-width: 900px; padding: 0 0 24px; }
article > header > p:first-child { color: var(--blue); font-size: 18px; margin: 0 0 18px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(45px, 5.8vw, 78px); max-width: 23ch; margin: 0 0 26px; letter-spacing: -.025em; }
article > header > p:last-child { max-width: 61ch; font-size: 22px; line-height: 1.5; margin: 0; }
h2 { font-size: clamp(31px, 3.1vw, 42px); margin: 44px 0 21px; max-width: 30ch; }
h3 { font-size: clamp(26px, 2.4vw, 32px); margin: 37px 0 16px; max-width: 35ch; }
p, article > ul, article > ol, article > dl { max-width: var(--measure); }
p { margin: 0 0 21px; }
article > p > a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 0; }
ul, ol { padding-left: 1.4em; }
li { padding-left: .15em; margin: 0 0 13px; }
li > a { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 0; }
[data-checks] { list-style: none; margin: 0; padding: 24px 26px; border-left: 7px solid var(--blue); background: var(--paper); }
[data-checks] > li { padding-left: 34px; position: relative; margin: 0 0 18px; }
[data-checks] > li:last-child { margin: 0; }
[data-checks] > li::before { content: ''; position: absolute; left: 0; top: .4em; width: 17px; height: 17px; border: 2px solid var(--blue); }
[data-steps] { list-style: lower-alpha; margin: 0; padding: 26px 26px 12px 58px; border-left: 7px solid var(--blue); background: var(--paper); }
[data-steps] > li { padding-left: 8px; margin-bottom: 20px; }
figure { margin: 38px 0 34px; padding: 30px; max-width: 850px; border: 3px solid var(--blue); background: var(--paper); }
figure ul { list-style: none; padding: 20px 4px 34px; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
figure li { margin: 0; padding: 20px; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; border: 3px solid var(--blue); font-family: var(--display); font-size: clamp(22px, 2.2vw, 29px); line-height: 1.2; color: var(--blue); background: var(--blue-wash); }
figure li:nth-child(2) { background: var(--page); }
figure li:nth-child(3) { border-style: dashed; }
figcaption { border-top: 1px solid var(--rule); padding-top: 16px; font-size: 16px; line-height: 1.55; max-width: 65ch; color: var(--quiet); }
[data-mount='routes'] ul { grid-template-columns: repeat(2, minmax(0, 230px)); justify-content: center; }
[data-mount='bill'] li { border-radius: 50% 50% 12% 12%; }
[data-route] { margin: 28px 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); border-top: 2px solid var(--blue); max-width: 830px; }
[data-route] dt { font-family: var(--display); font-size: 26px; line-height: 1.2; padding: 24px 18px 24px 0; border-bottom: 1px solid var(--rule); }
[data-route] dd { margin: 0; padding: 20px 0 20px 24px; border-bottom: 1px solid var(--rule); }
[data-route] dd p { margin: 0 0 4px; }
[data-route] dd a { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 0; }
[data-note] { max-width: var(--measure); border: 3px solid var(--blue); padding: 8px 28px; margin: 38px 0; }
[data-note] h3 { margin-top: 20px; }
#source-drawer { max-width: var(--measure); border-block: 2px solid var(--blue); margin: 46px 0 0; padding: 0 20px; background: var(--blue-wash); }
summary { min-height: 58px; padding: 14px 0; font-size: 18px; color: var(--blue); }
#source-drawer[open] > p { margin-top: 15px; }
#source-drawer ul { padding: 0; list-style: none; }
#source-drawer li { margin: 0; }
#source-drawer a { display: inline-flex; min-height: 48px; align-items: center; padding: 10px 0; }
#carry-on { margin: 42px 0 0; max-width: var(--measure); display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
#carry-on p { font-size: 16px; color: var(--quiet); margin: 0; }
#carry-on a { display: inline-flex; min-height: 52px; align-items: center; padding: 10px 24px; border: 2px solid var(--blue); text-decoration: none; }
#carry-on a:hover { background: var(--blue-wash); text-decoration: underline; }
body > footer { background: var(--blue-wash); border-top: 3px solid var(--blue); padding: 36px max(var(--space), calc((100vw - 1192px) / 2)); }
footer > p { font-size: 18px; }
#reading-index { border-top: 1px solid var(--blue); max-width: 1192px; }
#reading-index ul { padding: 10px 0 20px; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 28px; }
#reading-index li { padding: 0; margin: 0; }
#reading-index a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; }
footer > nav { display: flex; flex-wrap: wrap; gap: 6px 30px; border-top: 1px solid var(--blue); margin-top: 12px; padding-top: 12px; }
footer > nav a { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 0; font-size: 16px; }
#word-finder { max-width: var(--measure); background: var(--blue-wash); padding: 24px; border: 2px solid var(--blue); }
#word-finder label { display: block; margin-bottom: 9px; }
#word-finder > div { display: flex; gap: 12px; }
#word-result { margin: 14px 0 0; font-size: 16px; }
#word-shelf { margin: 0; max-width: var(--measure); }
#word-shelf > div { padding: 24px 0 8px; border-top: 1px solid var(--rule); }
#word-shelf dt { font-family: var(--display); font-size: 28px; line-height: 1.2; margin-bottom: 12px; color: var(--blue); }
#word-shelf dd { margin: 0; }
body[data-sheet='404'] main { display: block; max-width: 1000px; }
@media (min-width: 1000px) {
  body[data-sheet='home'] article > header { padding-bottom: 30px; }
  body[data-sheet='home'] h1 { font-size: 82px; max-width: 21ch; }
}
@media (max-width: 800px) {
  body > header { align-items: flex-start; flex-direction: column; padding-top: 22px; gap: 14px; }
  body > header nav { gap: 0 22px; }
  main { display: block; padding-top: 26px; }
  #anchor-rail { position: static; display: flex; flex-wrap: wrap; gap: 0 20px; padding: 5px 0; margin-bottom: 34px; border-top-width: 3px; border-bottom: 1px solid var(--rule); }
  #anchor-rail p { width: 100%; margin-top: 7px; margin-bottom: 0; }
  #anchor-rail a { padding: 6px 0; }
  h1 { font-size: clamp(43px, 8vw, 66px); max-width: 23ch; }
  article > header > p:last-child { font-size: 20px; }
  #reading-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  body { font-size: 18px; }
  body > header nav { column-gap: 18px; }
  body > header nav a { font-size: 16px; }
  figure { padding: 20px; }
  figure ul { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 6px 0 24px; }
  figure li { width: 172px; max-width: 100%; font-size: 26px; }
  [data-mount='routes'] ul { grid-template-columns: 1fr; }
  [data-route] { display: block; }
  [data-route] dt { border-bottom: 0; padding: 24px 0 8px; }
  [data-route] dd { padding: 0 0 20px; }
  [data-checks] { padding: 22px 18px; }
  [data-steps] { padding-left: 44px; padding-right: 18px; }
  #reading-index ul { grid-template-columns: 1fr; }
  #word-finder { padding: 18px; }
  #word-finder > div { gap: 8px; }
  #word-finder button { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  :root { --page: white; --paper: white; --ink: black; --blue: black; --blue-wash: white; }
  body { font-size: 12pt; }
  body > header, #anchor-rail, #carry-on, footer, #word-finder { display: none; }
  main { display: block; max-width: none; padding: 0; }
  h1 { font-size: 30pt; }
  h2 { font-size: 23pt; break-after: avoid; }
  h3 { font-size: 18pt; break-after: avoid; }
  article > header > p:last-child { font-size: 14pt; }
  a { color: black; }
  [data-checks], [data-steps] { break-inside: avoid; }
  figure { break-inside: avoid; }
  #source-drawer { display: none; }
}
