@font-face {
  font-family: "Inter";
  src: url("../media/inter-variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --slate: #2f3e46;
  --mint: #84a98c;
  --steel: #cad2c5;
  --hairline: 1px solid var(--slate);
  font-family: "Inter", sans-serif;
  font-synthesis: none;
  color: var(--slate);
  background: var(--steel);
}

/* A readable base. Components below only change their own islands. */
* { box-sizing: border-box; }
html { scroll-padding-block-start: 1.5rem; }
body { margin: 0; font-size: 1.125rem; line-height: 1.65; font-weight: 420; }
main, body > header, body > footer { width: min(100% - 6rem, 76rem); margin-inline: auto; }
main { padding-block: 3.5rem 5rem; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 540; line-height: 1.16; }
h1 { font-size: clamp(2.5rem, 4.5vw, 4.25rem); letter-spacing: -0.055em; max-width: 14ch; }
h2 { font-size: clamp(1.5rem, 2vw, 1.875rem); letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; letter-spacing: -0.025em; }
p { max-width: 68ch; }
p + p { margin-top: 0.9rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.6rem; }
section > h2 { margin-bottom: 1rem; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; color: inherit; }
button { min-height: 48px; border: var(--hairline); background: var(--slate); color: var(--steel); padding: 0.65rem 1rem; cursor: pointer; font-size: 1rem; font-weight: 540; }
button:disabled { cursor: default; background: var(--steel); color: var(--slate); border-style: dashed; }
textarea { display: block; width: 100%; min-height: 14rem; background: var(--steel); border: var(--hairline); padding: 1rem; line-height: 1.7; resize: vertical; }
img { display: block; max-width: 100%; height: auto; color: var(--slate); font-size: 1rem; }
summary { cursor: pointer; font-size: 1rem; min-height: 48px; }
summary::marker { color: var(--slate); }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: var(--slate); color: var(--steel); }

/* Navigation and the page edge. */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 108px; border-bottom: var(--hairline); position: relative; z-index: 5; }
.wordmark { display: inline-flex; align-items: center; gap: 0.8rem; min-height: 52px; text-decoration: none; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.035em; font-weight: 560; }
.wordmark-sub { display: block; font-size: 1rem; font-weight: 420; letter-spacing: 0; }
.route-symbol { width: 28px; height: 35px; border: var(--hairline); border-left: 9px solid var(--mint); display: block; flex-shrink: 0; }
.field-menu > summary { display: flex; align-items: center; gap: 1.75rem; padding: 0.6rem 0; list-style: none; font-weight: 540; }
.field-menu > summary::-webkit-details-marker { display: none; }
.disclosure-symbol { display: grid; place-items: center; width: 28px; height: 28px; font-size: 1.5rem; border: var(--hairline); line-height: 1; }
.field-menu[open] .disclosure-symbol { transform: rotate(45deg); }
.menu-panel { position: absolute; top: calc(100% - 1px); right: 0; width: min(30rem, 100%); padding: 1.15rem 1.5rem; border: var(--hairline); background: var(--steel); box-shadow: 0 12px 0 var(--mint); }
.menu-chapter + .menu-chapter { border-top: var(--hairline); }
.menu-chapter > summary { display: flex; align-items: center; padding-block: 0.9rem; }
.menu-chapter > summary::before { content: "+"; width: 1.5rem; flex-shrink: 0; }
.menu-chapter[open] > summary::before { content: "−"; }
.menu-chapter ul { padding: 0 0 0.6rem 1.5rem; list-style: none; }
.menu-chapter li + li { margin: 0; }
.menu-chapter a { display: flex; align-items: center; min-height: 48px; padding: 0.5rem 0.7rem; text-decoration: none; border-left: 3px solid var(--steel); font-size: 1rem; }
.menu-chapter a:hover, .menu-chapter a[aria-current="page"] { border-left-color: var(--slate); text-decoration: underline; }
.skip-link { position: fixed; top: 0.5rem; left: 1rem; z-index: 20; background: var(--slate); color: var(--steel); min-height: 48px; padding: 0.75rem 1rem; transform: translateY(-180%); font-size: 1rem; }
.skip-link:focus { transform: translateY(0); outline-color: var(--mint); }
.site-footer { border-top: var(--hairline); padding-block: 2rem 2.5rem; font-size: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; margin-block: 0.9rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 48px; }
.domain-name { font-size: 1rem; overflow-wrap: anywhere; }

