/**
 * Better with Kent — Reveal.js theme
 * Tokens: packages/bwk-remotion/docs/design-system.md
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bwk-accent: #f15d22;
  --bwk-bg: #151515;
  --bwk-text: #f4f2ec;
  --bwk-muted: rgba(244, 242, 236, 0.72);
  /* Teleprompter: scale Reveal's default 40px base — set >1 for larger teleprompter text */
  --bwk-scale: 0.9;
  --bwk-reveal-base: calc(40px * var(--bwk-scale));
}

.reveal {
  font-family: Inter, system-ui, sans-serif;
  color: var(--bwk-text);
  background-color: var(--bwk-bg);
  font-size: var(--bwk-reveal-base);
}

.reveal-viewport {
  background-color: var(--bwk-bg);
}

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

.reveal .slides section {
  background: var(--bwk-bg);
  box-sizing: border-box;
  height: 100%;
  padding: 28px 40px !important;
}

.reveal h1,
.reveal h2,
.reveal h3 {
  color: var(--bwk-text);
  font-weight: 700;
  text-transform: none;
  line-height: 1.15;
}

.reveal h1 {
  font-size: 2.4em;
}

.reveal h2 {
  font-size: 1.75em;
  border-left: 4px solid var(--bwk-accent);
  padding-left: 20px;
}

.reveal p,
.reveal li {
  color: var(--bwk-muted);
  font-size: 0.95em;
  line-height: 1.5;
}

.reveal strong {
  color: var(--bwk-text);
}

.reveal .eyebrow {
  color: var(--bwk-accent);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

.reveal pre:not(.mermaid) {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 12px 12px 0;
  border-left: 4px solid var(--bwk-accent);
  font-size: 0.52em;
  line-height: 1.4;
  padding: 0.65em 0.85em;
  width: 100%;
}

.reveal pre code.hljs {
  background: transparent;
  color: var(--bwk-muted);
  padding: 0;
}

.reveal pre code.hljs .hljs-keyword,
.reveal pre code.hljs .hljs-title.function_ {
  color: #f15d22;
}

.reveal pre code.hljs .hljs-string {
  color: #b8d4a8;
}

.reveal pre code.hljs .hljs-attr,
.reveal pre code.hljs .hljs-property {
  color: #e8c4a8;
}

.reveal pre code.hljs .hljs-comment {
  color: rgba(244, 242, 236, 0.45);
}

.reveal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.reveal .pipeline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7em;
  margin-top: 1.5em;
}

.reveal .pipeline .step {
  background: rgba(241, 93, 34, 0.12);
  border: 1px solid rgba(241, 93, 34, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--bwk-text);
}

.reveal .pipeline .arrow {
  color: var(--bwk-accent);
  font-weight: 700;
}

.reveal .subtitle {
  color: var(--bwk-muted);
  font-size: 0.65em;
  margin-top: 0.75em;
}

.reveal .slide-number {
  color: var(--bwk-muted);
}

.reveal .slide-image {
  border-radius: 12px;
  max-height: calc(420px / var(--bwk-scale));
  max-width: 100%;
  object-fit: contain;
}

.reveal .slide-image.tall {
  max-height: calc(520px / var(--bwk-scale));
}

.reveal .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.reveal .thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 1em;
}

.reveal .thumb-grid img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  max-height: calc(260px / var(--bwk-scale) * 1.75);
  object-fit: cover;
}

.reveal .thumb-grid.compact img {
  max-height: calc(200px / var(--bwk-scale) * 1.75);
}

.reveal .title-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.reveal .title-row img {
  border-radius: 16px;
  width: calc(180px / var(--bwk-scale));
  height: calc(180px / var(--bwk-scale));
  object-fit: cover;
}

.reveal .search-hits {
  font-size: 0.85em;
  margin-top: 0.5em;
}

.reveal .search-hits li {
  margin-bottom: 0.35em;
}

.reveal .footnote {
  font-size: 0.8em;
  margin-top: 1em;
}

.reveal .tool-label {
  color: var(--bwk-muted);
  font-size: 0.72em;
  margin-bottom: 0.75em;
}

.reveal .tool-label code {
  color: var(--bwk-accent);
}

