/* Happy Little Brush: a neutral gallery for AI-made art.
   The pieces bring strong, varied colour, so the room has none: a grey wall,
   ink type, and white recipe sheets. The newest work plays full-bleed, the
   collection reads as a programme of titles, and each art recipe is printed
   on a white sheet. Actions are ink. Red is kept for anything simulated. */


@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/fonts/atkinson-next-roman.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/fonts/atkinson-next-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("/fonts/atkinson-mono.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  /* The room: neutral, so every piece's own colours read true. */
  --room: #e6e5e2;
  --room-raised: #dad9d5;
  --room-deep: #121212;
  --rule: #c2c1bc;
  --text: #121212;
  --text-soft: #3f3e3b;
  --text-faint: #77756f;
  /* The recipe sheet */
  --sheet: #fbfbfa;
  --sheet-shade: #efeeeb;
  --sheet-rule: #d3d2cd;
  --sheet-ink: #121212;
  --sheet-ink-soft: #4b4a46;
  /* Actions are ink; red is kept for anything simulated. */
  --action: #121212;
  --action-deep: #000;
  --on-action: #fbfbfa;
  --alert: #c8321f;
  --alert-ink: #b02a19;

  --rail: 56px;
  --gutter: clamp(16px, 3.6vw, 56px);
  --display: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  --serif: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--room); }
body {
  background: var(--room);
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--action); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--text); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--display); font-weight: 600; line-height: 1.15; }
p { margin: 0 0 0.8em; }
cite { font-style: italic; font-family: var(--serif); }
code { font-family: var(--mono); font-size: 0.86em; background: var(--room-raised); padding: 0.05em 0.3em; }
.muted { color: var(--text-faint); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

/* Buttons: flat, square-cornered. Cadmium for the one action that matters. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.7em 1.15em; border: 1px solid var(--text); border-radius: 0;
  background: transparent; color: var(--text); font: 600 0.95rem/1.15 var(--display);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover { background: var(--text); color: var(--room); text-decoration: none; }
.button:disabled { opacity: 0.4; cursor: not-allowed; }
.button:disabled:hover { background: transparent; color: var(--text); }
.button.primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
.button.primary:hover { background: var(--text-soft); border-color: var(--text-soft); color: var(--on-action); }
.button.primary:disabled:hover { background: var(--action); border-color: var(--action); }
.button.quiet { border-color: var(--rule); }
.button.quiet:hover { border-color: var(--text); }
.button.small { padding: 0.45em 0.8em; font-size: 0.88rem; }
.button.large { padding: 0.95em 1.6em; font-size: 1.08rem; }
.text-button {
  border: 0; background: none; padding: 0; color: var(--action); font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.text-button:hover { color: var(--text); }

/* The rail: a thin fixed strip across the top of the room. */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--rail);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); background: var(--room); border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand .mascot { width: 30px; height: 30px; }
.brand-name { font-family: var(--display); font-size: 1.12rem; font-weight: 700; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--action); padding-bottom: 3px; }
.nav-link .count { color: var(--text-faint); }
.short-label { display: none; }

.app { padding: 0 var(--gutter) 80px; outline: none; }

/* Credits: the facts about a piece, set as a film programme credit block. */
.credits { margin: 0; display: grid; gap: 10px; font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; }
.credits div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding-top: 10px; border-top: 1px solid var(--rule); }
.credits dt { color: var(--text-faint); font-style: italic; }
.credits dd { margin: 0; color: var(--text); }
.credits dd.is-free { color: var(--action); }
.credits a { color: inherit; text-decoration-color: var(--rule); }
.credits a:hover { color: var(--action); text-decoration-color: currentColor; }

/* The programme: every piece, as a list of titles set large. */
.programme-section { margin-top: clamp(56px, 7vw, 96px); }
.programme-section.no-lead { margin-top: 48px; }
.programme-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 12px clamp(24px, 4vw, 56px); align-items: end;
  padding-bottom: 20px; border-bottom: 2px solid var(--text);
}
.programme-head h2 { margin: 0; font-size: 1.6rem; font-weight: 700; }
.programme-head p { margin: 0; max-width: 36em; font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; color: var(--text-soft); }
.collection-filters { display: flex; flex-wrap: wrap; gap: 20px; align-items: baseline; font-size: 0.95rem; font-weight: 500; }
.filter-link { color: var(--text-soft); text-decoration: none; }
.filter-link:hover { color: var(--text); }
.filter-link.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--action); }

.programme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 34%); gap: clamp(24px, 4vw, 64px); align-items: start; }
.programme.compact { grid-template-columns: 1fr; }
.programme-list { list-style: none; margin: 0; padding: 0; }
.programme-list li { border-bottom: 1px solid var(--rule); }
.reel {
  display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 0 20px; align-items: center;
  padding: 22px 0 20px; color: var(--text); text-decoration: none;
}
.reel:hover { color: var(--text); text-decoration: none; }
.reel-number { font-size: 0.95rem; font-weight: 500; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.reel-thumb { display: none; }
.reel-title { font-size: clamp(2rem, 4.6vw, 4.4rem); font-weight: 650; line-height: 1.1; transition: color 0.15s; }
.reel-facts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--serif); font-size: 1rem; color: var(--text-soft); text-align: right; }
.reel-facts .is-free { color: var(--action); }
.reel.playing .reel-title, .reel:hover .reel-title, .reel:focus-visible .reel-title { color: var(--action); }
.reel.playing .reel-number { color: var(--action); }
.programme-screen { position: sticky; top: calc(var(--rail) + 24px); margin-top: 22px; }
.programme-frame { position: relative; aspect-ratio: 16 / 10; background: var(--room-deep); overflow: hidden; }
.programme-frame .piece-media { position: absolute; inset: 0; }
.programme-caption { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--text-soft); }
.programme-caption::before { content: "Playing: "; font-style: normal; color: var(--text-faint); }
.programme-screen:not(.live) .programme-caption::before { content: "Hover a title to play it here."; font-style: italic; }

.programme.compact .reel { grid-template-columns: 3.4em 160px minmax(0, 1fr) auto; align-items: center; padding: 14px 0; }
.programme.compact .reel-thumb { display: block; aspect-ratio: 4 / 3; background: var(--room-deep); overflow: hidden; }
.programme.compact .reel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.programme.compact .reel-title { font-size: clamp(1.6rem, 3vw, 2.6rem); }

/* Piece media */
.piece-media { display: block; border: 0; width: 100%; height: 100%; background: var(--room-deep); object-fit: cover; }
iframe.no-input { pointer-events: none; }
.live-preview { position: absolute; inset: 0; background: transparent; }

/* Breadcrumbs */
.crumbs { padding: 22px 0; font-size: 0.92rem; color: var(--text-faint); }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .separator { margin: 0 0.6em; color: var(--rule); }

/* Piece page: the feature plays full-bleed, credits under it, then the recipe. */
.feature-screen { height: min(74svh, 60vw); min-height: 320px; background: var(--room-deep); }
.feature-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 32px; align-items: end; padding-bottom: 28px; border-bottom: 2px solid var(--text); }
.feature-band .crumbs { grid-column: 1 / -1; padding: 18px 0 10px; }
.feature-band h1 { margin: 0; font-size: clamp(2.8rem, 8vw, 8.4rem); font-weight: 700; line-height: 1.1; }
.feature-actions { display: flex; gap: 10px; padding-bottom: 0.4em; }
.feature-notes { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 96px); padding: 32px 0 0; }
.maker-note { margin: 0; padding: 0; border: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; color: var(--text); max-width: 30em; }
.maker-note footer { margin-top: 12px; font-family: var(--display); font-size: 0.9rem; color: var(--text-faint); }
.tested-note { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--text-faint); }

/* The art recipe: a linen sheet handed out after the screening. Section
   names hang in the left margin; prompts are indented like dialogue. */
.art-recipe {
  margin: clamp(48px, 7vw, 96px) auto 0; max-width: 1180px; padding: clamp(28px, 4vw, 64px) clamp(20px, 5vw, 80px) clamp(36px, 5vw, 72px);
  background: var(--sheet); color: var(--sheet-ink);
}
.art-recipe a { color: var(--sheet-ink); text-decoration-color: var(--sheet-rule); }
.art-recipe a:hover { color: var(--sheet-ink-soft); }
.art-recipe code { background: var(--sheet-shade); }
.art-recipe .button { color: var(--text); text-decoration: none; }
.art-recipe .button.primary, .art-recipe .button:hover { color: var(--on-action); }
.art-recipe .members-actions a:not(.button) { color: var(--action); }
.art-recipe-header { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 8px 40px; align-items: end; padding-bottom: 26px; }
.art-recipe-header h2 { grid-column: 1 / -1; margin: 0 0 6px; font-size: 1.6rem; font-weight: 700; }
.art-recipe-standfirst { grid-column: 2; margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: var(--sheet-ink-soft); max-width: 34em; }
.art-recipe-header .copy-button { grid-column: 3; }
.free-note { margin: 0 0 18px 240px; font-family: var(--serif); font-style: italic; color: var(--sheet-ink-soft); }

