:root {
  --ink: #151928;
  --ink-soft: #25283f;
  --paper: #f6f2e9;
  --paper-edge: #e3dccf;
  --text: #202633;
  --text-soft: #545665;
  --violet: #594174;
  --lilac: #cfbce8;
  --sky-text: #f6f2e9;
  --sky-soft: #d4cbdf;
  --sky-line: #545269;
  --notes-paper: #eee6f2;
  --notes-line: #9e8ead;
  --focus: #e3b561;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent-font: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --body-size: 1.125rem;
  --small-size: 1rem;
  --leading: 1.65;
  --reading-width: 64ch;
  --page-width: 76rem;
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --chapter-space: clamp(3rem, 6vw, 5.5rem);
  --hairline: 1px;
  --small-radius: 0.25rem;
  --tap-size: 2.75rem;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: var(--body-size)/var(--leading) var(--body-font); }
button, textarea { font: inherit; }
a { color: var(--violet); text-underline-offset: 0.25em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
button:disabled { cursor: default; }
button, summary { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }
h2, .answer h3 { font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.035em; margin-bottom: 1.4rem; }
strong { font-weight: 600; }
[hidden] { display: none; }
.eyebrow { font-family: var(--accent-font); font-size: var(--small-size); line-height: 1.5; font-weight: 400; margin-bottom: 1.5rem; }
.skip-link { position: absolute; left: 1.25rem; top: 0.75rem; z-index: 10; padding: 0.5rem 1rem; min-height: var(--tap-size); background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.opening-sky { background: var(--ink); color: var(--sky-text); }
.desk-header { max-width: var(--page-width); margin: 0 auto; padding: 1.5rem 0; border-bottom: var(--hairline) solid var(--sky-line); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.desk-header a { color: var(--sky-text); text-decoration: none; }
.desk-sign { display: flex; align-items: center; gap: 0.8rem; line-height: 1.3; min-height: var(--tap-size); padding: 0.5rem 0; }
.desk-sign-caption { display: block; font: var(--small-size)/1.5 var(--accent-font); color: var(--sky-soft); margin-top: 0.2rem; }
.desk-mark { width: 2.2rem; height: 2.2rem; flex: 0 0 2.2rem; border: 1px solid var(--lilac); border-radius: 50%; position: relative; }
.desk-mark::before { content: ""; position: absolute; inset: 0.5rem -0.35rem; border: 1px solid var(--lilac); border-radius: 50%; transform: rotate(-35deg); }
.desk-mark::after { content: ""; width: 0.35rem; height: 0.35rem; position: absolute; top: 0.3rem; right: 0.2rem; border-radius: 50%; background: var(--lilac); }
.directory-jump { font: var(--small-size)/1.4 var(--accent-font); display: inline-flex; gap: 1.2rem; min-height: var(--tap-size); align-items: center; padding: 0.7rem 0; }
.directory-jump:hover { text-decoration: underline; }
.chapter-opening { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr); gap: 4rem; max-width: var(--page-width); margin: 0 auto; padding: 2.5rem 0 var(--chapter-space); align-items: center; }
.chapter-opening-home { padding-top: 4.7rem; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2rem; }
.opening-words { min-width: 0; position: relative; z-index: 1; }
.opening-words > .eyebrow { color: var(--lilac); }
h1 { font-size: clamp(2.7rem, 4.8vw, 4.7rem); line-height: 1.08; letter-spacing: -0.055em; font-weight: 500; margin-bottom: 1.8rem; max-width: 18ch; }
.desk-home h1 { font-size: clamp(2.6rem, 4.7vw, 4.5rem); max-width: none; }
.desk-home h1 > span { display: block; }
.desk-home h1 > span:first-child { color: var(--lilac); font-size: 0.67em; letter-spacing: -0.035em; margin-bottom: 0.8rem; }
.chapter-opener { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.6; max-width: 52ch; color: var(--sky-soft); margin-bottom: 1rem; }
.opening-link { display: inline-flex; align-items: center; justify-content: space-between; min-height: 3.3rem; padding: 0.4rem 0; gap: 3rem; color: var(--sky-text); text-decoration: none; border-bottom: 1px solid var(--lilac); margin-top: 1.5rem; }
.opening-link:hover { color: var(--lilac); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; font: var(--small-size)/1.5 var(--accent-font); color: var(--sky-soft); margin-bottom: 2rem; }
.breadcrumb a { color: var(--sky-soft); display: inline-flex; min-height: var(--tap-size); align-items: center; }
.orbit-field { width: 100%; aspect-ratio: 1; position: relative; overflow: hidden; min-width: 0; border-radius: 50%; background: radial-gradient(ellipse at 60% 55%, #4d3b65 0%, #23233b 50%, transparent 72%); }
.orbit-track { display: block; position: absolute; width: 88%; height: 50%; left: 6%; top: 25%; border: 1px solid #9f8aba; border-radius: 50%; }
.orbit-track-outer { transform: rotate(-35deg); }
.orbit-track-inner { width: 71%; height: 82%; left: 15%; top: 9%; transform: rotate(23deg); border-color: #716486; }
.orbit-track-cross { transform: rotate(36deg); height: 34%; top: 33%; border-color: #c4b4d6; }
.orbit-core { position: absolute; width: 41%; height: 41%; left: 31%; top: 30%; border-radius: 50%; background: radial-gradient(circle at 28% 25%, #e9d9f5 0%, #ae96c9 28%, #69527f 56%, #2b2b43 79%); box-shadow: 0 0 4rem #ab7de51a; }
.orbit-core::after { content: ""; position: absolute; width: 138%; height: 63%; left: -19%; top: 21%; border: 1px solid #c6b4dd; border-radius: 50%; transform: rotate(-35deg); }
.orbit-moon { position: absolute; width: 6%; height: 6%; right: 13%; top: 22%; border-radius: 50%; background: #debb82; box-shadow: 0 0 1.5rem #debb8226; }
.orbit-point { position: absolute; width: 0.4rem; height: 0.4rem; left: 14%; top: 63%; border-radius: 50%; background: var(--lilac); }
.orbit-caption { position: absolute; bottom: 4%; left: 0; width: 100%; text-align: center; font: var(--small-size)/1.4 var(--accent-font); color: var(--sky-soft); background: var(--ink); }
.orbit-field-home { border-radius: 0; background: radial-gradient(ellipse at 55% 45%, #453557 0%, #23233b 40%, transparent 68%); }
.reading-paper { background: var(--paper); color: var(--text); border-top: 1px solid #787087; }
.reading-paper, .skip-link { --focus: var(--violet); }
.reading-room { max-width: var(--page-width); padding: var(--chapter-space) 0; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 20rem); justify-content: space-between; gap: 4rem; align-items: start; }
.chapter-answer { min-width: 0; max-width: var(--reading-width); }
.answer { margin-bottom: 3.5rem; }
.answer p { max-width: var(--reading-width); }
.bring-question { color: var(--violet); border-left: 2px solid var(--notes-line); padding: 0.7rem 0 0.7rem 1.2rem; font-weight: 500; margin-top: 1.5rem; }
.starting-points { border-top: 1px solid var(--paper-edge); padding-top: 2.8rem; margin-bottom: 3.5rem; }
.question-route { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--paper-edge); text-decoration: none; color: var(--text); min-height: var(--tap-size); }
.question-route > span:first-child { font: var(--small-size)/1.4 var(--accent-font); color: var(--text-soft); }
.question-route strong { grid-column: 1; font-size: 1.4rem; line-height: 1.4; font-weight: 500; }
.question-route > span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.5rem; color: var(--violet); }
.question-route:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.chapter-sources { margin-bottom: 2.8rem; }
.source-drawer { border-top: 1px solid var(--notes-line); border-bottom: 1px solid var(--notes-line); margin-bottom: 1.2rem; color: var(--text); }
.source-drawer summary { font-family: var(--accent-font); font-size: var(--small-size); list-style: none; display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; min-height: 4.5rem; padding: 1.25rem 0; line-height: 1.5; }
.source-drawer summary::-webkit-details-marker { display: none; }
.source-drawer summary::after { content: "+"; font-size: 1.5rem; flex: 0 0 1.5rem; text-align: center; }
.source-drawer[open] summary::after { content: "−"; }
.source-drawer[open] summary { color: var(--violet); }
.source-content { padding: 0 0 1.5rem; }
.source-content p { font-size: var(--small-size); line-height: 1.6; }
.source-link { min-height: var(--tap-size); display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: var(--small-size); padding: 0.65rem 0; text-decoration-thickness: 1px; line-height: 1.6; max-width: 100%; }
.source-link > span { flex-shrink: 0; text-decoration: none; }
.recap { border-top: 1px solid var(--paper-edge); padding-top: 2.5rem; margin-top: 2rem; }
.recap .eyebrow { color: var(--violet); margin-bottom: 1rem; }
.recap > p:not(.eyebrow) { font-size: 1.3rem; line-height: 1.6; }
.next-answer { display: inline-flex; min-height: 3.5rem; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.75rem 0; text-decoration-thickness: 1px; font-size: var(--body-size); }
.notes-desk { position: sticky; top: 2rem; background: var(--notes-paper); border-top: 3px solid var(--violet); padding: 1.6rem; color: var(--text); }
.notes-desk > .eyebrow { color: var(--violet); margin-bottom: 1.2rem; }
.notes-desk h2, .answer h3 { font-size: 1.9rem; font-weight: 500; margin-bottom: 1rem; }
.notes-desk p, .notes-desk label { font-size: var(--small-size); line-height: 1.6; }
.notes-desk label { display: block; margin: 1.6rem 0 0.6rem; font-weight: 600; }
.notes-desk textarea { display: block; color: var(--text); background: #fbf8fc; width: 100%; max-width: 100%; min-height: 11rem; padding: 0.9rem; font-size: var(--small-size); border: 1px solid var(--notes-line); border-radius: var(--small-radius); resize: vertical; line-height: 1.5; }
.notes-desk textarea::placeholder { color: #666071; opacity: 1; }
.note-location { margin: 0.8rem 0 1.2rem; }
.note-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.note-actions button { min-height: 3rem; font-size: var(--small-size); padding: 0.6rem 0.9rem; border: 1px solid var(--violet); border-radius: var(--small-radius); color: var(--paper); background: var(--violet); transition: background-color 120ms ease; }
.note-actions button:last-child { color: var(--violet); background: transparent; }
.note-actions button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.note-actions button:disabled { color: #5f5868; border-color: #8d7f99; background: #e2d8e8; }
.note-status { min-height: 3.2rem; margin-top: 1rem; margin-bottom: 0; color: var(--text-soft); }
.bill-questions { margin: 0; border-top: 1px solid var(--paper-edge); }
.bill-questions > div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1.25rem; border-bottom: 1px solid var(--paper-edge); padding: 1.35rem 0; }
.bill-questions dt { font-family: var(--accent-font); font-size: var(--small-size); line-height: 1.6; color: var(--violet); }
.bill-questions dd { margin: 0; font-size: var(--body-size); }
.question-directory { padding: var(--chapter-space) max(var(--page-gutter), calc((100vw - var(--page-width)) / 2)); background: var(--ink); color: var(--sky-text); display: grid; grid-template-columns: 1fr 2.1fr; gap: 4rem; scroll-margin-top: 1rem; }
.directory-intro .eyebrow { color: var(--lilac); margin-bottom: 1.2rem; }
.directory-intro h2, .answer h3 { font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1.12; }
.directory-intro p:last-child { max-width: 25ch; font-size: var(--small-size); color: var(--sky-soft); }
.question-directory nav { min-width: 0; }
.question-directory ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.question-directory li { border-top: 1px solid var(--sky-line); }
.question-directory li a { color: var(--sky-text); text-decoration: none; display: grid; grid-template-columns: 1rem minmax(0, 1fr) 1rem; gap: 1rem; min-height: 6.2rem; padding: 1.25rem 0; align-items: start; font-size: var(--small-size); }
.directory-letter { color: var(--lilac); font: var(--small-size)/1.6 var(--accent-font); }
.question-directory strong { display: block; font-weight: 500; font-size: 1.05rem; line-height: 1.5; }
.directory-caption { display: block; color: var(--sky-soft); margin-top: 0.4rem; font-size: var(--small-size); line-height: 1.5; }
.directory-arrow { color: var(--lilac); font-size: var(--small-size); line-height: 1.6; }
.question-directory a:hover strong { color: var(--lilac); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.question-directory a[aria-current="page"] strong { color: var(--lilac); }
.guide-line { grid-column: 1 / -1; border-top: 1px solid var(--sky-line); padding-top: 1.5rem; font-size: var(--small-size); color: var(--sky-soft); margin-bottom: 0; max-width: none; }

@media (max-width: 1320px) {
  .desk-header, .chapter-opening, .reading-room { margin-left: var(--page-gutter); margin-right: var(--page-gutter); }
  .reading-room { gap: 3rem; }
}
@media (max-width: 1000px) {
  .chapter-opening { gap: 2rem; grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.7fr); }
  .chapter-opening-home { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .reading-room { grid-template-columns: minmax(0, 1fr) 18rem; gap: 2.5rem; }
  .notes-desk { padding: 1.25rem; }
  .question-directory { grid-template-columns: 1fr; gap: 2.5rem; }
  .directory-intro h2 br { display: none; }
  .directory-intro p:last-child { max-width: 50ch; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 1.4rem; --body-size: 1.0625rem; }
  .desk-header { padding: 1rem 0; gap: 1rem; align-items: start; }
  .desk-sign { font-size: var(--small-size); gap: 0.6rem; }
  .desk-mark { width: 1.8rem; height: 1.8rem; flex-basis: 1.8rem; }
  .desk-sign-caption { margin-top: 0.35rem; }
  .directory-jump { gap: 0.4rem; max-width: 9rem; align-self: center; line-height: 1.4; }
  .chapter-opening { position: relative; display: block; padding: 1.4rem 0 2.7rem; overflow: hidden; }
  .chapter-opening .orbit-field { position: absolute; right: 0; top: 2rem; width: 10rem; opacity: 0.22; }
  .chapter-opening-home { padding-top: 2.6rem; }
  .chapter-opening-home .orbit-field { position: relative; right: auto; top: auto; width: 100%; max-width: 23rem; height: 13rem; margin: 1.5rem auto -0.5rem; opacity: 1; }
  .chapter-opening-home .orbit-track { width: 68%; left: 16%; }
  .chapter-opening-home .orbit-track-inner { height: 90%; width: 50%; top: 5%; left: 25%; }
  .chapter-opening-home .orbit-core { width: 28%; height: auto; aspect-ratio: 1; left: 36%; top: 20%; }
  .chapter-opening-home .orbit-moon { width: 4%; height: auto; aspect-ratio: 1; top: 12%; right: 24%; }
  .chapter-opening-home .orbit-caption { bottom: 0; }
  h1 { font-size: clamp(2.55rem, 9vw, 3.3rem); letter-spacing: -0.05em; max-width: 16ch; margin-bottom: 1.5rem; }
  .desk-home h1 { font-size: clamp(2.6rem, 10.7vw, 3.6rem); }
  .desk-home h1 > span:first-child { font-size: 0.7em; line-height: 1.3; margin-bottom: 1rem; }
  .chapter-opener { font-size: 1.125rem; }
  .opening-words > .eyebrow { margin-bottom: 1.3rem; max-width: 29ch; }
  .breadcrumb { margin-bottom: 1.5rem; }
  .reading-room { display: block; padding: 3rem 0; }
  .chapter-answer { max-width: 100%; }
  .answer { margin-bottom: 2.7rem; }
  h2, .answer h3 { font-size: 1.6rem; }
  .starting-points { padding-top: 2.3rem; }
  .question-route strong { font-size: 1.25rem; }
  .notes-desk { position: static; margin-top: 3rem; padding: 1.5rem; }
  .notes-desk h2 br { display: none; }
  .notes-desk textarea { min-height: 10rem; }
  .recap > p:not(.eyebrow) { font-size: 1.2rem; }
  .bill-questions > div { display: block; padding: 1.25rem 0; }
  .bill-questions dt { margin-bottom: 0.6rem; }
  .question-directory { padding-top: 3.2rem; padding-bottom: 2rem; gap: 2.2rem; }
  .question-directory ol { grid-template-columns: 1fr; }
  .question-directory li a { min-height: 5.7rem; }
  .guide-line { line-height: 1.7; }
  .source-drawer summary { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none; animation: none; }
}
