/* Three look directions on the kit (brief: look-brief.md, Beads design-anw.15).
   Each is a .look-<name> class on <html> (deck.js adds it from ?look=name). They share the kit's
   layouts, engine and size floors (body 48, headline 88–100, labels 32+) and change only the look:
   grounds, alignment, hierarchy, chrome. Sizes are in --u (one pixel of the 1920 × 1080 artboard).

   sand   warm tonal grounds rotated by role, centred statements, a short rule, almost no chrome
   paper  the design system as it stands, done well: paper and sunlight, left-set, woodcuts, a quiet footer
   night  night as the ground, chalk type, pictures as plates, the room's turn in daylight          */

/* ── Shared: the number is the only chrome; the eyebrow is a role, not decoration ───────────── */
.look-sand .foot img, .look-sand .foot > span:not(.n),
.look-night .foot img, .look-night .foot > span:not(.n) { display: none }
.look-sand .foot .n, .look-night .foot .n, .look-paper .foot .n { font-family: var(--font-label); font-size: calc(26 * var(--u)); letter-spacing: .06em; opacity: .7 }

/* ═══════════════════════════════════════════════════════════════════════════════════════════
   SAND: the ground carries the warmth. Cream for claims, sand for sections, earth for the cover
   and close, night when the room speaks. Statements centred in a column 1440 wide; structure
   (lists, columns, figures) left-set inside that column. Restora 88 with a short sand rule;
   secondary lines in Restora italic. Only the number, bottom left.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */
