/* Hallmark · shape: the counter sleeve, split into a small site (home, voorbeeld, prijzen, zo werkt het, vragen; Conversational FAQ drawn, refused: the copy's heads are fixed statements) · genre: editorial · theme: Carnival (deal by request), with five departures by owner's instruction · job: buy · copy: verbatim · draw: 77c874
 * hero: Counter on / (the record and the sample player as the buy box, beside the head and the order button), Banner on the inner pages, bestellen.html and the text pages · nav: bar (wordmark left, four page links and the Bestel button right, hairline under; named for gate 42; links wrap under the wordmark on phones, never hidden) · footer: mast (the wordmark on ink over the links and the photo credits) · imagery: photographs, library 3 (record in the hero, hand writing, typewriter), natural · product: the sample player built on the real recording, on / and on voorbeeld.html · signature: the playable sample of Beste Kees on the record · carnival: diner-sign, departed from by owner's instruction: (1) several short pages instead of one long page, (2) a cool near-white paper instead of the theme's tinted paper, (3) no hard offset shadow on controls, wells or frames, (4) no halftone or dotted texture, (5) pastel red and blue instead of cherry and navy
 * axes: light/display-heavy/chromatic-red · posture: full-palette (pastel red fills the record frame, the price band, the primary button and the total; pastel blue the date band; muted blue rules, links and focus; ink the footer) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · weakest: P, the words are the copy file's and fixed; each page makes one point (hear it, the price, how it works, the doubts) and ends on the order action */
/* Hallmark · waive 44c · bestellen.html is stamped Banner, a short head over the form · the order form starts at once on bestellen.html; the form is the page and no visual belongs above it */
/* Hallmark · waive 77 · the close on every page is a band of one heading and one action, and the seasonal date band holds the two dates at poster size · owner's instruction: several short pages, each ending with the order action; the close and the season's two dates are the only thin bands on the site */
/* Hallmark · dismissed 77 · bestellen.html is the order form, one task, and the inner pages are short single-topic pages by owner's instruction */
/* Hallmark · dismissed 23 · posture full-palette: pastel red fills the price band and the record frame, pastel blue the date band; both declared, both light */
/* Hallmark · dismissed F4 · the player control is ink, not the pastel red primary; it starts the sample, a different job from ordering */
/* Hallmark · answered F1 · the straight quotes sit in the order form hints and the audited Voor je bestelt text, kept character for character */
/* Hallmark · answered F2 · the three periods are the blanks of the statutory model withdrawal form on herroepen.html, legal text kept as written */
/* Hallmark · answered F7 · inputs, selects and textareas share one field recipe on purpose: the order form reads as one form */
/* Hallmark · answered F23 · only the landing page has a meta description in the copy file; no new Dutch is written for the other pages */

/* Refreintje, design v4 round 3: Hallmark Carnival type and composition on a calm surface (owner's instruction):
   cool near-white paper, pastel red and blue, borders and fills for every state, no shadows, no texture.
   Files: fonts.css (self-hosted faces), tokens.css and base.css (Hallmark scaffold; tokens.css carries the palette),
   then this file. Every colour and font comes from tokens.css.
   Order: sizes, chrome, controls, photographs, home, inner pages, order page, text pages, responsive. */

:root {
  /* The face is narrow, so display sizes sit a step above the shared scale (theme Type). */
  --text-poster: clamp(3.25rem, 1.25rem + 7.4vw, 9rem);
  --text-figure: clamp(3rem, 1rem + 5.4vw, 7.25rem);
  --text-h2: clamp(2.5rem, 1.25rem + 3.4vw, 4.5rem);
  --text-lyric: clamp(1.375rem, 1.6vw + 0.875rem, 2.25rem);
  --text-mast: clamp(3rem, 1rem + 5vw, 6rem);
  --nav-h: 72px;
  --control-h: 52px;
  --tilt: 1deg;
  --press: 1px;
}

