@font-face { font-family: 'DM Sans'; src: url('../assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); 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-weight: 700; font-display: swap; }
@font-face { font-family: Fraunces; src: url('../assets/fonts/fraunces-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root { --paper: #f4f0e6; --white: #fffdf7; --ink: #173a32; --forest: #175c49; --muted: #53685e; --line: #d2d6c8; --lime: #dce8c8; --coral: #bd3f2c; --soft: #e6ebd9; --lavender: #dce8c8; font-family: 'DM Sans', sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; color-scheme: light; accent-color: var(--forest); scrollbar-color: var(--muted) var(--paper); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select { font: inherit; color: inherit; }
button, select { min-height: 46px; cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
button:disabled { opacity: .55; }
a { color: var(--forest); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 2; 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: 12px; min-height: 48px; font-size: 22px; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 11px); grid-template-rows: repeat(2, 11px); gap: 4px; transform: rotate(-8deg); }
.brand-mark span { background: var(--forest); border-radius: 2px; }
.brand-mark span:nth-child(2) { background: #edbd51; }
.brand-mark span:nth-child(3) { background: #bd3f2c; }
.brand-mark span:nth-child(4) { background: #718779; }
.topbar-note { font-size: 13px; color: var(--muted); }
.page-shell { width: min(1160px, calc(100% - 64px)); margin: auto; padding: 32px 0 40px; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
h1 { font: 600 clamp(36px, 4.3vw, 56px)/1.08 Fraunces, Georgia, serif; letter-spacing: -.03em; }
h1 em { color: var(--coral); font-style: normal; }
.intro p { margin-top: 12px; color: var(--muted); }
.quiet { background: transparent; border: 1px solid #7b8d78; border-radius: 8px; padding: 9px 14px; }
.quiet:hover { background: var(--soft); }
#reset { flex-shrink: 0; font-size: 14px; }
.primary { background: var(--forest); color: var(--white); border: 0; border-radius: 9px; padding: 12px 20px; min-height: 48px; font-weight: 700; }
.primary:hover { background: #194d3b; }
.primary:active { background: var(--ink); }
.reset-choice { margin-top: 24px; padding: 20px; border: 1px solid var(--coral); border-radius: 12px; background: var(--white); }
.reset-choice > div { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.workbench { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; margin-top: 32px; }
.writing { min-width: 0; }
.sheet-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: 17px; line-height: 1.3; }
.starter-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
select { border: 1px solid #7b8d78; border-radius: 8px; background: var(--white); padding: 8px; max-width: 100%; font-size: 14px; }
select:disabled { color: var(--muted); opacity: 1; background: var(--paper); border-color: var(--line); }
.story-sheet { min-height: 250px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; margin-top: 14px; }
#story { font: 600 clamp(26px, 2.6vw, 34px)/1.7 Fraunces, Georgia, serif; overflow-wrap: anywhere; white-space: pre-wrap; }
.word.start { color: var(--muted); }
.word.child { background: var(--lime); border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 3px; }
.word.robot { text-decoration: underline; text-decoration-color: var(--forest); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.empty-hint { font-size: 15px; color: var(--muted); margin-top: 20px; max-width: 31ch; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; margin-top: 12px; color: var(--muted); }
.legend b { color: var(--ink); font-weight: 700; }
.child-key { background: var(--lime); border-radius: 3px; padding: 0 4px; }
.robot-key { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
#word-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.turn-area { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.turn-area h2 { font-size: 21px; margin-bottom: 14px; }
#word-form label { font-size: 14px; display: block; margin-bottom: 6px; }
#word-search { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #7b8d78; border-radius: 8px; background: var(--white); padding: 10px 14px; caret-color: var(--coral); }
#word-search::placeholder { color: var(--muted); opacity: 1; }
.help { font-size: 13px; color: var(--muted); margin-top: 8px; }
.picker-label { margin-top: 18px; }
#word-picker { width: 100%; min-height: 202px; padding: 5px; border: 1px solid #7b8d78; border-radius: 8px; background: var(--white); }
#word-picker option { padding: 6px 9px; border-radius: 4px; }
.picker-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; }
.picker-footer .help { margin-top: 0; }
#add-word { flex-shrink: 0; }
#robot-turn p { max-width: 55ch; font-size: 15px; }
#robot-choose { margin-top: 20px; width: 100%; }
.last-choice { font-size: 13px; color: var(--muted); margin-top: 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.text-button { background: transparent; color: var(--forest); padding: 10px 0; border: 0; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; margin-top: 6px; }
.text-button:hover { color: var(--coral); }
.robot-panel { background: var(--lavender); border-radius: 12px; padding: 24px; }
.panel-intro { font-size: 14px; margin-top: 10px; }
.temperature-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; font-weight: 700; }
output { font-variant-numeric: tabular-nums; font-size: 23px; }
#temperature { width: 100%; min-height: 44px; margin: 4px 0 0; padding: 0; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.temperature-help { font-size: 13px; margin-top: 14px; }
.predictions { margin-top: 24px; padding-top: 22px; border-top: 1px solid #b6b7c1; }
.preview-note { font-size: 13px; margin-top: 7px; }
#candidates { padding: 0; margin: 18px 0 0; list-style: none; }
#candidates li + li { margin-top: 13px; }
#candidates li > div:first-child { display: flex; gap: 12px; justify-content: space-between; font-size: 14px; font-variant-numeric: tabular-nums; }
#candidates strong { overflow-wrap: anywhere; }
.chance-track { height: 7px; border-radius: 4px; background: #d0ccdc; margin-top: 5px; overflow: hidden; }
.chance-track span { display: block; height: 100%; background: var(--forest); border-radius: inherit; }
.context { font-size: 13px; margin-top: 16px; overflow-wrap: anywhere; }
.chance-note { border-top: 1px solid #b6b7c1; padding-top: 18px; margin-top: 22px; font-size: 14px; }
.discovery { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.discovery > p { margin-top: 12px; max-width: 65ch; }
fieldset { padding: 0; border: 0; margin: 24px 0 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 12px; }
fieldset button { display: block; width: 100%; text-align: left; margin-bottom: 10px; background: var(--white); }
[data-answer][aria-pressed='true'] { background: var(--ink); color: var(--white); }
#reflection-feedback:empty { display: none; }
#stamp { background: var(--soft); border-radius: 12px; padding: 18px; }
#continue { margin-top: 20px; }
.local-note { margin-top: 28px; font-size: 13px; color: var(--muted); }
.about { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 6px; }
summary { cursor: pointer; min-height: 46px; align-content: center; font-size: 14px; font-weight: 700; }
summary::marker { color: var(--forest); }
.about-copy { max-width: 75ch; }
.about p { font-size: 14px; margin-top: 12px; }
.examples { margin-top: 10px; }
.examples ul { max-height: 300px; overflow-y: auto; padding-left: 22px; font-size: 14px; }
.examples li { margin-bottom: 8px; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin: 0 clamp(20px, 5vw, 76px); padding: 20px 0; color: var(--muted); font-size: 12px; }
@keyframes word-arrival { from { background-color: var(--lavender); } to { background-color: transparent; } }
.word.robot:last-child { animation: word-arrival 700ms ease-out; }
@media (max-width: 1000px) { .workbench { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; } .sheet-heading { align-items: flex-start; flex-direction: column; } .robot-panel { padding: 22px; } }
@media (max-width: 720px) { .workbench { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; } .page-shell { width: calc(100% - 36px); padding-top: 24px; } .intro { flex-direction: column; align-items: flex-start; gap: 16px; } h1 { font-size: clamp(34px, 8vw, 48px); } .intro p { font-size: 15px; max-width: 37ch; } .sheet-heading { flex-direction: row; align-items: center; } .story-sheet { min-height: 190px; padding: 22px; } .legend { gap: 8px 16px; } #word-count { margin-left: 0; } #robot-turn p { max-width: 44ch; } .robot-panel { padding: 24px; } footer { flex-direction: column; gap: 6px; } }
@media (max-width: 390px) { .topbar { padding-inline: 16px; gap: 12px; } .topbar-note { max-width: 100px; text-align: right; font-size: 12px; } .sheet-heading { flex-direction: column; align-items: flex-start; } .picker-footer { align-items: stretch; flex-direction: column; } #add-word { width: 100%; } .story-sheet { padding: 18px; } .robot-panel { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Partnerlogo's in de gedeelde activiteitenheader */
.brand { gap: clamp(8px, 1vw, 14px); min-width: 0; flex-shrink: 1; }
.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); }
.task-panel { display: grid; grid-template-columns: minmax(140px, .4fr) minmax(0, 1.6fr); gap: 30px; align-items: baseline; margin: 24px 0 28px; padding: 26px 30px; background: var(--soft); border-radius: 12px; }
.task-panel h2 { font: 600 clamp(27px, 3vw, 36px)/1.15 Fraunces, Georgia, serif; }
.task-panel p { max-width: 65ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; }
@media (max-width: 720px) { .task-panel { grid-template-columns: 1fr; gap: 7px; padding: 22px; } }
