@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/work-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f7f8f5;
  --surface: #fdfefb;
  --ink: #172e2b;
  --muted: #52645e;
  --accent: #185b4f;
  --accent-text: #f5faf7;
  --tint: #e7eee7;
  --line: #cbd5cc;
  --document: #fffef8;
  --document-ink: #27362d;
  --document-muted: #58655a;
  --selection: #e3eee3;
  --warning: #785018;
  --warning-bg: #faf0d8;
  --positive: #245b36;
  --positive-bg: #e5f0e2;
  --radius: 6px;
  font-family: 'Work Sans', 'Segoe UI', sans-serif;
  font-synthesis: none;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex='-1']:focus {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
input { accent-color: var(--accent); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4.3vw, 3.55rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
p { margin-bottom: 1rem; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 12px 20px; background: var(--surface); z-index: 2; }
.skip-link:focus { top: 10px; }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 600; letter-spacing: -.06em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 36px; background: var(--accent); color: var(--accent-text); font-size: 24px; line-height: 1; font-weight: 500; border-radius: 3px; letter-spacing: -.1em; padding-right: 3px; }
.wordmark-domain { font-weight: 400; color: var(--muted); margin-left: -11px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 10px 0; }
nav a[aria-current='page'] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.hero { display: grid; grid-template-columns: 1.06fr 1fr; gap: 86px; align-items: center; padding-block: 64px 74px; }
.hero-copy h1 { max-width: 530px; margin-bottom: 25px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.hero-description { color: var(--muted); font-size: 18px; max-width: 450px; margin-bottom: 30px; line-height: 1.65; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 26px; padding: 12px 20px; min-height: 48px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--accent-text); font-weight: 500; font-size: 15px; line-height: 1.4; text-decoration: none; }
.button:hover { filter: brightness(1.12); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; filter: none; }
.button span[aria-hidden] { font-size: 22px; line-height: 1; font-weight: 400; }
.hero-document { display: block; text-decoration: none; color: var(--ink); }
.hero-document:hover { text-decoration: none; }
.hero-document .document { transform: rotate(1.3deg); box-shadow: 0 14px 40px rgb(37 64 45 / .08); }
.hero-document .document-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hero-document .document-field:last-child { grid-column: 1 / -1; }
.hero-document .document-field { padding: 9px 10px; }
.hero-document .document-heading { padding-bottom: 15px; }
.hero-document .document-heading h2 { font-size: 21px; }
.hero-document .document { padding: 25px 27px 17px; }
.hero-document .field-value { font-size: 14px; }
.preview-caption { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; padding-inline: 7px; font-size: 13px; color: var(--muted); }
.preview-caption > span { font-size: 23px; color: var(--accent); }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.library-heading h2 { margin-bottom: 9px; }
.library-heading p { margin-bottom: 0; color: var(--muted); }
.progress-summary { font-size: 13px; text-align: right; }
.exercise-list { border-top: 1px solid var(--line); }
.exercise-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 150px; align-items: center; gap: 25px; min-height: 114px; padding: 25px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.exercise-row:hover { background: var(--tint); text-decoration: none; }
.exercise-skill { color: var(--accent); font-size: 13px; font-weight: 500; }
.exercise-info h3 { margin-bottom: 7px; }
.exercise-info > span { color: var(--muted); font-size: 14px; }
.exercise-end { display: flex; align-items: center; justify-content: end; gap: 21px; }
.completion-label { font-size: 12px; color: var(--muted); }
.completion-label.is-complete { color: var(--accent); font-weight: 600; }
.row-arrow { font-size: 27px; color: var(--accent); }
.takeaway-band { display: flex; align-items: center; justify-content: space-between; gap: 45px; margin-top: 62px; padding: 32px 38px; background: var(--tint); border-radius: var(--radius); }
.takeaway-band h2 { margin-bottom: 10px; font-size: 26px; }
.takeaway-band p { margin: 0; max-width: 530px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.home-about { display: grid; grid-template-columns: .8fr 1fr; gap: 80px; padding-block: 65px 72px; }
.home-about h2 { max-width: 320px; }
.home-about p { color: var(--muted); max-width: 590px; }
.site-footer { padding-block: 27px 30px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 25px; font-size: 13px; }
.footer-top p { margin: 0; color: var(--muted); }
.footer-brand { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.04em; text-decoration: none; }
.fine-print { max-width: 910px; color: var(--muted); font-size: 11px; line-height: 1.75; margin-bottom: 8px; }
.back-link { display: inline-block; margin-block: 27px 30px; color: var(--muted); font-size: 13px; text-decoration: none; }
.exercise-header { max-width: 780px; margin-bottom: 37px; }
.exercise-header .eyebrow { margin-bottom: 13px; }
.exercise-header h1 { margin-bottom: 16px; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.exercise-header > p:last-child { font-size: 17px; color: var(--muted); max-width: 740px; }
.exercise-workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 45px; align-items: start; padding-bottom: 60px; }
.instructions { padding: 23px 26px; margin-bottom: 26px; border-left: 3px solid var(--accent); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; }
.instructions h2 { font-size: 16px; letter-spacing: -.01em; margin-bottom: 9px; }
.instructions p { font-size: 14px; line-height: 1.7; margin: 0; }
.packet-documents { display: grid; gap: 20px; }
.document { padding: 28px; background: var(--document); color: var(--document-ink); border: 1px solid var(--line); border-radius: var(--radius); }
.document-heading { padding-bottom: 19px; margin-bottom: 8px; border-bottom: 2px solid #a1ad9d; }
.document-type { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--document-muted); margin: 0 0 8px; }
.document-heading h2, .document-heading h3 { font-size: 22px; margin-bottom: 7px; }
.document-heading > p:last-child { color: var(--document-muted); font-size: 11px; margin: 0; }
.document-field { display: flex; flex-direction: column; gap: 5px; width: 100%; text-align: left; padding: 13px 10px; border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 3px; background: transparent; color: inherit; line-height: 1.5; }
button.document-field { min-height: 69px; }
button.document-field:hover:not(:disabled) { background: var(--selection); }
.document-field[aria-pressed='true'] { border-color: var(--accent); background: var(--selection); outline: 1px solid var(--accent); }
.document-field:focus-visible { outline-color: var(--accent); outline-offset: 2px; }
.document-field:disabled { opacity: 1; }
.field-label { font-size: 11px; color: var(--document-muted); }
.field-value { font-family: 'Courier New', monospace; font-size: 15px; overflow-wrap: anywhere; }
.document-footer { font-size: 10px; color: var(--document-muted); margin: 16px 0 0; text-align: right; }
.review-panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.task-label { color: var(--accent); font-weight: 500; font-size: 12px; margin-bottom: 12px; }
.review-panel h2 { font-size: 24px; margin-bottom: 14px; }
.review-panel > p:not(.task-label) { font-size: 14px; color: var(--muted); }
.selection-status { padding-top: 6px; min-height: 30px; }
.review-panel .button { width: 100%; }
.feedback { margin: 17px 0 0; padding: 14px 16px; background: var(--warning-bg); color: var(--warning); border-radius: var(--radius); font-size: 14px; line-height: 1.6; }
.feedback.positive { background: var(--positive-bg); color: var(--positive); }
.action-section { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 24px; }
fieldset { border: 0; margin: 0 0 17px; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 18px; line-height: 1.4; margin-bottom: 17px; }
.choice { display: flex; align-items: start; gap: 11px; padding: 13px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; line-height: 1.6; cursor: pointer; }
.choice:hover { background: var(--tint); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.choice input { flex-shrink: 0; margin: 4px 0 0; width: 17px; height: 17px; }
.quiet-button { background: transparent; color: var(--accent); border: 0; padding: 10px 0; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; font-size: 14px; }
.review-panel > .quiet-button { display: block; margin-top: 14px; }
.explanation { max-width: 800px; padding: 37px 38px; margin-bottom: 65px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 30px; }
.explanation h2 { margin-bottom: 23px; }
.explanation h3 { font-size: 16px; margin-top: 27px; margin-bottom: 10px; }
.explanation p { font-size: 15px; }
.handoff { padding: 20px 22px; margin-top: 26px; background: var(--tint); border-radius: var(--radius); }
.handoff h3 { margin-top: 0; }
.handoff p { margin-bottom: 0; }
.source-note { margin-top: 28px; font-size: 12px !important; line-height: 1.8; color: var(--muted); }
.result-message:empty { display: none; }
.result-message { color: var(--accent); font-weight: 500; margin-top: 25px; }
.explanation-actions { display: flex; align-items: center; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.reading-page { max-width: 860px; padding-block: 65px 80px; }
.page-intro { margin-bottom: 45px; }
.page-intro h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); margin-bottom: 20px; }
.page-intro > p:not(.eyebrow) { max-width: 710px; color: var(--muted); font-size: 18px; }
.prose { max-width: 730px; }
.prose h2 { font-size: 24px; margin-top: 40px; margin-bottom: 18px; }
.prose p { color: var(--muted); }
.prose .button { margin-top: 20px; }
.source-entry { border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.source-entry h2 { font-size: 20px; }
.review-date { font-size: 13px; }
.checklist-page { max-width: 1000px; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px 60px; }
.checklist-grid h2 { font-size: 22px; margin-bottom: 23px; }
.checklist-items { list-style: none; padding: 0; margin: 0; }
.checklist-items li { display: flex; gap: 13px; align-items: start; margin-bottom: 17px; font-size: 14px; color: var(--muted); }
.print-box { display: block; flex-shrink: 0; width: 14px; height: 14px; border: 1px solid var(--muted); margin-top: 5px; }
.print-only { display: none; }
.notice { font-size: 14px; margin-top: 20px; }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #14221e;
    --surface: #1b2c26;
    --ink: #edf2e9;
    --muted: #b4c3b6;
    --accent: #a3d4b4;
    --accent-text: #142b21;
    --tint: #253b30;
    --line: #425548;
    --document: #23332a;
    --document-ink: #eff1e6;
    --document-muted: #b9c6b5;
    --selection: #344e3b;
    --warning: #f3d797;
    --warning-bg: #403725;
    --positive: #b4dfaf;
    --positive-bg: #2a402b;
  }
  .hero-document .document { box-shadow: none; }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 44px; }
  .exercise-workspace { gap: 25px; }
  .review-panel { padding: 22px; }
  .exercise-row { grid-template-columns: 140px minmax(0, 1fr) 100px; gap: 20px; }
  .exercise-end { gap: 14px; }
}

