@font-face { font-family: 'DM Sans'; src: url('../assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: Fraunces; src: url('../assets/fonts/fraunces-latin-600-normal.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
:root { --paper: #f4f0e6; --white: #fffdf7; --ink: #173a32; --forest: #175c49; --muted: #53685e; --line: #c4cbb9; --lime: #dce8c8; --coral: #a83e2d; --soft: #e6ebd9; --lavender: #e9e4f2; font-family: 'DM Sans', sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; color-scheme: light; accent-color: var(--forest); }
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.55; }
h1, h2, p, dl, dd { margin: 0; }
h1, h2 { text-wrap: balance; }
button, input { font: inherit; }
button { min-height: 46px; color: inherit; cursor: pointer; }
a { color: var(--forest); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--lime); }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 5; background: var(--white); padding: 12px 18px; }
.skip-link:focus { top: 10px; }
.topbar { min-height: 68px; border-bottom: 1px solid var(--line); padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: clamp(8px, 1vw, 14px); min-width: 0; min-height: 48px; flex-shrink: 1; text-decoration: none; }
.brand img { display: block; max-height: 46px; height: auto; object-fit: contain; }
.brand .brand-btxt { width: clamp(74px, 16vw, 152px); }
.brand .brand-maakbib { width: clamp(78px, 14vw, 124px); }
.topbar-note { font-size: 13px; color: var(--muted); }
.page-shell { width: min(980px, calc(100% - 64px)); margin: 0 auto; padding: 30px 0 48px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
h1 { font: 600 clamp(38px, 4.3vw, 58px)/1.08 Fraunces, Georgia, serif; letter-spacing: -.03em; }
h1 em { color: var(--coral); font-style: normal; }
h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.02em; }
.quiet { flex-shrink: 0; background: transparent; border: 1px solid #7b8d78; border-radius: 8px; padding: 9px 14px; font-size: 14px; }
.quiet:hover { background: var(--soft); }
.task-panel { display: grid; grid-template-columns: minmax(140px, .4fr) minmax(0, 1.6fr); gap: 30px; align-items: baseline; margin: 24px 0 38px; padding: clamp(22px, 3.5vw, 32px); background: var(--soft); border-radius: 12px; }
.task-panel h2 { font: 600 clamp(28px, 3.2vw, 38px)/1.15 Fraunces, Georgia, serif; }
.task-panel p { max-width: 60ch; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; }
.setup { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 54px; align-items: start; }
.setup > div:first-child p { margin-top: 8px; color: var(--muted); }
.scenario-order ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.scenario-order li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.scenario-order li:last-child { border-bottom: 0; }
.scenario-order li > span { display: grid; width: 32px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--soft); color: var(--forest); font-weight: 700; }
.scenario-order strong, .scenario-order small { display: block; }
.scenario-order small { margin-top: 2px; color: var(--muted); font-size: 13px; }
summary { min-height: 44px; align-content: center; cursor: pointer; font-size: 14px; font-weight: 700; }
summary::marker { color: var(--forest); }
.test-note { margin-top: 8px; color: var(--muted); font-size: 13px; }
.primary { width: 100%; min-height: 50px; margin-top: 20px; padding: 12px 20px; border: 0; border-radius: 9px; background: var(--forest); color: var(--white); font-weight: 700; }
.primary:hover { background: #194d3b; }
.play { scroll-margin-top: 24px; }
.play-heading { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.play-heading h2 { font: 600 clamp(30px, 4vw, 42px)/1.15 Fraunces, Georgia, serif; }
.play-heading p { color: var(--muted); font-size: 14px; }
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .9fr); gap: 48px; margin-top: 24px; align-items: start; }
.letter-stage { display: grid; justify-items: center; gap: 12px; padding: 26px; background: var(--soft); border-radius: 12px; }
.letter-stage #current-scan { width: min(160px, 52%); padding: 18px; background: var(--white); box-shadow: 0 8px 20px #173a3212; transform: rotate(-1deg); }
.letter-stage p { color: var(--muted); font-size: 13px; }
.scan-side h3 { margin: 22px 0 10px; font-size: 16px; }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.score-row { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.score-row .glyph { width: 38px; }
.score-row span, .score-row strong { display: block; font-size: 13px; }
.score-row strong { font-variant-numeric: tabular-nums; }
.action-side { border-top: 3px solid var(--forest); padding-top: 18px; }
.action-side h3 { margin: 0; font-size: 22px; }
.action-side p { margin-top: 8px; }
.sender-copy { display: flex; gap: 16px; align-items: center; margin-top: 20px; padding: 16px 0; border-block: 1px solid var(--line); }
.sender-copy #current-original { width: 72px; flex-shrink: 0; }
.sender-copy span { font-size: 14px; font-weight: 700; }
.help-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.help-choices button { min-height: 48px; padding: 10px 12px; border: 1px solid #7b8d78; border-radius: 8px; background: var(--white); text-align: left; font-weight: 700; }
.help-choices button:hover { background: var(--soft); border-color: var(--forest); }
.run-outcome h3 { margin: 0; font: 600 28px/1.2 Fraunces, Georgia, serif; }
.run-outcome p { margin-top: 10px; font-size: 14px; }
#next-run { margin-top: 22px; }
.results { scroll-margin-top: 24px; }
.between { scroll-margin-top: 24px; }
.between-heading h2 { font: 600 clamp(30px, 4vw, 42px)/1.15 Fraunces, Georgia, serif; }
.between-heading p { max-width: 65ch; margin-top: 8px; color: var(--muted); }
.next-scenario { max-width: 440px; }
.results-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.results-heading h2 { font: 600 clamp(30px, 4vw, 42px)/1.15 Fraunces, Georgia, serif; }
.results-heading > div p { margin-top: 7px; font-weight: 700; }
.results-heading > p { max-width: 32ch; color: var(--muted); font-size: 13px; text-align: right; }
.table-wrap { width: 100%; margin-top: 24px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; }
thead { color: var(--muted); font-size: 12px; }
tbody th { font-size: 14px; }
tbody tr:nth-child(odd) { background: var(--soft); }
td:last-child { font-weight: 700; }
.comparison-copy { max-width: 70ch; margin-top: 18px; font-weight: 700; }
.batch-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 8px; }
.batch-details > summary { font-size: 17px; }
.run-group { padding-top: 18px; }
.run-group + .run-group { margin-top: 14px; border-top: 2px solid var(--ink); }
.run-group h3 { margin: 0; font: 600 24px/1.2 Fraunces, Georgia, serif; }
.run-group > p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.run-group ol { margin: 12px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.run-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(220px, .7fr); gap: 18px; align-items: center; padding: 16px 4px; border-top: 1px solid var(--line); }
.run-scan .glyph { width: 50px; }
.glyph { display: grid; grid-template-columns: repeat(5, 1fr); aspect-ratio: 1; gap: 1px; }
.pixel { background: #e7e9db; border-radius: 1px; }
.pixel.ink { background: var(--ink); }
.run-main { min-width: 0; }
.run-main strong, .run-main span { display: block; }
.run-main strong { font-size: 14px; }
.run-main span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.run-choice { font-size: 12px; font-weight: 700; }
.retry { margin-top: 22px; }
.reflection { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; padding: 28px; border-radius: 12px; background: var(--lavender); }
.reflection h2 { font: 600 31px/1.15 Fraunces, Georgia, serif; }
.reflection p { margin-top: 12px; font-size: 14px; }
.answers { display: grid; gap: 10px; }
.answers button { padding: 10px 14px; border: 1px solid #88917e; border-radius: 8px; background: var(--white); text-align: left; font-size: 14px; }
.answers button[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.answers button:hover { border-color: var(--ink); }
.reflection .stamp { margin-top: 18px; font: 600 24px/1.25 Fraunces, Georgia, serif; }
.stamp small { display: block; margin-top: 8px; font: 400 13px/1.5 'DM Sans', sans-serif; }
.explanation { margin-top: 24px; }
.explanation p { max-width: 75ch; margin: 10px 0; font-size: 14px; }
.footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 clamp(20px, 5vw, 76px); padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .page-shell { width: calc(100% - 36px); padding-top: 24px; }
  .intro { align-items: start; gap: 14px; flex-wrap: wrap; }
  h1 { font-size: 38px; }
  .task-panel { grid-template-columns: 1fr; gap: 8px; margin: 22px 0 30px; padding: 22px; }
  .task-panel p { font-size: 17px; }
  .setup { grid-template-columns: 1fr; gap: 20px; }
  .results-heading { flex-direction: column; align-items: start; gap: 8px; }
  .play-heading { flex-direction: column; align-items: start; gap: 6px; }
  .play-grid { grid-template-columns: 1fr; gap: 28px; }
  .results-heading > p { text-align: left; }
  th, td { padding: 11px 8px; }
  .run-row { grid-template-columns: 46px 1fr; gap: 12px; }
  .run-scan .glyph { width: 44px; }
  .run-choice { grid-column: 2; }
  .reflection { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .footer { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 420px) {
  .topbar { padding: 0 14px; gap: 12px; }
  .topbar-note { font-size: 11px; }
  .page-shell { width: calc(100% - 28px); }
  h1 { font-size: 36px; }
  th, td { padding: 10px 4px; font-size: 13px; }
  thead th { font-size: 10px; }
  tbody th { font-size: 12px; }
  .reflection { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
