@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --ink: #15324a;
  --muted: #52697a;
  --paper: #fbfcf8;
  --signal: #e76f51;
  --signal-dark: #b9472f;
  --noise: #2a9d8f;
  --accent: #e9c46a;
  --line: #d8e1e5;
}

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

.reveal {
  color: var(--ink);
  font-family: "Source Sans 3", "Atkinson Hyperlegible", sans-serif;
  font-size: 36px;
}

.reveal .slides { text-align: left; }
.reveal .slides section { box-sizing: border-box; padding: 24px 54px; }

.reveal h1,
.reveal h2,
.reveal h3 {
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: none;
}

.reveal h1 { font-size: 2.25em; }
.reveal h2 { border-bottom: 5px solid var(--accent); font-size: 1.55em; padding-bottom: 0.12em; }
.reveal h3 { color: var(--signal-dark); font-size: 1.08em; }
.reveal p, .reveal li { line-height: 1.25; }
.reveal strong { color: var(--signal-dark); }
.reveal a { color: #176b75; }
.reveal small, .reveal .small { color: var(--muted); font-size: 0.58em; }
.reveal .tiny { color: var(--muted); font-size: 0.44em; }

.reveal blockquote {
  background: #edf6f3;
  border-left: 10px solid var(--noise);
  box-shadow: none;
  color: var(--ink);
  margin: 0.8em 0;
  padding: 0.45em 0.8em;
  width: auto;
}

.reveal img {
  background: white;
  border: 0;
  box-shadow: none;
  max-height: 560px;
  object-fit: contain;
}

.columns { display: grid; gap: 1.2em; grid-template-columns: 1fr 1fr; align-items: center; }
.columns.wide-left { grid-template-columns: 1.25fr 0.75fr; }
.columns.wide-right { grid-template-columns: 0.8fr 1.2fr; }
.center { text-align: center; }
.big { font-size: 1.45em; font-weight: 700; line-height: 1.15; }
.signal { color: var(--signal-dark); }
.noise { color: #19766e; }

.callout {
  background: #fff7df;
  border: 3px solid var(--accent);
  border-radius: 18px;
  padding: 0.55em 0.8em;
}

.card {
  background: white;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 0.55em 0.75em;
}

.overview { display: grid; gap: 0.7em; grid-template-columns: 1fr 1fr; }
.overview .card {
  color: var(--ink);
  display: grid;
  gap: 0.12em;
  grid-template-columns: auto 1fr;
  text-decoration: none;
}
.overview .card:hover { border-color: var(--noise); transform: translateY(-2px); }
.overview .card strong { align-self: center; font-size: 1.05em; }
.overview .card > span:last-child { color: var(--muted); font-size: 0.62em; grid-column: 2; }
.overview-number {
  align-items: center;
  background: var(--signal);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-weight: 700;
  height: 1.45em;
  justify-content: center;
  margin-right: 0.25em;
  width: 1.45em;
}

.sources-grid {
  display: grid;
  font-size: 0.66em;
  gap: 1.2em;
  grid-template-columns: 1fr 1fr;
}
.sources-grid li { margin-bottom: 0.45em; }

.section-tag {
  border-radius: 999px;
  color: white;
  display: inline-block;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 0.46em;
  font-weight: 700;
  letter-spacing: 0.025em;
  padding: 0.28em 0.72em;
  position: absolute;
  right: 54px;
  top: 18px;
}
.section-tag + h2 { margin-top: 0.5em; }
.section-1 { background: #b9472f; }
.section-2 { background: #19766e; }
.section-3 { background: #76568c; }
.section-4 { background: #3f6682; }

.supplement-tag {
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.08em;
  position: absolute;
  right: 54px;
  text-transform: uppercase;
  top: 50px;
}
.deep-dive-cue {
  background: var(--ink);
  border-radius: 10px 10px 0 0;
  bottom: 0;
  color: white;
  font-size: 0.42em;
  font-weight: 700;
  padding: 0.35em 0.7em;
  position: absolute;
  right: 54px;
}

.flow { display: flex; gap: 0.4em; justify-content: center; align-items: stretch; }
.flow > div { background: white; border: 3px solid var(--line); border-radius: 16px; flex: 1; padding: 0.55em; text-align: center; }
.flow .arrow { align-self: center; border: 0; flex: 0; font-size: 1.5em; padding: 0; }

.matrix { border-collapse: separate; border-spacing: 5px; margin: 0 auto !important; }
.matrix th, .matrix td { border: 0 !important; padding: 0.35em 0.55em !important; text-align: center !important; }
.matrix th { background: var(--ink); color: white; }
.matrix .good { background: #dcefe9; }
.matrix .bad { background: #f9ded7; }
.matrix.compact { font-size: 0.78em; }

.equation {
  background: #eef3f5;
  border-radius: 14px;
  font-family: Georgia, serif;
  font-size: 1.18em;
  margin: 0.45em 0;
  padding: 0.35em 0.65em;
  text-align: center;
}
.small-equation { font-size: 0.78em; }

.reveal .katex-display {
  background: #eef3f5;
  border-radius: 14px;
  margin: 0.42em 0;
  padding: 0.28em 0.5em;
}
.reveal .katex { color: var(--ink); font-size: 1.02em; }

.reveal .progress { color: var(--signal); height: 7px; }
.reveal .slide-number { background: var(--ink); border-radius: 8px 0 0; font-size: 18px; padding: 6px 10px; }
