/* Seeds of Renaissance slide theme: "sand" (slides/look/analysis.md, 30 Oct 2026).
   Load after slides.css and deck.css, and put the theme's class on the deck: <main class="deck sor">.
   It changes only the look. Layouts, sizes (the floors) and the engine stay the kit's.

   The idea in four lines:
   - The ground carries the warmth: cream for claims, sand for statements and sections, earth for the
     cover and close, night when the room speaks. Four grounds, each with a role, rotated by role.
   - Statements are centred in a column 1440 wide; structure (lists, columns, figures, pictures) is left-set.
   - Hierarchy from the headline, a short sand rule, then an italic line: not from size steps.
   - Chrome is the slide number alone. The rail and the URL say where you are.

   Zoom-safe: inner slides start 272 down, so no text block begins in the top-right quarter (x > 960, y < 270 on the artboard).
   Contrast (WCAG AA): ink on cream 15:1, ink on sand 9:1, chalk on earth 6.8:1, chalk on night 14.7:1,
   muted on cream 6.1:1, dark-muted on sand 6.3:1. The sand rule is decorative (not text). */

.deck.sor {
  --cream: #f4eee2;       /* the page: warmer than --paper, still near-white */
  --sand: #cdb791;        /* statements, sections: the Explorer/Alexander sand, a touch deeper for ink */
  --earth: #5e4a2e;       /* cover and close, chalk type */
  --sand-rule: #b08a4a;   /* the short rule under a headline (decorative) */
  --sand-ink: #3d342a;    /* secondary text on sand (6.3:1) */
  --chalk-ink: #e4dccd;   /* body on earth and night */
  --gold: #e2c48c;        /* labels on earth and night (8:1 on earth) */
  --plate: #e9dfc9;       /* figure boxes and tiles on cream */
}

/* ── Sizes (round 2): the frontend-slides proportions at the Zoom floors ───────────────────
   Alexander at 1920: heading 51 / body 32 / label 18, body leading 1.65, a 740 measure in a 900 column.
   Here: headline 76 / body 48 / label 32 (1.6 and 1.5; the label floor stops it at 1.8), body leading
   1.45, a 1240 column. Headline 76 is the floor's lower half on purpose: the body is what grew. */
.sor .s { --s-claim: calc(76 * var(--u)); --s-big: calc(96 * var(--u)); --s-prompt: calc(76 * var(--u)); --s-ev: calc(48 * var(--u)); --s-quote: calc(52 * var(--u)); --s-tile: calc(44 * var(--u)); --s-card: calc(120 * var(--u)); --s-label: calc(32 * var(--u)); --s-foot: calc(24 * var(--u));
  --accent: var(--sand-rule) }   /* the rules, bullets, column and tile rules and section labels; a series sets its own on the deck (the cultural-evolution gold, #b89a3e) */