.recipe-section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 40px; padding: 22px 0 8px; border-top: 1px solid var(--sheet-ink); }
.recipe-section > * { grid-column: 2; max-width: 44rem; }
.recipe-section > h3, .recipe-section > summary { grid-column: 1; grid-row: 1 / span 40; margin: 0; font-size: 1.35rem; font-weight: 650; line-height: 1.1; color: var(--sheet-ink); }
.recipe-section p, .recipe-section li { font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; }
.recipe-section h4 { font-size: 1.25rem; font-weight: 600; margin: 4px 0 10px; }
.recipe-section h4 ~ h4 { margin-top: 30px; }
.recipe-section ul { padding-left: 1.1em; margin-top: 0; }
details.recipe-section summary { cursor: pointer; list-style: none; }
details.recipe-section summary::-webkit-details-marker { display: none; }
details.recipe-section summary::after { content: "Show"; display: block; margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 1rem; font-weight: 400; color: var(--sheet-ink-soft); }
details[open].recipe-section summary::after { content: "Hide"; }
details.recipe-section:not([open]) { padding-bottom: 22px; }

.recipe-section .ingredient-list { list-style: none; padding: 0; margin: 0; }
.ingredient-list li { display: grid; grid-template-columns: minmax(120px, 36%) minmax(0, 1fr); gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--sheet-rule); }
.ingredient-list li:first-child { padding-top: 0; }
.ingredient-list strong { font-weight: 600; color: var(--sheet-ink); }
.ingredient-list span { color: var(--sheet-ink-soft); }

.prompt-block { margin: 12px 0 16px 2.2em; }
.prompt-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--sheet-ink-soft); margin-bottom: 4px; }
.prompt-block pre { margin: 0; padding: 14px 18px 16px; background: var(--sheet-shade); white-space: pre-wrap; word-wrap: break-word; font: 0.9rem/1.65 var(--mono); color: var(--sheet-ink); }
.copy-button { border: 0; background: none; padding: 0; font: 600 0.88rem var(--display); color: var(--sheet-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.copy-button:hover { color: var(--sheet-ink); }
.code-block { background: var(--sheet-shade); color: var(--sheet-ink); padding: 12px 14px; overflow-x: auto; font: 0.84rem/1.55 var(--mono); }
.code-block code { background: none; padding: 0; font-size: inherit; }
blockquote { margin: 10px 0; padding: 0 0 0 1.2em; border: 0; font-family: var(--serif); }
blockquote.why-note { margin: 4px 0 20px 2.2em; padding: 0; font-style: italic; color: var(--sheet-ink-soft); font-size: 1.05rem; }
blockquote.why-note strong { font-style: normal; font-family: var(--display); font-size: 0.92rem; font-weight: 700; color: var(--sheet-ink); margin-right: 0.5em; }

.make-your-own { margin-top: 36px; padding: 28px clamp(20px, 3vw, 36px); background: var(--room); color: var(--text); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; }
.make-your-own h3 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.make-your-own p { grid-column: 1; margin: 0; font-family: var(--serif); font-size: 1.08rem; color: var(--text-soft); }
.make-your-own .button { grid-column: 2; grid-row: 1 / span 2; }

/* A locked recipe shows its shape as blank ruled lines, never its text. */
.locked-recipe { user-select: none; }
.locked-section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 40px; padding: 20px 0 14px; border-top: 1px solid var(--sheet-ink); }
.locked-section h3 { grid-row: 1 / span 6; margin: 0; font-size: 1.35rem; font-weight: 650; color: var(--sheet-ink); }
.locked-section h3 span { display: block; margin-top: 6px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1rem; color: var(--sheet-ink-soft); }
.locked-section h3 span::after { content: " in the recipe"; }
.ruled-line { grid-column: 2; height: 30px; border-bottom: 1px solid var(--sheet-rule); position: relative; }
.ruled-line::before { content: ""; position: absolute; left: 0; bottom: 9px; height: 9px; width: var(--length, 70%); background: var(--sheet-shade); }
.members-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 32px; padding: 30px clamp(20px, 3vw, 40px); background: var(--room); color: var(--text); }
.members-note .mascot { display: block; }
.members-note h3 { font-size: 1.3rem; font-weight: 700; margin: 0 0 10px; }
.members-note p { font-family: var(--serif); font-size: 1.08rem; color: var(--text-soft); margin-bottom: 18px; max-width: 36em; }
.members-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 0.95rem; }
.members-actions a:not(.button) { color: var(--action); }

.more-works { margin-top: clamp(56px, 7vw, 96px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.section-head h2 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.section-head a { font-size: 0.95rem; font-weight: 500; }

/* Full-screen viewer: the lights go all the way down. */
body.viewer-open { overflow: hidden; }
body.viewer-open .site-header { display: none; }
body.viewer-open .app { padding: 0; }
.viewer {
  --text: #f2f1ee; --text-soft: #c9c8c3; --text-faint: #8d8b85; --rule: #3a3a38; --action: #f2f1ee; --on-action: #121212;
  position: fixed; inset: 0; background: var(--room-deep); z-index: 30; color: var(--text);
}
.viewer-art { position: absolute; inset: 0; }
.viewer-control {
  position: absolute; z-index: 2; border: 1px solid rgba(241, 234, 219, 0.5); border-radius: 0;
  background: rgba(15, 23, 69, 0.7); color: var(--text); font: 600 0.9rem var(--display);
  padding: 0.55em 0.9em; cursor: pointer; text-decoration: none;
}
.viewer-control:hover { background: var(--text); color: var(--on-action); text-decoration: none; }
.viewer-close { top: 16px; left: 16px; }
.viewer-arrow { top: 50%; transform: translateY(-50%); font-size: 1.05rem; padding: 0.45em 0.7em; }
.viewer-arrow.prev { left: 16px; }
.viewer-arrow.next { right: 16px; }
.viewer-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
  background: var(--room-deep); border-top: 1px solid var(--rule); touch-action: none;
}
.viewer-title cite { display: block; font-family: var(--display); font-style: normal; font-weight: 700; font-size: 1.7rem; line-height: 1.1; }
.viewer-title span { font-size: 0.88rem; color: var(--text-faint); }
.viewer-actions { display: flex; gap: 10px; }
.viewer-actions .viewer-control { position: static; }
.viewer-actions .viewer-control.primary { background: var(--action); color: var(--on-action); border-color: var(--action); }
.swipe-hint { display: none; width: 100%; text-align: center; font-size: 0.8rem; color: var(--text-faint); }

/* Join: the price is the headline. */
.join-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding: clamp(40px, 6vw, 88px) 0; }
.join-intro h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.1; margin-bottom: 24px; }
.join-intro p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: var(--text-soft); max-width: 24em; }
.join-intro .mascot { margin-top: 24px; }
.join-reel { margin-top: 40px; }
.join-reel p { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--text-faint); }
.join-reel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.join-reel a { display: block; color: var(--text); text-decoration: none; }
.join-reel a:hover span { color: var(--action); }
.join-reel img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--room-deep); }
.join-reel span { display: block; margin-top: 8px; font-size: 1.15rem; font-weight: 650; line-height: 1.1; }
.join-offer { align-self: start; border-top: 2px solid var(--text); padding-top: 20px; }
.join-price { display: flex; align-items: flex-end; gap: 14px; font-family: var(--serif); font-size: 1.2rem; color: var(--text-soft); margin-bottom: 26px; }
.join-price strong { font-family: var(--display); font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; color: var(--action); }
.join-benefits { list-style: none; padding: 0; margin: 0 0 30px; counter-reset: benefit; }
.join-benefits li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); padding: 12px 0; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 1.1rem; line-height: 1.4; counter-increment: benefit; }
.join-benefits li::before { content: counter(benefit); font-family: var(--display); font-weight: 600; color: var(--text-faint); }
.join-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.fine-print { color: var(--text-faint); font-family: var(--serif); font-style: italic; font-size: 0.98rem; margin-top: 14px; }
.agent-panel { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); }
.agent-panel h2 { font-size: 1.6rem; }
.agent-panel p { font-family: var(--serif); color: var(--text-soft); }
.agent-panel .code-block { background: var(--sheet); color: var(--sheet-ink); font-size: 0.8rem; margin: 12px 0; }
.agent-panel .copy-button { color: var(--action); }

