/* ============================================================================
   Curation Labs research-seminar deck — paper-and-blueprint theme
   Inspired by the polyglots/cards "blueprint" theme.
   Paper default; dark blueprint for cover, act dividers, and conclusion.
   ============================================================================ */

:root {
  /* palette */
  --ink:            #0A2540;
  --blueprint:      #1B3A6E;
  --blueprint-deep: #0E2447;
  --paper:          #FAFAF6;
  --paper-soft:     #F2EFE7;
  --rule:           rgba(10, 37, 64, 0.14);
  --rule-strong:    rgba(10, 37, 64, 0.28);
  --rule-faint:     rgba(10, 37, 64, 0.07);
  --cyan:           #2E6BBA;
  --cyan-soft:      rgba(46, 107, 186, 0.10);
  --drafting-red:   #C2410C;
  --drafting-red-soft: rgba(194, 65, 12, 0.10);
  --graphite:       #4A5568;

  /* fonts */
  --f-display: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
  --f-body:    'IBM Plex Sans', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', 'JetBrains Mono', 'Menlo', monospace;
}

/* ── reveal viewport ────────────────────────────────────────────────────── */
.reveal-viewport {
  background: var(--paper);
}

.reveal {
  font-family: var(--f-body);
  font-size: 40px;
  color: var(--ink);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  padding: 64px 96px 96px;
  box-sizing: border-box;
  /* subtle engineering-paper dot grid */
  background:
    radial-gradient(circle, var(--rule-faint) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--paper);
}

/* ── typography ─────────────────────────────────────────────────────────── */
.reveal h1,
.reveal h2,
.reveal h3 {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.45em;
}

.reveal h1 { font-size: 2.6em; font-weight: 700; }
.reveal h2 { font-size: 1.55em; }
.reveal h3 { font-size: 0.95em; font-weight: 600; color: var(--graphite); }

.reveal p,
.reveal li {
  font-weight: 400;
  font-size: 0.78em;
  line-height: 1.55;
  margin: 0 0 0.6em;
}

.reveal ul,
.reveal ol {
  margin: 0 0 0.6em 1.2em;
  padding: 0;
}

.reveal li + li { margin-top: 0.2em; }

.reveal strong { font-weight: 600; color: var(--ink); }
.reveal em { font-style: italic; }
.reveal small,
.reveal .muted {
  font-size: 0.55em;
  color: var(--graphite);
}

.reveal a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-bottom-color 120ms ease;
}
.reveal a:hover { border-bottom-color: var(--cyan); }

/* ── dark-slide wrapper (cover, dividers, conclusion) ───────────────────── */
.reveal .dark-slide,
.reveal section.dark-slide,
.reveal section.dark-slide h1,
.reveal section.dark-slide h2,
.reveal section.dark-slide h3,
.reveal section.dark-slide p,
.reveal section.dark-slide li,
.reveal section.dark-slide strong,
.reveal section.dark-slide em {
  color: var(--paper);
}

.reveal section.dark-slide {
  background:
    radial-gradient(circle, rgba(250, 250, 246, 0.10) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--blueprint);
}

.reveal section.dark-slide a {
  color: var(--paper);
  border-bottom-color: rgba(250, 250, 246, 0.40);
}
.reveal section.dark-slide a:hover {
  border-bottom-color: var(--paper);
}

.reveal section.dark-slide h3 { color: rgba(250, 250, 246, 0.70); }

.reveal section.dark-slide .muted,
.reveal section.dark-slide small {
  color: rgba(250, 250, 246, 0.65);
}

.reveal section.dark-slide code {
  background: rgba(250, 250, 246, 0.12);
  color: var(--paper);
}

/* ── kicker (category label above the H2) ───────────────────────────────── */
.reveal .kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.44em;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6em;
}
.reveal section.dark-slide .kicker {
  color: var(--paper);
  opacity: 0.75;
}
.reveal .kicker.red   { color: var(--drafting-red); }
.reveal .kicker.muted { color: var(--graphite); }

