@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  color-scheme: dark;
  --bg: #0d1117;
  --deep: #010409;
  --panel: #161b22;
  --panel-strong: #1c2128;
  --border: #30363d;
  --text: #f0f6fc;
  --muted: #a8b3bf;
  --accent: #39d2c0;
  --radius: 12px;
  font-family: "Mona Sans", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--deep);
  color: var(--text);
}

body {
  display: grid;
  place-items: center;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.stage {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.deck {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgb(57 210 192 / 8%), transparent 28%),
    var(--bg);
  box-shadow: 0 0 0 1px rgb(240 246 252 / 8%);
}

.deck::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgb(240 246 252 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(240 246 252 / 2%) 1px, transparent 1px);
  background-size: 4.5vmin 4.5vmin;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 3vmin, 34px);
  padding: clamp(44px, 6.5vmin, 76px) clamp(58px, 8vmin, 104px) clamp(62px, 8vmin, 92px);
  overflow: hidden;
}

.slide[aria-hidden="false"] {
  display: flex;
}

.slide[aria-hidden="false"] .reveal {
  animation: reveal-in 420ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide::after {
  position: absolute;
  top: 12%;
  right: 5.5%;
  width: clamp(5px, .45vmin, 7px);
  height: 24%;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  opacity: .7;
}

.episode-tag {
  position: absolute;
  top: clamp(24px, 3.4vmin, 42px);
  left: clamp(58px, 8vmin, 104px);
  display: inline-flex;
  width: max-content;
  padding: .38em .72em;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgb(13 17 23 / 78%);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: clamp(12px, 1.2vmin, 15px);
  letter-spacing: .04em;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  max-width: 14ch;
  font-size: clamp(46px, 6.2vmin, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .98;
  text-wrap: balance;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(54px, 7.5vmin, 94px);
}

.lead {
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(22px, 2.7vmin, 32px);
  font-weight: 500;
  line-height: 1.25;
}

.hero .lead {
  max-width: 34ch;
  color: var(--accent);
}

.statement {
  align-items: flex-start;
}

.statement h2 {
  color: var(--muted);
  font-size: clamp(30px, 3.6vmin, 46px);
}

.big-line {
  max-width: 14ch;
  font-size: clamp(42px, 6.4vmin, 82px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.big-line span {
  color: var(--accent);
}

.panel::before,
.boundary::before,
.exercise::before {
  position: absolute;
  inset: 14% 5% 12%;
  z-index: -1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(22 27 34 / 82%);
  content: "";
}

.process {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--deep);
}

.process li {
  position: relative;
  display: grid;
  min-height: clamp(74px, 10vmin, 112px);
  place-items: center;
  padding: 1em .7em;
  border-right: 1px solid var(--border);
  color: var(--text);
  font-size: clamp(16px, 1.9vmin, 23px);
  font-weight: 700;
  line-height: 1.16;
  text-align: center;
  counter-increment: step;
}

.process li:last-child {
  border-right: 0;
}

.process li::before {
  position: absolute;
  top: .7em;
  left: .8em;
  color: var(--accent);
  content: counter(step);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: .62em;
}

.process.three {
  grid-template-columns: repeat(3, 1fr);
}

.process.four {
  grid-template-columns: repeat(4, 1fr);
}

.process.five {
  grid-template-columns: repeat(5, 1fr);
}

.process.six {
  grid-template-columns: repeat(6, 1fr);
}

.safety-line {
  color: var(--muted);
  font-size: clamp(17px, 1.8vmin, 22px);
  line-height: 1.35;
}

.fictional {
  display: inline-flex;
  width: max-content;
  color: var(--accent);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: clamp(12px, 1.25vmin, 15px);
  letter-spacing: .03em;
}

.split-grid {
  display: grid;
  width: min(100%, 1060px);
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.split-grid > div {
  min-height: clamp(135px, 20vmin, 220px);
  padding: clamp(24px, 3.2vmin, 42px);
}

.split-grid > div + div {
  border-left: 1px solid var(--border);
  background: var(--panel-strong);
}

.split-grid strong {
  display: block;
  margin-bottom: .7em;
  color: var(--accent);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: clamp(13px, 1.35vmin, 16px);
  font-weight: 600;
}

.split-grid p {
  max-width: 24ch;
  font-size: clamp(22px, 2.7vmin, 32px);
  font-weight: 650;
  line-height: 1.22;
}

.primary-link,
.prompt-chip {
  display: inline-flex;
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  padding: .7em 1em;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--deep);
  background: var(--accent);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: clamp(15px, 1.6vmin, 19px);
  font-weight: 600;
  text-decoration: none;
}

.primary-link:hover,
.primary-link:focus-visible {
  filter: brightness(1.08);
}

.prompt-chip {
  color: var(--accent);
  background: var(--deep);
}

.boundary-box {
  max-width: 68ch;
  padding: clamp(26px, 4vmin, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--deep);
  font-size: clamp(22px, 2.7vmin, 32px);
  font-weight: 600;
  line-height: 1.34;
}

.check-list {
  display: grid;
  width: min(100%, 1060px);
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
}

.check-list li {
  position: relative;
  padding: clamp(20px, 2.8vmin, 34px) clamp(22px, 3.2vmin, 40px) clamp(20px, 2.8vmin, 34px) clamp(48px, 5vmin, 62px);
  border-bottom: 1px solid var(--border);
  font-size: clamp(18px, 2vmin, 24px);
  font-weight: 650;
}

.check-list li:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.check-list li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.check-list li::before {
  position: absolute;
  left: clamp(20px, 2.5vmin, 30px);
  color: var(--accent);
  content: "✓";
  font-family: "JetBrains Mono", Consolas, monospace;
}

.close {
  align-items: flex-start;
}

.resource-row,
.episode-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.4vmin, 18px);
}

.resource-row a,
.episode-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .68em .9em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: clamp(15px, 1.6vmin, 19px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.resource-row a {
  border-color: var(--accent);
  color: var(--deep);
  background: var(--accent);
}

.episode-links a {
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: clamp(12px, 1.25vmin, 15px);
  font-weight: 500;
}

.resource-row a:hover,
.resource-row a:focus-visible,
.episode-links a:hover,
.episode-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--deep);
}