/* Review queue: the dailies, waiting for a person to decide. */
.review-header { display: flex; align-items: flex-end; gap: 22px; padding: clamp(36px, 5vw, 64px) 0 26px; border-bottom: 2px solid var(--text); }
.review-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.1; margin: 0 0 12px; }
.review-header p { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--text-soft); }
.review-list { display: grid; }
.review-item { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 40px 0; border-bottom: 1px solid var(--rule); transition: opacity 0.3s, transform 0.3s; }
.review-item.leaving { opacity: 0; transform: translateX(16px); }
.review-preview { aspect-ratio: 4 / 3; background: var(--room-deep); }
.review-meta h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 18px; }
.review-meta .tombstone { font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; }
.review-meta .tombstone p { margin: 0; padding: 8px 0; border-top: 1px solid var(--rule); }
.review-meta .maker-note { margin-top: 20px; font-size: 1.15rem; }
.review-meta details { margin: 22px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; }
.review-meta summary { cursor: pointer; font-weight: 600; color: var(--action); }
.review-recipe { max-height: 380px; overflow: auto; margin-top: 12px; padding: 18px 20px; background: var(--sheet); color: var(--sheet-ink); }
.review-recipe p, .review-recipe li { font-family: var(--serif); }
.review-recipe h4 { font-size: 1.1rem; }
.review-recipe .prompt-block { margin-left: 0; }
.review-recipe .copy-button { color: var(--sheet-ink); }
.review-actions { display: flex; gap: 12px; margin-top: 24px; align-items: center; }
.review-empty { padding: 48px 0; font-family: var(--serif); font-size: 1.2rem; color: var(--text-soft); }

/* Studio: a workbench, and a receipt printed on paper. */
.studio-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; padding: 8px 0 26px; border-bottom: 2px solid var(--text); margin-bottom: 32px; }
.studio-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.1; margin: 0 0 14px; }
.studio-header p { margin: 0; font-family: var(--serif); color: var(--text-soft); font-size: 1.15rem; }
.studio-header cite { color: var(--text); }
.budget { font-family: var(--serif); font-size: 1.15rem; color: var(--text-soft); }
.budget input { width: 3em; margin: 0 0.2em; padding: 0 0.2em; border: 0; border-bottom: 2px solid var(--action); background: transparent; color: var(--action); font: 700 2rem var(--display); text-align: center; }
.budget input:focus { outline: none; border-bottom-color: var(--text); }
.budget .left { display: block; margin-top: 4px; font-family: var(--display); font-size: 0.9rem; color: var(--text-faint); text-align: right; }
.studio-layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.studio-side { position: sticky; top: calc(var(--rail) + 24px); display: grid; gap: 14px; }
.studio-side .piece-frame { aspect-ratio: 4 / 3; background: var(--room-deep); }
.studio-side h2 { font-size: 1.5rem; margin: 12px 0 0; }
.shopping-list { list-style: none; padding: 0; margin: 0; }
.shopping-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.swatch { width: 28px; height: 28px; }
.shopping-text { display: flex; flex-direction: column; min-width: 0; font-family: var(--serif); line-height: 1.3; }
.shopping-text span { color: var(--text-faint); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shopping-price { font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.twist-form { margin-bottom: 30px; }
.twist-form label { display: block; font-size: 1.2rem; font-weight: 650; margin-bottom: 10px; }
.twist-row { display: flex; gap: 10px; }
.twist-row input { flex: 1; min-width: 0; padding: 0.55em 0.8em; border: 1px solid var(--text); border-radius: 0; background: var(--sheet); color: var(--sheet-ink); font: 1.15rem var(--serif); }
.twist-row input::placeholder { color: var(--text-faint); }
.twist-row input:focus { outline: 2px solid var(--action); outline-offset: 0; }
.ingredient-table-head { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--text); font-size: 0.9rem; font-weight: 500; color: var(--text-faint); }
.ingredient-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ingredient-name { display: flex; flex-direction: column; line-height: 1.3; }
.ingredient-name strong { font-weight: 650; font-size: 1.12rem; }
.ingredient-name span { font-family: var(--serif); color: var(--text-faint); font-size: 0.98rem; margin-top: 2px; }
.ingredient-row.kept .suggestions { font-family: var(--serif); color: var(--text-faint); font-style: italic; }
.suggestions { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 6px; }
.suggestion {
  position: relative; flex: none; width: 132px; display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer;
}
.suggestion-art { display: block; aspect-ratio: 1 / 1; outline: 2px solid transparent; outline-offset: 3px; }
.suggestion:hover .suggestion-art { outline-color: var(--rule); }
.suggestion.chosen .suggestion-art { outline-color: var(--action); }
.suggestion-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggestion-title { font-family: var(--serif); font-size: 0.98rem; line-height: 1.25; }
.suggestion-price { font-size: 0.88rem; font-variant-numeric: tabular-nums; color: var(--text-soft); }
.suggestion-price.free { color: var(--action); }
.suggestion.chosen .suggestion-title::before { content: "Chosen: "; font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--action); }
.sample-tag { font-size: 0.8rem; color: var(--alert); }

.receipt {
  position: relative; max-width: 580px; margin: 48px 0 0; padding: 24px 26px 28px;
  background: var(--sheet); color: var(--sheet-ink); font: 0.86rem/1.7 var(--mono);
}
.receipt h2 { font: 700 1.3rem/1.2 var(--display); margin: 0 0 2px; }
.receipt .receipt-sub { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--sheet-ink-soft); margin-bottom: 14px; }
.receipt ol { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--sheet-rule); }
.receipt li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 10px; }
.receipt time { color: var(--sheet-ink-soft); }
.receipt .simulated { color: var(--alert-ink); font-weight: 600; }
.receipt-total { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--sheet-rule); font-weight: 600; }
.stamp {
  position: absolute; top: 20px; right: 20px; padding: 3px 10px; border: 2px solid var(--alert-ink); color: var(--alert-ink);
  font: 700 0.95rem var(--display); letter-spacing: 0.04em; transform: rotate(-5deg);
}
.studio-locked { max-width: 760px; padding-top: 12px; }
.studio-locked h1 { font-size: 2rem; font-weight: 700; }

/* Empty states and toast */
.empty-state { padding: 88px 0; max-width: 40em; }
.empty-state h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.empty-state p { font-family: var(--serif); font-size: 1.15rem; color: var(--text-soft); }
.empty-state.small { padding: 28px 0; }
.page-head { padding: clamp(36px, 5vw, 64px) 0 24px; border-bottom: 2px solid var(--text); margin-bottom: 8px; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.1; margin: 0 0 12px; }
.page-head p { margin: 0; font-family: var(--serif); color: var(--text-soft); font-size: 1.15rem; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); z-index: 50;
  background: var(--action); color: var(--on-action); padding: 0.7em 1.15em; font-weight: 600; font-size: 0.95rem;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .review-item, .reel-title { transition: none; }
}

