@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans.6219bc4bfdfc.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #191e25;
  --ink: #202a31;
  --muted: #4a555e;
  --paper: #f5f7f3;
  --white: #ffffff;
  --line: #cbd2cb;
  --sage: #dbe8d5;
  --blue: #dbe7f7;
  --apricot: #f2dbc7;
  --focus: #733e05;
  font-family: "Instrument Sans", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--ground); color: var(--ink); font-size: 18px; line-height: 1.62; }
button, input, select, textarea { font: inherit; }
button { min-height: 48px; padding: .7rem 1.15rem; border: 1px solid #283a48; border-radius: 14px; background: #233847; color: var(--white); font-weight: 600; cursor: pointer; }
button:disabled { background: #e5e9e4; border-color: #758079; color: #4a555e; cursor: default; }
a { color: #183f62; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a, button, summary, input { -webkit-tap-highlight-color: #c1d4e2; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
h1 { margin: .7rem 0 1.4rem; max-width: 19ch; font-size: clamp(38px, 4.7vw, 64px); font-weight: 600; letter-spacing: -.045em; }
h2 { margin: 0 0 1.25rem; font-size: clamp(25px, 2.8vw, 32px); font-weight: 600; letter-spacing: -.025em; }
h3 { margin: 0 0 .7rem; font-size: 20px; font-weight: 600; }
ul, ol { padding-inline-start: 1.5rem; }
li { padding-inline-start: .3rem; margin-bottom: 1.2rem; }
li p { margin-bottom: 0; }
strong { font-weight: 650; }
img { display: block; width: 100%; height: auto; font-size: 16px; line-height: 1.5; color: #394750; }
figure { margin: 0; }
figcaption { font-size: 16px; line-height: 1.5; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 2.5rem; }
legend { width: 100%; margin-bottom: .7rem; font-size: 24px; line-height: 1.25; font-weight: 600; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 1rem; top: .6rem; z-index: 100; padding: .6rem 1rem; min-height: 48px; background: var(--paper); transform: translateY(-170%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1200px; margin: auto; padding: 1.1rem 2rem; border-bottom: 1px solid #444d59; }
.site-name { display: grid; min-height: 48px; align-content: center; color: #f5f7f3; text-decoration: none; font-size: 18px; line-height: 1.35; font-weight: 600; }
.site-name span { color: #c3cbd4; font-size: 16px; font-weight: 400; }
.site-header a:focus-visible, .site-header summary:focus-visible, .site-footer a:focus-visible { outline-color: #9fd5ff; }
.topic-navigation { display: flex; gap: .55rem; align-items: flex-start; }
.topic-navigation details { position: relative; flex: 1; min-width: 0; }
.topic-navigation summary { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 48px; padding: .6rem 1rem; font-size: 16px; line-height: 1.3; background: #29313a; border: 1px solid #596471; color: #f5f7f3; border-radius: 16px; white-space: nowrap; }
.topic-navigation summary::after { content: "+"; font-size: 22px; line-height: 1; font-weight: 400; }
.topic-navigation details[open] summary::after { content: "−"; }
.topic-links { position: absolute; right: 0; top: calc(100% + .6rem); z-index: 25; width: 280px; max-width: calc(100vw - 2rem); background: var(--paper); padding: .5rem; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 15px 38px #0c0f1440; }
.topic-links a { display: flex; align-items: center; min-height: 48px; padding: .7rem .85rem; font-size: 16px; line-height: 1.35; border-radius: 11px; text-decoration: none; color: var(--ink); }
.topic-links a:hover, .topic-links a[aria-current="page"] { background: #dce5db; }
.topic-links a[aria-current="page"] { font-weight: 650; }
.page-intro { color: var(--paper); max-width: 1100px; margin: 0 auto; padding: 3.5rem 3rem 3rem; }
.eyebrow { display: inline-flex; align-items: center; min-height: 36px; padding: .25rem .8rem; border: 1px solid #6a7887; border-radius: 100px; color: #e1e7df; font-size: 16px; line-height: 1.4; margin-bottom: .15rem; }
.lead { max-width: 60ch; font-size: 21px; line-height: 1.5; color: #eef2ec; }
.intro-note { max-width: 62ch; color: #cbd2db; }
.reading-sheet { max-width: 1100px; margin: 0 auto; padding: 3rem; border-radius: 32px; background: var(--paper); }
.reading-sheet > section { max-width: 70ch; margin: 0 auto 3rem; }
.reading-sheet > section:last-child { margin-bottom: 0; }
.reading-sheet > .conversation, .reading-sheet > .evidence-card { max-width: 70ch; margin-inline: auto; }
.term-note { background: #e9eee6; border: 1px solid #c8d3c2; border-radius: 18px; padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.term-note dt { font-size: 20px; line-height: 1.3; font-weight: 650; margin-bottom: .65rem; }
.term-note dd { margin: 0; }
.term-note p { margin: 0; font-size: 18px; }
.conversation { background: var(--blue); border: 1px solid #b5c8de; border-radius: 22px 22px 22px 5px; padding: 1.35rem 1.5rem; margin: 1.7rem 0; }
.conversation h2, .conversation h3 { font-size: 22px; color: #213f5b; margin: 0 0 .75rem; }
.conversation p { margin: 0; }
.evidence-card { border: 1px solid #c8d0c8; border-radius: 18px; background: var(--white); padding: 1.4rem 1.5rem; margin: 1.7rem 0; }
.evidence-card .evidence-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .8rem; margin-bottom: .7rem; }
.evidence-heading span { padding: .2rem .65rem; background: #e7ece3; border-radius: 100px; font-size: 16px; line-height: 1.4; color: #384b37; }
.evidence-card h3 { font-size: 20px; margin: 0; }
.evidence-card p { margin-bottom: .5rem; }
.source-links { display: flex; flex-direction: column; gap: .2rem; }
.source-links a { display: inline-flex; align-items: center; min-height: 46px; width: fit-content; max-width: 100%; font-size: 16px; line-height: 1.4; padding: .4rem 0; overflow-wrap: anywhere; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.topic-card { min-width: 0; display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem; min-height: 188px; color: #20332b; border: 1px solid #a4b89e; border-radius: 22px; background: var(--sage); text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.topic-card:nth-child(2) { background: var(--blue); border-color: #a2b8d1; color: #1e3852; }
.topic-card:nth-child(3) { background: var(--apricot); border-color: #cdb196; color: #4b301c; }
.topic-card strong { font-size: 23px; line-height: 1.2; letter-spacing: -.02em; }
.topic-card span { font-size: 17px; line-height: 1.45; }
.topic-card .card-action { margin-top: auto; display: flex; justify-content: flex-end; font-size: 25px; line-height: 1; }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #192c2820; }
.field-illustration { max-width: 70ch; margin: 2.5rem auto .5rem; padding: 1.2rem; border: 1px solid #c8d2c5; background: #e9eee6; border-radius: 24px; }
.field-illustration img { aspect-ratio: var(--illustration-ratio, 10 / 7); object-fit: contain; padding: .5rem; background: #f3f5ee; border-radius: 15px; }
.field-illustration.questions img { aspect-ratio: 2 / 1; }
.field-illustration figcaption { margin: .8rem .3rem 0; }
.next-note { max-width: 1100px; margin: 1rem auto; }
.next-note a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: .9rem 2rem; border-radius: 20px; background: #dbe8d5; color: #223b2a; text-decoration: none; font-size: 18px; line-height: 1.4; }
.next-note a::after { content: "→"; font-size: 26px; }
.site-footer { color: #d6ded3; max-width: 1100px; margin: 2rem auto 0; padding: 1.5rem 2rem 2.8rem; font-size: 16px; line-height: 1.55; }
.site-footer p { max-width: 65ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; padding: .5rem 0; font-size: 16px; line-height: 1.35; color: #d6e7f6; }
.home-page .page-intro { padding-top: 4rem; }
.home-page h1 { font-size: clamp(44px, 6.4vw, 84px); max-width: 17ch; }
.home-page .reading-sheet > section { max-width: none; }
.home-page .opening-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.opening-terms > h2 { grid-column: 1 / -1; }
.opening-terms .term-note { margin: 0; }
.home-page .reading-sheet > section:not(.opening-terms):not(.route-section) { max-width: 70ch; }
.checklist-controls { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.checklist-status { color: #42544c; font-size: 16px; min-height: 1.5em; margin-bottom: 2rem; }
.checklist-item { display: flex; align-items: flex-start; gap: 1rem; min-height: 64px; padding: .9rem 0; border-bottom: 1px solid #c7d1c7; cursor: pointer; font-size: 18px; line-height: 1.45; }
.checklist-item input { width: 44px; height: 44px; flex: 0 0 44px; margin: 0; accent-color: #26533c; cursor: pointer; }
.checklist-item span { padding-top: .55rem; min-width: 0; }

@media (max-width: 850px) {
  .site-header { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1.25rem; }
  .topic-navigation details { flex: 1; }
  .topic-navigation summary { white-space: normal; min-height: 52px; padding: .65rem .75rem; }
  .topic-links { left: 0; right: auto; width: 280px; }
  .topic-navigation details:last-child .topic-links { left: auto; right: 0; }
  .topic-grid, .home-page .opening-terms { grid-template-columns: 1fr; }
  .topic-card { min-height: 148px; }
  .reading-sheet { padding: 2rem; margin-inline: 1rem; }
  .page-intro { padding: 2.5rem 2rem; }
  .next-note { margin-inline: 1rem; }
}

@media (max-width: 480px) {
  body { font-size: 18px; }
  .topic-navigation { flex-direction: column; gap: .45rem; }
  .topic-navigation details { width: 100%; }
  .topic-navigation summary { min-height: 48px; padding: .6rem .9rem; }
  .topic-links, .topic-navigation details:last-child .topic-links { position: static; width: 100%; max-width: none; margin-top: .35rem; box-shadow: none; }
  .page-intro, .home-page .page-intro { padding: 2.2rem 1.5rem 1.8rem; }
  h1 { font-size: 40px; }
  .home-page h1 { font-size: 50px; }
  .lead { font-size: 20px; }
  .reading-sheet { margin-inline: .65rem; padding: 1.75rem 1.25rem; border-radius: 25px; }
  .reading-sheet > section { margin-bottom: 2.3rem; }
  .conversation, .evidence-card { padding: 1.1rem 1.15rem; }
  .evidence-heading { gap: .6rem; }
  .topic-card { padding: 1.2rem; }
  .term-note { padding: 1.1rem; }
  .next-note { margin-inline: .65rem; }
  .next-note a { padding: 1rem 1.25rem; }
  .site-footer { padding-inline: 1.5rem; }
  .field-illustration { padding: .8rem; }
  .checklist-controls { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .topic-card:hover { transform: none; }
}

@media print {
  body { background: white; color: #161e23; font-size: 16px; }
  .site-header, .skip-link, .next-note, .footer-links, .checklist-controls, .field-illustration { display: none; }
  .page-intro { color: #161e23; padding: 0 0 1.5rem; }
  .lead, .eyebrow, .intro-note { color: #161e23; }
  h1, .home-page h1 { font-size: 32px; max-width: none; }
  .reading-sheet { margin: 0; padding: 0; max-width: none; border-radius: 0; background: white; }
  .reading-sheet > section { max-width: none; }
  .evidence-card, .conversation, .term-note { break-inside: avoid; background: white; }
  .site-footer { color: #161e23; padding: 1rem 0; }
  .checklist-item { break-inside: avoid; }
  .printing-selection .checklist-item:has(input:not(:checked)) { display: none; }
}