.slide-footer {
  position: absolute;
  right: clamp(28px, 4vmin, 52px);
  bottom: clamp(19px, 2.7vmin, 34px);
  left: clamp(28px, 4vmin, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: clamp(11px, 1.15vmin, 14px);
}

.community-footer {
  white-space: nowrap;
}

.deck-controls {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vmin, 12px);
}

.slide-counter {
  min-width: 5.5em;
  text-align: center;
}

.nav-button {
  display: grid;
  width: clamp(34px, 4vmin, 44px);
  height: clamp(34px, 4vmin, 44px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  place-items: center;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: clamp(16px, 1.8vmin, 20px);
  cursor: pointer;
}

.nav-button:hover,
.nav-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.nav-button:disabled {
  opacity: .35;
  cursor: default;
}

.speaker-notes {
  display: none !important;
}

body.notes-open .slide[aria-hidden="false"] .speaker-notes {
  position: absolute;
  right: clamp(28px, 4vmin, 52px);
  bottom: clamp(72px, 8vmin, 96px);
  left: clamp(28px, 4vmin, 52px);
  z-index: 10;
  display: block !important;
  max-height: 34%;
  padding: clamp(18px, 2.5vmin, 28px);
  overflow-y: auto;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: rgb(1 4 9 / 96%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 55%);
  color: var(--text);
  font-size: clamp(15px, 1.55vmin, 19px);
  line-height: 1.45;
}

body.notes-open .speaker-notes p + p {
  margin-top: .75em;
}

body.notes-open .speaker-notes strong {
  color: var(--accent);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: .82em;
  letter-spacing: .04em;
}

.notes-button[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--deep);
  background: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-aspect-ratio: 4 / 3) {
  .slide {
    padding-right: clamp(48px, 7vmin, 82px);
    padding-left: clamp(48px, 7vmin, 82px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