/* Tablet */
@media (max-width: 1000px) {
  .programme-head { grid-template-columns: 1fr; }
  .programme { grid-template-columns: 1fr; }
  .programme-screen { display: none; }
  .reel { grid-template-columns: 3.4em 132px minmax(0, 1fr); align-items: center; }
  .reel-thumb { display: block; aspect-ratio: 4 / 3; background: var(--room-deep); overflow: hidden; }
  .reel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .reel-facts { grid-column: 3; align-items: flex-start; text-align: left; flex-direction: row; gap: 12px; margin-top: 6px; }
  .programme.compact .reel { grid-template-columns: 3.4em 132px minmax(0, 1fr); }
  .feature-notes { grid-template-columns: 1fr; }
  .studio-layout { grid-template-columns: 1fr; }
  .studio-side { position: static; }
  .join-page { grid-template-columns: 1fr; }
  .review-item { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 700px) {
  :root { --rail: 52px; }
  .site-header { gap: 10px; }
  .brand { gap: 8px; }
  .brand .mascot { width: 26px; height: 26px; }
  .brand { min-width: 0; }
  .brand-name { font-size: 0.98rem; }
  .site-nav { gap: 12px; flex: none; }
  .nav-link { font-size: 0.9rem; }
  .long-label { display: none; }
  .short-label { display: inline; }
  .nav-link.subtle, .nav-text { display: none; }
  .programme-section { margin-top: 56px; }
  .reel, .programme.compact .reel { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; }
  .reel-number { display: none; }
  .reel-thumb { grid-row: 1 / span 2; }
  .reel-title, .programme.compact .reel-title { grid-column: 2; font-size: 1.7rem; align-self: end; }
  .reel-facts { grid-column: 2; flex-wrap: wrap; font-size: 0.92rem; gap: 2px 10px; margin-top: 0; align-self: start; }
  .feature-screen { height: 62svh; min-height: 280px; }
  .feature-band { grid-template-columns: 1fr; padding-bottom: 20px; }
  .feature-band h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .feature-actions { padding: 16px 0 0; }
  .credits div { grid-template-columns: 6.5em minmax(0, 1fr); }
  .art-recipe { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 28px var(--gutter) 36px; }
  .art-recipe-header { grid-template-columns: 1fr; }
  .art-recipe-standfirst, .art-recipe-header .copy-button { grid-column: 1; justify-self: start; }
  .free-note { margin-left: 0; }
  .recipe-section, .locked-section { grid-template-columns: 1fr; }
  .recipe-section > *, .ruled-line { grid-column: 1; }
  .recipe-section > h3, .recipe-section > summary, .locked-section h3 { grid-row: auto; margin-bottom: 14px; }
  details.recipe-section summary { display: flex; justify-content: space-between; align-items: baseline; }
  details.recipe-section summary::after { margin-top: 0; }
  .prompt-block, blockquote.why-note { margin-left: 0; }
  .locked-section .ruled-line:nth-child(n+4) { display: none; }
  .ingredient-list li { grid-template-columns: 1fr; gap: 2px; }
  .members-note { grid-template-columns: 1fr; gap: 14px; }
  .members-note .mascot { width: 48px; height: auto; }
  .make-your-own { grid-template-columns: 1fr; }
  .make-your-own .button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
  .ingredient-table-head { display: none; }
  .ingredient-row { grid-template-columns: 1fr; gap: 10px; }
  .viewer-arrow { display: none; }
  .swipe-hint { display: block; }
  .viewer-bar { justify-content: center; text-align: center; }
  .viewer-title { width: 100%; }
  .receipt { padding: 20px 18px 24px; }
}


.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-price { margin-top: 14px; font-size: 0.95rem; color: var(--text-faint); }
.work { display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none; }
.work:hover { color: var(--text); text-decoration: none; }
.work-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--room-deep); }
.work-art .piece-media { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Home, first screen: the words that made a piece, typing out beside it. */
.prompt-hero { padding: clamp(28px, 4vw, 52px) 0 clamp(40px, 5vw, 64px); }
.prompt-hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 700; line-height: 1.1; margin: 0 0 clamp(24px, 3vw, 40px); }
.prompt-hero-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.prompt-hero-words { margin: 0; padding-top: 4px; border-top: 2px solid var(--text); }
.prompt-hero-words figcaption { padding: 12px 0 14px; font-size: 0.92rem; font-weight: 600; color: var(--text-soft); }
.prompt-typed { margin: 0; padding: 0; border: 0; font-family: var(--serif); font-size: clamp(1.2rem, 1.55vw, 1.5rem); line-height: 1.45; color: var(--text); white-space: pre-line; }
.prompt-typed .untyped { color: transparent; }
.prompt-typed.typing .typed::after { content: ""; display: inline-block; width: 0.08em; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--text); }
.prompt-hero-result { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--text-soft); }
.prompt-hero-result a { color: var(--text); font-weight: 600; }
.prompt-hero-art .piece-frame { aspect-ratio: 16 / 10; background: var(--room-deep); }
.prompt-hero-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(24px, 3.5vw, 56px); align-items: start; margin-top: clamp(24px, 3vw, 36px); }
.prompt-hero-foot > p:first-child { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--text-soft); max-width: 30em; }
.prompt-hero-foot .hero-price { grid-column: 2; margin: 0; align-self: center; }
.prompt-hero-words .hero-actions { margin-top: 22px; }

/* Home: the price, named once. */
.membership-band { margin-top: clamp(64px, 8vw, 112px); padding: clamp(28px, 4vw, 56px); background: var(--sheet); color: var(--sheet-ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 48px; align-items: end; }
.membership-band h2 { grid-column: 1; margin: 0; font-size: 1.8rem; font-weight: 700; }
.membership-band p { grid-column: 1; margin: 0; max-width: 38em; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--sheet-ink-soft); }
.membership-band .button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

@media (max-width: 1000px) {
  .membership-band { grid-template-columns: 1fr; }
  .membership-band .button { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (max-width: 700px) {
  .hero-actions .button.large { padding: 0.7em 1em; font-size: 0.98rem; }
  .hero-price { margin-top: 12px; font-size: 0.88rem; }
  .work-label { flex-direction: column; gap: 0; font-size: 0.85rem; }
}

/* Footer: what this is, once more, and the studio's own door. */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px;
  margin: 0 var(--gutter); padding: 28px 0 40px; border-top: 1px solid var(--rule);
  font-size: 0.9rem; color: var(--text-faint);
}
.footer-line { margin: 0; }
.footer-line strong { color: var(--text); font-weight: 700; margin-right: 0.5em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
body.viewer-open .site-footer { display: none; }



@media (max-width: 1000px) {
  .prompt-hero-body, .prompt-hero-foot { grid-template-columns: 1fr; }
  .prompt-hero-foot .hero-price { grid-column: 1; margin-top: 0; }
  .prompt-hero-art { order: -1; }
}
@media (max-width: 700px) {
  .prompt-hero { padding-top: 20px; }
  .prompt-hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); margin-bottom: 18px; }
  .prompt-typed { font-size: 1.08rem; }
  .prompt-hero-art .piece-frame { aspect-ratio: 4 / 5; }
  .hero-actions .button.large { padding: 0.7em 1em; font-size: 0.98rem; }
}

/* Explore: one short line, filters, and a grid of sketches. */
.explore-intro { padding: clamp(24px, 3.5vw, 44px) 0 18px; }
.explore-intro h1 { margin: 0; max-width: 40em; font-size: 1.15rem; font-weight: 400; line-height: 1.4; color: var(--text-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { display: inline-flex; gap: 0.45em; align-items: baseline; padding: 0.42em 0.85em; border: 1px solid var(--rule); border-radius: 4px; color: var(--text-soft); font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.chip span { color: var(--text-faint); font-weight: 400; }
.chip:hover { border-color: var(--text); color: var(--text); text-decoration: none; }
.chip.active { background: var(--action); border-color: var(--action); color: var(--on-action); }
.chip.active span { color: var(--on-action); opacity: 0.7; }
.sketch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 30px 20px; }
.sketch-grid.is-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sketch-grid { grid-auto-flow: dense; }
.sketch.is-live { grid-column: span 2; grid-row: span 2; }
.sketch.is-live .sketch-art { aspect-ratio: auto; flex: 1; min-height: 240px; }
.sketch { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; min-width: 0; }
.sketch:hover { color: var(--text); text-decoration: none; }
.sketch-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--room-deep); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 0.15s; }
.sketch:hover .sketch-art, .sketch:focus-visible .sketch-art { outline-color: var(--text); }
.sketch-art .piece-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.sketch-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 4px; }
.sketch-title { font-weight: 650; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sketch.is-live .sketch-title { font-size: 1.25rem; }
.sketch-recipe { flex: none; font-size: 0.82rem; color: var(--text-faint); }
.sketch-recipe.is-free { color: var(--text); font-weight: 600; }
.sketch-tools { font-size: 0.85rem; color: var(--text-faint); }
.join-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: clamp(48px, 6vw, 72px); padding: 22px 26px; background: var(--sheet); color: var(--sheet-ink); }
.join-strip p { margin: 0; max-width: 46em; font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; }

/* Piece page: a workbench. Art on the left, recipe on the right. */
.bench { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.bench-art { position: sticky; top: calc(var(--rail) + 16px); }
.bench-art .piece-frame { aspect-ratio: 16 / 10; background: var(--room-deep); }
.bench-art-actions { display: flex; gap: 10px; margin-top: 12px; }
.bench-side h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 700; line-height: 1.15; }
.bench-by { margin: 0; font-size: 0.95rem; color: var(--text-soft); }
.bench-by a { color: inherit; text-decoration-color: var(--rule); }
.bench-note { margin: 12px 0 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; color: var(--text); }
.bench .art-recipe { margin: 24px 0 0; padding: 20px 22px 24px; max-width: none; width: auto; }
.bench-recipe-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.bench-recipe-head h2 { margin: 0; font-size: 1.6rem; font-weight: 700; }
.bench .free-note { margin: 0 0 6px; font-size: 0.9rem; }
.bench .recipe-section, .bench .locked-section { display: block; padding: 16px 0 6px; }
.bench .recipe-section > *, .bench .ruled-line { max-width: none; }
.bench .recipe-section > h3, .bench .recipe-section > summary, .bench .locked-section h3 { font-size: 1.05rem; margin: 0 0 8px; }
.bench .locked-section h3 { display: flex; justify-content: space-between; }
.bench .locked-section h3 span { display: inline; margin: 0; font-size: 0.9rem; }
.bench .recipe-section p, .bench .recipe-section li { font-size: 1.02rem; }
.bench .recipe-section h4 { font-size: 1.08rem; }
.bench .prompt-block, .bench blockquote.why-note { margin-left: 0; }
.bench .make-your-own, .bench .members-note { margin-top: 22px; padding: 20px; grid-template-columns: 1fr; }
.bench .make-your-own .button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
.bench .make-your-own h3, .bench .members-note h3 { font-size: 1.3rem; }
.bench .tested-note { margin: 16px 0 0; font-size: 0.82rem; color: var(--sheet-ink-soft); }
.more-works .sketch-grid { margin-top: 20px; }

