/* ==========================================================================
   Theme: BRAND SHEET (dark) - the recommended look.
   Team 271 brand sheet (/mnt/storage/robotics/branding/mechanical-marauders-swatches.html):
   Affenpinscher #272B2D slides, Vibrant Yellow #FFDA29 accent, maroon #7F1F26 secondary,
   white text. Headings Barlow Condensed (uppercase, 600-800), body Inter (400-700).
   Maroon is a fill colour here (section slides, the band stripe), never a text colour on
   the dark background (1.45:1). Yellow is never a large background. While a section slide
   is showing, the page around the slide turns maroon too, so the fill reaches the screen
   edge in the live view (not in the scroll or PDF views).

   This file sets colours, fonts, type sizes and decoration only. Layout (grid, flex,
   padding, positions) belongs to engine/deck.css, which loads after this file and uses
   only the contract variables below. Selectors here start with ".reveal" so they still
   apply over deck.css rules of lower specificity.

   Contract variables: --bg --fg --muted --accent --accent-2 --band-bg --band-fg --rule
   --font-head --font-body --font-mono --radius
   Theme extras (optional for deck.css): --on-accent (text on an --accent fill),
   --on-accent-2 (text on an --accent-2 fill), --surface (card fill), --danger.
   Usage rule for deck.css: --accent is safe as text on --bg, --band-bg and --surface;
   --accent-2 is a FILL colour (put --on-accent-2 text on it), not a text colour.

   WCAG contrast, computed 2026-10-08 with contrast.py (U3/U3b scratchpad; AA = 4.5:1 body, 3:1 large):
     fg on bg ..................... #FFFFFF on #272B2D  14.29  AA body
     muted on bg .................. #C9CCCD on #272B2D   8.85  AA body
     accent on bg ................. #FFDA29 on #272B2D  10.42  AA body
     band-fg on band-bg ........... #FFFFFF on #1B1E20  16.76  AA body
     accent on band-bg ............ #FFDA29 on #1B1E20  12.22  AA body
     fg on surface ................ #FFFFFF on #1B1E20  16.76  AA body
     muted on surface ............. #C9CCCD on #1B1E20  10.38  AA body
     on-accent on accent .......... #1B1E20 on #FFDA29  12.22  AA body
     on-accent-2 on accent-2 ...... #FFFFFF on #7F1F26   9.88  AA body
     accent on accent-2 ........... #FFDA29 on #7F1F26   7.20  AA body
     section muted on accent-2 .... #F2D4D6 on #7F1F26   7.13  AA body
     danger on bg ................. #FF8A80 on #272B2D   6.26  AA body
     accent-2 on bg ............... #7F1F26 on #272B2D   1.45  below AA - fill/decoration only, never text
   ========================================================================== */

@import url('../fonts/fonts.css');

:root {
  --bg: #272B2D;
  --fg: #FFFFFF;
  --muted: #C9CCCD;
  --accent: #FFDA29;
  --accent-2: #7F1F26;
  --band-bg: #1B1E20;
  --band-fg: #FFFFFF;
  --rule: #4A4F52;
  --font-head: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
  --radius: 10px;

  --on-accent: #1B1E20;
  --on-accent-2: #FFFFFF;
  --surface: #1B1E20;
  --danger: #FF8A80;
  --stripe: linear-gradient(90deg, #FFDA29 0 70%, #7F1F26 70% 100%);

  /* reveal.js theme variables, for anything in reveal.css that reads them */
  --r-background-color: var(--bg);
  --r-main-color: var(--fg);
  --r-main-font: var(--font-body);
  --r-heading-font: var(--font-head);
  --r-heading-color: var(--fg);
  --r-link-color: var(--accent);
  --r-selection-background-color: var(--accent);
  --r-selection-color: var(--on-accent);
}

html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html, body, .reveal-viewport { background: var(--bg); color: var(--fg); }

.reveal {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg);
}
.reveal ::selection { background: var(--accent); color: var(--on-accent); }
.reveal strong, .reveal b { font-weight: 700; color: var(--accent); }
.reveal em, .reveal i { font-style: italic; }
.reveal a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: inherit;
  margin: 0;
}
.reveal h1 { font-weight: 800; font-size: 96px; line-height: 0.95; letter-spacing: 0.005em; }
.reveal h2 { font-weight: 800; font-size: 56px; line-height: 1.0; letter-spacing: 0.01em; }
.reveal h3 { font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: 0.02em; color: var(--accent); }

