@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
:root {
  color-scheme: light;
  font-family: 'DM Sans', sans-serif;
  color: #173a32;
  background: #f4f0e6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #173a32;
  --muted: #53685e;
  --paper: #fffdf7;
  --forest: #175c49;
  --line: #d2d6c8;
  --lime: #dce8c8;
  --coral: #bd3f2c;
  scrollbar-color: #718779 #f4f0e6;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
button { cursor: pointer; }
button, summary { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
h2:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--lime); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.skip-link { position: absolute; top: 10px; left: 16px; z-index: 5; padding: 12px 18px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.topbar { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 5vw, 76px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; min-height: 44px; flex-shrink: 0; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { display: grid; width: 26px; height: 26px; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { border-radius: 5px; background: var(--forest); }
.brand-mark span:nth-child(2) { background: #edbd51; }
.brand-mark span:nth-child(3) { background: #bd3f2c; }
.topbar-note { color: var(--muted); font-size: 13px; font-weight: 700; text-align: right; }
.page-shell { width: min(1280px, 100% - 64px); margin: auto; padding: 40px 0 48px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(38px, 4.5vw, 62px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
h1 em { color: var(--coral); font-style: normal; }
.intro p { color: var(--muted); margin-top: 16px; max-width: 55ch; }
.session-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; padding-bottom: 2px; }
#choice-count { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quiet-button { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; color: var(--ink); background: transparent; font-size: 13px; }
.quiet-button:hover { background: #e8eadb; }
.session-note { min-height: 26px; margin: 22px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.shelf { min-width: 0; }
.shelf-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 20px; scroll-margin-top: 20px; }
h2 { font-size: 23px; letter-spacing: -.025em; line-height: 1.25; }
.shelf-heading p { margin-top: 6px; max-width: 50ch; color: var(--muted); font-size: 14px; }
.surprise-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; min-height: 46px; border: 0; border-radius: 9px; padding: 10px 16px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 15px; }
.surprise-button:hover:enabled { background: #c5de6a; }
.surprise-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.book-card { min-width: 0; display: flex; flex-direction: column; }
.book-cover { position: relative; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; align-items: start; padding: 18px 20px 14px 24px; background: var(--cover-paper); color: var(--cover-ink); border-radius: 3px 10px 10px 3px; }
.book-cover::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .3; }
.cover-theme { position: relative; font-size: 12px; font-weight: 700; }
.book-title { position: relative; z-index: 1; max-width: 16ch; margin: 15px 0 60px; font-family: Fraunces, Georgia, serif; font-size: clamp(23px, 2.15vw, 31px); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; hyphens: auto; overflow-wrap: anywhere; }
.cover-foot { position: relative; margin-top: auto; font-size: 10px; font-weight: 700; }
.cover-geometry { position: absolute; width: 112px; height: 112px; border: 22px solid currentColor; border-radius: 50%; opacity: .16; bottom: 28px; right: -28px; }
.cover-variant-1 .cover-geometry { border-radius: 0; transform: rotate(32deg); right: -20px; }
.cover-variant-2 .cover-geometry { border-radius: 60px 60px 0 0; width: 120px; height: 90px; border-width: 16px; }
.book-body { flex: 1; display: flex; flex-direction: column; padding: 13px 0 0; }
.book-description { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: auto 0 12px; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.tags li + li::before { content: '·'; margin-right: 8px; }
.choose-button { min-height: 44px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: var(--forest); color: var(--paper); font-weight: 700; font-size: 14px; }
.choose-button:hover { background: #104534; }
.book-reason { margin-top: 3px; font-size: 12px; }
summary { cursor: pointer; min-height: 44px; align-content: center; }
summary::marker { color: var(--forest); }
.book-reason summary { width: fit-content; color: var(--muted); }
.book-reason p, .book-reason ul { margin-bottom: 10px; }
.book-reason ul { padding-left: 20px; }
.score-total { color: var(--muted); }
.catalog-note { margin-top: 26px; color: var(--muted); font-size: 12px; }
.insights { min-width: 0; }
.bubble-panel { background: var(--ink); padding: 24px; border-radius: 12px; color: var(--paper); }
.bubble-panel h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.15; }
#bubble-copy { margin-top: 12px; font-size: 14px; color: #e3e9d6; }
.distribution { display: grid; gap: 12px; margin: 25px 0; }
.theme-row { display: grid; grid-template-columns: 60px 1fr 26px; align-items: center; gap: 9px; font-size: 12px; }
.theme-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.theme-slots > span { height: 19px; background: #36574c; border-radius: 2px; transition: background-color .4s cubic-bezier(.16, 1, .3, 1); }
.theme-slots > span.filled { background: var(--slot-color); }
.theme-number { color: #e3e9d6; font-variant-numeric: tabular-nums; text-align: right; }
.bubble-meaning { padding-top: 17px; border-top: 1px solid #557565; font-size: 12px; color: #e3e9d6; }
.maker-rules, .history { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.maker-rules summary, .history summary { font-weight: 700; font-size: 14px; }
.maker-rules p { margin: 10px 0; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 16px 0; }
legend { margin-bottom: 8px; font-weight: 700; }
fieldset label { display: flex; gap: 9px; min-height: 56px; padding: 9px 0; cursor: pointer; }
fieldset input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--forest); margin: 3px 0 0; }
fieldset small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
#rule-explanation { background: #e6ead6; padding: 12px; border-radius: 9px; }
.history ol { margin: 8px 0; padding-left: 22px; }
.history li + li { margin-top: 8px; }
#history-empty { color: var(--muted); padding: 4px 0; }
.local-note { margin-top: 18px; color: var(--muted); font-size: 12px; max-width: 40ch; }
.reflection { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 30px; margin-top: 32px; border-radius: 12px; background: #e3eacb; }
.reflection h2 { font-family: Fraunces, Georgia, serif; font-size: 32px; font-weight: 600; }
.reflection p { margin-top: 10px; max-width: 65ch; }
.answers { display: grid; gap: 9px; margin-top: 18px; }
.answers button { min-height: 46px; padding: 10px 14px; text-align: left; border: 1px solid #8b9e7b; background: var(--paper); border-radius: 9px; color: var(--ink); font-size: 14px; }
.answers button:hover { background: #f3f6e6; }
.answers button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.answer-feedback { font-size: 14px; }
.answer-feedback:empty { margin: 0; }
.library-question { padding-top: 6px; }
.library-question h3 { font-size: 21px; }
#surprise-reminder { font-size: 14px; font-weight: 700; }
.stamp { font-family: Fraunces, Georgia, serif; font-size: 25px; font-weight: 600; color: var(--forest); }
.stamp small { display: block; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400; margin-top: 8px; color: var(--ink); }
.empty-shelf { grid-column: 1 / -1; padding: 36px 24px; border: 1px solid var(--line); border-radius: 12px; }
.empty-shelf p { margin: 12px 0 24px; }
.empty-shelf .choose-button { width: auto; }
.noscript { margin-top: 20px; }
.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: 1100px) {
  .page-shell { width: calc(100% - 48px); }
  .game-layout { gap: 24px; grid-template-columns: minmax(0, 1fr) 270px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-title { font-size: 29px; }
  .session-actions { flex-direction: column; gap: 8px; align-items: end; }
  .shelf-heading { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .page-shell { width: calc(100% - 40px); padding-top: 30px; }
  .intro { align-items: start; flex-direction: column; gap: 20px; }
  .intro p { margin-top: 14px; }
  .session-actions { flex-direction: row; width: 100%; align-items: center; justify-content: space-between; }
  .session-note { margin-top: 18px; }
  .game-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .shelf { display: contents; }
  .shelf-heading { order: 0; margin-bottom: 0; }
  .insights { display: contents; }
  .bubble-panel { order: 1; }
  .book-grid { order: 2; }
  .catalog-note { order: 3; margin-top: 0; }
  .maker-rules { order: 4; }
  .history { order: 5; }
  .local-note { order: 6; max-width: none; margin-top: 0; }
  .shelf { width: 100%; }
  .book-cover { min-height: 245px; }
  .book-title { font-size: clamp(25px, 4.5vw, 33px); }
  .book-grid { gap: 24px 16px; }
  .reflection { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .footer { flex-wrap: wrap; gap: 8px 20px; }
}
@media (max-width: 520px) {
  .page-shell { padding-top: 20px; }
  .intro { gap: 12px; }
  h1 { font-size: 32px; }
  .intro p { margin-top: 10px; font-size: 14px; }
  .session-actions { gap: 8px; }
  #choice-count { font-size: 12px; }
  .quiet-button { font-size: 12px; }
  .session-note { margin: 12px 0 16px; padding-top: 12px; font-size: 12px; }
  .game-layout { gap: 16px; }
  .bubble-panel { padding: 14px; }
  .bubble-panel h2 { font-family: 'DM Sans', sans-serif; font-size: 18px; }
  #bubble-copy { margin-top: 6px; font-size: 12px; }
  .distribution { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
  .theme-row { grid-template-columns: 1fr 23px; gap: 4px; font-size: 11px; }
  .theme-slots { grid-row: 2; grid-column: 1 / -1; }
  .theme-slots > span { height: 8px; }
  .theme-number { grid-column: 2; grid-row: 1; }
  .bubble-meaning { padding-top: 9px; font-size: 11px; }
  .book-grid { grid-template-columns: 1fr; gap: 24px; }
  .book-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; align-items: stretch; }
  .book-cover { padding: 12px 10px 12px 16px; min-height: 205px; }
  .book-title { font-size: 22px; margin: 12px 0 40px; }
  .cover-theme { font-size: 11px; }
  .cover-foot { font-size: 9px; }
  .cover-geometry { width: 88px; height: 88px; border-width: 16px; }
  .book-body { padding-top: 0; }
  .book-description { font-size: 13px; }
  .book-reason { font-size: 12px; }
  .choose-button { font-size: 13px; padding-inline: 6px; }
  .shelf-heading { flex-wrap: nowrap; align-items: center; gap: 12px; }
  .shelf-heading h2 { font-size: 20px; }
  .shelf-heading p { display: none; }
  .surprise-button { font-size: 13px; padding-inline: 12px; }
}
@media (max-width: 360px) {
  h1 { font-size: 30px; }
  .book-title { font-size: 19px; }
  .book-cover { padding-left: 14px; }
  .cover-foot { font-size: 8px; }
  .topbar { gap: 14px; }
  .topbar-note { max-width: 13ch; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: 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 30px; padding: 26px 30px; background: var(--lime); 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; } }