/* ── numeric accent (the colored anchor numbers) ────────────────────────── */
.reveal .num {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.reveal section.dark-slide .num { color: #93c5fd; }

/* ── stat block (very large number) ─────────────────────────────────────── */
.reveal .stat {
  border-top: 1px solid var(--rule-strong);
  padding-top: 12px;
}
.reveal .stat .stat-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.8em;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
}
.reveal .stat .stat-lbl {
  font-family: var(--f-mono);
  font-size: 0.52em;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 6px;
}

/* ── callouts ───────────────────────────────────────────────────────────── */
.reveal .callout,
.reveal .callout-cyan,
.reveal .callout-red {
  padding: 18px 22px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-size: 0.78em;
  line-height: 1.5;
  margin: 0.6em 0;
  border-left: 3px solid var(--ink);
}
.reveal .callout-cyan {
  border-left-color: var(--cyan);
  background: var(--cyan-soft);
  border-top: 0;
  border-bottom: 0;
}
.reveal .callout-red {
  border-left-color: var(--drafting-red);
  background: var(--drafting-red-soft);
  border-top: 0;
  border-bottom: 0;
}
.reveal section.dark-slide .callout {
  background: rgba(250, 250, 246, 0.06);
  border-left-color: var(--paper);
  border-top-color: rgba(250, 250, 246, 0.18);
  border-bottom-color: rgba(250, 250, 246, 0.18);
}

/* ── blockquote (source-attributed quotes) ──────────────────────────────── */
.reveal blockquote {
  border-left: 3px solid var(--cyan);
  background: var(--cyan-soft);
  box-shadow: none;
  padding: 18px 24px;
  margin: 0.6em 0;
  font-style: normal;
  width: 90%;
  font-size: 0.82em;
  line-height: 1.45;
}
.reveal blockquote em.cite,
.reveal p em.cite {
  color: var(--graphite);
  font-size: 0.7em;
  font-style: italic;
  display: block;
  margin-top: 0.5em;
  text-align: right;
}
.reveal section.dark-slide blockquote {
  border-left-color: #93c5fd;
  background: rgba(250, 250, 246, 0.06);
}
.reveal section.dark-slide blockquote em.cite {
  color: rgba(250, 250, 246, 0.70);
}

/* ── columns ────────────────────────────────────────────────────────────── */
.reveal .cols,
.reveal .cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  margin: 0.5em 0;
}
.reveal .cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin: 0.5em 0;
}
.reveal .col {
  padding: 18px 20px 20px;
  border-top: 2px solid var(--ink);
  background: var(--paper);
  font-size: 0.78em;
  line-height: 1.5;
}
.reveal section.dark-slide .col {
  background: rgba(250, 250, 246, 0.04);
  border-top-color: var(--paper);
}
.reveal .col h4 {
  font-family: var(--f-display);
  font-size: 1.05em;
  font-weight: 600;
  margin: 0 0 0.4em;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.reveal section.dark-slide .col h4 { color: var(--paper); }
.reveal .col p { font-size: 0.92em; margin: 0 0 0.5em; }
.reveal .col.bad    { border-top-color: var(--drafting-red); }
.reveal .col.warn   { border-top-color: #d97706; }
.reveal .col.good   { border-top-color: var(--cyan); }

/* ── tables ─────────────────────────────────────────────────────────────── */
.reveal table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-body);
  font-size: 0.72em;
  line-height: 1.45;
  margin: 0.5em auto;
}
.reveal table thead th {
  font-family: var(--f-mono);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
}
.reveal table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink);
}
.reveal table tbody tr:last-child td { border-bottom: 2px solid var(--ink); }
.reveal section.dark-slide table thead th {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
.reveal section.dark-slide table tbody td {
  color: var(--paper);
  border-bottom-color: rgba(250, 250, 246, 0.18);
}
.reveal section.dark-slide table tbody tr:last-child td {
  border-bottom-color: var(--paper);
}

/* ── code blocks ────────────────────────────────────────────────────────── */
.reveal code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  background: var(--paper-soft);
  padding: 0.08em 0.32em;
  border-radius: 3px;
  color: var(--drafting-red);
}

.reveal pre {
  width: 100%;
  margin: 0.4em 0;
  box-shadow: none;
}

.reveal pre code {
  display: block;
  padding: 22px 28px;
  background: #1e1e1e;            /* dark code block on paper for contrast */
  color: #f5f5f4;
  border-radius: 0;
  font-size: 0.56em;
  line-height: 1.55;
  max-height: none;
  border-left: 3px solid var(--cyan);
}

/* ── big-text (large takeaway line) ─────────────────────────────────────── */
.reveal .big-text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.6em;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0.6em 0;
}
.reveal .big-text em {
  color: var(--cyan);
  font-style: normal;
}
.reveal section.dark-slide .big-text {
  color: var(--paper);
}
.reveal section.dark-slide .big-text em {
  color: #93c5fd;
}

/* ── act divider (big translucent act numeral) ──────────────────────────── */
.reveal .act-divider {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70%;
  padding-left: 0;
}
.reveal .act-number {
  position: absolute;
  left: -20px;
  top: -40px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 9em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(250, 250, 246, 0.20);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.reveal .act-divider > *:not(.act-number) {
  position: relative;
  z-index: 1;
}

/* ── reveal chrome ──────────────────────────────────────────────────────── */
.reveal .progress {
  color: var(--cyan);
  height: 2px;
}

.reveal .slide-number {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--graphite);
  right: 24px;
  bottom: 16px;
}
.reveal section.dark-slide ~ .slide-number,
.reveal .slide-number {
  /* slide-number is outside the section, so it uses paper color globally */
}

.reveal .controls {
  color: var(--cyan);
}

/* ── utilities ──────────────────────────────────────────────────────────── */
.reveal .center { text-align: center; }
.reveal .mono   { font-family: var(--f-mono); }
.reveal .tight  { line-height: 1.25; }
.reveal .accent { color: var(--cyan); }
.reveal .warn   { color: var(--drafting-red); }
.reveal .rule         { height: 1px; background: var(--rule-strong); border: 0; margin: 1em 0; }
.reveal .rule-thick   { height: 2px; background: var(--ink); border: 0; margin: 1em 0; }