@media (max-width: 767px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { flex-wrap: wrap; gap: 7px; padding-block: 18px 10px; }
  .wordmark { font-size: 22px; }
  nav { width: 100%; justify-content: space-between; gap: 14px; }
  nav a { padding-block: 9px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 38px 47px; }
  .hero-copy h1 { max-width: 450px; margin-bottom: 20px; }
  .hero-description { font-size: 16px; max-width: 440px; margin-bottom: 24px; }
  .hero-document { max-width: 490px; width: calc(100% - 7px); margin-inline: auto; }
  .hero-document .document { padding: 21px; }
  .hero-document .document-fields { grid-template-columns: 1fr; }
  .hero-document .document-field { padding-block: 7px; }
  .hero-document .document-field:last-child { grid-column: auto; }
  .hero-document .field-value { font-size: 13px; }
  .hero-document .document-heading { padding-bottom: 10px; }
  .eyebrow { font-size: 11px; margin-bottom: 16px; }
  .library-heading { display: block; }
  .library-heading p { font-size: 14px; }
  .library-heading .progress-summary { margin-top: 14px; font-size: 12px; text-align: left; }
  .exercise-row { grid-template-columns: minmax(0, 1fr) 100px; gap: 8px 14px; padding-block: 22px; }
  .exercise-skill { grid-column: 1 / -1; font-size: 11px; }
  .exercise-info h3 { font-size: 18px; }
  .exercise-info > span { font-size: 13px; display: block; }
  .exercise-end { align-self: start; gap: 12px; padding-top: 2px; }
  .completion-label { font-size: 11px; }
  .takeaway-band { display: block; padding: 26px 23px; margin-top: 37px; }
  .takeaway-band h2 { font-size: 24px; }
  .takeaway-band p { font-size: 14px; }
  .takeaway-band .text-link { margin-top: 20px; }
  .home-about { grid-template-columns: 1fr; gap: 9px; padding-block: 43px; }
  .home-about h2 { max-width: none; }
  .home-about p { font-size: 14px; }
  .footer-top { display: block; margin-bottom: 20px; }
  .footer-top p { margin-block: 8px 12px; }
  .fine-print { font-size: 10px; }
  .back-link { margin-block: 22px; }
  .exercise-header { margin-bottom: 27px; }
  .exercise-header > p:last-child { font-size: 15px; }
  .exercise-workspace { grid-template-columns: 1fr; gap: 26px; padding-bottom: 32px; }
  .instructions { padding: 20px; }
  .document { padding: 22px; }
  .document-heading h3 { font-size: 21px; }
  .review-panel { padding: 24px 22px; }
  .choice { font-size: 14px; }
  .explanation { padding: 27px 23px; margin-bottom: 40px; }
  .explanation-actions { gap: 13px; }
  .reading-page { padding-block: 38px 50px; }
  .page-intro { margin-bottom: 30px; }
  .page-intro > p:not(.eyebrow) { font-size: 16px; }
  .prose p { font-size: 15px; }
  .checklist-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media print {
  :root { color-scheme: light; --page: #fff; --ink: #172e2b; --muted: #33443e; --accent: #185b4f; --line: #9aa99d; }
  @page { size: auto; margin: 14mm; }
  body { background: #fff; font-size: 10pt; }
  .site-header, .site-footer, .skip-link, .button, .quiet-button { display: none !important; }
  .wrap { width: 100%; margin: 0; }
  .reading-page { padding: 0; max-width: none; }
  .page-intro { margin-bottom: 20px; }
  .page-intro .eyebrow { font-size: 9pt; margin-bottom: 9px; }
  .page-intro h1 { font-size: 23pt; margin-bottom: 10px; }
  .page-intro > p:not(.eyebrow) { font-size: 10pt; }
  .checklist-grid { grid-template-columns: 1fr 1fr; gap: 20px 30px; }
  .checklist-grid section { break-inside: avoid; }
  .checklist-grid h2 { font-size: 14pt; margin-bottom: 13px; }
  .checklist-items li { font-size: 9pt; margin-bottom: 12px; }
  .print-box { width: 10px; height: 10px; margin-top: 4px; }
  .source-note { font-size: 8pt !important; margin-top: 20px; }
  .print-only { display: block; font-size: 8pt; margin-top: 20px; }
}