/* ---------- Base additions ---------- */
body { line-height: 1.6; }
b, strong { font-weight: 500; }
h1, h2, h3 { text-transform: uppercase; line-height: 1.02; }
/* Inner pages: the first heading one step below the home hero. */
h1 { font-size: var(--text-h2); max-width: 16ch; }
h2 { font-size: var(--text-h2); max-width: 18ch; }
h3 { font-size: var(--text-title); line-height: 1.08; }
a { color: var(--color-ink); text-decoration-color: var(--color-accent-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-micro) var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(48rem + 2 * var(--gutter)); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Nav: a bar on the paper, a hairline under it ---------- */
.topbar { border-bottom: var(--rule-hair) solid var(--color-paper-3); background: var(--color-paper); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-lg); min-height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font: var(--display-weight) var(--text-2xl)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--color-accent-2); }
.topnav { display: flex; flex-wrap: wrap; column-gap: var(--space-lg); margin-inline-start: auto; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.topnav a:hover { color: var(--color-accent-2); }
.topnav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.topbar__cta { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: auto; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); color: var(--color-ink); font: var(--display-weight) var(--text-lg)/1 var(--font-display); text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.topnav + .topbar__cta { margin-inline-start: 0; }
.topbar__cta:hover { background: var(--color-paper-3); }
.topbar__cta:active { background: var(--color-accent); }
.topbar__cta[aria-current="page"] { background: var(--color-paper-2); }

/* ---------- Controls: a soft red fill and an outlined block; states by fill and border, no shadow ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: var(--control-h); padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font: var(--display-weight) var(--text-lg)/1 var(--font-display); text-transform: uppercase; letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(var(--press)); background: var(--color-paper-3); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: var(--color-paper); }
.btn--primary { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover, .btn--primary:active { border-color: var(--color-accent-hover); background: var(--color-accent-hover); }
.btn--primary:disabled:hover { border-color: var(--color-accent); background: var(--color-accent); }
.btn--large { padding: var(--space-sm) var(--space-xl); font-size: var(--text-xl); }
.btn[aria-busy="true"] { cursor: progress; }

/* ---------- Photographs: straight, borderless, on the paper ---------- */
.photo { margin: 0; border-radius: var(--radius-card); background: var(--color-paper-2); }

/* ---------- Sections and bands ---------- */
/* Rhythm: a paper section pads --space-2xl (64px) top and bottom, so two paper sections stand 128px apart;
   a band (a change of paper) pads --section-gap-s (120px) inside. */
.section { padding-block: var(--space-2xl); }
.band { position: relative; padding-block: var(--section-gap-s); }
.band--a { background: var(--color-field); color: var(--color-ink); }
.band--b { background: var(--color-field-2); color: var(--color-ink); }
.page-head { padding-top: var(--space-3xl); }

/* ---------- Home: hero (Counter) ---------- */
.hero { display: flex; align-items: center; min-height: calc(100dvh - var(--nav-h)); padding-block: var(--space-xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-2xl); align-items: center; }
.hero__text { display: grid; justify-items: start; gap: var(--space-lg); }
.hero h1 { font-size: var(--text-poster); max-width: 11ch; }
.hero__lead { max-width: 30ch; }
/* The changing headline word (headline.js): every word stacked in one cell, only the current one visible, so the
   slot keeps the width of the widest word and the lines never change. */
.hero__words { display: inline-grid; justify-items: start; }
.hero__w { grid-area: 1 / 1; visibility: hidden; }
.hero__w.is-on { visibility: visible; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xs); }
.hero__facts { display: grid; gap: var(--space-2xs); }
.hero__price { font-size: var(--text-lead); font-weight: 500; }
.hero__date { max-width: 46ch; color: var(--color-ink-2); }

.hero__stage { display: grid; justify-items: center; }
/* The one tilted object on the site: the record, multiplied onto a pastel red frame. */
.photo--record { position: relative; width: min(100%, 640px, 64dvh); aspect-ratio: 1; background: var(--color-field); transform: rotate(var(--tilt)); }
.photo--record > img { mix-blend-mode: multiply; filter: contrast(1.05); }

