:root {
  color-scheme: light;
  --ink: #22231f;
  --soft-ink: #53564d;
  --mustard: #e7b82c;
  --pale-mark: #f8e7ac;
  --link-ink: #6b4a00;
  --rule: #c6c8bf;
  --page: #fff;
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link-ink); text-underline-offset: .22em; text-decoration-thickness: .075em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
button, input { font: inherit; }
button, a, summary, label { -webkit-tap-highlight-color: #f8e7ac; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.25em; }
h1, h2, h3 { font-family: inherit; font-weight: 700; line-height: 1.17; text-wrap: balance; }
h1 { margin: 0 0 .48em; max-width: 23ch; font-size: clamp(2.1rem, 4.5vw, 3.65rem); letter-spacing: -.035em; }
h2 { font-size: 1.5rem; margin: 2.2em 0 .8em; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; margin: 0 0 .65em; }
ul { padding-left: 1.25em; }
li { margin: .65em 0; }
main:focus { outline: none; }
.notebook-masthead, .question-tabs, main, .notebook-footer {
  width: min(calc(100% - 36px), 1192px);
  margin-inline: auto;
}
.skip-to-reading {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 18px;
  background: var(--mustard);
  color: var(--ink);
  padding: 12px 18px;
  transform: translateY(-180%);
}
.skip-to-reading:focus { transform: translateY(0); }
.notebook-masthead { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px 23px; }
.notebook-name { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.2; min-height: 48px; }
.notebook-name-sub { display: block; font-weight: 400; font-size: .89rem; margin-top: 4px; }
.notebook-mark { display: grid; place-items: center; width: 43px; height: 49px; background: var(--mustard); font: 700 32px/1 ui-monospace, Menlo, monospace; }
.contents-link { min-height: 48px; display: flex; align-items: center; gap: 12px; font-size: .89rem; }
.question-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 2px solid var(--ink); gap: 0 12px; }
.question-tab { display: flex; align-items: center; min-height: 55px; padding: 11px 6px; color: var(--ink); font-size: .89rem; text-decoration: none; border-bottom: 5px solid transparent; }
.question-tab--marked { border-bottom-color: var(--mustard); font-weight: 700; }
.question-tab:hover { background: var(--pale-mark); }
.chapter-opening { padding-block: 48px 22px; max-width: 850px; }
.chapter-context { color: var(--soft-ink); font-size: .94rem; margin-bottom: 19px; }
.chapter-opener { font-size: 1.11rem; max-width: 63ch; line-height: 1.6; }
.marker-words { position: relative; z-index: 0; white-space: normal; background: linear-gradient(178deg, transparent 65%, var(--mustard) 66%, var(--mustard) 85%, transparent 86%); padding-bottom: .06em; }
.takealong-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 55px; background: var(--mustard); color: var(--ink); padding: 12px 18px; font-weight: 700; font-size: 1rem; text-decoration: none; margin: 5px 0 20px; }
.takealong-link:hover { text-decoration: underline; background: #f0c74b; }
.opening-spread { position: relative; }
.opening-spread .chapter-opening { padding-bottom: 10px; }
.paper-collage { position: relative; isolation: isolate; min-height: 180px; margin: 32px 0; background: #fafaf7; overflow: hidden; aspect-ratio: 8 / 5; }
.paper-collage::before, .paper-collage::after, .paper-piece { content: ""; position: absolute; z-index: -1; }
.paper-collage::before { width: 66%; height: 73%; left: 18%; top: 15%; transform: rotate(-9deg); background: var(--mustard); }
.paper-collage::after { width: 67%; height: 73%; left: 27%; top: 24%; transform: rotate(7deg); background: #fff; border: 1px solid #e4e4dc; box-shadow: 0 4px 14px #3333180b; }
.paper-piece { background: #fff; width: 54%; height: 64%; left: 5%; top: 6%; transform: rotate(-4deg); box-shadow: 2px 7px 12px #33331808; border-bottom: 2px solid #e0e0d8; }
.paper-collage img { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.paper-collage img[data-loaded] { opacity: 1; }
.paper-collage--cover { max-width: 430px; margin: 12px 0 36px; aspect-ratio: 1; }
.chapter-reading { max-width: 73ch; padding-bottom: 15px; }
.chapter-reading > h2:first-child { margin-top: 1.35em; }
.chapter-reading > p { max-width: 69ch; }
.notebook-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 16px; padding: 10px 0; margin-block: 15px 27px; font-size: 1rem; border-bottom: 2px solid var(--mustard); text-decoration: none; font-weight: 700; }
.notebook-link span { flex-shrink: 0; }
.notebook-link:hover { text-decoration: underline; }
.care-checks { border: 0; min-width: 0; padding: 13px 0 16px; margin: 27px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.care-checks legend { font-size: 1.11rem; font-weight: 700; padding: 0 15px 0 0; max-width: 100%; }
.check-line { display: flex; align-items: flex-start; gap: 15px; padding: 13px 0; min-height: 51px; cursor: pointer; line-height: 1.5; }
.check-line + .check-line { border-top: 1px solid #e3e4de; }
.check-line input { appearance: none; flex: 0 0 40px; width: 40px; height: 40px; margin: 2px 0 0; border: 2px solid var(--soft-ink); background: #fff; border-radius: 0; cursor: pointer; }
.check-line input:checked { background: var(--mustard); border-color: var(--ink); }
.check-line input:checked::after { content: "✓"; display: block; color: var(--ink); font: 700 22px/36px ui-monospace, Menlo, monospace; text-align: center; }
.chapter-recap { margin: 41px 0; padding: 8px 0 8px 22px; border-left: 8px solid var(--mustard); }
.chapter-recap p { margin-bottom: .35em; }
.recap-label { font-weight: 700; color: var(--link-ink); }
.ask-lines { list-style: none; padding: 0; margin: 23px 0 30px; }
.ask-lines li { padding: 12px 0 13px 21px; border-bottom: 1px solid var(--rule); position: relative; }
.ask-lines li::before { position: absolute; content: "–"; left: 0; top: 11px; color: var(--link-ink); font-weight: 700; }
.word-notes { margin: 26px 0; }
.word-notes dt { font-weight: 700; color: var(--link-ink); margin-top: 23px; }
.word-notes dd { margin-left: 0; border-bottom: 1px solid var(--rule); padding: 7px 0 6px; }
.word-notes dd p { margin-bottom: 14px; }
.chapter-endnotes { border-top: 2px solid var(--ink); margin-top: 48px; padding-top: 2px; }
.chapter-endnotes h2 { margin: 23px 0 13px; font-size: 1.16rem; }
.chapter-endnotes ul { list-style: none; padding: 0; margin: 0; }
.chapter-endnotes li { margin: 0; }
.chapter-endnotes a { min-height: 48px; display: flex; align-items: center; padding: 9px 0; font-size: .94rem; }
.page-turns { display: grid; gap: 0 38px; border-top: 1px solid var(--rule); margin: 49px 0 65px; padding-top: 18px; max-width: 950px; }
.page-turns a { padding: 14px 0; min-height: 66px; text-decoration: none; }
.page-turns a:hover { text-decoration: underline; }
.page-turns span { color: var(--soft-ink); display: block; margin-bottom: 7px; font-size: .89rem; }
.notebook-footer { border-top: 3px solid var(--ink); padding-block: 30px 40px; }
.notebook-footer p { max-width: 67ch; font-size: .94rem; }
.notebook-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.notebook-footer a { display: inline-flex; align-items: center; min-height: 48px; font-size: .94rem; }
.notebook-contents { margin-top: 50px; }
.notebook-contents h2 { max-width: 22ch; }
.chapter-bundles { display: grid; gap: 33px; }
.chapter-bundle { border-top: 5px solid var(--mustard); padding-top: 20px; }
.chapter-bundle ul { list-style: none; padding: 0; margin: 0; }
.chapter-bundle li { margin: 0; border-bottom: 1px solid var(--rule); }
.chapter-bundle a { min-height: 52px; display: flex; align-items: center; padding-block: 12px; font-size: 1rem; color: var(--ink); text-decoration: none; }
.chapter-bundle a:hover { text-decoration: underline; color: var(--link-ink); }
.myth-controls { display: none; flex-wrap: wrap; gap: 12px; margin-block: 22px; }
.myth-controls.is-ready { display: flex; }
.myth-controls button { min-height: 48px; padding: 11px 15px; font-size: .94rem; background: var(--mustard); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; }
.myth-controls button + button { background: #fff; }
.myth-leaf { border-top: 2px solid var(--ink); }
.myth-leaf:last-child { border-bottom: 2px solid var(--ink); }
.myth-leaf summary { min-height: 62px; padding: 18px 4px; cursor: pointer; font-weight: 700; font-size: 1rem; }
.myth-leaf summary::marker { color: var(--link-ink); }
.myth-leaf[open] summary { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.myth-answer { padding: 6px 0 12px 24px; }
.bill-lines { margin: 30px 0; }
.bill-lines > div { padding-block: 16px; border-top: 1px solid var(--rule); }
.bill-lines > div:first-child { border-top: 3px solid var(--ink); }
.bill-lines dt { font-weight: 700; color: var(--link-ink); }
.bill-lines dd { margin: 5px 0 0; }
.comparison-head { display: none; }
.comparison-sheet > p { color: var(--soft-ink); }
.comparison-sheet dl { margin: 0; }
.comparison-row { padding: 18px 0; border-top: 2px solid var(--ink); }
.comparison-row dt { font-weight: 700; margin-bottom: 15px; }
.comparison-row dd { min-height: 60px; border-bottom: 1px solid var(--rule); margin: 0 0 14px; color: var(--soft-ink); font-size: .94rem; }
.writing-space p { color: var(--soft-ink); }
.writing-space span { display: block; height: 142px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 34px, var(--rule) 35px, transparent 36px); }

@media (min-width: 640px) {
  .question-tabs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 15px; }
  .question-tab { padding: 14px 7px 11px; min-height: 61px; }
  .chapter-bundles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 38px; }
  .page-turns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill-lines > div { display: grid; grid-template-columns: 150px 1fr; gap: 22px; }
  .bill-lines dd { margin: 0; }
  .comparison-head { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; border-bottom: 3px solid var(--mustard); padding-bottom: 16px; }
  .comparison-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; border-top: 1px solid var(--rule); }
  .comparison-row dd span { display: block; }
}

@media (min-width: 1024px) {
  .notebook-masthead, .question-tabs, main, .notebook-footer { width: min(calc(100% - 112px), 1192px); }
  .notebook-masthead { padding-block: 35px 30px; }
  .notebook-name { font-size: 1.16rem; }
  .notebook-name-sub { font-size: .94rem; }
  .question-tab { font-size: .94rem; }
  .chapter-opening { padding-block: 65px 32px; }
  .chapter-opener { font-size: 1.16rem; }
  .opening-spread { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 38px; padding-block: 35px 15px; }
  .opening-spread .chapter-opening { padding-block: 22px; }
  .opening-spread h1 { font-size: clamp(2.8rem, 4.1vw, 3.45rem); max-width: 17ch; }
  .paper-collage--cover { margin: 0; width: 100%; max-width: none; }
  .notebook-page--home .chapter-reading { max-width: none; }
  .notebook-page--home .chapter-reading > h2,
  .notebook-page--home .chapter-reading > p,
  .notebook-page--home .chapter-reading > .care-checks,
  .notebook-page--home .chapter-reading > .chapter-recap,
  .notebook-page--home .chapter-reading > .notebook-link,
  .notebook-page--home .chapter-reading > .chapter-endnotes { max-width: 72ch; }
  .chapter-bundles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 44px; }
  .chapter-bundle a { min-height: 62px; }
}

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

@media print {
  :root { font-size: 12pt; line-height: 1.45; color: #000; background: #fff; }
  .notebook-masthead, .question-tabs, .skip-to-reading, .page-turns, .paper-collage,
  .contents-link, .takealong-link, .myth-controls, .notebook-footer nav { display: none !important; }
  main, .notebook-footer { width: 100%; }
  h1 { font-size: 26pt; max-width: none; }
  h2 { font-size: 17pt; break-after: avoid; }
  h3, legend, summary { break-after: avoid; }
  .chapter-opening { padding-block: 0 12pt; }
  .chapter-context { margin-bottom: 10pt; }
  .chapter-opener { font-size: 12pt; }
  .chapter-reading { max-width: none; }
  .check-line { min-height: 0; padding-block: 7pt; break-inside: avoid; }
  .check-line input { width: 15pt; height: 15pt; flex-basis: 15pt; border: 1pt solid #000; }
  .check-line input:checked::after { font-size: 14pt; line-height: 14pt; }
  .care-checks { margin-block: 15pt; padding-block: 7pt; break-inside: avoid; }
  .care-checks legend { font-size: 13pt; }
  .chapter-recap, .chapter-endnotes { margin-block: 18pt; break-inside: avoid; }
  .chapter-endnotes a, .notebook-link { min-height: 0; padding-block: 5pt; }
  .notebook-footer { padding-block: 12pt; }
  .notebook-footer p { font-size: 12pt; }
  .notebook-contents, .chapter-bundles { display: block; }
  .chapter-bundle { margin-top: 22pt; }
  .comparison-head, .comparison-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 15pt; }
  .comparison-row { break-inside: avoid; }
  .notebook-page--takealong .chapter-opening { padding-bottom: 0; }
  .notebook-page--takealong .care-checks { margin-block: 11pt; padding-block: 2pt; }
  .notebook-page--takealong .check-line { padding-block: 5pt; }
  .notebook-page--takealong .notebook-link { display: none; }
}
