@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #382044;
  --muted: #6b596b;
  --paper: #fffcf4;
  --canvas: #ece7e2;
  --red: #a92f42;
  --red-dark: #822034;
  --gold: #f3c35e;
  --line: #d7ccd2;
  --green: #245c46;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, input, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #28758b;
  outline-offset: 5px;
}
button { color: inherit; }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: 1.6rem; letter-spacing: -.025em; }
svg { display: block; width: 64px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: 12px; top: -80px; padding: 12px; z-index: 20; background: white; }
.skip-link:focus { top: 12px; }
.masthead { max-width: 1240px; margin: auto; padding: 26px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 1.5rem; line-height: 1.05; letter-spacing: -.035em; }
.wordmark svg { width: 46px; height: 46px; }
.wordmark strong { font-weight: 900; }
.wordmark small { display: block; margin-top: 6px; font-size: .73rem; font-weight: 600; letter-spacing: .035em; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.text-button { border: 0; background: transparent; padding: 12px 4px; min-height: 48px; text-decoration: underline; text-underline-offset: 4px; font-size: .94rem; font-weight: 600; }
.access-button { background: transparent; border: 1px solid #bcaebc; border-radius: 6px; min-height: 44px; padding: 8px 15px; font-size: .87rem; font-weight: 700; }
.access-button:hover, .secondary-button:hover { background: #e7dce5; }
.access-panel { margin: 0 auto 24px; max-width: 1168px; padding: 28px 36px; background: #f7f1f5; border-block: 1px solid var(--line); }
.access-panel > div { max-width: 640px; }
.access-panel p { margin-top: 12px; }
.access-panel label { margin-top: 18px; display: block; font-size: .9rem; font-weight: 700; }
.login-fields { display: flex; gap: 12px; margin-top: 6px; }
.login-fields input { min-width: 0; flex: 1; }
.book-shell { max-width: 1168px; margin: 0 auto; display: grid; grid-template-columns: minmax(290px, .85fr) minmax(0, 1.15fr); min-height: 650px; background: var(--paper); border-radius: 9px 14px 14px 9px; box-shadow: 0 16px 42px -23px #38204466, 0 4px 0 #d9cbd0; }
.cover { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: 8px 0 0 8px; padding: 52px 44px 36px; display: flex; flex-direction: column; justify-content: space-between; }
.cover::after { position: absolute; content: ""; top: 0; bottom: 0; right: 7px; border-right: 1px solid #76517d; }
.cover-title { font-size: clamp(2.2rem, 3.5vw, 3.15rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; max-width: 9ch; }
.cover-title span { color: var(--gold); }
.cover-art { width: calc(100% + 50px); height: auto; aspect-ratio: 400 / 380; margin: -20px -25px -30px; }
.cover-note { color: #decde1; font-size: .88rem; max-width: 32ch; }
.page { padding: 57px 54px 40px; position: relative; }
.page::before { content: ""; position: absolute; right: 36px; top: 0; width: 20px; height: 40px; background: var(--red); clip-path: polygon(0 0,100% 0,100% 100%,50% 77%,0 100%); }
.intro-page { display: flex; flex-direction: column; justify-content: center; padding-bottom: 60px; }
.intro-page h1 { max-width: 12ch; }
.lead { color: var(--muted); margin-top: 18px; max-width: 38ch; font-size: 1.05rem; }
.name-form { margin-top: 36px; }
label { font-weight: 700; }
.field-hint { display: block; margin-top: 7px; color: var(--muted); font-size: .85rem; }
input { width: 100%; padding: 14px 16px; border: 1.5px solid #ac97aa; border-radius: 6px; background: #fffefa; color: var(--ink); min-height: 52px; }
input::placeholder { color: #7c6a7c; opacity: 1; }
.name-input { margin-top: 9px; font-size: 1.5rem; padding: 13px 17px; }
.field-error { color: #942b3b; font-size: .92rem; margin-top: 8px; }
.primary-button { border: 1px solid var(--red); border-radius: 6px; padding: 14px 23px; min-height: 54px; color: #fff9ee; background: var(--red); font-weight: 700; display: inline-flex; gap: 20px; justify-content: center; align-items: center; line-height: 1.35; }
.primary-button:hover:not(:disabled) { background: var(--red-dark); border-color: var(--red-dark); }
.name-form .primary-button { margin-top: 26px; width: 100%; }
.arrow { font-size: 1.35rem; font-weight: 400; }
.privacy-note { font-size: .8rem; color: var(--muted); margin-top: 20px; }
.footer { max-width: 1240px; margin: auto; padding: 25px 36px 30px; display: flex; justify-content: space-between; gap: 18px; font-size: .76rem; color: var(--muted); }
.chapter-cover { padding-top: 43px; justify-content: flex-start; }
.chapter-cover .cover-title { font-size: clamp(2rem, 3vw, 2.8rem); max-width: 11ch; }
.chapter-cover .cover-art { margin-top: auto; opacity: .92; }
.profile-name { margin-bottom: 22px; color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.profile-name::before { content: ""; width: 20px; border-top: 2px solid var(--gold); }
.progress-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 27px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.steps { display: flex; gap: 5px; flex: 1; }
.step { height: 5px; flex: 1; background: #e5dbe0; border-radius: 1px; }
.step.done { background: var(--red); }
.question-page { padding-top: 37px; }
.question-page h1 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); max-width: 16ch; }
.question-page .lead { font-size: .94rem; margin-top: 12px; }
.choice-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 122px; border: 1.5px solid #d5c9d2; border-radius: 9px; padding: 12px 6px; background: #fffefa; font-size: .86rem; line-height: 1.2; font-weight: 700; text-align: center; }
.choice svg { width: 60px; height: 60px; }
.choice:hover { border-color: #9c789e; background: #f5edf5; }
.choice[aria-pressed="true"] { border-color: var(--ink); background: #ece1ef; box-shadow: inset 0 0 0 1px var(--ink); }
.choice[aria-pressed="true"]::after { content: "\2713"; position: absolute; top: 5px; right: 7px; font-size: .85rem; font-weight: 800; color: var(--ink); }
.custom-choice { margin-top: 17px; font-size: .85rem; }
.custom-choice summary { cursor: pointer; min-height: 36px; padding: 5px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.custom-choice label { display: block; margin-block: 8px 5px; }
.custom-choice input { font-size: 1rem; }
.page-navigation { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; }
.secondary-button { border: 1px solid #bcaebc; background: transparent; padding: 12px 18px; border-radius: 6px; min-height: 50px; font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right .text-button { font-size: .83rem; }
.review-page h1 { font-size: 2.45rem; }
.answer-list { padding: 0; margin: 25px 0 10px; list-style: none; }
.answer-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e6dce1; }
.answer-list svg { width: 36px; height: 36px; flex-shrink: 0; }
.answer-list li > span { flex: 1; }
.answer-list small { display: block; color: var(--muted); font-size: .73rem; }
.answer-list .text-button { font-size: .8rem; }
.review-note { margin-top: 18px; font-size: .82rem; color: var(--muted); }
.waiting-page { text-align: center; display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 600px; }
.waiting-page .waiting-art { width: 170px; height: 170px; position: relative; margin-bottom: 20px; }
.waiting-art .book-icon { position: absolute; width: 150px; height: 150px; bottom: -5px; left: 0; }
.waiting-art .feather-icon { position: absolute; width: 90px; height: 90px; right: 0; top: -4px; transform-origin: 20% 85%; animation: writing 2.4s cubic-bezier(.16, 1, .3, 1) infinite; }
.waiting-page h1 { font-size: 2.2rem; }
.waiting-page .lead { max-width: 30ch; }
.waiting-page .text-button { margin-top: 22px; }
.motion-toggle { font-size: .8rem; }
.motion-paused .feather-icon { animation-play-state: paused; }
.result-shell { grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr); }
.result-page { padding-top: 45px; }
.result-page h1 { font-size: 2.5rem; }
.result-label { margin-top: 12px; color: var(--muted); font-size: .85rem; }
.poem { margin: 28px 0; font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 1.8; }
.couplet { margin-bottom: 17px; }
.signature { margin-top: 24px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.025em; }
.signature svg { display: inline-block; vertical-align: middle; width: 36px; height: 36px; margin-left: 4px; }
.review-check { margin-top: 20px; padding: 18px 0; border-block: 1px solid var(--line); font-size: .87rem; }
.review-check label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.review-check input { width: 20px; height: 20px; min-height: 20px; margin: 3px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.review-check p { margin-top: 8px; color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 23px; }
.email-action { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.email-action[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.email-panel { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.email-panel h3 { margin: 0 0 12px; font-size: 1.25rem; }
.email-form { margin-top: 20px; }
.email-form label { display: block; margin-bottom: 10px; }
.email-form input { width: 100%; min-height: 52px; background: var(--field-white, #fffefa); color: var(--ink); border: 1.5px solid #ac97aa; border-radius: 6px; padding: 14px; font: inherit; }
.email-form button { margin-top: 16px; }
.queue-summary { margin-bottom: 18px; }
.email-note { max-width: 65ch; }
.demo-notice { margin-top: 18px; padding: 14px 16px; background: #eee5c9; font-size: .85rem; }
.inline-error { padding-block: 15px; margin-top: 15px; border-block: 1px solid #d49aa0; }
.inline-error p { color: #942b3b; font-size: .93rem; }
.status-text { min-height: 24px; margin-top: 12px; font-size: .85rem; color: var(--green); }
.error-panel svg { width: 110px; height: 110px; margin-bottom: 25px; }
.error-panel h1 { font-size: 2.2rem; }
.workspace-nav { max-width: 1168px; margin: 0 auto 18px; padding-block: 6px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5; background: var(--canvas); }
.workspace-nav [aria-current="page"], .workbook-filters [aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#queue-status { color: var(--muted); font-size: .85rem; }
.workbook-shell { display: block; }
.workbook-shell > .cover { display: none; }
.workbook-page { padding: 38px; }
.workbook-page > h1 { font-size: 2.25rem; }
.workbook-page > .lead { max-width: 65ch; margin-top: 12px; }
.workbook-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-block: 24px; }
.workbook-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.workbook-filters button { font-size: .88rem; padding-inline: 14px; }
.workbook-columns { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.8fr); gap: 30px; align-items: start; }
.poem-list { list-style: none; padding: 0; margin: 0; }
.poem-list li + li { margin-top: 9px; }
.poem-list-button { display: flex; width: 100%; flex-direction: column; align-items: flex-start; text-align: left; gap: 3px; border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: transparent; overflow-wrap: anywhere; min-height: 96px; }
.poem-list-button strong { font-size: 1.2rem; }
.poem-list-button span { font-size: .9rem; }
.poem-list-button small { font-size: .78rem; color: var(--muted); }
.poem-list-button[aria-pressed="true"] { background: #ece1ef; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.poem-list-button:hover { border-color: var(--ink); }
.empty-workbook { padding: 20px 0; color: var(--muted); }
.poem-detail { border-top: 1px solid var(--line); padding-top: 22px; min-width: 0; }
.poem-detail .poem { font-size: 1rem; overflow-wrap: anywhere; }
.queue-note { padding-block: 18px; color: var(--muted); }
.workbook-review { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; min-height: 48px; }
.workbook-review input { width: 24px; min-height: 24px; height: 24px; flex-shrink: 0; accent-color: var(--ink); margin: 0; }
.feedback-form { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.feedback-form label { display: block; margin-bottom: 10px; }
.feedback-form textarea { width: 100%; resize: vertical; min-height: 110px; background: #fffefa; color: var(--ink); border: 1.5px solid #ac97aa; border-radius: 6px; padding: 14px; }
.feedback-form button { margin-top: 16px; }
.version-history { margin-top: 26px; }
.version-history summary { cursor: pointer; min-height: 48px; padding-block: 12px; }
.old-poem { white-space: pre-wrap; font-size: .9rem; margin-block: 12px 24px; }
@media (min-width: 760px) and (orientation: landscape) and (max-height: 900px) {
  .masthead { padding-block: 14px; }
  .workspace-nav { margin-bottom: 12px; }
  .book-shell { min-height: 0; }
  .book-shell:not(.workbook-shell) { grid-template-columns: minmax(200px, .55fr) minmax(0, 1.45fr); }
  .cover { padding: 30px; }
  .cover-title, .chapter-cover .cover-title { font-size: 2.2rem; }
  .cover-art { max-height: 240px; margin-block: 0; }
  .page { padding: 28px 36px; }
  .intro-page { min-height: 490px; }
  .intro-page h1 { max-width: 17ch; }
  .name-form { margin-top: 22px; }
  .question-page h1 { max-width: none; font-size: 2rem; }
  .question-page .lead { max-width: none; }
  .progress-wrap { margin-bottom: 15px; }
  .choice-grid { margin-top: 16px; }
  .choice { min-height: 108px; font-size: .94rem; }
  .choice svg { width: 52px; height: 52px; }
  .custom-choice { margin-top: 10px; }
  .page-navigation { margin-top: 12px; }
  .review-page h1 { font-size: 2rem; }
  .answer-list { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .answer-list li { min-width: 0; }
  .review-note { margin-top: 12px; }
  .footer { padding-block: 14px; }
  .workbook-page { padding: 28px 32px; }
  .workbook-columns { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.8fr); }
  .workbook-columns > .poem-list { position: sticky; top: 82px; max-height: calc(100dvh - 110px); overflow-y: auto; }
  .poem-detail .poem { line-height: 1.65; }
  .poem-detail .couplet { margin-bottom: 12px; }
  .custom-choice summary { min-height: 48px; }
}
@keyframes writing { 0%, 100% { transform: rotate(-9deg) translate(0, 0); } 25% { transform: rotate(4deg) translate(8px, -4px); } 60% { transform: rotate(-2deg) translate(-4px, 3px); } }
@media (min-width: 1300px) { .masthead { padding-block: 36px; } .book-shell { min-height: 680px; } }
@media (max-width: 900px) {
  .masthead { padding: 20px 24px; }
  .book-shell { margin-inline: 24px; grid-template-columns: .7fr 1.3fr; min-height: 620px; }
  .workspace-nav { margin-inline: 24px; flex-wrap: wrap; }
  .workbook-shell { min-height: 0; }
  .cover { padding: 39px 26px 27px; }
  .cover-title { font-size: 2.4rem; }
  .page { padding-inline: 32px; }
  .choice-grid { gap: 9px; }
  .choice { font-size: .82rem; }
  .footer { padding-inline: 24px; }
  .result-shell { grid-template-columns: 1fr; }
  .result-shell .cover { display: none; }
}
@media (max-width: 620px) {
  .masthead { padding: 17px 18px; gap: 10px; }
  .wordmark { font-size: 1.25rem; gap: 5px; }
  .wordmark svg { width: 34px; height: 38px; }
  .wordmark small { font-size: .63rem; margin-top: 5px; }
  .header-actions { gap: 7px; }
  .header-actions .text-button { font-size: .72rem; max-width: 82px; line-height: 1.3; }
  .access-button { font-size: .72rem; padding-inline: 8px; min-height: 44px; }
  .book-shell { margin: 0 12px; display: flex; flex-direction: column; min-height: 0; border-radius: 8px; }
  .cover { border-radius: 8px 8px 0 0; padding: 23px 25px; min-height: 166px; justify-content: center; }
  .cover::after { top: auto; left: 0; bottom: 5px; right: 0; height: 0; border-right: 0; border-top: 1px solid #76517d; }
  .cover-title { font-size: 1.55rem; max-width: 10.5ch; position: relative; z-index: 1; }
  .cover-art { position: absolute; margin: 0; width: 180px; height: 171px; right: -6px; bottom: -10px; }
  .cover-note { display: none; }
  .page { padding: 34px 25px 28px; }
  .page::before { right: 20px; width: 17px; height: 28px; }
  .intro-page { padding-top: 32px; }
  .intro-page h1 { font-size: 2.15rem; max-width: 13ch; }
  .intro-page .lead { font-size: .95rem; margin-top: 13px; }
  .name-form { margin-top: 25px; }
  .name-input { font-size: 1.25rem; }
  .name-form .primary-button { margin-top: 20px; }
  .privacy-note { margin-top: 14px; font-size: .74rem; }
  .chapter-cover { min-height: 0; padding: 16px 25px; }
  .chapter-cover .cover-title, .chapter-cover .cover-art, .chapter-cover .cover-note { display: none; }
  .profile-name { margin: 0; font-size: .88rem; }
  .question-page { padding-top: 27px; }
  .progress-wrap { margin-bottom: 20px; }
  .question-page h1 { font-size: 1.9rem; max-width: 17ch; }
  .question-page .lead { font-size: .86rem; margin-top: 10px; }
  .choice-grid { margin-top: 22px; gap: 10px; }
  .choice { min-height: 115px; padding: 10px 4px; font-size: .78rem; }
  .choice svg { width: 55px; height: 55px; }
  .page-navigation { gap: 8px; margin-top: 20px; }
  .page-navigation .primary-button { padding-inline: 19px; }
  .secondary-button { padding-inline: 13px; font-size: .9rem; }
  .nav-right { gap: 8px; }
  .nav-right .text-button { font-size: .75rem; }
  .footer { padding: 21px 22px 26px; flex-direction: column; gap: 6px; font-size: .7rem; }
  .review-page h1, .result-page h1 { font-size: 2rem; }
  .waiting-page { min-height: 480px; }
  .poem { font-size: .97rem; line-height: 1.85; overflow-wrap: anywhere; }
  .access-panel { padding: 22px; }
  .login-fields { flex-direction: column; }
  .workspace-nav { margin-inline: 12px; flex-wrap: wrap; gap: 8px; }
  #queue-status { flex-basis: 100%; padding-inline: 6px; }
  .workbook-page { padding: 30px 20px; }
  .workbook-page > h1 { font-size: 1.9rem; }
  .workbook-columns { display: block; }
  .poem-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; }
  .poem-list li { flex: 0 0 180px; }
  .poem-list li + li { margin: 0; }
  .workbook-filters { gap: 6px; }
  .workbook-filters button { padding: 10px; font-size: .82rem; }
  .workbook-toolbar > .primary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
@media print {
  @page { size: A4 portrait; margin: 18mm; }
  :root { background: transparent; color: black; }
  body { min-width: 0; background: transparent; color: black; }
  .masthead, .footer, .cover, .review-check, .result-actions, .result-label, .demo-notice, .access-panel, .status-text, .page::before { display: none !important; }
  .workspace-nav, .workbook-page > h1, .workbook-page > .lead, .workbook-toolbar, .poem-list, .workbook-review, .feedback-form, .version-history, .email-panel, .workbook-page .review-note, .workbook-page .privacy-note, .queue-note { display: none !important; }
  .workbook-columns { display: block; }
  .book-shell { display: block; background: transparent; margin: 0; box-shadow: none; border-radius: 0; min-height: 0; max-width: none; }
  .page, .workbook-page { padding: 0; }
  .poem-detail { border: 0; padding: 0; }
  .poem-detail > :not(h2):not(.poem) { display: none !important; }
  .poem-detail > h2, .result-page > h1 {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 28pt; font-style: italic; font-weight: 400;
    line-height: 1.15; letter-spacing: 0; text-align: left;
    text-wrap: initial; max-width: none; color: black;
    padding-bottom: 7mm; margin-bottom: 8mm; border-bottom: .5pt solid black;
    overflow-wrap: anywhere; break-after: avoid;
  }
  .poem, .poem-detail .poem {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 14pt; font-weight: 400; line-height: 1.55;
    letter-spacing: 0; max-width: none; margin: 0;
    color: black; overflow: visible; overflow-wrap: anywhere;
    orphans: 2; widows: 2;
  }
  .couplet, .poem-detail .couplet { margin: 0 0 5mm; break-inside: avoid; }
  .signature {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 20pt; font-weight: 400; font-style: italic;
    line-height: 1.2; letter-spacing: 0; margin-top: 9mm; color: black; break-before: avoid;
  }
  .signature svg { display: none; }
  body:not(.reviewed) .poem-detail::after,
  body:not(.reviewed) .result-page::after {
    content: "Nog niet nagelezen door Piet."; display: block;
    font: 11pt/1.4 Georgia, serif; margin-top: 8mm; color: black;
  }
}