.reveal .tool-args {
  color: var(--bwk-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.reveal blockquote.agent-prompt {
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--bwk-accent);
  border-radius: 0 8px 8px 0;
  color: var(--bwk-text);
  font-size: 0.82em;
  font-style: normal;
  line-height: 1.45;
  margin: 0.75em 0 0;
  padding: 1em 1.25em;
}

.reveal blockquote.agent-prompt strong {
  color: var(--bwk-accent);
  font-size: 0.75em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal pre.code-slide {
  font-size: 0.5em;
  line-height: 1.38;
  margin-top: 0.35em;
}

.reveal pre.code-slide-tight {
  font-size: 0.46em;
  line-height: 1.36;
}

.reveal pre.code-slide-mini {
  font-size: 0.44em;
  line-height: 1.34;
  margin-top: 0.25em;
}

.reveal .file-label {
  color: var(--bwk-muted);
  font-size: 0.68em;
  margin-bottom: 0.35em;
  margin-top: 0.65em;
}

.reveal .file-label:first-of-type {
  margin-top: 0;
}

.reveal .file-label code {
  color: var(--bwk-accent);
}

.reveal .arch-stack {
  font-size: 0.72em;
  line-height: 1.35;
  margin-top: 0.5em;
}

.reveal .arch-layer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(244, 242, 236, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  color: var(--bwk-muted);
}

.reveal .arch-layer strong {
  color: var(--bwk-text);
  display: block;
  font-size: 0.95em;
  margin-bottom: 4px;
}

.reveal .arch-layer.host,
.reveal .arch-layer.tools {
  border-left: 4px solid var(--bwk-accent);
  border-radius: 0 10px 10px 0;
  color: var(--bwk-text);
}

.reveal .arch-layer.tools {
  font-weight: 600;
}

.reveal .arch-layer.bottom {
  border-color: rgba(241, 93, 34, 0.25);
  background: rgba(241, 93, 34, 0.06);
}

.reveal .arch-primitives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.reveal .arch-primitives .arch-layer {
  margin-bottom: 0;
}

.reveal .arch-list {
  margin: 6px 0 0;
  padding-left: 1.1em;
  list-style: disc;
}

.reveal .arch-list li {
  font-size: 0.95em;
  margin-bottom: 3px;
}

.reveal .mermaid-wrap {
  margin-top: 0.15em;
  min-height: calc(360px / var(--bwk-scale));
  overflow: visible;
}

.reveal .mermaid-wrap.compact {
  min-height: calc(200px / var(--bwk-scale));
}

.reveal .mermaid-wrap.architecture {
  min-height: calc(320px / var(--bwk-scale));
}

.reveal pre.mermaid {
	background: transparent;
	border: none;
	font-size: 1em;
	line-height: 1.2;
	margin: 0;
	padding: 0;
	text-align: center;
	width: 100%;
}

.reveal .mermaid {
	background: transparent;
	border: none;
	margin: 0;
	padding: 0;
	font-size: 1em;
	line-height: 1.2;
	text-align: center;
	width: 100%;
}

.reveal .mermaid-wrap svg {
  display: block;
  margin: 0 auto;
  max-height: calc(420px / var(--bwk-scale));
  max-width: 100%;
  overflow: visible;
}

.reveal .mermaid-wrap.architecture svg {
  max-height: calc(380px / var(--bwk-scale));
}

.reveal .mermaid-wrap.compact svg {
  max-height: calc(240px / var(--bwk-scale));
}

.reveal .mermaid foreignObject {
  overflow: visible;
}

.reveal .mermaid foreignObject div {
  line-height: 1.35;
  padding: 6px 10px;
  white-space: normal;
}

.reveal .mermaid .nodeLabel,
.reveal .mermaid .label {
  line-height: 1.35;
}

.reveal .stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-top: 0.5em;
}

.reveal .stat-grid-wide {
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin-top: 1em;
}

.reveal .stat-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 242, 236, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
}

.reveal .stat-block strong {
  color: var(--bwk-text);
  display: block;
  font-size: 0.72em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reveal .stat-value {
  color: var(--bwk-accent);
  display: block;
  font-size: 1.55em;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 2px;
}

.reveal .stat-sub {
  font-size: 0.78em;
  margin: 8px 0 0;
  padding-left: 1.1em;
}

.reveal .stat-sub li {
  font-size: 0.95em;
  margin-bottom: 2px;
}

.reveal .stat-note {
  font-size: 0.72em;
  margin-top: 6px;
}
