/* Desktop editorial composition. Each class has one visual or structural job. */
:root {
  --page-wash: #f1edf8;
  --paper-wash: #faf8fe;
  --violet-wash: #e4dbf0;
  --violet-ink: #604879;
  --body-ink: #362d43;
  --quiet-ink: #63566f;
  --soft-rule: #c8b9da;
  --humanist: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--humanist); font-size: 18px; line-height: 1.65; color: var(--body-ink); }
button, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: #d5c8e8; }
a { color: var(--violet-ink); text-decoration-thickness: 1px; text-underline-offset: 5px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
button { color: var(--violet-ink); cursor: pointer; }
:focus-visible { outline: 3px solid #604879; outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--humanist); text-wrap: balance; }
::selection { background: #d7c8e9; color: #362d43; }
.lilac-ground { background: var(--page-wash); }
.page-boundary { width: calc(100% - 96px); max-width: 1160px; margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 50; min-height: 48px; padding: 12px 20px; background: var(--paper-wash); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-masthead { padding-top: 26px; padding-bottom: 27px; border-bottom: 2px solid var(--soft-rule); }
.masthead-line { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-name { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; font-size: 21px; font-weight: 700; text-decoration: none; }
.masthead-purpose { font-size: 16px; color: var(--quiet-ink); }
.topic-navigation { display: grid; grid-template-columns: 1.1fr 1.3fr 1.1fr; column-gap: 36px; margin-top: 22px; }
.cluster-label { font-size: 16px; font-weight: 700; color: var(--quiet-ink); margin-bottom: 4px; }
.cluster-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.topic-link { display: inline-flex; align-items: center; min-height: 46px; font-size: 16px; }
.topic-link[aria-current="page"] { font-weight: 700; text-decoration-thickness: 3px; }
.field-article { padding-top: 56px; padding-bottom: 72px; }
.opening-spread { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 64px; padding-bottom: 48px; }
.opening-copy { min-width: 0; }
.place-label { font-size: 18px; color: var(--violet-ink); margin-bottom: 18px; }
.page-title { font-size: 48px; font-weight: 700; line-height: 1.15; letter-spacing: -0.7px; max-width: 24ch; color: var(--violet-ink); }
.opening-lead { font-size: 21px; line-height: 1.6; margin-top: 24px; max-width: 56ch; }
.page-opening { max-width: 780px; padding-bottom: 20px; }
.reading-sequence { width: 100%; max-width: 740px; margin-left: 60px; }
.field-section { padding-top: 38px; padding-bottom: 8px; }
.section-title { font-size: 29px; font-weight: 700; color: var(--violet-ink); line-height: 1.3; margin-bottom: 20px; position: relative; }
h3.section-title { font-size: 23px; }
.note-copy { font-size: 18px; max-width: 68ch; margin-bottom: 17px; }
.assumption-line { font-size: 16px; line-height: 1.6; color: var(--quiet-ink); padding: 14px 18px; margin-bottom: 23px; background: var(--violet-wash); border-radius: 6px; }
.reading-link { display: flex; align-items: center; min-height: 48px; padding-block: 8px; width: fit-content; max-width: 100%; font-size: 18px; }
.carry-question { font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--violet-ink); background: var(--paper-wash); border-left: 4px solid #9f85ba; border-radius: 6px; padding: 22px 26px; margin: 25px 0 15px; }
.paper-mark { display: inline-block; width: 21px; height: 24px; position: relative; flex-shrink: 0; }
.paper-mark::before { content: ""; position: absolute; inset: 1px 3px 2px 1px; border: 2px solid #806496; border-radius: 4px; transform: rotate(-8deg); }
.paper-mark::after { content: ""; position: absolute; left: 6px; top: 8px; width: 9px; height: 2px; background: #806496; box-shadow: 0 5px 0 #806496; transform: rotate(-8deg); }
.section-title > .paper-mark { position: absolute; left: -43px; top: 5px; }
.illustration-plate { position: relative; aspect-ratio: 4 / 3; background: var(--violet-wash); border-radius: 6px; margin-bottom: 36px; }
.illustration-plate::before { content: ""; position: absolute; width: 65%; height: 53%; left: 18%; top: 25%; border: 2px solid #9e87b8; border-radius: 6px; background: linear-gradient(90deg, #f4f0fa 49%, #b2a0c6 49%, #b2a0c6 50%, #f4f0fa 50%); transform: rotate(-7deg); }
.illustration-plate::after { content: ""; position: absolute; width: 36%; height: 3px; background: #9e87b8; right: 8%; top: 30%; transform: rotate(-24deg); }
.field-illustration { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; z-index: 1; color: var(--quiet-ink); font-size: 16px; }
.illustration-caption { position: absolute; left: 0; right: 0; top: calc(100% + 10px); font-size: 16px; color: var(--quiet-ink); line-height: 1.45; }
.image-arrived::before, .image-arrived::after { display: none; }
.reading-sequence > .illustration-plate { aspect-ratio: 8 / 5; margin-top: 42px; margin-bottom: 62px; }
.evidence-note { background: #e4dbf0; border-radius: 6px; margin-top: 36px; margin-bottom: 28px; }
.evidence-handle { color: var(--violet-ink); font-size: 18px; font-weight: 700; padding: 18px 24px; min-height: 60px; cursor: pointer; }
.evidence-content { padding: 0 24px 24px; }
.source-entry { padding-top: 15px; padding-bottom: 12px; }
.source-link { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 48px; font-size: 18px; font-weight: 700; padding-block: 10px; }
.drawer-close { display: block; min-height: 48px; border: 2px solid #806496; background: var(--paper-wash); border-radius: 6px; padding: 10px 18px; margin-top: 12px; }
.evidence-note[data-drawer-open] { position: fixed; right: max(28px, calc((100vw - 1220px) / 2)); top: 8vh; width: 440px; max-height: 84vh; overflow-y: auto; z-index: 40; margin: 0; border: 2px solid #9f85ba; box-shadow: 0 8px 40px #60487933; }
.evidence-note[data-drawer-open] > .evidence-handle { position: sticky; top: 0; background: #e4dbf0; border-bottom: 2px solid #c8b9da; }
.field-footer { padding: 36px 0 42px; background: var(--violet-wash); }
.footer-copy { font-size: 18px; max-width: 70ch; }
.footer-navigation { display: flex; flex-wrap: wrap; gap: 8px 34px; margin-top: 18px; }
@media (max-width: 1000px) {
  .page-boundary { width: calc(100% - 64px); }
  .masthead-line { align-items: flex-start; flex-direction: column; gap: 0; }
  .topic-navigation { column-gap: 24px; }
  .opening-spread { grid-template-columns: 1.4fr 1fr; gap: 32px; }
  .page-title { font-size: 42px; }
  .reading-sequence { margin-left: 36px; max-width: calc(100% - 36px); }
  .section-title > .paper-mark { left: -34px; }
}
@media (max-width: 680px) {
  .page-boundary { width: calc(100% - 40px); }
  .site-masthead { padding-top: 16px; padding-bottom: 20px; }
  .site-name { font-size: 19px; gap: 10px; }
  .masthead-purpose { font-size: 16px; margin-top: 3px; }
  .topic-navigation { grid-template-columns: 1fr; row-gap: 15px; margin-top: 22px; }
  .cluster-links { gap: 0 17px; }
  .cluster-label { margin-bottom: 0; }
  .topic-link { font-size: 16px; min-height: 46px; }
  .field-article { padding-top: 32px; padding-bottom: 48px; }
  .opening-spread { grid-template-columns: 1fr; gap: 32px; padding-bottom: 12px; }
  .page-title { font-size: 36px; line-height: 1.18; letter-spacing: -0.4px; }
  .opening-lead { font-size: 20px; margin-top: 20px; }
  .place-label { font-size: 17px; margin-bottom: 14px; }
  .reading-sequence { margin-left: 0; max-width: 100%; }
  .section-title { font-size: 27px; padding-left: 32px; }
  h3.section-title { font-size: 23px; }
  .section-title > .paper-mark { left: 0; top: 4px; }
  .field-section { padding-top: 34px; }
  .note-copy { font-size: 18px; }
  .carry-question { font-size: 19px; padding: 20px; }
  .illustration-plate { margin-bottom: 46px; }
  .evidence-handle { padding: 17px 19px; }
  .evidence-content { padding: 0 19px 22px; }
  .evidence-note[data-drawer-open] { top: auto; right: 12px; bottom: 12px; width: calc(100% - 24px); max-height: 82vh; }
  .field-footer { padding-block: 30px; }
  .footer-navigation { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; color: #222; }
  .page-boundary { width: 100%; }
  .topic-navigation, .skip-link, .footer-navigation, .drawer-close { display: none !important; }
  .reading-sequence { max-width: 100%; margin: 0; }
  .evidence-note[data-drawer-open] { position: static; width: auto; max-height: none; overflow: visible; box-shadow: none; }
  .field-section, .source-entry { break-inside: avoid; }
  .field-article { padding-top: 24px; }
}