/* ---- band: eyebrow + title over a yellow/maroon stripe (brand sheet header) ---- */
.reveal .band {
  background: var(--band-bg);
  color: var(--band-fg);
  border-bottom: 8px solid var(--accent);
  border-image: var(--stripe) 1;
}
.reveal .band h2 { color: var(--band-fg); }
.reveal .eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- body text ---- */
.reveal .lead { font-size: 30px; line-height: 1.35; color: var(--muted); }
.reveal .k-statement .lead { font-family: var(--font-body); font-weight: 600; font-size: 42px; line-height: 1.25; color: var(--fg); }
.reveal ul.items li { font-size: 28px; line-height: 1.35; }
.reveal ul.items li::marker { color: var(--accent); }
.reveal .split .col h3 { border-bottom: 3px solid var(--accent-2); padding-bottom: 6px; }
.reveal .split .col li { font-size: 24px; }

/* ---- stats ---- */
.reveal .stats .stat {
  background: var(--surface);
  border-top: 8px solid var(--accent);
  border-radius: var(--radius);
}
.reveal .stats .n {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.reveal .stats .l { font-size: 24px; line-height: 1.3; color: var(--muted); }

/* ---- steps and timeline ---- */
.reveal ol.steps li::marker { font-family: var(--font-head); font-weight: 800; color: var(--accent); }
.reveal ol.steps .t { font-family: var(--font-head); font-weight: 700; font-size: 34px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--fg); }
.reveal ol.steps .x { font-size: 24px; line-height: 1.35; color: var(--muted); }
.reveal .timeline .ev { border-left: 6px solid var(--accent-2); }
.reveal .timeline .when { font-family: var(--font-head); font-weight: 700; font-size: 32px; text-transform: uppercase; color: var(--accent); }
.reveal .timeline .what { font-size: 24px; line-height: 1.35; color: var(--fg); }

/* ---- media ---- */
.reveal .gallery img, .reveal .split figure img, .reveal .video .poster img { border-radius: var(--radius); }
.reveal figcaption { font-size: 20px; color: var(--muted); }
.reveal .video .poster { border-radius: var(--radius); background: var(--surface); }
.reveal .video button.play {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

/* ---- people ---- */
.reveal .people .person { background: var(--surface); border-left: 6px solid var(--accent); border-radius: var(--radius); }
.reveal .people .name { font-family: var(--font-head); font-weight: 700; font-size: 32px; text-transform: uppercase; color: var(--fg); }
.reveal .people .role { font-size: 22px; color: var(--muted); }

/* ---- call to action ---- */
.reveal .cta .lines { font-family: var(--font-body); font-weight: 400; font-size: 30px; line-height: 1.5; text-transform: none; letter-spacing: 0; color: var(--fg); }
.reveal .cta .line.primary { font-size: 40px; font-weight: 600; color: var(--accent); }
.reveal .cta .line .lab { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.reveal .cta .qr { background: #FFFFFF; border-radius: var(--radius); padding: 14px; }

/* ---- pause ---- */
.reveal .pause .prompt { font-family: var(--font-head); font-weight: 700; font-size: 56px; line-height: 1.05; text-transform: uppercase; color: var(--fg); }
.reveal .pause .countdown { font-family: var(--font-head); font-weight: 800; font-size: 150px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---- footer ---- */
.reveal .foot {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
.reveal .foot .brand { color: var(--accent); }

/* ---- title slide: dark with the brand stripe along the bottom ---- */
.reveal .slides section.k-title {
  background: var(--stripe) left bottom / 100% 18px no-repeat, var(--bg);
}
/* the footer keeps clear of the stripe: a transparent bottom border as tall as the stripe */
.reveal .slides section.k-title .foot { border-bottom: 18px solid transparent; }
.reveal .title h1 { color: var(--fg); }
.reveal .title .lead { font-size: 32px; color: var(--muted); }

/* ---- section slide: maroon fill, white title, yellow rule ---- */
.reveal .slides section.k-section {
  --fg: var(--on-accent-2);
  --muted: #F2D4D6;
  background: var(--accent-2);
  color: var(--on-accent-2);
}
.reveal .section h1 { color: var(--on-accent-2); border-left: 14px solid var(--accent); padding-left: 28px; }
.reveal .slides section.k-section .foot { color: #F2D4D6; border-top-color: rgba(255, 255, 255, 0.25); }
/* page around the slide: maroon while a section slide shows (live view only); arrows stay yellow (7.20:1) */
html:not(.print-pdf) .reveal-viewport:not(.reveal-scroll):has(.slides > section.k-section.present) { background: var(--accent-2); }

/* ---- reveal chrome ---- */
.reveal .progress { color: var(--accent); }
.reveal .controls { color: var(--accent); }
.reveal .slide-number { font-family: var(--font-head); background: var(--band-bg); color: var(--muted); }