/* The player: a paper panel with an ink hairline; over the record's lower left corner on the home page. */
.player { position: relative; z-index: var(--z-raised); display: grid; gap: var(--space-md); width: min(100%, 27rem); margin: 0; padding: var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-card); background: var(--color-paper); }
.hero__stage .player { justify-self: start; margin-top: calc(-1 * var(--space-4xl)); margin-left: calc(-1 * var(--space-xl)); }
.player__top { display: flex; align-items: center; gap: var(--space-md); }
.player__btn { display: inline-grid; place-items: center; flex-shrink: 0; width: 72px; height: 72px; padding: 0; border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.player__btn:hover, .is-playing .player__btn { border-color: var(--color-accent-2); background: var(--color-accent-2); }
.player__btn:active { transform: translateY(var(--press)); }
.player__btn:disabled { opacity: 0.55; cursor: not-allowed; }
.player__icon { width: 30px; height: 30px; fill: currentColor; }
.player__icon--pause, .is-playing .player__icon--play { display: none; }
.is-playing .player__icon--pause { display: block; }
.player__info { min-width: 0; }
.player__title { font: var(--display-weight) var(--text-2xl)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.player__meta { margin-top: var(--space-2xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.player__time { margin-inline-start: auto; font: var(--display-weight) var(--text-xl)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.player__track { height: 6px; border-radius: var(--radius-pill); background: var(--color-paper-3); overflow: hidden; }
.player__fill { display: block; height: 100%; background: var(--color-accent-2); transform: scaleX(0); transform-origin: left center; transition: transform 250ms linear; }
.player__native { width: 100%; }

/* ---------- Home: the way into the other pages, as an index of ruled rows ---------- */
.entries__list { margin: 0; padding: 0; list-style: none; border-bottom: var(--rule-hair) solid var(--color-ink); }
.entry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap-columns); align-items: baseline; padding: var(--space-xl) var(--space-md); border-top: var(--rule-hair) solid var(--color-ink); color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out); }
.entry:hover { background: var(--color-paper-2); }
.entry:active { background: var(--color-paper-3); }
.entry:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.entry__title { font-size: var(--text-section); max-width: none; }
.entry__line { font-size: var(--text-lead); font-weight: 500; max-width: 44ch; }
.entry:hover .entry__line { text-decoration: underline; text-decoration-color: var(--color-accent-2); text-underline-offset: 0.2em; }

/* ---------- The dates (seasonal) on the pastel blue field ---------- */
.dates__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.dates__head { grid-column: 1 / span 12; display: grid; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.dates__head .lead { max-width: 60ch; }
.dates__list { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.date { display: grid; gap: var(--space-lg); align-content: start; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-ink); }
.date + .date { margin-left: var(--gap-columns); }
.date dt { font: var(--display-weight) var(--text-figure)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; }
.date dd { margin: 0; font-size: var(--text-lead); font-weight: 500; line-height: 1.4; max-width: 28ch; }

/* ---------- Voorbeeld: the lyric sheet beside the head and the player ---------- */
.lyric__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.lyric__head { grid-column: 1 / span 5; display: grid; justify-items: start; gap: var(--space-lg); }
.lyric__head .lead { max-width: 30ch; }
.sheet { grid-column: 7 / span 6; position: relative; margin: 0; padding: var(--space-xl) var(--space-2xl) var(--space-xl); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper-2); }
.sheet__tag { margin-bottom: var(--space-md); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; }
.sheet__text { display: grid; gap: var(--space-lg); }
.sheet__title { font: var(--display-weight) var(--text-section)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.sheet__lines { display: grid; gap: var(--space-xs); font: var(--display-weight) var(--text-lyric)/1.12 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.sheet__lines span { display: block; padding-left: 1.2em; text-indent: -1.2em; }
.sheet__sign { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lead); font-weight: 500; }

/* ---------- Prijzen: the three figures on the pastel red field ---------- */
.prices { padding-top: var(--space-2xl); }
.price__name { font-size: var(--text-title); max-width: none; font-variant-numeric: tabular-nums; }
.prices__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-xl) 0 0; padding: 0 0 var(--space-xl); list-style: none; border-top: var(--rule-hair) solid var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-ink); }
.price { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg) var(--space-lg) 0; border-left: var(--rule-hair) solid var(--color-ink); }
.price:first-child { padding-left: 0; border-left: 0; }
.price__amount { order: -1; font: var(--display-weight) var(--text-figure)/0.95 var(--font-display); letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__line { font-size: var(--text-lead); font-weight: 500; line-height: 1.4; }
.prices__foot { display: grid; justify-items: start; gap: var(--space-lg); margin-top: var(--space-xl); }
.prices__facts { display: grid; gap: var(--space-2xs); max-width: 60ch; font-size: var(--text-lead); font-weight: 500; line-height: 1.45; }
.founding span { margin-left: var(--space-2xs); }

/* ---------- Zo werkt het: the form preview beside the photo; who makes it over the typewriter ---------- */
.ask__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; }
.photo--ask { grid-column: 1 / span 6; position: relative; aspect-ratio: 5 / 4; }
.photo--ask > img { object-position: 60% 50%; }
.ask__body { grid-column: 8 / span 5; display: grid; gap: var(--space-xl); }
/* The form preview: the order form's material (a paper-2 well, rows on paper), no shadow. */
.ask__card { display: grid; gap: var(--space-lg); padding: var(--space-xl); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper-2); }
.ask__list { margin: 0; padding: 0; list-style: none; border-bottom: var(--rule-hair) solid var(--color-muted); }
.ask__list li { display: flex; align-items: center; min-height: var(--control-h); padding: var(--space-sm) var(--space-md); border-top: var(--rule-hair) solid var(--color-muted); background: var(--color-paper); font-size: var(--text-lead); font-weight: 500; line-height: 1.35; }
.ask__foot { font-size: var(--text-lead); font-weight: 500; }
.maker__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
.maker__head h2 { grid-column: 1 / span 6; font-size: var(--text-section); }
.maker__text { grid-column: 8 / span 5; display: grid; gap: var(--space-xs); }
/* The typewriter's grey ground, lifted and multiplied onto the paper so its edges disappear. */
.photo--maker { position: relative; aspect-ratio: 1600 / 686; margin-top: var(--space-2xl); background: var(--color-paper); }
.photo--maker > img { object-position: 60% 60%; filter: brightness(1.16) contrast(1.18); mix-blend-mode: multiply; }

