/* Layout tools and small, semantic components for the question kit. */
:root {
  color-scheme: light;
  --ink: #17343b;
  --paper: #f3f0e6;
  --white: #fffdf7;
  --yellow: #e3e857;
  --peach: #e9bca7;
  --sage: #ccd6cb;
  --line: #a7b2ab;
  --muted: #3d585d;
  --shadow: 5px 6px 0 #17343b;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 18px/1.6 var(--sans); }
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .14em; }
button { color: var(--ink); }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
::selection { background: var(--yellow); color: var(--ink); }
h1, h2, h3, p, ul, figure, blockquote, dl { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(42px, 4.7vw, 72px); line-height: 1.04; letter-spacing: -.055em; font-weight: 760; }
h2, .chapter__subheading { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.18; letter-spacing: -.035em; font-weight: 730; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; }
ul { padding-left: 1.2em; }
li { padding-left: .3em; }
li + li { margin-top: .7em; }
li::marker { color: var(--ink); }
strong { font-weight: 720; }
input, textarea { max-width: 100%; }
[hidden] { display: none !important; }
.u-container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.u-measure { max-width: 68ch; }
.u-flow > * + * { margin-top: 1.1rem; }
.u-stack > * + * { margin-top: 2rem; }
.u-grid { display: grid; gap: 24px; }
.u-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.u-cluster { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.u-between { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.u-rule { border-top: 1px solid var(--line); }
.u-pad { padding-block: 64px; }
.u-small { font-size: 16px; }
.u-muted { color: var(--muted); }
.u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site__skip { position: absolute; z-index: 100; left: 16px; top: 0; transform: translateY(-150%); padding: 12px 20px; background: var(--yellow); font-size: 16px; min-height: 48px; }
.site__skip:focus { transform: translateY(8px); }
.utility { background: var(--ink); color: var(--white); font-size: 16px; }
.utility__inner { min-height: 48px; gap: 20px; }
.utility__links { display: flex; gap: 20px; }
.utility__link { min-height: 48px; display: inline-flex; align-items: center; }
.utility a:focus-visible { outline-color: var(--yellow); }
.masthead { border-bottom: 1px solid var(--ink); }
.masthead__inner { min-height: 106px; position: relative; }
.masthead__home { display: flex; align-items: center; gap: 16px; min-height: 64px; text-decoration: none; }
.masthead__mark { display: grid; place-items: center; width: 48px; height: 48px; background: var(--yellow); border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: 30px; line-height: 1; font-weight: 780; transform: rotate(-4deg); }
.masthead__name { font-size: 20px; font-weight: 730; line-height: 1.25; letter-spacing: -.03em; }
.masthead__tag { font-size: 16px; display: block; margin-top: 4px; font-weight: 400; letter-spacing: 0; }
.menu { position: relative; }
.menu__toggle { display: flex; align-items: center; gap: 20px; list-style: none; padding: 12px 18px; min-height: 48px; border: 1px solid var(--ink); background: var(--white); font-size: 16px; font-weight: 660; }
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle::after { content: "+"; font-size: 25px; line-height: 1; }
.menu[open] .menu__toggle { background: var(--yellow); }
.menu[open] .menu__toggle::after { content: "−"; }
.menu__panel { position: absolute; z-index: 20; top: calc(100% + 20px); right: 0; width: min(950px, calc(100vw - 80px)); padding: 28px; background: var(--white); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.menu__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.menu__group { min-width: 0; }
.menu__heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 730; line-height: 1.18; letter-spacing: -.035em; }
.menu__list { list-style: none; padding: 8px 0 0; }
.menu__list li { padding: 0; margin: 0; }
.menu__link { display: flex; align-items: center; padding: 10px 0; min-height: 46px; line-height: 1.4; font-size: 16px; text-decoration: none; }
.menu__link:hover, .menu__link[aria-current="page"] { text-decoration: underline; }
.menu__link[aria-current="page"] { font-weight: 720; }
.chapter-label { font-size: 16px; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; line-height: 1.4; }
.chapter-label::before { content: ""; display: block; width: 28px; height: 2px; background: var(--ink); flex: 0 0 auto; }
.hero { padding-block: 65px 72px; }
.hero__grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 65px; align-items: center; }
.hero__intro { max-width: 47ch; margin-top: 27px; font-size: 20px; line-height: 1.65; }
.hero__actions { margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; padding: 13px 21px; border: 1px solid var(--ink); min-height: 52px; font-size: 17px; line-height: 1.45; font-weight: 640; background: var(--yellow); text-decoration: none; }
.button:hover { background: var(--white); text-decoration: none; }
.button--paper { background: var(--white); }
.button__arrow { font-size: 23px; line-height: 1; }
.collage { min-width: 0; }
.collage__art { height: 430px; position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--ink); background: var(--sage); }
.collage__art::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: .45; background-image: radial-gradient(#17343b22 .55px, transparent .8px); background-size: 4px 5px; mix-blend-mode: multiply; }
.collage__disc { position: absolute; width: 310px; height: 310px; left: 0; top: 160px; border-radius: 50%; background: var(--peach); }
.collage__cut { position: absolute; width: 82%; height: 80%; background: var(--ink); right: 9%; top: -15%; transform: rotate(22deg); clip-path: polygon(4% 0, 99% 0, 100% 100%, 0 96%, 2% 90%, 0 84%, 3% 76%, 0 69%, 3% 61%, 1% 55%); }
.collage__paper { position: absolute; width: 75%; padding: 25px; background: var(--white); box-shadow: 4px 7px 0 #17343b33; clip-path: polygon(0 0, 100% 1%, 99% 96%, 96% 97%, 92% 95%, 89% 98%, 85% 96%, 80% 98%, 75% 96%, 70% 98%, 65% 96%, 60% 98%, 55% 96%, 50% 98%, 45% 96%, 40% 98%, 35% 96%, 30% 98%, 25% 96%, 20% 98%, 15% 96%, 10% 98%, 4% 96%, 0 97%); }
.collage__paper--back { height: 277px; left: 18%; top: 81px; transform: rotate(10deg); background: var(--peach); }
.collage__paper--middle { height: 282px; left: 11%; top: 65px; transform: rotate(-10deg); background: var(--yellow); }
.collage__paper--front { height: 306px; left: 13%; top: 63px; transform: rotate(-3deg); z-index: 3; }
.collage__stamp { display: inline-block; font-size: 16px; font-weight: 680; line-height: 1.3; border: 1px solid var(--ink); padding: 5px 10px; transform: rotate(2deg); }
.collage__question { display: block; font-size: 25px; font-weight: 680; letter-spacing: -.025em; line-height: 1.2; margin-top: 23px; padding-top: 13px; border-top: 1px solid var(--line); }
.collage__tape { position: absolute; z-index: 5; background: var(--yellow); width: 90px; height: 33px; left: 36%; top: 47px; transform: rotate(-10deg); opacity: .9; clip-path: polygon(3% 0, 100% 3%, 96% 99%, 0 94%); }
.collage__caption { font-size: 16px; margin-top: 16px; color: var(--muted); }
.opening { display: grid; grid-template-columns: 1fr 310px; gap: 70px; align-items: end; padding-block: 58px 56px; border-bottom: 1px solid var(--ink); }
.opening__title { max-width: 17ch; }
.opening__intro { font-size: 20px; max-width: 62ch; margin-top: 28px; line-height: 1.6; }
.question-note { position: relative; padding: 24px 26px 30px; background: var(--yellow); transform: rotate(2deg); clip-path: polygon(0 2%, 100% 0, 100% 95%, 96% 97%, 91% 95%, 86% 98%, 81% 95%, 76% 98%, 71% 95%, 66% 98%, 61% 95%, 56% 98%, 51% 95%, 46% 98%, 41% 95%, 36% 98%, 31% 95%, 26% 98%, 21% 95%, 16% 98%, 11% 95%, 6% 98%, 0 96%); }
.question-note__label { font-size: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.question-note__text { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; font-weight: 680; }
.chapter { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 65px; align-items: start; padding-block: 58px 64px; }
.chapter__rail { padding-top: 5px; }
.chapter__rail-title { font-size: 16px; letter-spacing: .07em; font-weight: 650; text-transform: uppercase; margin-bottom: 12px; }
.chapter__anchor { font-size: 16px; display: flex; align-items: center; min-height: 48px; padding-block: 8px; line-height: 1.45; text-decoration: none; border-top: 1px solid var(--line); }
.chapter__anchor:hover { text-decoration: underline; }
.chapter__body { min-width: 0; }
.chapter__section { border-bottom: 1px solid var(--line); padding-bottom: 36px; }
.chapter__section + .chapter__section, .chapter__section + .chapter__group, .chapter__group + .chapter__section { margin-top: 36px; }
.chapter__section :is(h2, .chapter__subheading) { max-width: 29ch; margin-bottom: 21px; }
.chapter__prose { max-width: 68ch; }
.chapter__prose p + p { margin-top: 16px; }
.chapter__bullets { max-width: 66ch; margin-top: 23px; }
.card-grid { margin-top: 25px; }
.question-card { position: relative; display: flex; flex-direction: column; padding: 25px 26px 22px; background: var(--white); border: 1px solid var(--ink); text-decoration: none; min-height: 195px; }
.question-card:nth-child(4n+2) { background: var(--sage); }
.question-card:nth-child(4n+3) { background: var(--peach); }
.question-card:nth-child(4n+4) { background: var(--yellow); }
.question-card:hover { box-shadow: 4px 4px 0 var(--ink); }
.question-card__label { font-size: 23px; font-weight: 690; line-height: 1.25; letter-spacing: -.025em; padding-right: 24px; }
.question-card__text { font-size: 17px; line-height: 1.6; margin-top: 15px; }
.question-card__arrow { margin-top: auto; padding-top: 14px; font-size: 23px; line-height: 1; align-self: flex-end; }
.endnotes { padding-top: 12px; }
.endnotes__heading { font-size: 21px; line-height: 1.3; margin-bottom: 12px; }
.endnotes__intro { max-width: 65ch; font-size: 16px; margin-bottom: 15px; color: var(--muted); }
.endnotes__list { padding: 0; list-style: none; }
.endnotes__item { padding: 0; margin: 0; border-top: 1px solid var(--line); }
.endnotes__link, .endnotes__label { display: flex; align-items: center; gap: 14px; min-height: 50px; font-size: 16px; line-height: 1.5; padding: 12px 0; }
.endnotes__link::after { content: "↗"; margin-left: auto; flex: 0 0 auto; }
.endnotes__text { font-size: 16px; padding-bottom: 15px; max-width: 65ch; }
.source-list { display: grid; gap: 10px; margin-top: 20px; }
.source-list__link { font-size: 17px; min-height: 50px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 1px solid var(--ink); background: var(--white); }
.source-list__link::after { content: "↗"; margin-left: auto; }
.writing-lines { margin-top: 23px; height: 76px; background: repeating-linear-gradient(to bottom, transparent, transparent 24px, var(--line) 24px, var(--line) 25px); }
.next-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; border-block: 1px solid var(--ink); background: var(--yellow); padding: 27px 30px; text-decoration: none; margin-top: 34px; }
.next-card:hover { background: var(--white); }
.next-card__label { font-size: 16px; display: block; margin-bottom: 4px; }
.next-card__title { font-size: 24px; font-weight: 680; line-height: 1.3; letter-spacing: -.02em; }
.next-card__arrow { font-size: 32px; line-height: 1; }
.footer { border-top: 1px solid var(--ink); background: var(--ink); color: var(--white); padding-block: 35px 28px; }
.footer__line { max-width: 63ch; font-size: 17px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 25px; margin-top: 18px; }
.footer__link { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; line-height: 1.4; padding-block: 10px; }
.footer a:focus-visible { outline-color: var(--yellow); }
.worksheet { margin-block: 0 36px; border: 1px solid var(--ink); background: var(--white); padding: 28px; }
.worksheet__heading { font-size: 28px; margin-bottom: 12px; }
.worksheet__hint { font-size: 17px; max-width: 60ch; margin-bottom: 24px; }
.worksheet__fieldset { padding: 0; margin: 26px 0 0; border: 0; }
.worksheet__legend { font-size: 21px; font-weight: 690; margin-bottom: 14px; line-height: 1.3; }
.worksheet__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.worksheet__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.worksheet__label { font-size: 17px; font-weight: 630; line-height: 1.5; }
.worksheet__input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 18px; }
.worksheet__input::placeholder { color: var(--muted); opacity: 1; }
.worksheet__input[aria-invalid="true"] { border: 2px solid #7c2e19; background: #fff0ea; }
.worksheet__full { grid-column: 1 / -1; }
.worksheet__notes { width: 100%; min-height: 100px; resize: vertical; padding: 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1.6; }
.worksheet__totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-block: 27px 16px; }
.worksheet__total { background: var(--sage); padding: 20px; border-top: 3px solid var(--ink); }
.worksheet__total dt { font-size: 16px; line-height: 1.5; }
.worksheet__total dd { font-size: 32px; letter-spacing: -.04em; font-weight: 730; margin: 8px 0 0; line-height: 1.2; overflow-wrap: anywhere; }
.worksheet__status { font-size: 17px; margin-bottom: 14px; }
.worksheet__gaps { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 23px; }
.worksheet__gaps-title { font-size: 21px; margin-bottom: 14px; }
.worksheet__gaps-list { font-size: 17px; }
.worksheet__actions { margin-top: 23px; }
.worksheet__error { color: #7c2e19; font-size: 17px; margin-block: 16px; font-weight: 630; }
.missing-card { padding-block: 75px; max-width: 68ch; }
.missing-card__intro { margin-block: 28px; }
@media (min-width: 1100px) {
  .chapter__rail { position: sticky; top: 30px; }
}
@media (max-width: 900px) {
  .u-container { width: calc(100% - 48px); }
  .hero__grid { gap: 34px; grid-template-columns: 1.05fr 1fr; }
  .collage__art { height: 380px; }
  .collage__paper { padding: 18px; }
  .collage__paper--front { height: 285px; }
  .collage__question { font-size: 22px; }
  .opening { grid-template-columns: 1fr 260px; gap: 36px; }
  .chapter { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; }
  .question-card { padding: 21px; }
  .menu__panel { width: calc(100vw - 48px); }
}
@media (max-width: 700px) {
  body { font-size: 18px; }
  .u-container { width: calc(100% - 40px); }
  .utility__inner { align-items: flex-start; flex-direction: column; gap: 0; padding-top: 10px; }
  .utility__links { width: 100%; gap: 23px; }
  .utility__link { min-height: 44px; }
  .masthead__inner { min-height: 98px; gap: 18px; }
  .masthead__home { gap: 12px; }
  .masthead__mark { width: 39px; height: 42px; font-size: 27px; }
  .masthead__name { font-size: 18px; }
  .masthead__tag { font-size: 16px; }
  .menu__toggle { padding: 10px 12px; gap: 14px; min-height: 46px; }
  .menu__panel { right: 0; top: calc(100% + 18px); width: calc(100vw - 40px); padding: 22px; max-height: 70vh; overflow: auto; box-shadow: 3px 4px 0 var(--ink); }
  .menu__columns { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-block: 38px 45px; }
  .hero__grid { grid-template-columns: 1fr; gap: 33px; }
  .chapter-label { margin-bottom: 20px; letter-spacing: .06em; }
  .hero__intro { font-size: 18px; margin-top: 22px; }
  .hero__actions { margin-top: 24px; gap: 14px; }
  .hero__actions .button { width: 100%; }
  .collage__art { height: 360px; }
  .collage__paper--back { top: 60px; height: 254px; }
  .collage__paper--middle { top: 49px; height: 260px; }
  .collage__paper--front { top: 49px; height: 268px; padding: 21px; }
  .collage__question { margin-top: 18px; font-size: 24px; }
  .collage__tape { top: 33px; }
  .collage__disc { width: 250px; height: 250px; }
  .opening { grid-template-columns: 1fr; gap: 28px; padding-block: 35px 39px; }
  .opening__title { max-width: 19ch; }
  .opening__intro { font-size: 18px; margin-top: 23px; }
  .question-note { transform: rotate(1deg); padding: 20px 22px 25px; }
  .question-note__text { font-size: 22px; }
  .question-note__label { padding-bottom: 9px; margin-bottom: 13px; }
  .chapter { display: block; padding-block: 32px 43px; }
  .chapter__rail { margin-bottom: 36px; padding: 17px 20px; border: 1px solid var(--line); }
  .chapter__rail-title { margin-bottom: 7px; }
  .chapter__anchor { padding-block: 10px; min-height: 46px; }
  .chapter__section { padding-bottom: 29px; }
  .chapter__section + .chapter__section, .chapter__section + .chapter__group, .chapter__group + .chapter__section { margin-top: 30px; }
  .u-grid--two { grid-template-columns: 1fr; }
  .question-card { min-height: 180px; padding: 23px; }
  .question-card__label { font-size: 24px; }
  .question-card__text { font-size: 18px; }
  .next-card { padding: 23px; min-height: 110px; gap: 18px; }
  .next-card__title { font-size: 22px; }
  .footer__line { font-size: 17px; }
  .footer__links { gap: 6px 20px; }
  .worksheet { padding: 20px; }
  .worksheet__fields, .worksheet__totals { grid-template-columns: 1fr; }
  .worksheet__full { grid-column: auto; }
  .worksheet__actions { align-items: stretch; }
  .worksheet__actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  @page { margin: 17mm; }
  body { color: #000; background: #fff; font-size: 16px; line-height: 1.45; }
  .site__skip, .utility, .menu, .chapter__rail, .collage, .hero__actions, .next-card, .footer__links, .worksheet__actions, .print-action { display: none !important; }
  .u-container { width: 100%; max-width: none; }
  .masthead { border-bottom: 1px solid #000; }
  .masthead__inner { min-height: 70px; }
  .masthead__mark { background: #fff; box-shadow: none; }
  .opening, .hero { display: block; padding-block: 25px; }
  .opening__title { max-width: 25ch; font-size: 36px; }
  .opening__intro { font-size: 16px; margin-top: 15px; }
  .question-note { display: none; }
  .chapter-label { font-size: 16px; margin-bottom: 14px; }
  .chapter { display: block; padding-block: 25px; }
  .chapter__section { padding-bottom: 20px; }
  .chapter__section + .chapter__section, .chapter__section + .chapter__group, .chapter__group + .chapter__section { margin-top: 20px; }
  .chapter__section :is(h2, .chapter__subheading) { font-size: 23px; margin-bottom: 13px; }
  .chapter__bullets { margin-top: 15px; }
  .chapter__prose p + p { margin-top: 10px; }
  .endnotes, .worksheet__fieldset, .worksheet__total { break-inside: avoid; }
  .footer { background: #fff; color: #000; padding-block: 20px; }
  .footer__line { font-size: 16px; }
  .worksheet__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worksheet__input, .worksheet__notes { background: #fff; }
  .worksheet__totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worksheet { padding: 20px; }
  .question-card { break-inside: avoid; box-shadow: none; min-height: 0; }
  .chapter__section :is(h2, .chapter__subheading) { break-after: avoid; }
}
