/* AI-agents talk: light "studio notebook" theme. Font sizes in pt (slides are fixed 1280x720). */
:root {
  --paper: #F7F3EA;
  --card: #FFFDF8;
  --ink: #1E2330;
  --muted: #5E6672;
  --rule: #CDBFA5;
  --ochre-ink: #8F5A1F;
  --blue: #2A4B9B;
  --blue-soft: #E4E9F4;
  --ochre: #B8742A;
  --ochre-soft: #F3E4CF;
  --claude: #C15F3C;
  --codex: #1D7586;
  --dsh: #6B4FA0;
  --llm: #7A4E8C;
  --serif: "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

html, body, .reveal-viewport { background: var(--paper); background-color: var(--paper); }
.reveal { font-family: var(--sans); font-size: 32px; color: var(--ink); }
.reveal .slides section {
  box-sizing: border-box; height: 720px; padding: 44px 64px 40px;
  text-align: left; display: flex !important; flex-direction: column;
}
.reveal .slides section.stack { display: block !important; }

/* Typography */
.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--serif); color: var(--ink); text-transform: none;
  letter-spacing: 0; font-weight: 600; margin: 0;
}
.reveal h1 { font-size:49.5pt; line-height: 1.1; }
.reveal h2 { font-size:30pt; line-height: 1.15; }
.reveal h3 { font-size:19pt; line-height: 1.25; color: var(--blue); }
.reveal p, .reveal li { font-size:19pt; line-height: 1.38; color: var(--ink); margin: 0; }
.reveal ul { margin: 0; padding-left: 1.1em; }
.reveal li + li { margin-top: 8px; }
.reveal strong { color: var(--ink); font-weight: 650; }
.reveal code, .reveal .mono { font-family: var(--mono); font-size: 0.92em; }
.reveal sup { vertical-align: super; font-size: 0.62em; line-height: 0; }
.reveal sub { vertical-align: sub; font-size: 0.62em; line-height: 0; }

/* Part label above the title */
.reveal .kicker { font-size:13.5pt; color: var(--ochre-ink); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; }
.reveal .icon { width: 48px; height: 48px; color: var(--blue); flex: none; }
.reveal .icon.lg { width: 76px; height: 76px; }
.reveal .icon.dim { color: var(--rule); }
.reveal .icon.ochre { color: var(--ochre); }

/* Topic title + core message line */
.reveal .core {
  font-family: var(--sans); font-size:20pt; color: var(--blue);
  margin: 10px 0 0; padding-left: 14px; border-left: 4px solid var(--ochre); line-height: 1.3;
}
.reveal .body { flex: 1; min-height: 0; margin-top: 22px; display: flex; flex-direction: column; justify-content: center; padding-bottom: 18px; }
.reveal .body.top { justify-content: flex-start; }
.reveal .center-body { justify-content: center; }
.reveal .r-stack.states { flex: 0 1 auto; }

/* Small labels */
.reveal .tag {
  display: inline-block; font-size:12.5pt; color: var(--muted); border: 1px solid var(--rule);
  border-radius: 999px; padding: 2px 12px; background: var(--card);
}
.reveal .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.reveal .muted { color: var(--muted); }
.reveal .footnote {
  font-size:12pt; color: var(--muted); margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--rule); line-height: 1.35;
}