/* ---------- Vragen: rows ruled in muted blue ---------- */
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.faq__grid > h1, .faq__grid > h2 { grid-column: 1 / span 4; }
.faq__rows { grid-column: 5 / span 8; border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); column-gap: var(--gap-columns); padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.faq__row h2, .faq__row h3 { font-size: var(--text-xl); }
.faq__row p { font-size: var(--text-lead); line-height: 1.5; }

/* ---------- Close: on every page but the order form ---------- */
.close { padding-block: var(--space-2xl) var(--section-gap-s); }
.close__inner { display: grid; justify-items: start; gap: var(--space-xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-ink); }
.close h2 { font-size: var(--text-h2); max-width: 14ch; }
.home .close h2 { font-size: var(--text-poster); }

/* ---------- Footer: a mast on ink ---------- */
.footer { --color-focus: var(--color-paper); background: var(--color-ink); color: var(--color-paper); padding-block: var(--space-3xl) var(--space-xl); }
.footer a { color: var(--color-paper); text-decoration-color: var(--color-accent); }
.footer a:hover { text-decoration-color: var(--color-paper); }
.footer__inner { display: grid; gap: var(--space-xl); }
.footer__name { font: var(--display-weight) var(--text-mast)/0.9 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin: 0; padding: var(--space-lg) 0 0; list-style: none; border-top: var(--rule-hair) solid var(--color-paper); }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-lead); white-space: nowrap; }
.footer__links a[aria-current="page"] { text-decoration-color: var(--color-paper); }
.footer__credits { max-width: 90ch; font-size: var(--text-sm); }

/* ---------- Order page ---------- */
.order { padding-block: var(--space-2xl) var(--section-gap-s); }
.order__head { display: grid; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.demo-banner { max-width: 60ch; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper-2); font-weight: 500; }
.notice { display: grid; gap: var(--space-md); max-width: 60ch; margin-bottom: var(--space-2xl); padding: var(--space-xl); border: var(--rule-hair) solid var(--color-ink); background: var(--color-field-2); }
.notice h2 { font-size: var(--text-section); }

/* Eight explicit rows (the form's eight children besides the total); hidden children take none and the rows carry no gap
   (spacing is each child's margin), so the total can span every row. It sits at the foot of that span, beside the
   order button, and sticks to the bottom of the screen while the form scrolls: the live total is in view when the
   button is pressed (round 2). */
