/* Shared design tokens for Livepeer / Storyboard case studies.
   Slate + amber on near-black; serif headings, mono accents. */

:root {
  --bg: #0a0e14;
  --bg-elev: #11161e;
  --bg-card: #1a212c;
  --text: #e6edf3;
  --text-muted: #8b96a8;
  --text-dim: #5a657a;
  --accent: #d4a574;
  --accent-bright: #ffd28a;
  --border: rgba(255, 255, 255, 0.08);
  --good: #6ee7b7;
  --warn: #fbbf24;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

nav.crumbs {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
nav.crumbs a { color: var(--text-muted); text-decoration: none; }
nav.crumbs a:hover { color: var(--accent); }

h1 {
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h2 {
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 56px 0 16px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--accent);
}

.subtitle {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 12px;
}
.meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-family: "SF Mono", Menlo, monospace;
  color: var(--text-dim);
}
.meta-row span { display: inline-flex; gap: 6px; align-items: baseline; }
.meta-row span strong { color: var(--text); font-weight: 500; }

p { margin-bottom: 16px; color: var(--text); }
p.lede { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-bright); text-decoration: underline; }

code, .mono {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: rgba(212, 165, 116, 0.10);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--accent-bright);
}

ul, ol { padding-left: 22px; margin-bottom: 16px; }
li { margin-bottom: 6px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.kpi {
  background: var(--bg-card);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.kpi-value {
  font-family: "New York", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.grid-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 24px 0 32px;
}
.grid-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.compare-table th {
  background: var(--bg-elev);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-table td.good { color: var(--good); }
.compare-table td.warn { color: var(--warn); }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 18px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

.cta-strip {
  margin-top: 56px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(212, 165, 116, 0.02));
  border: 1px solid rgba(212, 165, 116, 0.20);
  border-radius: 10px;
}
.cta-strip h3 { margin-top: 0; color: var(--accent-bright); }
.cta-strip p:last-child { margin-bottom: 0; }

footer.signature {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.viewer-link {
  display: inline-block;
  margin: 8px 0;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px;
}

/* Cinematic episode grid — Grandpa Tom 4-episode showcase */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.episode {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.episode video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.episode-meta {
  padding: 12px 16px;
}
.episode-num {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.episode-title {
  font-family: "New York", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.episode-caption {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Single hero video — for scenario 1, 3, 4 */
.hero-video {
  display: block;
  width: 100%;
  max-height: 540px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 24px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
}
.hero-video-caption {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: -16px;
  margin-bottom: 24px;
  font-style: italic;
}