.look-sand {
  --cream: #f4eee2;      /* the page: warmer than paper, still near-white (ink 15:1) */
  --sand: #cdb791;       /* sections, the arc: ink 9:1 */
  --earth: #5e4a2e;      /* cover and close: chalk 6.8:1 */
  --sand-rule: #b08a4a;  /* the short rule and the eyebrow on cream: decorative or 32+ labels only */
}
.look-sand .s { --s-claim: calc(88 * var(--u)); --s-big: calc(112 * var(--u)); --s-prompt: calc(88 * var(--u)); --s-ev: calc(48 * var(--u)); --s-quote: calc(58 * var(--u)); --s-tile: calc(44 * var(--u)); --s-card: calc(150 * var(--u)) }
.look-sand .s:not(.s--night):not(.s--close):not(.s--photo):not(.s--prompt):not(.s--card):not(.s--cover) { background: var(--cream) }
.look-sand .s--card { background: var(--sand) }
.look-sand .s--cover, .look-sand .s--close { background: var(--earth); color: var(--chalk); --body-ink: #e4dccd; --muted: #cfc3ae }
.look-sand .s--prompt { background: var(--night); color: var(--chalk); --body-ink: #e4dccd; --muted: var(--night-muted) }

/* The column: centred, 1440 wide, a little more air at the top than the bottom */
.look-sand .s:not(.s--split):not(.s--photo):not(.s--cover) > .body { width: min(100%, calc(1440 * var(--u))); justify-self: center; text-align: center; justify-items: center }
.look-sand .s:not(.s--split):not(.s--photo) .claim { max-width: 22ch; text-wrap: balance }
.look-sand .s:not(.s--split):not(.s--photo) .ev { max-width: 34ch }
/* Statements centred; structure left-set */
.look-sand .body:has(> .lines), .look-sand .body:has(> .cols), .look-sand .body:has(> .fig), .look-sand .body:has(> .tiles) { text-align: left; justify-items: start }
.look-sand .body:has(> .lines) .claim::after, .look-sand .body:has(> .cols) .claim::after, .look-sand .body:has(> .fig) .claim::after, .look-sand .body:has(> .tiles) .claim::after { margin-inline: 0 }

/* The rule: 72 wide, 3 high, sand, 34 under the headline */
.look-sand .claim::after { content: ""; display: block; width: calc(72 * var(--u)); height: calc(3 * var(--u)); background: var(--sand-rule); margin: calc(34 * var(--u)) auto 0 }
.look-sand .claim + .claim::after, .look-sand .claim:has(+ .claim)::after { display: none }
.look-sand .claim:has(+ .claim) { margin-bottom: calc(-16 * var(--u)) }
.look-sand .ev { font-family: var(--font-quote); font-style: italic; font-size: calc(52 * var(--u)); line-height: 1.3; color: var(--body-ink) }
.look-sand .ev.muted { color: var(--muted) }
.look-sand .lines, .look-sand .cols, .look-sand .tiles span { font-family: var(--font-body); font-style: normal }
.look-sand .cap { font-size: calc(30 * var(--u)) }

/* Cover: earth, centred, the eyebrow above the title in sand, the mark at the foot */
.look-sand .s--cover { grid-template-rows: 1fr auto 1fr; text-align: center; justify-items: center; padding-bottom: calc(80 * var(--u)) }
.look-sand .s--cover > .eyebrow { align-self: end; color: var(--sand-rule); color: #e2c48c; visibility: visible; font-size: calc(32 * var(--u)); margin-bottom: calc(40 * var(--u)) }
.look-sand .s--cover > div:nth-of-type(1) { align-self: start }
.look-sand .s--cover .title { font-size: calc(150 * var(--u)); max-width: 11ch; margin: 0 auto; line-height: 1 }
.look-sand .s--cover .sub { font-family: var(--font-quote); font-style: italic; font-size: calc(56 * var(--u)); color: var(--body-ink); margin: calc(44 * var(--u)) auto 0; max-width: 30ch }
.look-sand .s--cover .by { align-self: end; flex-direction: column; gap: calc(20 * var(--u)); font-size: calc(30 * var(--u)); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.look-sand .s--cover .by img { width: calc(104 * var(--u)); height: calc(104 * var(--u)) }
.look-sand .s--cover .sub { margin-bottom: calc(48 * var(--u)) }

/* Section: sand, centred Polyamine, a small part label above, no woodcut */
.look-sand .s--card { grid-template-rows: 1fr auto 1fr; justify-items: center; text-align: center }
.look-sand .s--card > .eyebrow { visibility: visible; grid-row: 1; align-self: end; color: #5e4a2e; font-size: calc(32 * var(--u)); margin-bottom: calc(40 * var(--u)) }
.look-sand .s--card > .body { grid-template-columns: minmax(0, 1fr); grid-row: 2; align-self: start }
.look-sand .s--card h2 { max-width: 14ch; margin: 0 auto }
.look-sand .s--card h2.q { font-family: var(--font-display); font-size: calc(132 * var(--u)) }
.look-sand .s--card svg { display: none }
.look-sand .s--card .ev { font-size: calc(48 * var(--u)) }

/* Quote: centred italic Restora in a 40ch measure; the rule sits above the name */
.look-sand .quote { max-width: 40ch; line-height: 1.32; gap: calc(26 * var(--u)) }
.look-sand .quote .last { font-size: calc(var(--s-quote) * 1.18) }
.look-sand .who { font-size: calc(32 * var(--u)); color: var(--muted); letter-spacing: .16em }
.look-sand .who::before { content: ""; display: block; width: calc(72 * var(--u)); height: calc(3 * var(--u)); background: var(--sand-rule); margin: 0 auto calc(30 * var(--u)) }

/* Prompt: the room's turn goes to night; a chalk label with a rule, the question in Restora */
.look-sand .tag { background: none; color: #e2c48c; padding: 0; font-size: calc(32 * var(--u)); letter-spacing: .18em }
.look-sand .tag span { opacity: 1; color: var(--night-muted) }
.look-sand .tag::after { content: ""; display: block; width: calc(72 * var(--u)); height: calc(3 * var(--u)); background: #b08a4a; margin: calc(28 * var(--u)) auto 0 }
.look-sand .tag { flex-direction: column; gap: calc(14 * var(--u)) }
.look-sand .prompt { max-width: 24ch; text-wrap: balance }
.look-sand .prompt + .prompt { margin-top: calc(-8 * var(--u)) }
.look-sand .options span { border-color: var(--night-muted); font-size: calc(42 * var(--u)) }
.look-sand .link { color: var(--chalk) }

/* Claim beside a picture: the picture is a plate, held inside the margins, caption beneath it */
.look-sand .s--split { grid-template-columns: minmax(0, 1fr) 48%; column-gap: calc(96 * var(--u)); padding-right: var(--pad-x) }
.look-sand .s--split .pic { margin: 0; display: grid; align-content: center; grid-row: 1 / 3 }
.look-sand .s--split .pic:not(.panel) img { width: 100%; height: auto; max-height: calc(840 * var(--u)); object-fit: cover }
.look-sand .s--split .claim { font-size: calc(80 * var(--u)) }
.look-sand .s--split .claim::after { margin-left: 0 }
.look-sand .s--split .ev { font-size: calc(46 * var(--u)) }
.look-sand .s--split .pic.panel { background: var(--earth); color: var(--chalk); padding: calc(64 * var(--u)) calc(72 * var(--u)) }
.look-sand .s--split .pic.panel .who { color: #e2c48c }
.look-sand .s--split .pic.panel .who::before { margin-left: 0 }
.look-sand .s--split .pic.dark { background: var(--night) }
.look-sand .s--split .pic.dark img { object-fit: contain }
.look-sand .s--split .foot { right: auto }

/* Full-bleed picture: the band is cream */
.look-sand .s--photo .band { background: var(--cream) }
.look-sand .s--photo .eyebrow { display: none }

/* Faint picture behind a claim: softer still */
.look-sand .s--bg > img.bg { opacity: .12 }

/* Close: earth */
.look-sand .s--close h2 { font-size: calc(120 * var(--u)) }
.look-sand .s--close .lines { color: var(--body-ink) }

/* Figures on cream */
.look-sand .levels .row span { background: #e9dfc9 }
.look-sand .levels .row.dim span, .look-sand .climb div { background: #e9dfc9 }
.look-sand .climb div:nth-child(5) { background: var(--earth); color: var(--chalk) }
.look-sand .levels .row span.key { background: var(--earth); color: var(--chalk) }
.look-sand .tiles span { background: #e9dfc9 }
.look-sand .foot .n { color: var(--muted) }
.look-sand .s--cover .foot, .look-sand .s--card .foot { display: none }

/* ═══════════════════════════════════════════════════════════════════════════════════════════
   PAPER: the design system as it stands. Paper ground by default, white for picture slides,
   sunlight for the room's turn, night once at the close. Left-set with a wide left margin and a
   ragged right. The eyebrow stays as a quiet label; a hairline rule above the body; the mark
   and number in the footer. Woodcuts on the cover and sections.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */
.look-paper .s { --pad-x: calc(160 * var(--u)); --s-claim: calc(92 * var(--u)); --s-ev: calc(48 * var(--u)); --s-quote: calc(58 * var(--u)); --s-prompt: calc(92 * var(--u)) }
.look-paper .s:not(.s--sun):not(.s--night):not(.s--close):not(.s--photo):not(.s--prompt):not(.s--card):not(.s--split) { background: var(--paper) }
.look-paper .s--split { background: var(--white) }
.look-paper .s--card { background: var(--sunlight) }
.look-paper .s--prompt { background: var(--white) }
.look-paper .s:not(.s--cover):not(.s--card):not(.s--photo) > .eyebrow { visibility: visible; color: var(--muted); font-size: calc(30 * var(--u)) }
/* a hairline runs under the eyebrow across the column */
.look-paper .s:not(.s--cover):not(.s--card):not(.s--photo):not(.s--split) > .eyebrow::after { content: ""; display: block; height: calc(2 * var(--u)); background: var(--rule); margin-top: calc(28 * var(--u)) }
.look-paper .s--split > .eyebrow::after { content: ""; display: block; height: calc(2 * var(--u)); background: var(--rule); margin-top: calc(28 * var(--u)) }
.look-paper .s:not(.s--split):not(.s--photo) > .body { max-width: calc(1440 * var(--u)) }
.look-paper .claim { max-width: 20ch }
.look-paper .ev { max-width: 36ch }
.look-paper .foot { font-size: calc(26 * var(--u)) }
.look-paper .foot img { width: calc(40 * var(--u)); height: calc(40 * var(--u)) }
.look-paper .foot .sec { display: none }

/* Cover: paper, left, a woodcut at the right */
.look-paper .s--cover { background: var(--paper) }
.look-paper .s--cover .title { font-size: calc(176 * var(--u)); max-width: 10ch }
.look-paper .s--cover .sub { font-family: var(--font-quote); font-style: italic; font-size: calc(58 * var(--u)) }
.look-paper .s--cover .by { font-size: calc(32 * var(--u)) }
.look-paper .s--cover .by img { filter: invert(1) hue-rotate(180deg) }   /* the page gives the white mark; paper shows it black */
.look-paper .s--cover .art { display: block; right: calc(120 * var(--u)); bottom: calc(96 * var(--u)); width: calc(520 * var(--u)); height: calc(520 * var(--u)) }

/* Section: sunlight, Polyamine, the woodcut as the kit has it */
.look-paper .s--card h2 { font-size: calc(150 * var(--u)) }
.look-paper .s--card h2.q { font-size: calc(120 * var(--u)) }
.look-paper .s--card svg { width: calc(260 * var(--u)); height: calc(260 * var(--u)) }

/* Quote: left, Restora italic, a thick ink rule at the left */
.look-paper .quote { max-width: 38ch; border-left: calc(6 * var(--u)) solid var(--ink); padding-left: calc(56 * var(--u)) }
.look-paper .who { color: var(--ink) }

/* Prompt: white with the ink tag; the question in Restora */
.look-paper .prompt { max-width: 20ch }

/* Pictures: full-height, bleeding off the right (the kit's split) */
.look-paper .s--split .claim { font-size: calc(84 * var(--u)) }

/* Close */
.look-paper .s--close h2 { font-size: calc(120 * var(--u)) }

/* ═══════════════════════════════════════════════════════════════════════════════════════════
   NIGHT: the deck is night. Chalk type, big and left-set; a mustard woodcut on the cover and
   sections; pictures sit as plates on night like a gallery wall; the room's turn is the one
   light slide (paper), so the screen lights up when the audience speaks. No footer, no rule;
   the number alone, bottom left, in night-muted.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */
.look-night { --mustard: #c9a227 }
.look-night .s { --s-claim: calc(96 * var(--u)); --s-big: calc(120 * var(--u)); --s-ev: calc(50 * var(--u)); --s-quote: calc(60 * var(--u)); --s-prompt: calc(92 * var(--u)) }
.look-night .s:not(.s--prompt):not(.s--photo) { background: var(--night); color: var(--chalk); --body-ink: #d9d3c6; --muted: var(--night-muted) }
.look-night .s--prompt { background: var(--paper); color: var(--ink); --body-ink: #2b2824; --muted: #5d584f }
.look-night .s:not(.s--split):not(.s--photo) > .body { max-width: calc(1480 * var(--u)) }
.look-night .claim { max-width: 18ch; letter-spacing: -.005em }
.look-night .claim + .claim { color: var(--night-muted) }
.look-night .ev { max-width: 34ch }
.look-night .lines { color: var(--body-ink) }
.look-night .hl { background: none; color: #fff; font-weight: 500 }
.look-night .foot .n { color: var(--night-muted) }
.look-night .cap { color: var(--night-muted) }

/* Cover: night, title big at the left, a mustard woodcut at the right */
.look-night .s--cover { background: var(--night) }
.look-night .s--cover > .eyebrow { visibility: visible; color: var(--mustard) }
.look-night .s--cover .title { font-size: calc(176 * var(--u)); max-width: 10ch }
.look-night .s--cover .sub { font-family: var(--font-quote); font-style: italic; font-size: calc(58 * var(--u)) }
.look-night .s--cover .by { font-size: calc(32 * var(--u)) }
.look-night .foot img { display: none }
.look-night .s--cover .art { display: block; right: calc(128 * var(--u)); bottom: calc(112 * var(--u)); width: calc(480 * var(--u)); height: calc(480 * var(--u)); color: var(--mustard) }

/* Section: night, Polyamine chalk, the woodcut in mustard */
.look-night .s--card > .eyebrow { visibility: visible; color: var(--mustard) }
.look-night .s--card h2 { font-size: calc(160 * var(--u)) }
.look-night .s--card h2.q { font-size: calc(124 * var(--u)) }
.look-night .s--card svg { color: var(--mustard); width: calc(260 * var(--u)); height: calc(260 * var(--u)) }

/* Quote: chalk italic, the speaker in mustard */
.look-night .quote { max-width: 40ch; line-height: 1.3 }
.look-night .who { color: var(--mustard) }

/* Prompt: paper, lights on; the tag stays ink on paper */
.look-night .s--prompt .tag { background: var(--ink); color: #fff }
.look-night .prompt { max-width: 20ch }
.look-night .s--prompt .foot .n { color: var(--muted) }

/* Pictures as plates on night: held inside the margins */
.look-night .s--split { grid-template-columns: minmax(0, 1fr) 46%; column-gap: calc(96 * var(--u)); padding-right: var(--pad-x) }
.look-night .s--split .pic { margin: 0; display: grid; align-content: center; grid-row: 1 / 3 }
.look-night .s--split .pic:not(.panel) img { width: 100%; height: auto; max-height: calc(800 * var(--u)); object-fit: cover }
.look-night .s--split .claim { font-size: calc(84 * var(--u)) }
.look-night .s--split .pic.panel { background: #26231f; color: var(--chalk) }
.look-night .s--split .pic.dark { background: var(--night) }
.look-night .s--split .foot { right: auto }
.look-night .s--photo .band { background: var(--night); color: var(--chalk) }
.look-night .s--photo .band .claim { color: var(--chalk) }
.look-night .s--photo .eyebrow { display: none }
.look-night .s--bg > img.bg { opacity: .22; filter: grayscale(1) contrast(1.1) brightness(.9) }
.look-night .cols > div { border-top-color: var(--night-rule) }
.look-night .levels .row span, .look-night .climb div, .look-night .tiles span { background: #2d2a25; color: var(--chalk) }
.look-night .levels .row span.key, .look-night .climb div:nth-child(5) { background: var(--mustard); color: var(--night) }
.look-night .climb div:nth-child(5) small { color: var(--night) }
.look-night .levels .row.dim span { background: #221f1b }
.look-night .s--close { background: var(--night) }
.look-night .s--cover .foot, .look-night .s--card .foot { display: none }
.look-night .options span { border-color: var(--ink) }

.look-sand .s--cover .art { display: none }