#order-form { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); column-gap: var(--gap-columns); align-items: start; }
#order-form > * { grid-column: 1 / span 8; margin: 0 0 var(--space-2xl); }
#order-form > .total { grid-column: 10 / span 3; grid-row: 1 / -1; align-self: end; position: sticky; bottom: var(--space-lg); margin: 0; }
fieldset { min-width: 0; margin: 0; padding: var(--space-xl); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper-2); display: grid; gap: var(--space-lg); }
legend { float: left; width: 100%; margin-bottom: var(--space-xs); padding: 0; font: var(--display-weight) var(--text-2xl)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
legend + * { clear: both; }
.field { display: grid; gap: var(--space-xs); min-width: 0; }
.field > label, .label { font-weight: 500; }
.opt { font-weight: 400; color: var(--color-ink-2); }
.hint { min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); max-width: 60ch; }
input[type="text"], input[type="email"], input[type="date"], select, textarea { width: 100%; min-height: var(--control-h); padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); outline: 2px solid transparent; outline-offset: -3px; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
textarea { min-height: 6rem; resize: vertical; line-height: 1.5; }
select { cursor: pointer; }
input:hover, select:hover, textarea:hover { border-color: var(--color-ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--color-ink); outline-color: var(--color-focus); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; background: var(--color-paper-2); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--color-error); }

/* Options as ruled rows that invert when chosen. */
.options { display: grid; border: var(--rule-hair) solid var(--color-muted); border-top: 0; }
.option { display: flex; align-items: center; gap: var(--space-md); min-height: var(--control-h); padding: var(--space-sm) var(--space-md); border-top: var(--rule-hair) solid var(--color-muted); background: var(--color-paper); font-weight: 500; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.option input { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--color-accent); }
.option:hover { background: var(--color-paper-3); }
.option:has(input:checked) { background: var(--color-ink); color: var(--color-paper); }
.option:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.option:has(input:checked):has(input:focus-visible) { outline-color: var(--color-paper); }
.option:has(input:checked) input:focus-visible, .paymethod:has(input:checked) input:focus-visible { outline-color: var(--color-paper); }
.option:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.option:has(input:disabled):hover { background: var(--color-paper); }
.option:has(input:checked) a { color: var(--color-paper); text-decoration-color: var(--color-paper); }
.field > .option, .option--block { border: var(--rule-hair) solid var(--color-muted); }
.option--block { align-items: flex-start; }
.option--block input { margin-top: 0.2em; }

/* The live total in the capitals, on the soft red. */
.total { display: grid; gap: var(--space-xs); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-accent); color: var(--color-accent-ink); font: var(--display-weight) var(--text-2xl)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.total strong { display: block; font: var(--display-weight) var(--text-figure)/0.95 var(--font-display); font-variant-numeric: tabular-nums; }
#total-note { font: 500 var(--text-md)/1.4 var(--font-body); text-transform: none; letter-spacing: 0; }

.errors { padding: var(--space-lg); border: var(--rule-bar) solid var(--color-error); background: var(--color-paper); }
.errors ul { margin: var(--space-xs) 0 0; padding-left: var(--space-lg); }