/* Chapter layouts, cards and endnotes. */
.eyebrow { margin-bottom: 1.4rem; font-size: 1rem; font-weight: 570; letter-spacing: 0.045em; }
.eyebrow::before { content: ""; display: inline-block; width: 1.5rem; height: 0.55rem; background: var(--mint); margin-right: 0.7rem; }
.chapter-deck { margin-top: 1.6rem; max-width: 47ch; }
.opening-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; margin-bottom: 4rem; }
.chapter-opening { min-width: 0; }
.primary-link, .reading-link, .back-link { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: fit-content; max-width: 100%; min-height: 48px; font-size: 1rem; line-height: 1.5; }
.primary-link { background: var(--slate); color: var(--steel); padding: 0.85rem 1.3rem; margin-top: 1.7rem; font-weight: 570; text-decoration: none; }
.primary-link:focus-visible { outline-offset: 4px; }
.reading-link { padding: 0.75rem 0; border-bottom: var(--hairline); margin-top: 0.6rem; }
.back-link { margin-top: 1.5rem; padding-block: 0.6rem; }
.still-life { min-width: 0; border: var(--hairline); background: var(--mint); }
.still-life img { width: 100%; object-fit: cover; aspect-ratio: 5 / 4; background: var(--steel); }
.still-life figcaption { padding: 0.95rem 1.15rem; font-size: 1rem; background: var(--steel); border-top: var(--hairline); }
.home-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.short-answer { border-top: var(--hairline); padding-top: 1.5rem; padding-bottom: 1.85rem; }
.field-prompt { margin-top: 1.5rem; padding: 1.1rem 1.3rem; border-left: 5px solid var(--mint); border-block: var(--hairline); }
.field-prompt h3 { margin-bottom: 0.7rem; }
.field-prompt p { font-size: 1.125rem; }
.search-routes { margin-top: 2.5rem; }
.route-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--hairline); border-left: var(--hairline); margin-top: 1.5rem; }
.route-card { display: block; position: relative; min-height: 190px; padding: 1.6rem 4rem 1.6rem 1.6rem; text-decoration: none; border-right: var(--hairline); border-bottom: var(--hairline); }
.route-card h3 { margin-bottom: 0.75rem; }
.route-card p { font-size: 1.125rem; max-width: 38ch; }
.route-card:hover h3 { text-decoration: underline; text-underline-offset: 0.25em; }
.route-arrow { position: absolute; top: 1.4rem; right: 1.3rem; display: grid; place-items: center; width: 32px; height: 32px; border: var(--hairline); font-size: 1.4rem; }
.chapter { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5rem; }
.chapter-orientation { min-width: 0; }
.chapter-reading { min-width: 0; }
.chapter-reading > .short-answer:first-child { padding-top: 0; border-top: 0; }
.chapter-reading > .reading-link { margin-bottom: 2rem; }
.chapter-compass { border-top: var(--hairline); margin-top: 3rem; padding-top: 1.2rem; max-width: 32ch; font-size: 1rem; }
.chapter-compass p:first-child { font-weight: 570; }
.chapter-orientation > .still-life { margin-top: 3rem; }
.chapter-orientation > .still-life img { aspect-ratio: 3 / 2; }
.chapter-notes { margin-top: 3rem; padding-top: 1.5rem; border-top: var(--hairline); }
.chapter-notes h2 { font-size: 1.25rem; font-weight: 570; }
.chapter-notes ul { list-style: none; padding: 0; }
.chapter-notes li { border-top: 1px solid var(--mint); padding-bottom: 0.75rem; }
.chapter-notes li + li { margin-top: 0.25rem; }
.chapter-notes a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding-block: 0.65rem; font-size: 1rem; font-weight: 540; }
.chapter-notes p { font-size: 1rem; line-height: 1.6; }
.field-home > .chapter-notes ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.missing-page { padding-block: 5rem 7rem; max-width: 76rem; }
.missing-page h1 { max-width: 18ch; margin-bottom: 1.5rem; }

