@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; --control: #7b8d78; 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 { font: inherit; color: inherit; min-height: 46px; cursor: pointer; }
button:disabled { cursor: default; }
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); }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 5; padding: 12px 18px; background: var(--white); }
.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 { color: var(--muted); font-size: 13px; }
.page-shell { width: min(1160px, calc(100% - 64px)); margin: 0 auto; padding: 32px 0 48px; }
.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 { color: var(--muted); margin-top: 12px; max-width: 70ch; }
#reset { flex-shrink: 0; font-size: 13px; }
.quiet { background: transparent; border: 1px solid var(--control); border-radius: 8px; padding: 9px 14px; }
.quiet:hover:enabled { background: var(--soft); }
.primary { background: var(--forest); color: var(--white); border: 0; border-radius: 9px; padding: 12px 20px; font-weight: 700; min-height: 48px; }
.primary:hover:enabled { background: #194d3b; }
.primary:disabled { color: var(--muted); background: #dde0d3; }
.text-button { border: 0; padding: 7px 0; background: transparent; color: var(--forest); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.text-button:hover:enabled { color: var(--coral); }
.text-button:disabled { color: var(--muted); text-decoration: none; }
.progress { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 28px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.progress ol { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 0; }
.progress li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.progress li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); font-variant-numeric: tabular-nums; }
.progress [aria-current] { color: var(--ink); font-weight: 700; }
.progress [aria-current] > span { background: var(--ink); color: var(--white); }
.progress p { font-size: 12px; color: var(--muted); }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 19px; line-height: 1.3; }
.section-heading > p { margin-top: 8px; color: var(--muted); }
.workbench { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); margin-top: 22px; align-items: start; }
.drawing-column { min-width: 0; }
.tools { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.tools > .text-button { margin-left: auto; }
[aria-pressed='true'] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.quiet[aria-pressed='true']:hover { background: var(--forest); }
.grid-frame { padding: 8px; border-radius: 4px; background: var(--line); }
.drawing-grid { width: 100%; aspect-ratio: 1; display: grid; grid-template-rows: repeat(var(--grid-size), 1fr); gap: 1px; touch-action: none; user-select: none; }
.drawing-grid > [role='row'] { display: grid; grid-template-columns: repeat(var(--grid-size), 1fr); gap: 1px; min-height: 0; }
.pixel { padding: 0; border: 0; border-radius: 0; min-width: 0; min-height: 0; background: var(--white); position: relative; }
.pixel.ink, .mini-grid .ink { background: var(--ink); }
.pixel:hover { box-shadow: inset 0 0 0 2px var(--coral); }
.pixel:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; z-index: 1; }
.hidden-pixel { background: var(--lavender); }
.hidden-pixel::after { content: ''; position: absolute; inset: 24%; background: linear-gradient(45deg, transparent 43%, #6c617c 43%, #6c617c 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #6c617c 43%, #6c617c 57%, transparent 57%); }
.grid-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.small { color: var(--muted); font-size: 13px; max-width: 70ch; }
.guide { padding: 24px 0 0; }
.guide p { margin-top: 10px; max-width: 55ch; }
.guide h3:not(:first-child) { margin-top: 28px; }
.starters, .halves { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; max-width: 370px; }
.starters .quiet, .halves .quiet { text-align: left; background: var(--white); }
.starters .quiet:hover, .halves .quiet:hover { background: var(--lime); }
.feedback { font-size: 14px; color: var(--forest); }
.feedback:empty { display: none; }
.step-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.mask-key { font-size: 14px; }
.legend-pixel { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; position: relative; }
.legend-pixel.own { background: var(--ink); }
.legend-pixel.added, .mini-grid .completion.ink { background: var(--forest); background-image: repeating-linear-gradient(135deg, transparent 0 4px, #dce8c8 4px 5px); }
.legend-pixel.hidden-pixel { width: 20px; height: 20px; }
.result-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.result-heading p { margin-top: 10px; max-width: 75ch; }
.result-heading button { flex-shrink: 0; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin: 22px 0; }
.legend .added { margin-left: 12px; }
.comparison-help { max-width: 70ch; margin-bottom: 22px; }
.suggestions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.suggestion { min-width: 0; }
.suggestion > h3 { margin-bottom: 14px; }
.mini-grid { display: grid; grid-template-columns: repeat(var(--grid-size),1fr); aspect-ratio: 1; gap: 1px; background: var(--line); padding: 5px; width: 100%; }
.mini-grid > span { background: var(--white); }
.mini-grid .completion { background: var(--lavender); }
.score { font-size: 14px; margin-top: 12px; }
summary { cursor: pointer; min-height: 46px; align-content: center; font-size: 14px; font-weight: 700; }
summary::marker { color: var(--forest); }
.suggestion details { border-bottom: 1px solid var(--line); margin-top: 6px; }
.suggestion details p { font-size: 13px; margin: 8px 0 14px; max-width: 65ch; }
.suggestion details .mini-grid { max-width: 240px; }
.original-area { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding: 28px; margin-top: 32px; border-radius: 12px; background: var(--soft); }
.original-area p { margin-top: 8px; max-width: 60ch; }
.original-area button { margin-top: 18px; }
#original { width: 240px; flex-shrink: 0; }
.reflection { padding: 28px; margin-top: 28px; border-radius: 12px; background: var(--lavender); }
.reflection > p { margin-top: 12px; max-width: 75ch; }
.answers { display: flex; gap: 12px; margin-top: 20px; }
.answers button { flex: 1; text-align: left; }
#stamp { border-top: 1px solid #b6b7c1; padding-top: 20px; margin-top: 20px; }
#stamp strong { display: block; font: 600 26px/1.3 Fraunces, Georgia, serif; margin-bottom: 8px; }
.about { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 32px; }
.about p { margin-top: 12px; color: var(--muted); max-width: 75ch; font-size: 14px; }
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 uncover { from { clip-path: inset(0 0 10% 0); } to { clip-path: inset(0); } }
.suggestion > .mini-grid { animation: uncover 280ms cubic-bezier(.16,1,.3,1); }
@media (max-width: 900px) {
  .progress p { display: none; }
  .workbench { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 28px; }
  .guide { padding-top: 0; }
  .comparison-help { max-width: 70ch; margin-bottom: 22px; }
.suggestions { gap: 18px; }
}
@media (max-width: 650px) {
  .page-shell { width: calc(100% - 36px); padding-top: 24px; }
  .intro { flex-direction: column; align-items: start; gap: 14px; }
  h1 { font-size: clamp(34px,8vw,44px); }
  h2 { font-size: 24px; }
  .progress ol { width: 100%; gap: 8px; justify-content: space-between; }
  .progress li { flex-direction: column; align-items: start; font-size: 12px; gap: 6px; }
  .workbench { grid-template-columns: 1fr; gap: 24px; }
  .drawing-column { max-width: 480px; width: 100%; }
  .guide h3:not(:first-child) { margin-top: 20px; }
  .step-actions { margin-top: 20px; }
  .result-heading { flex-direction: column; gap: 14px; }
  .comparison-help { max-width: 70ch; margin-bottom: 22px; }
.suggestions { grid-template-columns: 1fr; gap: 28px; }
  .suggestion { max-width: 420px; }
  .original-area { flex-direction: column; align-items: start; padding: 22px; gap: 20px; }
  #original { width: min(240px,100%); }
  .reflection { padding: 22px; }
  .answers { flex-direction: column; }
  footer { flex-direction: column; gap: 6px; }
}
@media (max-width: 360px) {
  .page-shell { width: calc(100% - 28px); }
  .topbar { padding: 0 14px; gap: 14px; }
  .topbar-note { font-size: 12px; max-width: 100px; text-align: right; }
  .tools { gap: 6px; }
  .tools > .quiet { padding: 9px 10px; }
  .tools > .text-button { font-size: 12px; }
  .grid-bottom { gap: 6px; font-size: 12px; }
  .grid-bottom .text-button { font-size: 12px; }
}
@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); }

/* Pixel search feedback stays on the main thread; matching runs in a worker. */
.more-starters { max-width: 370px; margin-top: 12px; }
.more-starters summary { color: var(--forest); }
.searching { padding: 24px 0 36px; max-width: 70ch; }
.searching h2 { width: fit-content; }
.searching p { margin-top: 12px; }
.searching button { margin-top: 24px; }
.thinking-pixels { display: grid; grid-template-columns: repeat(3, 14px); gap: 5px; width: max-content; margin-bottom: 24px; }
.thinking-pixels span { width: 14px; height: 14px; background: var(--forest); animation: thinking 1.8s ease-in-out infinite; }
.thinking-pixels span:nth-child(3n + 2) { animation-delay: .2s; }
.thinking-pixels span:nth-child(3n) { animation-delay: .4s; }
@keyframes thinking { 0%, 70%, 100% { opacity: 1; } 35% { opacity: .3; } }
.searching:not(.is-visible) .thinking-pixels span { animation-play-state: paused; }
.searching[hidden] .thinking-pixels span { animation: none; }
@media (prefers-reduced-motion: reduce) { .thinking-pixels span { animation: none; } }
.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: 760px) { .task-panel { grid-template-columns: 1fr; gap: 7px; padding: 22px; } }
