:root {
  color-scheme: light;
  --violet: #7C61D4;
  --peach: #EAAE87;
  --canvas: #FFFFFF;
  --ink: #2F281D;
  --positive: #16A34A;
  --caution: #D97706;
  --error: #DC2626;
  --paper-rule: #B7ACCC;
  --quiet-violet: #F4F0FC;
  --quiet-peach: #FFF4EC;
  --serif: Georgia, 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --technical: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
button, input, textarea { font: inherit; }
button, summary, a, label { -webkit-tap-highlight-color: #EAAE8766; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
button:focus-visible, textarea:focus-visible, input:focus-visible { outline-color: var(--violet); }
p { margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
h1 { margin: 12px 0 24px; font-size: 40px; line-height: 1.14; letter-spacing: -1.2px; max-width: 24ch; text-wrap: balance; }
h2 { font-size: 26px; line-height: 1.25; margin: 0 0 15px; letter-spacing: -.3px; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.45; margin: 0; }
.u-measure { max-width: 68ch; }
.skip-link { position: absolute; z-index: 10; left: 18px; top: -100px; background: var(--ink); color: white; padding: 12px 18px; min-height: 48px; }
.skip-link:focus { top: 10px; }
.masthead { max-width: 1344px; margin: 0 auto; padding: 26px 40px; display: grid; grid-template-columns: 1fr auto auto; gap: 38px; align-items: center; border-bottom: 2px solid var(--ink); }
.wordmark { display: flex; gap: 14px; align-items: center; min-height: 52px; font-size: 28px; font-weight: 700; text-decoration: none; }
.wordmark::before { content: ''; width: 22px; height: 30px; background: var(--violet); transform: rotate(-8deg); clip-path: polygon(0 8%, 85% 0, 100% 93%, 11% 100%); }
.wordmark span { font-size: 17px; font-style: italic; font-weight: 400; }
.guide-mark { font-size: 16px; margin: 0; border-left: 7px solid var(--peach); padding-left: 12px; }
.chapters-link { min-height: 48px; display: inline-flex; gap: 16px; align-items: center; font-size: 17px; padding: 8px 4px; }
.editorial-frame { max-width: 1344px; margin: 0 auto; padding: 40px 40px 72px; display: grid; grid-template-columns: 242px minmax(0, 1fr); grid-template-areas: 'index reading'; gap: 70px; }
main { grid-area: reading; min-width: 0; }
.index-side { grid-area: index; min-width: 0; }
.index-side nav { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; padding: 0 14px 12px 0; }
.index-side summary { min-height: 48px; padding: 8px 0; font-size: 23px; font-weight: 700; cursor: pointer; }
.index-group { padding: 21px 0 10px; border-bottom: 1px solid var(--paper-rule); }
.index-group .index-heading { font-size: 17px; font-weight: 700; line-height: 1.45; margin: 0; padding-bottom: 8px; }
.index-group a { display: flex; align-items: center; min-height: 46px; padding: 9px 10px; margin: 2px 0; font-size: 16px; line-height: 1.5; text-decoration: none; border-left: 3px solid transparent; }
.index-group a:hover { background: var(--quiet-peach); border-color: var(--peach); }
.index-group a[aria-current='page'] { background: var(--violet); color: white; border-color: var(--ink); }
.chapter-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 204px; column-gap: 28px; align-items: center; padding: 25px 0 28px; border-bottom: 1px solid var(--paper-rule); }
.head-copy { position: relative; z-index: 1; }
.head-copy p { max-width: 60ch; }
.eyebrow { font-size: 16px; margin-bottom: 0; font-family: var(--technical); line-height: 1.6; }
.chapter-page .chapter-head { display: block; padding-right: 62px; }
.chapter-page h1 { max-width: 25ch; }
.chapter-cut { position: absolute; right: 2px; top: 18px; width: 38px; height: 92px; background: var(--peach); transform: rotate(9deg); clip-path: polygon(0 5%, 96% 0, 92% 95%, 84% 99%, 75% 93%, 64% 100%, 51% 96%, 39% 99%, 26% 94%, 14% 100%, 0 96%); }
.paper-collage { width: 204px; height: 262px; position: relative; isolation: isolate; }
.paper-collage::before { content: ''; position: absolute; inset: 45px -2px 33px 26px; background: var(--peach); border-radius: 50%; }
.paper-collage::after { content: ''; position: absolute; top: 26px; left: -10px; height: 158px; width: 156px; background: var(--violet); transform: rotate(-14deg); clip-path: polygon(0 6%, 97% 0, 100% 93%, 86% 96%, 75% 94%, 63% 100%, 52% 96%, 39% 99%, 27% 95%, 14% 98%, 0 92%); z-index: -1; }
.collage-sheet { position: absolute; top: 48px; left: 35px; width: 138px; height: 166px; background: repeating-linear-gradient(to bottom, white 0, white 26px, #D6CDEE 27px, white 28px); border: 1px solid var(--ink); transform: rotate(8deg); box-shadow: 8px 9px 0 #2F281D12; }
.collage-tab { position: absolute; top: 30px; left: 78px; height: 42px; width: 72px; background: var(--quiet-peach); border: 1px dashed var(--ink); transform: rotate(-8deg); }
.collage-ring { position: absolute; width: 72px; height: 72px; border: 14px solid var(--violet); border-radius: 50%; bottom: 3px; left: 10px; }
.collage-pencil { position: absolute; width: 18px; height: 142px; right: 8px; top: 91px; background: var(--ink); transform: rotate(24deg); clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%); border-left: 5px solid var(--peach); }
.print-bar { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; margin: 24px 0 42px; }
.print-bar p { margin: 0; font-size: 16px; max-width: 36ch; line-height: 1.5; }
button[data-print] { min-height: 48px; border: 1px solid var(--ink); padding: 10px 20px; color: white; background: var(--violet); cursor: pointer; font-size: 17px; line-height: 1.5; box-shadow: 4px 4px 0 var(--peach); }
button[data-print]:hover { box-shadow: 4px 4px 0 var(--ink); }
button[data-print]:disabled { cursor: default; box-shadow: none; }
.reading { padding: 0 0 12px; margin: 0 0 30px; }
.caution { margin: 0 0 38px; padding: 25px 28px; background: var(--quiet-peach); border-left: 7px solid var(--caution); }
.worksheet { margin: 0 0 38px; padding: 28px 30px 30px; background: var(--quiet-peach); border-top: 7px solid var(--peach); border-bottom: 1px solid var(--ink); position: relative; }
.worksheet::before { content: ''; position: absolute; top: -7px; right: 22px; width: 65px; height: 7px; background: var(--violet); }
.worksheet:has(input:checked) { border-top-color: var(--positive); }
.worksheet:has(input:checked)::before { background: var(--positive); }
.tick-line { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 8px 0; margin: 12px 0; cursor: pointer; font-size: 17px; }
.tick-line input { flex: 0 0 40px; width: 40px; height: 40px; min-width: 40px; min-height: 40px; margin: 0; accent-color: var(--positive); }
.tick-line span { line-height: 1.5; }
.field-label { display: block; font-size: 17px; line-height: 1.5; padding: 7px 0; margin: 4px 0 3px; }
textarea { display: block; width: 100%; max-width: 100%; min-height: 128px; border: 1px solid var(--ink); padding: 10px 12px; border-radius: 0; color: var(--ink); font-size: 18px; line-height: 1.65; background: repeating-linear-gradient(to bottom, white 0, white 29px, #DBD4E7 30px, white 31px); resize: vertical; }
.written-copy { display: none; }
.fact { margin-bottom: 16px; }
sup { font-size: 16px; top: 0; vertical-align: baseline; }
.note-jump { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; margin-left: 6px; border-bottom: 2px solid var(--violet); font-family: var(--technical); font-size: 16px; line-height: 1; text-decoration: none; color: var(--ink); background: var(--quiet-violet); }
.note-jump:hover { background: var(--peach); }
.urgent { margin: 34px 0 42px; padding: 25px 28px; border-left: 7px solid var(--error); background: #FFF5F5; }
.urgent h2 { color: var(--error); }
.urgent .fact:last-child { margin-bottom: 0; font-weight: 700; }
.footnotes { border-top: 3px solid var(--violet); margin: 48px 0 34px; padding-top: 25px; }
.footnotes h2 { font-size: 23px; }
.footnotes p { font-size: 16px; line-height: 1.6; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--paper-rule); scroll-margin-top: 25px; }
.source-tag { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; margin-right: 4px; font-family: var(--technical); font-size: 16px; background: var(--peach); }
.footnotes a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; max-width: calc(100% - 44px); overflow-wrap: anywhere; }
.page-turn { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--ink); }
.page-turn a { display: flex; align-items: center; min-height: 48px; font-size: 17px; line-height: 1.45; padding: 10px 8px; gap: 12px; max-width: 49%; }
.page-turn a:last-child { background: var(--quiet-violet); border-bottom: 3px solid var(--violet); }
.site-footer { max-width: 1264px; margin: 0 auto 28px; padding: 28px 0; border-top: 2px solid var(--ink); display: flex; gap: 40px; justify-content: space-between; align-items: center; }
.site-footer p { max-width: 70ch; font-size: 16px; line-height: 1.65; margin: 0; }
.site-footer a { min-height: 48px; padding: 10px 4px; font-size: 16px; line-height: 1.5; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
@media (max-width: 1100px) {
  .masthead { gap: 24px; padding: 20px 30px; }
  .guide-mark { display: none; }
  .masthead { grid-template-columns: 1fr auto; }
  .editorial-frame { padding: 32px 30px 55px; gap: 36px; grid-template-columns: 210px minmax(0,1fr); }
  .chapter-head { grid-template-columns: minmax(0, 1fr); }
  .paper-collage { position: absolute; right: 4px; top: -8px; width: 126px; height: 160px; transform: scale(.6); transform-origin: top right; opacity: .24; z-index: 0; }
  .head-copy { z-index: 1; }
  .site-footer { margin: 0 30px 25px; gap: 30px; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .masthead { margin: 0 20px; padding: 14px 0; gap: 12px; }
  .wordmark { font-size: 25px; gap: 9px; }
  .wordmark span { display: none; }
  .chapters-link { font-size: 16px; gap: 10px; }
  .editorial-frame { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'reading' 'index'; padding: 22px 20px 40px; gap: 38px; }
  h1 { font-size: 36px; letter-spacing: -.8px; max-width: 19ch; }
  h2 { font-size: 25px; }
  .chapter-head, .chapter-page .chapter-head { padding: 18px 0 15px; }
  .chapter-page .chapter-head { padding-right: 0; }
  .chapter-cut { width: 22px; height: 55px; top: -12px; right: 8px; opacity: .65; }
  .chapter-page h1 { max-width: 23ch; }
  .eyebrow { max-width: 30ch; padding-right: 14px; }
  .paper-collage { display: none; }
  .print-bar { gap: 16px; margin: 24px 0 36px; align-items: flex-start; }
  .print-bar p { max-width: 100%; }
  .worksheet { padding: 23px 20px; margin-bottom: 32px; }
  .tick-line, .field-label { font-size: 17px; }
  .reading { margin-bottom: 25px; }
  .urgent, .caution { padding: 23px 20px; }
  .footnotes { margin-top: 36px; }
  .footnotes a { max-width: calc(100% - 40px); }
  .page-turn { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
  .page-turn a { max-width: 100%; }
  .index-side { border-top: 7px solid var(--peach); }
  .index-side nav { position: static; max-height: none; overflow: visible; padding: 20px 0 0; }
  .index-side summary { font-size: 25px; padding: 10px 0; }
  .index-group { padding: 18px 0 8px; }
  .index-group a { min-height: 48px; margin: 3px 0; }
  .site-footer { margin: 0 20px 22px; padding-top: 25px; gap: 16px; }
  .site-footer a { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  @page { margin: 14mm; }
  body { font-size: 18px; line-height: 1.5; background: white; color: #2F281D; }
  .skip-link, .chapters-link, .index-side, .print-bar, .page-turn, .paper-collage, .chapter-cut, .site-footer a { display: none !important; }
  .masthead { display: block; padding: 0 0 14px; border-bottom-width: 1px; margin: 0; }
  .wordmark { font-size: 24px; min-height: auto; }
  .wordmark span { display: inline; font-size: 16px; }
  .wordmark::before { display: none; }
  .guide-mark { display: block; font-size: 16px; border: none; padding: 0; }
  .editorial-frame { display: block; padding: 0; max-width: none; }
  .chapter-head, .chapter-page .chapter-head { display: block; padding: 22px 0 16px; }
  h1 { font-size: 32px; max-width: 30ch; }
  h2 { font-size: 25px; }
  h1, h2, h3, label { break-after: avoid; }
  p { orphans: 3; widows: 3; }
  .u-measure { max-width: none; }
  .reading { margin-bottom: 22px; }
  .worksheet { padding: 18px 20px; margin-bottom: 22px; background: white; border: 1px solid #2F281D; break-inside: avoid; }
  .worksheet::before { display: none; }
  .tick-line { margin: 4px 0; }
  .tick-line input { appearance: none; flex-basis: 22px; width: 22px; height: 22px; min-width: 22px; min-height: 22px; border: 2px solid #2F281D; background: white; }
  .tick-line input:checked { background: #2F281D; box-shadow: inset 0 0 0 4px white; print-color-adjust: exact; }
  .has-print-copy textarea { display: none; }
  .has-print-copy .written-copy { display: block; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 62px; border-bottom: 1px solid #2F281D; padding: 8px 0; font-size: 18px; line-height: 1.5; }
  textarea { background: white; resize: none; }
  .note-jump { min-height: 44px; min-width: 44px; background: white; border-bottom: 1px solid #2F281D; }
  .footnotes { margin-top: 25px; border-top: 1px solid #2F281D; }
  .footnotes p { break-inside: avoid; }
  .source-tag { background: white; border: 1px solid #2F281D; }
  .urgent { background: white; border: 2px solid #2F281D; break-inside: avoid; }
  .caution { background: white; border: 1px solid #2F281D; break-inside: avoid; }
  .urgent h2 { color: #2F281D; }
  .site-footer { display: block; border-top-width: 1px; margin: 26px 0 0; padding: 18px 0; }
  a { color: #2F281D; text-decoration: none; }
}
