:root {
  color-scheme: light;
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
  font-synthesis: none;
  --canvas: #eaf3f7;
  --ink: #272d31;
  --paper: #f7fafc;
  --wash: #dbeaf1;
  --quiet: #4b5860;
  --rule: #b7ccd7;
  --control: #71828b;
  --charcoal: #30383e;
  --spot: #a17b41;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 20px; line-height: 1.6; }
button, input, textarea { font: inherit; }
button, a, summary, input[type="checkbox"] { -webkit-tap-highlight-color: transparent; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 5px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 3px; }
button, summary, input[type="checkbox"] { cursor: pointer; }
button, textarea { border-radius: var(--radius); }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: inherit; font-weight: 600; color: var(--ink); }
img { max-width: 100%; border-radius: var(--radius); }
fieldset { min-width: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }

.skip-link { position: fixed; z-index: 10; inset: 12px auto auto 12px; min-height: 48px; max-width: calc(100% - 24px); padding: 10px 18px; border-radius: var(--radius); color: var(--ink); background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: relative; margin: 0 22px; padding: 24px 0; border-bottom: 2px solid var(--rule); }
.site-name { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 56px; text-decoration: none; font-size: 26px; font-weight: 600; line-height: 1.2; }
.site-name:hover { text-decoration: underline; }
.site-kind { margin-top: 7px; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--quiet); }
.site-kind::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 4px; background: var(--spot); }
.step-menu { flex-shrink: 0; }
.menu-toggle { min-height: 48px; padding: 10px 12px; border-radius: var(--radius); background: var(--wash); font-size: 18px; text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle:hover { background: #cbdfe9; }
.menu-panel { position: absolute; z-index: 5; top: calc(100% + 10px); right: 0; width: 100%; max-width: 390px; border: 2px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: 16px; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-sublist { list-style: none; padding: 0 0 0 16px; margin: 0; }
.menu-link { display: flex; align-items: center; min-height: 52px; padding: 10px 8px; border-radius: var(--radius); font-size: 20px; text-decoration: underline; }
.menu-link[aria-current] { font-weight: 600; }
.menu-link:hover { background: var(--wash); }
.menu-subtoggle { min-height: 52px; padding: 10px 8px; font-size: 20px; }
.page-main { margin: 0 22px; }
.home-intro { padding: 40px 0 36px; }
.intro-label { font-size: 18px; font-weight: 400; line-height: 1.5; color: var(--quiet); margin-bottom: 22px; }
.home-title { max-width: 14ch; font-size: clamp(42px, 10.8vw, 66px); line-height: 1.09; letter-spacing: -0.015em; overflow-wrap: normal; }
.intro-notes { max-width: 55ch; margin-top: 28px; }
.check-note { max-width: 65ch; margin: 0 0 20px; }
.primary-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; max-width: 560px; padding: 16px 22px; border-radius: var(--radius); background: var(--charcoal); color: var(--paper); font-size: 21px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.primary-link:hover { background: #454f56; text-decoration: underline; }
.primary-link:focus-visible { outline-offset: 6px; }
.quiet-link { display: flex; align-items: center; min-height: 52px; width: fit-content; max-width: 100%; margin-top: 12px; padding: 10px 0; font-size: 18px; }
.desk-figure { margin: 0 0 48px; }
.desk-image { display: block; width: 100%; height: 210px; aspect-ratio: 8 / 3; object-fit: cover; object-position: 70% 68%; background: var(--wash); color: var(--ink); font-size: 18px; }
.desk-caption { margin-top: 12px; color: var(--quiet); font-size: 17px; }
.check-section { padding: 36px 0 44px; border-top: 2px solid var(--rule); scroll-margin-top: 24px; }
.section-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 28px; }
.step-letter { display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--wash); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--quiet); }
.section-title { max-width: 19ch; font-size: clamp(30px, 7.7vw, 42px); line-height: 1.18; }
.section-body { min-width: 0; }
.care-check { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 76px; margin-bottom: 28px; padding: 16px; border-radius: var(--radius); background: var(--wash); cursor: pointer; }
.care-box { width: 44px; height: 44px; margin: 0; accent-color: var(--charcoal); }
.care-label { font-size: 22px; font-weight: 600; line-height: 1.4; }
.source-drawer { margin-top: 28px; padding: 0 18px; border-radius: var(--radius); background: var(--wash); }
.source-toggle { min-height: 60px; padding: 16px 0; font-size: 18px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.source-heading { display: inline; font: inherit; color: inherit; }
.source-list { list-style: none; margin: 0; padding: 4px 0 8px; }
.source-item { margin-bottom: 20px; }
.source-link { display: flex; align-items: center; min-height: 48px; font-size: 18px; line-height: 1.5; padding: 6px 0; }
.source-note { max-width: 65ch; font-size: 18px; line-height: 1.6; color: var(--quiet); }
.urgent-note { margin: 32px 0; border-left: 5px solid var(--charcoal); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.urgent-title { font-size: 26px; line-height: 1.35; margin-bottom: 16px; }
.urgent-text { margin-bottom: 16px; }
.urgent-action { font-size: 24px; font-weight: 600; line-height: 1.4; }
.next-sheet { border-top: 2px solid var(--rule); padding: 40px 0 52px; }
.next-title { font-size: 34px; line-height: 1.18; max-width: 24ch; margin-bottom: 24px; }
.next-note { max-width: 65ch; margin-bottom: 28px; }
.site-footer { margin: 0 22px; padding: 28px 0 36px; border-top: 2px solid var(--rule); }
.footer-line { max-width: 65ch; font-size: 18px; color: var(--quiet); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 20px; }
.footer-link { display: flex; align-items: center; min-height: 48px; font-size: 17px; padding: 10px 0; }
.sheet-intro { padding: 40px 0 36px; }
.sheet-title { max-width: 18ch; font-size: clamp(42px, 10.8vw, 76px); line-height: 1.09; letter-spacing: -0.015em; }
.sheet-lede { max-width: 62ch; margin-top: 28px; }
.sheet-note { max-width: 62ch; margin-top: 16px; color: var(--quiet); }
.sheet-controls { border-radius: var(--radius); background: var(--wash); padding: 24px; margin-bottom: 36px; }
.answer-status { font-size: 25px; font-weight: 600; line-height: 1.4; max-width: 50ch; margin-bottom: 24px; }
.sheet-tools { display: none; flex-wrap: wrap; gap: 16px; }
.sheet-tools[data-ready] { display: flex; }
.sheet-button { display: flex; align-items: center; justify-content: center; min-height: 56px; max-width: 100%; padding: 14px 22px; border: 2px solid var(--charcoal); background: var(--charcoal); color: var(--paper); font-size: 20px; font-weight: 600; line-height: 1.4; }
.sheet-button:hover { background: #454f56; text-decoration: underline; }
.save-note { max-width: 65ch; margin-top: 20px; font-size: 18px; color: var(--quiet); }
.question-section { padding: 36px 0 44px; border-top: 2px solid var(--rule); }
.question-set { margin: 0 0 32px; padding: 0; border: 0; }
.set-legend { padding: 0; margin-bottom: 12px; font-size: 18px; color: var(--quiet); }
.question-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 16px; min-height: 72px; padding: 20px 0; border-bottom: 2px solid var(--rule); cursor: pointer; }
.question-box { width: 44px; height: 44px; margin: 0; accent-color: var(--charcoal); }
.question-text { font-size: 21px; line-height: 1.5; }
.answer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 32px; }
.answer-field { min-width: 0; }
.answer-label { display: flex; align-items: center; min-height: 48px; padding: 8px 0; font-size: 20px; line-height: 1.5; }
.answer-space { display: block; width: 100%; min-height: 180px; max-width: 100%; resize: vertical; padding: 16px; border: 2px solid var(--control); background: var(--paper); color: var(--ink); font-size: 20px; line-height: 1.6; }
.printed-answer { display: none; }
.next-question { padding: 36px 0 52px; border-top: 2px solid var(--rule); }
.next-question .answer-space { max-width: 800px; margin-bottom: 24px; }
.missing-page { min-height: 60vh; padding: 40px 0 52px; }
.missing-page .primary-link { margin-top: 28px; }

@media (min-width: 760px) {
  .site-header, .page-main, .site-footer { margin-right: 44px; margin-left: 44px; }
  .site-header { padding: 28px 0; }
  .home-intro, .sheet-intro { padding: 56px 0 48px; }
  .home-title { font-size: 68px; }
  .desk-image { height: 240px; aspect-ratio: 5 / 1; object-position: center 63%; }
  .desk-figure { margin-bottom: 64px; }
  .check-section, .question-section { padding: 48px 0 60px; }
  .section-title { font-size: 40px; }
  .answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { padding-top: 36px; padding-bottom: 48px; }
  .sheet-title { font-size: 76px; }
  .next-sheet, .next-question { padding: 48px 0 64px; }
  .next-title { font-size: 42px; }
  .missing-page { padding: 64px 0; }
}

@media (min-width: 1100px) {
  .site-header, .page-main, .site-footer { width: calc(100% - 112px); max-width: 1216px; margin-right: auto; margin-left: auto; }
  .home-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); column-gap: 80px; padding: 56px 0 48px; }
  .intro-label { grid-column: 1 / -1; margin-bottom: 28px; }
  .home-title { font-size: clamp(62px, 5.2vw, 76px); max-width: 14ch; }
  .intro-notes { align-self: center; margin-top: 0; }
  .check-section, .question-section { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); column-gap: 80px; }
  .section-heading { grid-template-columns: 44px minmax(0, 1fr); gap: 20px; }
  .site-footer { display: flex; justify-content: space-between; gap: 64px; }
  .footer-line { max-width: 56ch; }
  .footer-links { margin-top: 0; align-content: start; max-width: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  :root { color-scheme: light; --ink: #000000; --quiet: #000000; --canvas: #ffffff; --paper: #ffffff; --wash: #ffffff; --rule: #000000; --charcoal: #000000; }
  body { background: #ffffff; color: #000000; font-size: 12pt; line-height: 1.5; }
  .site-header, .skip-link, .sheet-tools, .footer-links, .quiet-link, .primary-link, .desk-figure, .answer-status, .save-note { display: none; }
  .page-main, .site-footer { width: auto; margin: 0; max-width: none; }
  .sheet-intro, .home-intro { display: block; padding: 0 0 20pt; }
  .sheet-title, .home-title { max-width: none; font-size: 32pt; }
  .check-section, .question-section { display: block; padding: 20pt 0; border-color: #000000; }
  .section-heading { break-after: avoid; margin-bottom: 12pt; }
  .section-title, .next-title { font-size: 22pt; }
  .step-letter { width: 22pt; height: 22pt; color: #000000; font-size: 18pt; }
  .question-row, .care-check { grid-template-columns: 22pt minmax(0, 1fr); gap: 12pt; break-inside: avoid; padding-right: 0; padding-left: 0; }
  .question-box, .care-box { width: 22pt; height: 22pt; }
  .question-text, .care-label { font-size: 13pt; }
  .answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18pt; }
  .answer-field { break-inside: avoid; }
  .answer-label { font-size: 12pt; }
  .answer-space { background: #ffffff; color: #000000; border-color: #000000; font-size: 12pt; }
  [data-print-ready] .answer-space { display: none; }
  .printed-answer { display: block; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #000000; min-height: 72pt; padding: 12pt; font-size: 12pt; }
  .source-drawer { border-color: #000000; padding: 0; }
  .source-toggle { color: #000000; font-size: 12pt; }
  .source-link { color: #000000; font-size: 12pt; }
  .source-note { font-size: 12pt; }
  .urgent-note { border-color: #000000; padding: 12pt; }
  .urgent-title, .urgent-action { font-size: 16pt; }
  .footer-line { font-size: 12pt; }
  .sheet-controls { padding: 0; }
  .next-question, .next-sheet { padding: 20pt 0; }
}