/* Cards and grids */
.reveal .grid { display: grid; gap: 22px; }
.reveal .card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 22px;
}
.reveal .card h3 { margin-bottom: 8px; }
.reveal .card p { font-size:17.5pt; }
.reveal .card .big { font-family: var(--serif); font-size:33.5pt; color: var(--ochre); line-height: 1.1; }
.reveal .card.accent { border-color: var(--ochre); background: #FFF8EC; }

/* Agent chips */
.reveal .chip { display: inline-block; padding: 1px 10px; border-radius: 6px; color: #fff; font-size:14.5pt; font-weight: 600; }
.reveal .chip.claude { background: var(--claude); }
.reveal .chip.codex { background: var(--codex); }
.reveal .chip.dsh { background: var(--dsh); }

/* Big numbers */
.reveal .nums { display: flex; gap: 40px; align-items: flex-end; }
.reveal .num .v { font-family: var(--serif); font-size:51.5pt; color: var(--ink); line-height: 1; }
.reveal .num .l { font-size:15.5pt; color: var(--muted); margin-top: 6px; }

/* Ladder (four tool families) */
.reveal .ladder { display: flex; flex-direction: column; gap: 10px; }
.reveal .rung {
  display: grid; grid-template-columns: 230px 1fr; align-items: center;
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 20px;
}
.reveal .rung p.k { font-family: var(--serif); font-size:20pt; color: var(--blue); font-weight: 600; }
.reveal .rung p.v { font-size:18.5pt; }
.reveal .rung.llm { border-color: var(--ochre); }

/* Equation / estimate box */
.reveal .eqbox {
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 28px;
  font-family: var(--serif); font-size:24.5pt; line-height: 1.6;
}
.reveal .eqbox p { font-family: var(--serif); font-size:24.5pt; }

/* Terminal */
.reveal .term {
  background: #20242E; color: #E8E3D6; border-radius: 12px; padding: 18px 24px;
  font-family: var(--mono); font-size:17pt; line-height: 1.5; white-space: pre; overflow: hidden;
}
.reveal .term p { font-family: var(--mono); font-size:17pt; color: #E8E3D6; }
.reveal .term .err { color: #F0A27A; }
.reveal .term .dim { color: #9AA3B2; }

/* State stacks: states replace each other in one place */
.reveal .r-stack.states { flex: 1; min-height: 0; align-items: start; justify-items: stretch; }
.reveal .r-stack.states > * { width: 100%; }

/* Figures */
.reveal figure { margin: 0; }
.reveal img.fig, .reveal object.fig { display: block; max-width: 100%; margin: 0 auto; }
.reveal figcaption { font-size:13.5pt; color: var(--muted); margin-top: 6px; text-align: center; }

/* Inline SVG diagrams */
.reveal svg.diagram { display: block; margin: 0 auto; overflow: visible; }
.reveal svg.diagram text { font-family: var(--sans); fill: var(--ink); }

/* Opening / closing */
.reveal section.cover { justify-content: center; }
.reveal section.cover .kicker { font-size:15.5pt; color: var(--ochre-ink); letter-spacing: 0.08em; text-transform: uppercase; }
.reveal section.cover .themes { display: flex; gap: 26px; margin-top: 30px; }
.reveal section.cover .theme { flex: 1; }

/* Part dividers and backups */
.reveal section.divider { justify-content: center; }
.reveal section.divider .part { font-size:15.5pt; color: var(--ochre); letter-spacing: 0.1em; text-transform: uppercase; }
.reveal section.backup .core { border-left-color: var(--muted); }
.reveal .backup-badge { position: absolute; top: 18px; right: 64px; font-size:11pt; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* Reveal chrome */
.reveal .progress { color: var(--ochre); height: 4px; }
.reveal .slide-number { background: transparent; color: var(--muted); font-family: var(--sans); font-size:12.5pt; right: 22px; bottom: 14px; }
html.on-backup .reveal .slide-number { display: none !important; }
.reveal .slide-number a { text-decoration: none; color: var(--muted); }
.reveal section.backup a, .reveal .kicker a { color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--rule); }
.reveal .kicker a { color: var(--ochre-ink); }
.reveal .stairs .card { display: flex; flex-direction: column; justify-content: flex-end; }
.reveal .down { text-align: center; color: var(--ochre); font-size: 16pt; line-height: 1; margin: 2px 0; }

/* Review mode (?review): all fragments visible except replaced states */
html.review .reveal .fragment { opacity: 1 !important; visibility: visible !important; }
html.review .reveal .r-stack.states > .fragment.fade-out,
html.review .reveal .r-stack.states > .fragment.fade-in-then-out { opacity: 0 !important; visibility: hidden !important; }

.reveal section.refs .rung { grid-template-columns: 280px 1fr; }

/* Part 1: model comparison (cooks, one pass, Jev demo) */
.reveal .cook { padding: 14px 20px; }
.reveal .cook p { font-size:16.5pt; }
.reveal .cook p.who, .reveal p.who-s { font-family: var(--serif); font-size:20pt; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.reveal .cook .role { font-family: var(--sans); font-weight: 400; font-size:15pt; color: var(--muted); }
.reveal .thought { display: flex; align-items: baseline; gap: 18px; padding: 12px 22px; }
.reveal .thought p.sum { font-family: var(--serif); font-size:26pt; white-space: nowrap; }
.reveal .thought p.muted { font-size:15.5pt; }
.reveal p.q { font-size:16pt; color: var(--muted); margin: 6px 0 12px; }
.reveal p.lab { font-size:12.5pt; text-transform: uppercase; letter-spacing: 0.06em; }
.reveal .toks { display: flex; gap: 10px; }
.reveal .toks > div { text-align: center; }
.reveal p.tok { font-family: var(--mono); font-size:17pt; background: #F1ECF4; border: 1px solid #CDB9D6; border-radius: 8px; padding: 2px 12px; }
.reveal p.pass { font-size:12pt; color: var(--muted); margin-top: 4px; }
.reveal .bars { display: grid; grid-template-columns: auto 1fr 52px; gap: 6px 12px; align-items: center; }
.reveal .bars p { font-size:15.5pt; }
.reveal .bars p.v { font-family: var(--mono); font-size:15pt; text-align: right; }
.reveal .bars .track { height: 16px; background: var(--ochre-soft); border-radius: 4px; overflow: hidden; }
.reveal .bars .track > div { height: 100%; background: var(--ochre); border-radius: 4px; }
.reveal table.jt { border-collapse: collapse; width: 100%; font-size:15pt; margin: 0; }
.reveal table.jt th { font-size:12.5pt; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding: 4px 8px 8px; border-bottom: 2px solid var(--rule); }
.reveal table.jt td { padding: 9px 8px; border-bottom: 1px solid var(--rule); line-height: 1.3; vertical-align: middle; }
.reveal table.jt td.n { text-align: right; font-family: var(--mono); font-size:14.5pt; white-space: nowrap; font-variant-numeric: tabular-nums; }
.reveal table.jt th.n { text-align: right; }
.reveal table.jt tr.hi td { background: #FFF8EC; }
.reveal .out { display: inline-block; white-space: nowrap; font-size:14.5pt; padding: 1px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.reveal .out.person { background: var(--ochre-soft); color: var(--ochre-ink); font-weight: 600; }
/* Intro: three numbered reasons */
.reveal .card.reason { padding: 10px 14px; background: var(--card); }
.reveal .card.reason p { font-size:17.5pt; display: flex; align-items: baseline; gap: 10px; }
.reveal .card.reason span { font-family: var(--serif); font-size:26pt; color: var(--ochre); line-height: 1; }
