html, body { background: var(--ground); }

/* Reveal paints an opaque background here - keep it transparent so the page
   background (above) shows through instead. */
.reveal-viewport { background: transparent; }

/* Slide content is border-box; Reveal's own chrome outside .slides is left
   alone. Neither reveal.css nor its reset.css sets this ON SCREEN (the print
   path does, `box-sizing: border-box !important`, which is why the defect
   below only ever showed up live), so a section computes content-box and any
   padding is ADDED to its width. Measured on the full-bleed title slide:
   `width: 100%` (960px) plus 51.2px of padding each side rendered a section
   1062px wide inside a 960px slide box - the plate hung 102px past the right
   edge, and on a 4:3 display, where Reveal fits by width, the right tenth of
   it was simply cut off. The same arithmetic 2px-off made bento's picture row
   130px against its neighbours' 128px, because a 1px border was added to a
   pinned height. Scoped to authored slide content rather than all of .reveal
   so Reveal's controls, progress bar and slide number keep the box model
   their own stylesheet was written against. */
.reveal .slides section,
.reveal .slides section *,
.reveal .slides section *::before,
.reveal .slides section *::after {
  box-sizing: border-box;
}

.reveal {
  font-family: var(--font-display);
  color: var(--text);
  font-size: var(--step-1);
}
.reveal h1 { font-size: var(--step-4); }
.reveal h2 { font-size: var(--step-3); }
.reveal h1, .reveal h2, .reveal h3 {
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: none;
  text-shadow: 0 2px 24px var(--text-halo);
  margin-bottom: var(--space-3);
}
.reveal .lede { color: var(--text-muted); font-size: var(--step-1); }
.reveal code, .reveal pre { font-family: var(--font-mono); }

.reveal pre {
  width: 100%;
  box-shadow: none;
  background: var(--surface-glass);
  border: var(--stroke-w) solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
/* `display: block` and `text-align: left` are load-bearing, not cosmetic:
   Reveal centres `.slides`, and without these two declarations every line of
   a code block centres independently and highlight.js's line-stepping clones
   render doubled/offset. Neither vendored reveal.css nor the (deliberately
   unloaded) highlight theme supplies them - a stock Reveal theme would have,
   and this deck replaced the theme by hand. */
.reveal pre code {
  display: block;
  text-align: left;
  padding: var(--space-3);
  font-size: calc(var(--step-0) * 0.85);
  line-height: 1.5;
  max-height: none;
  background: transparent;
}

/* Syntax colours - replaces the unloaded plugin/highlight/*.css */
.hljs-keyword, .hljs-built_in { color: var(--code-keyword); }
.hljs-string, .hljs-number { color: var(--code-string); }
.hljs-comment { color: var(--code-comment); font-style: italic; }
.hljs-title, .hljs-function .hljs-title { color: var(--code-title); }
.hljs-attr, .hljs-property { color: var(--code-attr); }

/* progress bar - thick enough to read from the back of a room; at 2px it
   was mistaken for missing. */
.reveal .progress {
  height: 5px;
  color: var(--accent-key);
  background: var(--track);
}
.reveal .progress span {
  background: linear-gradient(90deg, var(--accent-alt), var(--accent-key));
}

/* arrow controls - in the accent colour and fully opaque. Reveal fades each
   button itself (0.9 enabled, 0.5 when the next press is a fragment rather
   than a slide - most presses in this card-heavy deck), and the container's
   opacity multiplied on top: the old 0.28 left an arrow at about 0.14, which
   read as missing. Disabled arrows stay hidden by Reveal. */
.reveal .controls {
  color: var(--accent-key);
  opacity: 1;
}
.reveal .controls .enabled,
.reveal .controls .enabled.fragmented { opacity: 1; }
.reveal .controls button::after,
.reveal .controls button::before {
  border-width: 3px;
}

/* slide number as a HUD element - bottom LEFT, because Reveal's arrow
   controls own the bottom-right corner and the pill sat on top of the right
   arrow. */
.reveal .slide-number {
  left: var(--space-3);
  right: auto;
  bottom: var(--space-3);
  padding: 4px 10px;
  border: var(--stroke-w) solid var(--stroke);
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.reveal .slide-number a { color: inherit; }

/* pull-quote - a single centred quotation, for a verse or a one-line takeaway.
   Vendor reveal.css puts a left border + background on blockquote by
   default; both are cleared here since this reads as display type, not a
   quoted-code block. */
.reveal blockquote.pull-quote {
  max-width: 76%;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  text-align: center;
}
.reveal blockquote.pull-quote p {
  margin: 0;
  font-size: var(--step-3);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.28;
  color: var(--text);
  text-shadow: 0 2px 24px var(--text-halo);
}
.reveal blockquote.pull-quote p::before,
.reveal blockquote.pull-quote p::after {
  color: var(--accent-key);
}
.reveal blockquote.pull-quote p::before { content: "\201C"; }
.reveal blockquote.pull-quote p::after { content: "\201D"; }
.reveal blockquote.pull-quote cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-size: var(--step-1);
  color: var(--text-muted);
}

/* A question or subtitle carried inside a heading, on its own line. */
/* slide-question - the question a slide answers, pinned to the bottom of
   the slide. margin-top: auto pushes it down inside a flex-column layout
   (table); elsewhere it simply follows the content. */
.reveal .slide-question {
  margin: auto 0 0;
  text-align: center;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent-key);
}

/* qr-panel - the questions slide's right half: a QR code linking to the deck
   so the audience can review it later. Until the code exists, .qr-slot holds
   its place at the same size; swap it for an <img class="qr-code">. */
.reveal .qr-panel {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  margin: 0;
}
.reveal .qr-panel .qr-slot,
.reveal .qr-panel .qr-code {
  width: calc(var(--slide-h) * 0.42);
  aspect-ratio: 1;
  border-radius: var(--radius);
}
.reveal .qr-panel .qr-slot {
  display: grid;
  place-items: center;
  border: 2px dashed var(--stroke);
  font-family: var(--font-mono);
  font-size: var(--step-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.reveal .qr-panel figcaption {
  font-size: var(--step-0);
  color: var(--text-muted);
  text-align: center;
}
/* In a split column the list already has the layout's padding. */
.reveal [data-layout="split"] ul.prompt-list { padding: 0; }

/* prompt-list - a short list of discussion questions, one per line. */
.reveal ul.prompt-list {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-4) 0 0;
  padding: 0 var(--slide-pad);
  list-style: none;
  text-align: left;
}
.reveal ul.prompt-list li {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--step-1);
  line-height: 1.35;
}

.reveal ul.prompt-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--accent-key);
}