/* A question worksheet, with optional local copy and print actions. */
.question-checklist { padding-bottom: 2rem; }
.question-checklist > p { margin-bottom: 1.3rem; }
.question-checklist fieldset { border: 0; padding: 0; min-width: 0; }
.question-checklist legend { padding: 0 0 0.75rem; font-size: 1rem; font-weight: 570; }
.question-checklist label { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 0.8rem; border-top: var(--hairline); cursor: pointer; font-size: 1.125rem; min-height: 60px; }
.question-checklist label:last-child { border-bottom: var(--hairline); }
.question-checklist input { width: 44px; height: 44px; margin: 0; flex-shrink: 0; accent-color: var(--slate); cursor: pointer; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block: 1.3rem; }
.selection-status { font-size: 1rem; min-height: 3.2em; }
.chosen-questions { margin-block: 1.5rem; }
.chosen-questions h3 { margin-bottom: 0.8rem; }
.common-questions > h2 { padding-block: 1.5rem 0.5rem; border-top: var(--hairline); }
.common-questions .short-answer { border-top-color: var(--mint); }
.common-questions .short-answer h2 { font-size: 1.35rem; }

@media (max-width: 900px) {
  main, body > header, body > footer { width: min(100% - 3rem, 76rem); }
  .opening-grid, .home-answers { gap: 2.5rem; }
  .chapter { gap: 2.5rem; }
  h1 { font-size: clamp(2.5rem, 5.5vw, 3.5rem); }
}

@media (max-width: 680px) {
  body { font-size: 1.0625rem; }
  main, body > header, body > footer { width: calc(100% - 2.5rem); }
  main { padding-block: 2.25rem 3.5rem; }
  .site-header { min-height: 96px; gap: 0.7rem; }
  .wordmark { gap: 0.55rem; font-size: 1.125rem; }
  .wordmark-sub { font-size: 1rem; }
  .route-symbol { width: 20px; height: 30px; border-left-width: 6px; }
  .field-menu > summary { gap: 0.6rem; padding: 0.6rem 0; }
  .menu-panel { width: 100%; padding: 1rem; }
  h1 { font-size: 2.75rem; max-width: 14ch; }
  .eyebrow { margin-bottom: 1.15rem; }
  .chapter-deck { margin-top: 1.25rem; }
  .opening-grid, .home-answers, .chapter { display: block; }
  .opening-grid { margin-bottom: 2.5rem; }
  .opening-grid > .still-life { margin-top: 2.25rem; }
  .opening-grid > .still-life img { aspect-ratio: 5 / 3; }
  .chapter-reading { margin-top: 2.5rem; }
  .chapter-compass { display: none; }
  .chapter-orientation > .still-life { margin-top: 2rem; }
  .route-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 170px; padding: 1.3rem 4rem 1.3rem 1.3rem; }
  .route-card p { font-size: 1.0625rem; }
  .field-home > .chapter-notes ul { display: block; }
  .site-footer nav { display: block; }
  .site-footer a { display: flex; padding-block: 0.45rem; }
  .field-prompt { padding-inline: 1rem; }
  .field-prompt p, .question-checklist label { font-size: 1.0625rem; }
  .checklist-actions { flex-direction: column; }
  .checklist-actions button { width: 100%; }
}

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

@media print {
  body { background: var(--steel); color: var(--slate); font-size: 16px; }
  .site-header, .site-footer, .skip-link, .back-link { display: none; }
  main { width: 100%; padding: 0; }
  .chapter, .opening-grid { display: block; }
  .chapter-compass, .still-life { display: none; }
  a { text-decoration: none; }
  .short-answer, .chapter-notes { break-inside: avoid; }
  .printing-questions .chapter-orientation,
  .printing-questions .common-questions,
  .printing-questions .chapter-notes,
  .printing-questions .question-checklist > p,
  .printing-questions .question-checklist fieldset,
  .printing-questions .checklist-actions,
  .printing-questions .selection-status { display: none; }
  .printing-questions .chapter-reading { margin: 0; }
  .printing-questions textarea { border: 0; min-height: 30rem; resize: none; padding-inline: 0; }
}