/* ── Grounds by role ───────────────────────────────────────────────────────────────────── */
.sor .s { background: var(--cream) }
.sor .s--paper { background: var(--cream) }
.sor .s--sun, .sor .s--sand, .sor .s--card { background: var(--sand); --muted: var(--sand-ink) }
.sor .s--cover, .sor .s--close { background: var(--earth); color: var(--chalk); --body-ink: var(--chalk-ink); --muted: #d9cfbf }   /* 5.5:1 on earth */
.sor .s--prompt, .sor .s--night { background: var(--night); color: var(--chalk); --body-ink: var(--chalk-ink); --muted: var(--night-muted) }
.sor .s--photo { background: var(--night) }
/* Two prompts in a row: the second takes sand, so no two night slides touch */
.sor .s--prompt.s--sand { background: var(--sand); color: var(--ink); --body-ink: #2b2824; --muted: var(--sand-ink) }
.sor .s--prompt.s--sand .tag { color: var(--earth) }
.sor .s--prompt.s--sand .tag span, .sor .s--prompt.s--sand .link, .sor .s--prompt.s--sand .ev { color: var(--sand-ink) }
.sor .s--prompt.s--sand .options span { border-color: var(--earth) }

/* ── Chrome: the mark bottom left and the number bottom right, small and quiet. The deck gives the
   black mark (seeds-mark-black-128.png) as data-logo; dark slides invert it to white (logo.md: the
   white colourway on night and earth). Clear of Zoom's corner. ───────────────────────────────── */
.sor .foot > span:not(.n) { display: none }
.sor .foot img { display: block; width: calc(56 * var(--u)); height: calc(56 * var(--u)); border-radius: 0; background: none; opacity: .9 }   /* 28 px at Zoom size: the full mark reads from 16 px (logo.md) */
.sor .s--prompt:not(.s--sand) .foot img, .sor .s--night .foot img, .sor .s--close .foot img, .sor .s--photo .foot img { filter: invert(1) }
.sor .s--cover .foot, .sor .s--close .foot img { display: none }
.sor .foot .n { letter-spacing: .06em; opacity: .75; color: var(--muted) }
/* The eyebrow stays in the flow, hidden, so the body keeps its row and centres (as the kit does). */

/* ── The column and the rule ───────────────────────────────────────────────────────────────
   Inner slides start 270 down: the top-right quarter is Zoom's thumbnail, so nothing begins in it.
   The column is 1440 wide; the body is centred in what is left. */
.sor .s:not(.s--cover):not(.s--card):not(.s--photo) { --pad-top: calc(236 * var(--u)); --pad-bottom: calc(110 * var(--u)) }   /* the band sits a little below the canvas middle; a tall block starts at 236, inside the thumbnail's 270 only when it fills the slide */
.sor .s:not(.s--cover) > .eyebrow { height: 0; overflow: hidden }
.sor .climb { height: calc(360 * var(--u)) }
.sor .s:not(.s--split):not(.s--photo):not(.s--cover) > .body { width: min(100%, calc(1240 * var(--u))); justify-self: center; gap: calc(44 * var(--u)) }
/* Statements centre; a body with structure in it (lines, columns, figures, tiles, numbers) stays left-set */
.sor .s:not(.s--split):not(.s--photo):not(.s--cover) > .body:not(:has(> :is(.lines, .cols, .fig, .tiles, .sum, .names, .portrait))) { text-align: center; justify-items: center }
/* Any new structure class should be added to the list above, or it will centre. */
.sor .claim { max-width: 24ch; text-wrap: balance; line-height: 1.12 }
.sor .claim.big { max-width: 20ch; line-height: 1.08 }
.sor .ev { max-width: 40ch }
.sor .claim::after { content: ""; display: block; width: calc(64 * var(--u)); height: calc(3 * var(--u)); background: var(--accent); margin: calc(30 * var(--u)) auto 0 }
.sor .claim:has(+ .claim)::after { display: none }
.sor .claim:has(+ .claim) { margin-bottom: calc(-12 * var(--u)) }
.sor .claim + .claim { color: inherit }
.sor .claim.big::after { margin-top: calc(40 * var(--u)) }
.sor .body:has(> :is(.lines, .cols, .fig, .tiles, .sum, .names, .portrait)) .claim { max-width: 26ch }
.sor .body:has(> :is(.lines, .cols, .fig, .tiles, .sum, .names, .portrait)) .claim::after { margin-left: 0 }
.sor .body:has(> :is(.lines, .cols, .fig, .tiles, .sum, .names, .portrait)) .ev { max-width: 40ch }
.sor .body:has(> .fig) { gap: calc(40 * var(--u)) }

/* ── Secondary lines: Restora italic; lists and tiles stay Bricolage ───────────────────── */
.sor .ev { font-family: var(--font-quote); font-style: italic; line-height: 1.45; color: var(--body-ink) }
.sor .ev.muted { color: var(--muted) }
.sor .ev + .ev { margin-top: calc(-14 * var(--u)) }
.sor .ev .hl { background: none; font-weight: 600 }
.sor .lines { font-family: var(--font-body); font-size: calc(44 * var(--u)); line-height: 1.4; gap: calc(22 * var(--u)); max-width: 36ch }
.sor .lines li::before { background: var(--accent); width: calc(16 * var(--u)); height: calc(16 * var(--u)); top: .45em }
.sor ol.lines li::before { background: none; color: var(--accent); font-size: calc(36 * var(--u)); top: .12em }
.sor .cap { font-size: calc(32 * var(--u)); color: var(--muted); line-height: 1.35; letter-spacing: 0; text-transform: none }   /* captions and credits at the label floor */
.sor .levels.small > .lab { font-size: calc(32 * var(--u)) }
.sor .hl { background: none; font-weight: 500 }

/* ── Titles: Restora 500 by default. Polyamine (the wordmark's face) is a deck-level choice,
   <main class="deck sor sor--poly">, for decks whose cover and section titles are all short: about 18
   characters, two lines at most, never a question. One section face per deck. (A per-slide `poly` class
   exists for the test page only.) ──────────────────────────────────────────────────────────────── */
.sor .s--cover .title, .sor .s--card h2 { font-family: var(--font-quote); font-weight: 500; letter-spacing: -.01em }
.sor--poly .s--cover .title, .sor--poly .s--card h2, .sor .poly .title, .sor .s--card.poly h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0 }

/* ── Cover: earth, centred, the session label above in gold, the lockup at the foot ─────── */
.sor .s--cover { grid-template-rows: 1fr auto 1fr; text-align: center; justify-items: center; padding-bottom: calc(80 * var(--u)) }
.sor .s--cover > .eyebrow { visibility: visible; align-self: end; color: var(--gold); font-size: calc(32 * var(--u)); margin-bottom: calc(56 * var(--u)) }
.sor .s--cover > .eyebrow::after { content: ""; display: block; width: calc(64 * var(--u)); height: calc(3 * var(--u)); background: var(--accent); margin: calc(28 * var(--u)) auto 0; opacity: .9 }
.sor .s--cover > div:nth-of-type(1) { align-self: start }
.sor .s--cover .title { font-size: calc(128 * var(--u)); max-width: 14ch; margin: 0 auto; line-height: 1.04 }
.sor--poly .s--cover .title, .sor .s--cover.poly .title { font-size: calc(140 * var(--u)); max-width: 12ch; line-height: 1 }
.sor .s--cover .sub { font-family: var(--font-quote); font-style: italic; font-weight: 400; font-size: calc(52 * var(--u)); line-height: 1.35; color: var(--body-ink); margin: calc(40 * var(--u)) auto 0; max-width: 34ch }
.sor .s--cover .by { align-self: end; flex-direction: column; gap: calc(28 * var(--u)); font-size: calc(30 * var(--u)); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
/* The logo (logo.md): the horizontal lockup, white colourway on earth, one cap height of clear space */
.sor .s--cover .by img { width: auto; height: calc(104 * var(--u)) }   /* the mark inside the lockup is then about 36 px at Zoom size */
.sor .s--cover .art { display: none }

/* ── Section: sand, centred Polyamine, a small part label above; the woodcut sits out ─── */
.sor .s--card { grid-template-rows: 1fr auto 1fr; justify-items: center; text-align: center }
.sor .s--card > .eyebrow { visibility: visible; grid-row: 1; align-self: end; color: var(--sand-ink); font-size: calc(32 * var(--u)); margin-bottom: calc(40 * var(--u)) }
.sor .s--card > .eyebrow::after { content: ""; display: block; width: calc(64 * var(--u)); height: calc(3 * var(--u)); background: var(--accent); margin: calc(28 * var(--u)) auto 0 }
.sor .s--card > .body { grid-template-columns: minmax(0, 1fr); grid-row: 2; align-self: start; justify-items: center }
.sor .s--card h2 { max-width: 16ch; margin: 0 auto; line-height: 1.08 }
.sor--poly .s--card h2, .sor .s--card.poly h2 { max-width: 12ch; line-height: 1 }
.sor .s--card h2.q { font-style: normal; font-size: calc(112 * var(--u)) }
.sor--poly .s--card h2.q, .sor .s--card.poly h2.q { font-size: calc(124 * var(--u)) }
.sor .s--card svg { display: none }
.sor .s--card .ev { font-size: calc(48 * var(--u)); color: var(--sand-ink) }

/* ── Quote: centred italic Restora, 40ch; the rule sits above the name ────────────────── */
.sor .quote { max-width: 42ch; line-height: 1.42; gap: calc(26 * var(--u)) }
.sor .quote .last { font-size: calc(var(--s-quote) * 1.18) }
.sor .who { font-size: calc(32 * var(--u)); color: var(--muted); letter-spacing: .16em }   /* gold fails AA on cream; gold only on earth and night */
.sor .s--prompt .who, .sor .s--night .who, .sor .s--close .who { color: var(--gold) }
.sor .who::before { content: ""; display: block; width: calc(64 * var(--u)); height: calc(3 * var(--u)); background: var(--accent); margin: 0 auto calc(30 * var(--u)) }

/* ── Prompt: the room's turn goes to night; a gold label with a rule, the question in Restora ── */
.sor .tag { background: none; color: var(--gold); padding: 0; font-size: calc(32 * var(--u)); letter-spacing: .18em; flex-direction: column; gap: calc(14 * var(--u)); justify-self: center }
.sor .tag span { opacity: 1; color: var(--night-muted) }
.sor .tag::after { content: ""; display: block; width: calc(64 * var(--u)); height: calc(3 * var(--u)); background: var(--accent); margin: calc(28 * var(--u)) auto 0 }
.sor .prompt { max-width: 26ch; text-wrap: balance; line-height: 1.14 }
.sor .prompt + .prompt { margin-top: calc(-8 * var(--u)) }
.sor .prompt.big { font-family: var(--font-quote); font-weight: 400; font-style: italic; font-size: calc(84 * var(--u)) }
.sor .options { justify-content: center }
.sor .options span { border-color: var(--night-muted); font-size: calc(42 * var(--u)) }
.sor .link { color: var(--chalk); font-size: calc(40 * var(--u)) }
.sor .s--prompt .ev { color: var(--chalk-ink) }

/* ── Pictures (round 2, after the frontend-slides decks): a picture is a plate. It is held well inside
   the margins (40% of the width beside a claim, 640 tall at most), sits flat and square, and takes its
   caption centred beneath it in the label face. The ground does the framing. ────────────────────── */
.sor .s--split { grid-template-columns: minmax(0, 1fr) 40%; column-gap: calc(112 * var(--u)); padding-right: var(--pad-x) }
.sor .s--split > .body { align-content: center }
.sor .s--split .pic { margin: 0; display: grid; align-content: center; grid-row: 1 / 3 }
.sor .s--split .pic:not(.panel):not(.dark) img { width: 100%; height: auto; max-height: calc(640 * var(--u)); object-fit: cover }
.sor .pic .cap, .sor figcaption.cap { text-align: center; margin-top: calc(22 * var(--u)); justify-self: center; max-width: 36ch }
.sor .s--split .pic:not(.panel) { gap: 0 }
.sor .s--split .claim { font-size: calc(72 * var(--u)); max-width: 18ch }
.sor .s--split .claim::after { margin-left: 0 }
.sor .s--split .ev { font-size: calc(44 * var(--u)); max-width: 28ch }
/* A quote panel beside the claim: earth, full height, bleeding off the right */
.sor .s--split .pic.panel { background: var(--earth); color: var(--chalk); align-self: stretch; margin: calc(-1 * var(--pad-top)) calc(-1 * var(--pad-x)) calc(-1 * var(--pad-bottom)) 0; padding: calc(180 * var(--u)) calc(96 * var(--u)) calc(96 * var(--u)) calc(80 * var(--u)) }
.sor .s--split .pic.panel .quote { --s-quote: calc(40 * var(--u)); line-height: 1.22; gap: calc(18 * var(--u)) }
.sor .s--split .pic.panel .quote .last { font-size: calc(44 * var(--u)) }
.sor .s--split .pic.panel .who { color: var(--gold) }
.sor .s--split .pic.panel .who::before { margin-left: 0 }
.sor .s--split .pic.dark { background: none; align-self: center }
.sor .s--split .pic.dark img { width: 100%; height: auto; object-fit: contain; max-height: calc(640 * var(--u)) }
.sor .portrait img { height: calc(260 * var(--u)) }
.sor .s--split .sum { --s-ev: calc(46 * var(--u)) }

/* A plate on its own (kit .s--plate): the picture centred with its caption, a claim above if there is one */
.sor .s--plate > .body { gap: calc(36 * var(--u)) }
.sor .s--plate .claim { font-size: calc(64 * var(--u)) }
.sor .s--plate figure img { max-height: calc(560 * var(--u)) }
.sor .s--plate > .body:has(> .ev) figure img { max-height: calc(380 * var(--u)) }   /* room for a line beneath: claim 170 + 380 + caption 60 + line 130 + gaps fits the 740 band */
.sor .s--plate .ev { font-size: calc(44 * var(--u)) }
.sor .s--plate .claim::after { display: none }
/* A gallery (kit .gallery): two or three pictures in a row, equal height, as in the art deck */
.sor .gallery img { height: calc(540 * var(--u)) }
.sor .s--plate .gallery + .cap { margin-top: 0 }

/* ── Full-bleed picture: the band is cream ────────────────────────────────────────────── */
.sor .s--photo .band { background: var(--cream); padding-bottom: calc(96 * var(--u)) }
.sor .s--photo .band .claim { max-width: 30ch }
.sor .s--photo .band .claim::after { margin-left: 0; margin-top: calc(22 * var(--u)) }
.sor .s--photo .band .ev { font-size: calc(44 * var(--u)) }
.sor .s--photo .band .cap { text-align: left; margin-top: 0; justify-self: start }
.sor .s--photo .eyebrow { display: none }

/* ── Picture faint behind the claim ───────────────────────────────────────────────────── */
.sor .s--bg > img.bg { opacity: .12 }

/* ── Numbers, names, columns, tiles, figures ───────────────────────────────────────────── */
.sor .sum { font-family: var(--font-body); font-style: normal }
.sor .sum b { font-family: var(--font-quote); font-weight: 500; font-size: calc(108 * var(--u)); letter-spacing: -.01em }
.sor .names { color: var(--muted); font-family: var(--font-quote); font-style: italic }
.sor .cols > div { border-top: calc(3 * var(--u)) solid var(--accent); font-family: var(--font-body); line-height: 1.4 }
.sor .cols h3 { color: var(--muted) }
.sor .tiles span { background: none; border-top: calc(3 * var(--u)) solid var(--accent); padding: calc(22 * var(--u)) 0 0; font-weight: 400 }   /* rules, not filled boxes */
.sor .levels .row span, .sor .levels .row.dim span, .sor .climb div { background: var(--plate) }
.sor .levels .row span.key, .sor .climb div:nth-child(5) { background: var(--earth); color: var(--chalk) }
.sor .climb div:nth-child(5) small { color: var(--chalk-ink) }
.sor .levels.empty .row span { background: var(--plate) }
.sor .levels > .lab { color: var(--muted) }
.sor .fig { font-family: var(--font-label) }

/* ── Close: earth, centred ─────────────────────────────────────────────────────────────── */
.sor .s--close h2 { font-family: var(--font-quote); font-weight: 500; font-size: calc(88 * var(--u)); max-width: 26ch; line-height: 1.08 }
.sor--poly .s--close h2 { font-family: var(--font-display); font-weight: 400 }
.sor .s--close .lockup { height: calc(104 * var(--u)); width: auto; justify-self: start; margin-top: calc(32 * var(--u)) }
.sor .s--close > .body:not(:has(> .lines, > .cols)) .lockup { justify-self: center }
.sor .s--close > .body { gap: calc(64 * var(--u)) }
.sor .s--close .lines { color: var(--chalk-ink); text-align: left; max-width: 32ch }
.sor .s--close .lines li::before { background: var(--gold) }
.sor .s--close .foot .n { color: var(--muted) }

/* ── Night deck (after the Art of the Second Renaissance deck): <main class="deck sor sor--night"> sets the
   whole deck on night, with earth for the cover and close and sand for the room's turn. For picture-led
   decks, where pictures glow on black and the words are few. ───────────────────────────────────── */
.sor--night .s, .sor--night .s--paper, .sor--night .s--plate { background: var(--night); color: var(--chalk); --body-ink: var(--chalk-ink); --muted: var(--night-muted) }
.sor--night .s--sun, .sor--night .s--sand, .sor--night .s--card { background: #26231f; color: var(--chalk); --body-ink: var(--chalk-ink); --muted: var(--night-muted) }
.sor--night .s--prompt { background: var(--sand); color: var(--ink); --body-ink: #2b2824; --muted: var(--sand-ink) }
.sor--night .s--prompt .tag { color: var(--earth) }
.sor--night .s--prompt .tag span, .sor--night .s--prompt .link, .sor--night .s--prompt .ev { color: var(--sand-ink) }
.sor--night .foot img { filter: invert(1) }
.sor--night .s--prompt .foot img { filter: none }
.sor--night .who { color: var(--gold) }
.sor--night .levels .row span, .sor--night .climb div, .sor--night .tiles span { background: #2d2a25; color: var(--chalk) }
.sor--night .levels .row span.key, .sor--night .climb div:nth-child(5) { background: var(--sand); color: var(--ink) }
.sor--night .climb div:nth-child(5) small { color: var(--sand-ink) }
.sor--night .s--split .pic.panel { background: #26231f }

/* ── Light headlines (for comparison only): <main class="deck sor sor--light"> sets claims in Restora 400. E1 says 500. ── */
.sor--light .claim, .sor--light .prompt { font-weight: 400 }

/* ── One family (round 3, test b): Restora for headlines and body, Polyamine on the cover and sections.
   <main class="deck sor sor--serif sor--poly">. Body lines are Restora 400 upright; the italic keeps
   its job as the secondary line. Labels stay Apfel. ──────────────────────────────────────────── */
.sor--serif .s { font-family: var(--font-quote) }
.sor--serif .lines, .sor--serif .cols > div, .sor--serif .tiles span, .sor--serif .sum, .sor--serif .options span, .sor--serif .s--cover .sub, .sor--serif .prompt, .sor--serif .band .ev { font-family: var(--font-quote) }
.sor--serif .lines { font-size: calc(48 * var(--u)); font-weight: 400; line-height: 1.38 }
.sor--serif .ev { font-size: calc(50 * var(--u)) }
.sor--serif .cap, .sor--serif .who, .sor--serif .tag, .sor--serif .eyebrow, .sor--serif .fig, .sor--serif .foot { font-family: var(--font-label) }

/* ── A bigger picture beside fewer words (round 3, lean density): <section class="s s--split s--big-pic"> ── */
.sor .s--split.s--big-pic { grid-template-columns: minmax(0, 1fr) 60%; column-gap: calc(80 * var(--u)) }
.sor .s--split.s--big-pic .pic:not(.panel):not(.dark) img { max-height: calc(820 * var(--u)) }
.sor .s--split.s--big-pic .claim { font-size: calc(64 * var(--u)); max-width: 14ch }
.sor .s--plate.s--big-pic figure img { max-height: calc(720 * var(--u)) }
.sor .s--plate.s--big-pic .claim { font-size: calc(56 * var(--u)) }

/* ── A woodcut on a section (community call): <svg class="wc"><use href="#s-…"/></svg> after the body; the hand, once ── */
.sor .s--card .wc { display: block; position: absolute; right: calc(160 * var(--u)); bottom: calc(120 * var(--u)); width: calc(300 * var(--u)); height: calc(300 * var(--u)); color: var(--earth) }

/* ── Art on night: the work is the slide. Plates and galleries take the whole width and most of the height. ── */
.sor--night .s--plate > .body { width: min(100%, calc(1664 * var(--u))) }
.sor--night .s--plate figure img, .sor--night .s--plate.s--big-pic figure img { max-height: calc(800 * var(--u)) }
.sor--night .gallery img { height: calc(760 * var(--u)) }
.sor--night .s--plate .cap { color: var(--night-muted) }