@media (max-width: 1000px) {
  .bench { grid-template-columns: 1fr; }
  .bench-art { position: static; }
  .sketch-grid.is-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sketch-grid, .sketch-grid.is-row { grid-template-columns: 1fr; gap: 24px; }
  .sketch.is-live { grid-column: auto; grid-row: auto; }
  .sketch.is-live .sketch-art { aspect-ratio: 16 / 10; flex: none; }
  .bench .art-recipe { margin-left: 0; margin-right: 0; padding: 18px 16px; }
}

/* The benefits are not a sequence, so they are not numbered. */
.join-benefits li { display: block; }
.join-benefits li::before { content: none; }

/* Explore, first screen: the brand, centred. The robot paints; one line says
   what this is; one button goes to the art, which peeks in below. */
.welcome { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(40px, 7vh, 88px) 0 clamp(36px, 6vh, 64px); }
.welcome-mascot { margin-bottom: 18px; }
.welcome-mascot .mascot { display: block; transform-origin: 50% 90%; animation: paint 3.2s ease-in-out infinite; }
@keyframes paint { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-3px); } }
.welcome h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; }
.welcome p { margin: 12px 0 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-soft); }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.welcome + .chips { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .welcome-mascot .mascot { animation: none; } }
@media (max-width: 700px) { .welcome { padding-top: 32px; } .welcome-mascot .mascot { width: 104px; height: auto; } }


/* The robot's speech bubble. */
.welcome-mascot { position: relative; display: flex; flex-direction: column; align-items: center; }
.mascot-button { border: 0; background: none; padding: 0; cursor: pointer; }
.mascot-button:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; border-radius: 8px; }
.speech {
  position: relative; margin: 0 0 20px; padding: 10px 16px; max-width: 22em;
  background: var(--sheet); color: var(--sheet-ink); border: 2px solid var(--text); border-radius: 18px;
  font-size: 1.02rem; font-weight: 600; line-height: 1.3;
}
.speech::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; margin-left: -7px;
  background: var(--sheet); border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg);
}
.speech.speaking { animation: pop 0.35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .speech.speaking { animation: none; } }

/* Tagline: "recipe included" gets a brush stroke that paints itself in once. */
.welcome .tagline { margin: 6px 0 0; max-width: 16em; text-wrap: balance; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; line-height: 1.15; color: var(--text); }
.stroked { position: relative; white-space: nowrap; }
.brush-stroke { position: absolute; left: -2%; right: -2%; bottom: -0.32em; width: 104%; height: 0.55em; overflow: visible; z-index: -1; }
.brush-stroke path { fill: none; stroke: #dcae3c; stroke-width: 11; stroke-linecap: round; opacity: 0.85; stroke-dasharray: 320; stroke-dashoffset: 320; animation: brush 0.9s 0.4s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
@keyframes brush { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .brush-stroke path { animation: none; stroke-dashoffset: 0; } }
.welcome { position: relative; z-index: 0; }
.welcome .tagline-end { display: block; }

/* Compact welcome: one centred row, so the art owns the first screen. */
.welcome { flex-direction: row; justify-content: center; align-items: center; gap: clamp(20px, 3vw, 40px); text-align: left; padding: clamp(28px, 4vh, 48px) 0 clamp(22px, 3vh, 32px); }
.welcome-mascot { flex: none; margin: 0; padding-top: 34px; }
.welcome-mascot .speech { position: absolute; top: -6px; left: 62%; margin: 0; width: max-content; max-width: 15em; padding: 6px 12px; font-size: 0.85rem; border-radius: 14px; z-index: 1; }
.welcome-mascot .speech::after { left: 18px; bottom: -8px; width: 11px; height: 11px; }
.welcome .tagline { margin: 0; max-width: none; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.welcome-actions { justify-content: flex-start; margin-top: 18px; }
@media (max-width: 700px) {
  .welcome { flex-direction: column; text-align: center; gap: 12px; padding-top: 44px; }
  .welcome-mascot .speech { left: 50%; transform: translateX(-50%); top: -12px; }
  .welcome-mascot .speech.speaking { animation: none; }
  .welcome-actions { justify-content: center; }
  .welcome-mascot .mascot { width: 76px; height: auto; }
}
@media (min-width: 701px) {
  .welcome-mascot .speech { left: auto; right: 72%; top: 2px; text-align: left; }
  .welcome-mascot .speech::after { left: auto; right: 16px; }
}

/* Welcome, left-aligned beside the mascot; the even grid below does the talking. */
.welcome { justify-content: flex-start; padding: clamp(28px, 4vh, 44px) 0 clamp(20px, 3vh, 28px); }
.welcome-actions { align-items: center; gap: 16px; }
.welcome-actions .text-link { color: var(--text-soft); }
.welcome + .chips { justify-content: flex-start; }
.sketch-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 18px; }
@media (min-width: 701px) { .welcome-mascot .speech { right: auto; left: 70%; top: -2px; } .welcome-mascot .speech::after { right: auto; left: 16px; } }
@media (max-width: 700px) { .welcome + .chips { justify-content: center; } }
@media (min-width: 701px) {
  .welcome { padding-top: clamp(64px, 8vh, 80px); }
  .welcome-mascot { padding-top: 0; }
  .welcome-mascot .speech { left: 0; right: auto; top: -48px; white-space: nowrap; max-width: none; }
  .welcome-mascot .speech::after { left: 34px; right: auto; }
}
@media (min-width: 701px) {
  .welcome { padding-top: clamp(78px, 10vh, 96px); align-items: flex-end; }
  .welcome-mascot .speech { top: -62px; }
}
/* Final welcome layout: headline left, the Drop and its speech bubble on the right. */
@media (min-width: 701px) {
  .welcome { justify-content: space-between; align-items: center; padding-top: clamp(32px, 5vh, 52px); }
  .welcome-mascot { order: 2; margin-right: clamp(0px, 6vw, 120px); padding: 0; align-items: center; }
  .welcome-mascot .speech { position: relative; top: auto; left: auto; right: auto; margin: 0 0 14px; white-space: nowrap; }
  .welcome-mascot .speech::after { left: 50%; right: auto; margin-left: -6px; }
  .welcome-mascot .mascot { width: 150px; height: auto; }
}

/* The mascot is a raster image now; keep its own proportions everywhere. */
img.mascot { height: auto; }
.brand img.mascot { width: 36px; }

/* ===== Eleventh pass: the painter's studio =====
   The mascot is a robot Bob Ross: brown afro, cream shirt, wooden palette.
   A grey gallery wall made him look pasted on, so the room is now his studio:
   primed-canvas cream walls and walnut ink. The art still brings the colour;
   the palette's six paints appear only as small dabs that mark things
   (filters, free recipes, the brush stroke), never as big fills. */
:root {
  --room: #f3ecdf;
  --room-raised: #e9e0cf;
  --room-deep: #1d1712;
  --rule: #d9ccb6;
  --text: #2a1c13;
  --text-soft: #5b4636;
  --text-faint: #8b7663;
  --sheet: #fffbf3;
  --sheet-shade: #f5eee1;
  --sheet-rule: #e2d6c1;
  --sheet-ink: #2a1c13;
  --sheet-ink-soft: #5b4636;
  --action: #2a1c13;
  --action-deep: #120b06;
  --on-action: #fffbf3;
  --alert: #b3261e;
  --alert-ink: #9a1f18;
  --sap-green: #3f7a3a;
  --phthalo: #1f4e8c;
  --cadmium: #f2b705;
  --van-dyke: #6b3f22;
}

/* Buttons: walnut, with a slightly soft corner like a painted sign. */
.button { border-radius: 6px; }
.button.primary { box-shadow: 0 2px 0 var(--action-deep); transition: transform 0.12s, box-shadow 0.12s; }
.button.primary:hover { background: var(--text-soft); transform: translateY(-1px); box-shadow: 0 3px 0 var(--action-deep); }
.button.primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--action-deep); }