.paymethods, .before-order { display: grid; gap: var(--space-md); }
.paymethods h3, .before-order h3 { font-size: var(--text-2xl); }
.paymethods__list { display: grid; }
.paymethod { display: flex; align-items: center; gap: var(--space-md); min-height: 64px; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper); font-weight: 500; cursor: pointer; }
.paymethod:hover { background: var(--color-paper-3); }
.paymethod:has(input:checked) { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); }
.paymethod:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.paymethod input { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--color-accent); }
.paymethod__logo:empty { display: none; }
/* The official lock-up stays on a light, non-transparent ground with free space on every side (D-087). */
.paymethod__logo { flex-shrink: 0; background: var(--color-paper); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); padding: .7rem; }
.paymethod__logo img { display: block; width: 84px; height: 32px; }
.before-order { padding: var(--space-xl); border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper); }
.before-order ul { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.before-order li { padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-paper-3); max-width: 70ch; }
#order-form > button { justify-self: stretch; width: 100%; margin-bottom: 0; padding-block: var(--space-sm); font-size: var(--text-xl); }
.summary { display: grid; gap: var(--space-lg); max-width: 48rem; padding: var(--space-xl); border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper-2); }
.summary dl { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--space-xs) var(--space-lg); margin: 0; }
.summary dt { font-weight: 500; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.summary .poem { white-space: pre-line; }
.demo-notice { font-weight: 500; }

/* Honeypot (live build): out of sight and out of the tab order. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Text pages (terms, privacy, cancel, contact, payment and download states) ---------- */
.legal { padding-block: var(--space-2xl) var(--section-gap-s); }
.legal .wrap { display: grid; gap: var(--space-md); }
.legal h1 { margin-bottom: var(--space-md); }
.legal h2 { margin-top: var(--space-xl); font-size: var(--text-2xl); max-width: 30ch; }
.legal h3 { margin-top: var(--space-md); font-size: var(--text-xl); }
.legal p, .legal li { max-width: 68ch; line-height: 1.65; }
.legal ul, .legal ol { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
.legal-list > li::marker { font-family: var(--font-display); font-weight: var(--display-weight); }
.legal form { display: grid; gap: var(--space-lg); justify-items: start; }
.legal form > fieldset { width: 100%; }
.model-form { display: grid; gap: var(--space-md); padding: var(--space-xl); border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper-2); }
.company { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
/* The files page that functions/api/download.js generates: one form and button per file; only the first is filled. */
.dl-file { margin: 0; }
.dl-file ~ .dl-file .btn--primary { border-color: var(--color-ink); background: var(--color-paper); color: var(--color-ink); }
.dl-file ~ .dl-file .btn--primary:hover { background: var(--color-paper-3); }
.table-wrap { overflow-x: auto; border-block: var(--rule-hair) solid var(--color-rule); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-paper-3); text-align: left; vertical-align: top; }
th { font-weight: 500; }

/* ---------- The pay mode blocks: the demo site shows the Mollie blocks; make-live keeps only the built mode's ---------- */
[data-pay="closed"] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: var(--space-xl) var(--space-3xl); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  /* Narrow screens: the record and the player come straight after the headline and its sentence. */
  .hero__text { display: contents; }
  .hero__text > h1 { order: 1; }
  .hero__lead { order: 2; }
  .hero__stage { order: 3; justify-items: center; margin-block: var(--space-md); }
  .hero__actions { order: 4; }
  .hero__facts { order: 5; }
  .photo--record { width: min(100%, 22rem); transform: none; }
  .hero__stage .player { justify-self: center; margin-top: calc(-1 * var(--space-2xl)); margin-left: 0; }
  .lyric__head, .sheet, .photo--ask, .ask__body, .dates__head, .dates__list, .maker__head h2, .maker__text, .faq__grid > h1, .faq__grid > h2, .faq__rows { grid-column: 1 / -1; }
  .lyric__grid, .ask__grid, .dates__grid, .faq__grid { row-gap: var(--space-xl); }
  .sheet { margin-top: var(--space-md); padding: var(--space-xl) var(--space-lg) var(--space-lg); }
  .maker__head { row-gap: var(--space-lg); }
  .entry { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); padding-inline: 0; }
  /* Three price items stay in three columns down to phones (no half-empty second row); the gap serves the phone stack. */
  .prices__list { row-gap: var(--space-xl); }
  #order-form { grid-template-rows: none; }
  #order-form > *, #order-form > .total { grid-column: 1 / -1; grid-row: auto; position: static; }
  /* Narrow screens: the live total directly above the order button. */
  #order-form > .total { order: 1; margin-bottom: var(--space-lg); }
  #order-form > button { order: 2; }
}
@media (max-width: 40rem) {
  /* Phones: the page links wrap onto their own line under the wordmark and the button; nothing is hidden. */
  .topbar__inner { padding-block: var(--space-xs); }
  .topnav { order: 3; width: 100%; margin-inline-start: 0; column-gap: var(--space-md); }
  .topnav + .topbar__cta { margin-inline-start: auto; }
  /* Phones: the lyric lines in the body face, sentence case, at lead size. */
  .sheet__lines { font: 500 var(--text-lead)/1.45 var(--font-body); text-transform: none; letter-spacing: 0; }
  .prices__list, .dates__list { grid-template-columns: minmax(0, 1fr); }
  .price { padding-left: 0; border-left: 0; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-ink); }
  .price:first-child { border-top: 0; }
  .date + .date { margin-top: var(--space-lg); margin-left: 0; }
  .faq__row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
  fieldset, .before-order, .notice, .model-form, .summary, .ask__card { padding: var(--space-lg) var(--space-md); }
  .player { padding: var(--space-md); }
  .player__btn { width: 60px; height: 60px; }
  .summary dl { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .topbar__cta, .player__btn, .option, .entry, a, input, select, textarea, .player__fill { transition: none; }
  .btn:active, .player__btn:active { transform: none; }
}