/* Header: the logo head gives a little bob on hover. */
.brand img.mascot { width: 40px; transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover img.mascot { transform: rotate(-8deg) scale(1.08); }

/* Headline: walnut ink, and a cadmium brush stroke under "art recipes". */
.welcome .tagline { color: var(--text); font-size: clamp(2rem, 3.6vw, 3rem); }
.brush-stroke path { stroke: var(--cadmium); opacity: 0.9; }

/* The welcome row: headline left, the painter at his spot on the right. */
.welcome-mascot { position: relative; }
.mascot-stage { position: relative; display: block; transform-origin: 50% 96%; animation: sway 4.4s ease-in-out infinite, hop-in 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.welcome-mascot .mascot { animation: none; }
@keyframes hop-in { from { transform: translateY(40px) scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sway { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; translate: 0 -3px; } }
/* A flick of the brush: lean back, then snap forward. */
.mascot-stage.flicking { animation: flick 0.5s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes flick { 0% { rotate: 0deg; } 30% { rotate: 7deg; scale: 1.02 0.97; } 60% { rotate: -6deg; scale: 0.98 1.03; } 100% { rotate: 0deg; } }
/* Blinking: a strip the colour of the screen covers the eyes for a moment. */
.mascot-blink { position: absolute; left: 42%; top: 30%; width: 17.5%; height: 4.4%; background: #2c2b30; border-radius: 2px; opacity: 0; pointer-events: none; }
.mascot-stage.blinking .mascot-blink { animation: blink 0.22s steps(1) 1; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: 0; } }
/* Paint dabs fly off the brush, land on the wall, and fade. */
.paint-layer { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.paint-dab { position: absolute; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; box-shadow: inset -1px -2px 0 rgba(0, 0, 0, 0.18); animation: fling 2.6s cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
@keyframes fling {
  0% { transform: translate(0, 0) scale(0.3); opacity: 1; }
  22% { transform: translate(var(--fly-x), var(--fly-y)) rotate(var(--spin)) scale(1.15, 0.8); opacity: 1; }
  30% { transform: translate(var(--fly-x), var(--fly-y)) rotate(var(--spin)) scale(1); opacity: 1; }
  80% { opacity: 0.9; }
  100% { transform: translate(var(--fly-x), var(--fly-y)) rotate(var(--spin)) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .mascot-stage, .mascot-stage.flicking { animation: none; } .paint-dab { display: none; } }

/* Speech bubble: a sheet of cream paper with a walnut outline. */
.speech { border-color: var(--text); background: var(--sheet); color: var(--text); box-shadow: 0 3px 0 var(--rule); }
.speech::after { background: var(--sheet); border-color: var(--text); }

/* Filters: each chip carries a dab of one paint, like a palette. */
.chip { border-radius: 999px; border-color: var(--rule); background: transparent; padding: 0.42em 0.95em 0.42em 0.8em; align-items: center; }
.chip::before { content: ""; width: 0.72em; height: 0.62em; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; background: var(--dab, var(--van-dyke)); flex: none; }
.chip:nth-child(1) { --dab: var(--van-dyke); }
.chip:nth-child(2) { --dab: var(--sap-green); }
.chip:nth-child(3) { --dab: var(--phthalo); }
.chip:nth-child(4) { --dab: var(--cadmium); }
.chip:nth-child(5) { --dab: var(--alert); }
.chip:nth-child(6) { --dab: #7a5ea8; }
.chip:hover { border-color: var(--text); background: var(--sheet); }
.chip.active { background: var(--sheet); border-color: var(--text); color: var(--text); box-shadow: 0 2px 0 var(--rule); }
.chip.active span { color: var(--text-faint); opacity: 1; }

/* Tiles: canvases hung on the studio wall; picking one up lifts it. */
.sketch-art { border-radius: 3px; box-shadow: 0 1px 0 rgba(42, 28, 19, 0.18), 0 14px 26px -18px rgba(42, 28, 19, 0.7); outline: 0; transition: transform 0.22s cubic-bezier(0.3, 1.3, 0.5, 1), box-shadow 0.22s; }
.sketch:hover .sketch-art, .sketch:focus-visible .sketch-art { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 0 1px 0 rgba(42, 28, 19, 0.18), 0 22px 30px -18px rgba(42, 28, 19, 0.75); }
.sketch:nth-child(even):hover .sketch-art { transform: translateY(-4px) rotate(0.5deg); }
.sketch-recipe.is-free { color: var(--sap-green); display: inline-flex; align-items: center; gap: 0.35em; }
.sketch-recipe.is-free::before { content: ""; width: 0.6em; height: 0.52em; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; background: var(--sap-green); }
@media (prefers-reduced-motion: reduce) { .sketch-art { transition: none; } .sketch:hover .sketch-art { transform: none; } }

/* Join strip and recipe sheets: cream paper that sits on the wall. */
.join-strip, .art-recipe, .review-recipe, .receipt { border-radius: 4px; box-shadow: 0 1px 0 var(--rule), 0 16px 30px -24px rgba(42, 28, 19, 0.6); }
.join-strip { border: 1px solid var(--rule); }
.make-your-own, .members-note { background: var(--room-raised); border-radius: 4px; }
.site-header { background: color-mix(in srgb, var(--room) 92%, transparent); backdrop-filter: none; }

/* ===== Style guide pass =====
   Follows the brand board in the docs repo
   (design-explorations/2026-09-28-style-guide/style-guide-a.png):
   primed canvas, walnut ink, and six paints; a warm serif for headlines with
   Atkinson for reading; pills for actions and filters; rounded canvases with
   soft shadows; spaced small-caps labels; ochre brush strokes. */
@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --room: #f4ebdd;
  --room-raised: #ebdfcb;
  --rule: #dccdb4;
  --text: #3b251a;
  --text-soft: #634a3a;
  --text-faint: #8f7968;
  --sheet: #fffaf1;
  --sheet-ink: #3b251a;
  --sheet-ink-soft: #634a3a;
  --action: #3b251a;
  --action-deep: #24160f;
  --ochre: #d89b44;
  --sap-green: #348048;
  --phthalo: #2375bd;
  --cadmium: #f4c43f;
  --van-dyke: #6b3f22;
  --headline: "Young Serif", Georgia, "Times New Roman", serif;
  --radius-card: 10px;
}
/* A faint paper grain on the wall, drawn with an SVG noise filter. */
body {
  background-color: var(--room);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, .brand-name, .sketch-title, .welcome .tagline, .bench-side h1, .bench-recipe-head h2, .section-head h2, .page-head h1, .join-page h1, .studio-header h1, .review-header h1 {
  font-family: var(--headline); font-weight: 400; letter-spacing: 0;
}
.welcome .tagline { font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: 1.08; }
.brand-name { font-size: 1.35rem; }
.sketch-title { font-size: 1.15rem; }
.brush-stroke path { stroke: var(--ochre); opacity: 0.95; }

/* Actions are walnut pills; the secondary is an outlined pill. */
.button { border-radius: 999px; padding: 0.72em 1.4em; }
.button.small { padding: 0.45em 1em; }
.button.large { padding: 0.95em 1.9em; }
.button.primary { background: var(--action); border-color: var(--action); box-shadow: 0 3px 0 var(--action-deep); }
.button.primary:hover { background: #4d3223; border-color: #4d3223; }

/* Filters: pills; the chosen one is filled walnut, each keeps its paint dab. */
.chip { background: var(--sheet); border-color: var(--rule); color: var(--text-soft); }
.chip.active { background: var(--action); border-color: var(--action); color: var(--on-action); box-shadow: none; }
.chip.active span { color: var(--on-action); opacity: 0.75; }
.chip:nth-child(1) { --dab: var(--ochre); }
.chip:nth-child(2) { --dab: var(--sap-green); }
.chip:nth-child(3) { --dab: var(--phthalo); }
.chip:nth-child(4) { --dab: var(--cadmium); }

/* Canvases: rounded, softly shadowed, lifted when picked up. */
.sketch-art, .bench-art .piece-frame, .review-preview { border-radius: var(--radius-card); overflow: hidden; }
.sketch-meta { padding-top: 8px; }
.sketch-tools { font-size: 0.82rem; letter-spacing: 0.02em; }

/* Labels: spaced small capitals, as on the style guide. */
.sketch-recipe, .prompt-label, .ingredient-table-head, .bench-recipe-head .copy-button { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; font-weight: 700; }
.sketch-recipe.is-free { color: var(--sap-green); }

/* Paper: recipe sheets, the join strip, and the bubble share one radius. */
.join-strip, .art-recipe, .review-recipe, .receipt, .make-your-own, .members-note { border-radius: var(--radius-card); }
.join-strip { background: var(--sheet); }
.join-strip p strong { font-family: var(--headline); font-weight: 400; font-size: 1.15em; }
.speech { border-width: 1.5px; font-weight: 500; border-radius: 22px; }
.speech::after { border-right-width: 1.5px; border-bottom-width: 1.5px; }

/* Header: the name in the headline serif; the active link underlined in ochre. */
.nav-link.active { box-shadow: inset 0 -3px 0 var(--ochre); }
.site-header { border-bottom-color: var(--rule); }
.site-footer strong { font-family: var(--headline); font-weight: 400; }
@media (min-width: 701px) { .welcome-mascot .mascot { width: 200px; } .welcome-mascot { margin-right: clamp(0px, 5vw, 96px); } }
@media (max-width: 700px) { .welcome-mascot .mascot { width: 120px; } .welcome .tagline { font-size: 2.1rem; } }
/* Keep the ochre stroke tucked under "art recipes", clear of the next line. */
.welcome .brush-stroke { bottom: -0.1em; height: 0.32em; }
.welcome .brush-stroke path { stroke-width: 9; }
.welcome .tagline { line-height: 1.14; }
@media (max-width: 700px) {
  .brand-name { font-size: 1.02rem; }
  .brand img.mascot { width: 32px; }
  .site-nav { gap: 14px; }
}
@media (max-width: 380px) { .brand-name { display: none; } }
@media (max-width: 700px) {
  .brand { gap: 7px; min-width: 0; }
  .brand-name { font-size: 0.95rem; }
  .site-nav { gap: 10px; }
  .site-nav .nav-link { font-size: 0.88rem; }
  .site-nav .button { padding: 0.45em 0.95em; }
}

/* ===== On air (thirteenth pass) =====
   From the style guide in the docs repo
   (design-explorations/2026-09-28-style-guide-2/guide-studio-black.png).
   The source is specific: The Joy of Painting was shot in a black studio where
   only the lit canvas glowed, and Bob Ross used one fixed palette of thirteen
   paints. The mascot's head is a TV. So: a black studio, the art lit like
   canvases, the real paints as flat colour bars and labels, TV-caption boxes,
   and bold sans type. Deliberately not the current AI defaults: no cream or
   beige, no brown accents, no serif headline, no pills, no grain, no soft
   blurred cards, no spaced small-caps eyebrows. */
:root {
  color-scheme: dark;
  --room: #0b0b0c;
  --room-raised: #18181b;
  --room-deep: #000;
  --rule: #2c2c31;
  --text: #ffffff;
  --text-soft: #c9c9cf;
  --text-faint: #8d8d96;
  --sheet: #ffffff;
  --sheet-shade: #f0f0f2;
  --sheet-rule: #d9d9de;
  --sheet-ink: #000;
  --sheet-ink-soft: #3a3a40;
  --action: #ffec00;
  --action-deep: #c7b800;
  --on-action: #000;
  --alert: #ff3b30;
  --alert-ink: #db0000;
  /* Bob Ross's thirteen paints */
  --titanium-white: #ffffff; --phthalo-blue: #0c0040; --prussian-blue: #021e44; --midnight-black: #000000;
  --dark-sienna: #5f2e1f; --van-dyke-brown: #221b15; --alizarin-crimson: #4e1500; --sap-green: #0a3410;
  --cadmium-yellow: #ffec00; --yellow-ochre: #c79b00; --indian-yellow: #ffb800; --bright-red: #db0000; --phthalo-green: #102e3c;
  /* Brighter tints of the same paints, for small labels that must read on black */
  --label-blue: #2f6bff; --label-green: #1fa64a; --label-red: #ff2d2d; --label-yellow: #ffec00;
  --radius-card: 2px;
}
body { background: var(--room); background-image: none; color: var(--text); }
html { background: var(--room); }
a { color: var(--text); }
h1, h2, .brand-name, .sketch-title, .welcome .tagline, .bench-side h1, .bench-recipe-head h2, .section-head h2, .page-head h1, .join-page h1, .studio-header h1, .review-header h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: 0;
}
.sketch-recipe, .prompt-label, .ingredient-table-head, .bench-recipe-head .copy-button { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }

/* The paint bar: all thirteen paints under the header, like colour bars. */
.site-header { background: var(--room); border-bottom: 0; box-shadow: none; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
  background: linear-gradient(90deg, #fff 0 7.69%, #0c0040 0 15.38%, #021e44 0 23.07%, #000 0 30.76%, #5f2e1f 0 38.45%, #221b15 0 46.14%, #4e1500 0 53.83%, #0a3410 0 61.52%, #ffec00 0 69.21%, #c79b00 0 76.9%, #ffb800 0 84.59%, #db0000 0 92.28%, #102e3c 0); }
.brand-name { font-size: 1.2rem; }
.nav-link { color: var(--text-soft); }
.nav-link.active { color: var(--text); box-shadow: inset 0 -3px 0 var(--cadmium-yellow); }

/* Buttons: square, flat. The main action is Cadmium Yellow with black type. */
.button, .button.small, .button.large { border-radius: 2px; }
.button { border: 2px solid var(--text); color: var(--text); background: transparent; box-shadow: none; }
.button:hover { background: var(--text); color: #000; transform: none; box-shadow: none; }
.button.primary { background: var(--cadmium-yellow); border-color: var(--cadmium-yellow); color: #000; box-shadow: none; }
.button.primary:hover { background: #fff; border-color: #fff; color: #000; transform: none; box-shadow: none; }
.button.primary:active { transform: translateY(1px); box-shadow: none; }

/* Welcome */
.welcome .tagline { color: var(--text); font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1.05; }
.brush-stroke path { stroke: var(--cadmium-yellow); opacity: 1; }
.welcome-actions .text-link { color: var(--text-soft); }
/* The mascot stands in a pool of studio light. */
.welcome-mascot::before { content: ""; position: absolute; left: 50%; bottom: -10px; width: 260px; height: 46px; margin-left: -130px; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent); pointer-events: none; }
/* Speech: a TV caption box, white with a yellow bar, square corners. */
.speech { background: #fff; color: #000; border: 0; border-left: 6px solid var(--cadmium-yellow); border-radius: 0; box-shadow: none; font-weight: 700; }
.speech::after { background: #fff; border: 0; }

/* Filters: square tags with a block of paint on the left, like tube labels. */
.chip { border-radius: 2px; background: transparent; border: 2px solid var(--rule); color: var(--text); padding: 0.38em 0.8em 0.38em 0; gap: 0.6em; }
.chip::before { width: 0.7em; height: auto; align-self: stretch; margin: -0.38em 0 -0.38em 0; border-radius: 0; background: var(--dab); }
.chip:nth-child(1) { --dab: var(--label-yellow); }
.chip:nth-child(2) { --dab: var(--label-green); }
.chip:nth-child(3) { --dab: var(--label-blue); }
.chip:nth-child(4) { --dab: var(--label-red); }
.chip:nth-child(5) { --dab: var(--indian-yellow); }
.chip:nth-child(6) { --dab: #fff; }
.chip span { color: var(--text-faint); }
.chip:hover { border-color: var(--text); background: transparent; }
.chip.active { background: #fff; border-color: #fff; color: #000; }
.chip.active span { color: #3a3a40; }

/* Canvases: lit from above on the black set; a caption strip below. */
.sketch-art { border-radius: 2px; box-shadow: 0 0 0 1px #2c2c31, 0 -30px 60px -40px rgba(255, 255, 255, 0.25); }
.sketch:hover .sketch-art, .sketch:focus-visible .sketch-art { transform: translateY(-3px); box-shadow: 0 0 0 2px #fff, 0 -30px 70px -36px rgba(255, 255, 255, 0.4); }
.sketch:nth-child(even):hover .sketch-art { transform: translateY(-3px); }
.sketch-meta { padding: 8px 10px; margin-top: 0; background: var(--room-raised); border-left: 4px solid var(--label-blue); }
.sketch:has(.sketch-recipe.is-free) .sketch-meta { border-left-color: var(--label-green); }
.sketch-tools { padding: 0 10px; }
.sketch-title { font-size: 1.02rem; color: var(--text); }
.sketch-recipe { color: var(--text-faint); }
.sketch-recipe.is-free { color: var(--label-green); }
.sketch-recipe.is-free::before { border-radius: 0; background: var(--label-green); }

/* Paper stays white with black ink: the recipe is the printed page. */
.join-strip, .art-recipe, .review-recipe, .receipt { border-radius: 2px; box-shadow: none; }
.join-strip { background: var(--room-raised); color: var(--text); border: 0; border-left: 6px solid var(--cadmium-yellow); }
.join-strip p strong { font-family: var(--display); font-weight: 800; }
.art-recipe code, .review-recipe code, .receipt code { background: var(--sheet-shade); color: var(--sheet-ink); }
.art-recipe a, .art-recipe .copy-button, .art-recipe .text-button { color: var(--sheet-ink); }
.art-recipe .button { border-color: #000; color: #000; }
.art-recipe .button:hover { background: #000; color: #fff; }
.art-recipe .button.primary { background: #000; border-color: #000; color: #fff; }
.make-your-own, .members-note { background: var(--sheet-shade); color: var(--sheet-ink); border-radius: 2px; }
.members-note a, .make-your-own a { color: var(--sheet-ink); }
.site-footer strong { font-family: var(--display); font-weight: 800; }
input, textarea, select { background: #fff; color: #000; }
/* On black, the dark paints disappear, so the bar keeps the bright ones. */
.site-header::after { height: 5px; bottom: -5px;
  background: linear-gradient(90deg, #fff 0 16.66%, #2f6bff 0 33.33%, #1fa64a 0 50%, #ffec00 0 66.66%, #ffb800 0 83.33%, #ff2d2d 0); }
.speech { color: #000; }
/* Anything printed on white paper uses paper inks, never the studio's greys. */
.members-note, .members-note p, .members-note .muted, .make-your-own p, .make-your-own .muted, .art-recipe .muted, .art-recipe p, .receipt, .receipt .muted { color: var(--sheet-ink-soft); }
.members-note h3, .make-your-own h3 { color: var(--sheet-ink); }
.members-note .button, .make-your-own .button { border-color: #000; color: #000; }
.members-note .button.primary, .make-your-own .button.primary { background: #000; color: #fff; }
.members-note .button:hover, .make-your-own .button:hover { background: #000; color: #fff; }
.welcome p.speech, .welcome-mascot .speech { color: #000; }

/* ===== Fourteenth pass: the painter's palette =====
   Rules from two anti-slop guides (avoid-ai-design, Impeccable): start from
   the product's own things, give every colour one job, and drop the listed
   tells: hand-drawn underlines, one accented headline word, near-black with a
   single acid accent, side-stripe accents, bounce easing, glow.
   The product's own thing here is the mascot's palette: sap green, phthalo
   blue, cadmium yellow, and titanium white. The welcome is a band of sap
   green (Bob's happy little trees); the rest of the site is titanium white
   so every artwork reads true.
   Colour jobs: green = the studio's own surfaces and main actions; ink = text;
   yellow = "free"; red = "simulated" only. */
:root {
  color-scheme: light;
  --room: #ffffff;
  --room-raised: #f2f4f1;
  --room-deep: #111;
  --rule: #d9ddd8;
  --text: #141414;
  --text-soft: #3d403c;
  --text-faint: #666b65;
  --sheet: #ffffff;
  --sheet-shade: #f2f4f1;
  --sheet-rule: #d9ddd8;
  --sheet-ink: #141414;
  --sheet-ink-soft: #3d403c;
  --studio-green: #1e6b3a;
  --studio-green-deep: #154f2a;
  --action: #1e6b3a;
  --action-deep: #154f2a;
  --on-action: #ffffff;
  --free-yellow: #ffd23f;
  --alert: #c8321f;
  --alert-ink: #b02a19;
}
body, html { background: var(--room); color: var(--text); }
a { color: var(--text); }

/* No colour bar, no glow, no light pools. */
.site-header { background: var(--room); border-bottom: 1px solid var(--rule); }
.site-header::after, .welcome-mascot::before { content: none; display: none; }
.nav-link { color: var(--text-soft); }
.nav-link.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }

/* Buttons: green for the main action, ink outline otherwise. Small radius. */
.button, .button.small, .button.large { border-radius: 4px; }
.button { border: 1.5px solid var(--text); color: var(--text); background: transparent; }
.button:hover { background: var(--text); color: #fff; }
.button.primary { background: var(--action); border-color: var(--action); color: #fff; }
.button.primary:hover { background: var(--action-deep); border-color: var(--action-deep); color: #fff; }

/* Welcome: a full-width band of sap green, the painter's corner of the page. */
.welcome {
  margin: 0 calc(-1 * var(--gutter)) 28px; padding: clamp(28px, 5vh, 48px) var(--gutter);
  background: var(--studio-green); color: #fff;
}
.welcome .tagline { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.08; }
.welcome .tagline-end { display: block; }
.welcome .button.primary { background: #fff; border-color: #fff; color: var(--studio-green-deep); }
.welcome .button.primary:hover { background: var(--free-yellow); border-color: var(--free-yellow); color: #141414; }
.welcome-actions .text-link { color: #fff; }
.speech, .welcome p.speech, .welcome-mascot .speech { background: #fff; color: #141414; border: 0; border-radius: 12px; box-shadow: none; font-weight: 600; }
.speech::after { background: #fff; border: 0; }

/* Motion: settle, never bounce. */
.mascot-stage { animation: sway 4.4s ease-in-out infinite, hop-in 0.5s ease-out both; }
@keyframes hop-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.mascot-stage.flicking { animation: flick 0.45s ease-out; }
@keyframes flick { 0% { rotate: 0deg; } 35% { rotate: 6deg; } 70% { rotate: -4deg; } 100% { rotate: 0deg; } }
.brand img.mascot { transition: transform 0.2s ease-out; }
.brand:hover img.mascot { transform: rotate(-6deg); }

/* Filters: plain tags; the chosen one is ink. No stripes or dots. */
.chip { border-radius: 4px; border: 1.5px solid var(--rule); background: #fff; color: var(--text-soft); padding: 0.4em 0.85em; }
.chip::before { content: none; display: none; }
.chip:hover { border-color: var(--text); color: var(--text); background: #fff; }
.chip.active { background: var(--text); border-color: var(--text); color: #fff; }
.chip.active span { color: #fff; opacity: 0.7; }
.chip span { color: var(--text-faint); }

/* Art: straight onto the white wall, no stripes, a small lift on hover. */
.sketch-art { border-radius: 4px; box-shadow: none; transition: transform 0.18s ease-out; }
.sketch:hover .sketch-art, .sketch:focus-visible .sketch-art, .sketch:nth-child(even):hover .sketch-art { transform: translateY(-3px); box-shadow: none; outline: 2px solid var(--text); outline-offset: 3px; }
.sketch-meta { padding: 8px 0 0; background: none; border: 0; }
.sketch-tools { padding: 0; }
.sketch-title { color: var(--text); }
.sketch-recipe { color: var(--text-faint); font-size: 0.8rem; font-weight: 600; }
.sketch-recipe.is-free { color: #141414; background: var(--free-yellow); padding: 0.1em 0.45em; border-radius: 3px; }
.sketch-recipe.is-free::before { content: none; display: none; }

/* Paper and panels */
.join-strip { background: var(--room-raised); color: var(--text); border: 0; border-radius: 4px; }
.make-your-own, .members-note { background: var(--room-raised); border-radius: 4px; }
.art-recipe { border: 1px solid var(--rule); }
.art-recipe .button.primary, .members-note .button.primary, .make-your-own .button.primary { background: var(--action); border-color: var(--action); color: #fff; }
input, textarea, select { background: #fff; color: #141414; }
@media (max-width: 700px) { .brand-name { font-size: 0.95rem; } .welcome .tagline { font-size: 2rem; } }

/* Welcome, centred: headline on the left, the robot in the middle, the
   explanation and actions on the right. The robot stands still; only its
   speech bubble pops, and pressing it gives a little shake. */
.welcome.welcome-centred { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 48px); text-align: left; flex-direction: initial; }
.welcome-centred .welcome-left { justify-self: end; text-align: right; }
.welcome-centred .welcome-left .tagline { max-width: 9.5em; margin: 0 0 0 auto; text-wrap: balance; }
.welcome-centred .welcome-mascot { order: 0; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; }
.welcome-centred .welcome-mascot .speech { position: relative; inset: auto; transform: none; margin: 0 0 12px; white-space: nowrap; }
.welcome-centred .welcome-mascot .speech::after { left: 50%; right: auto; margin-left: -6px; }
.welcome-centred .welcome-mascot .mascot { width: 200px; }
.welcome-centred .welcome-right { justify-self: start; max-width: 24em; }
.welcome-centred .welcome-line { margin: 0 0 18px; font-size: 1.15rem; line-height: 1.45; color: #fff; }
.welcome-centred .welcome-actions { margin: 0; justify-content: flex-start; }
.mascot-stage, .mascot-stage.flicking { animation: none; }
.mascot-stage.shaking { animation: shake 0.4s ease-out; }
@keyframes shake { 0%, 100% { rotate: 0deg; } 25% { rotate: -4deg; } 50% { rotate: 3deg; } 75% { rotate: -2deg; } }
.welcome-centred .speech.speaking { animation: pop 0.3s ease-out; }
@media (prefers-reduced-motion: reduce) { .mascot-stage.shaking, .welcome-centred .speech.speaking { animation: none; } }
@media (max-width: 900px) {
  .welcome.welcome-centred { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .welcome-centred .welcome-left, .welcome-centred .welcome-right { justify-self: center; text-align: center; }
  .welcome-centred .welcome-left .tagline { margin: 0 auto; }
  .welcome-centred .welcome-mascot { order: -1; }
  .welcome-centred .welcome-actions { justify-content: center; }
  .welcome-centred .welcome-mascot .speech { white-space: normal; max-width: 18em; }
  .welcome-centred .welcome-mascot .mascot { width: 140px; }
}
