:root {
  --ink: #0d1117;
  --ink-2: #161b22;
  --paper: #f4efe4;
  --white: #ffffff;
  --muted: #66717d;
  --line: rgba(13, 17, 23, 0.16);
  --line-dark: rgba(255, 255, 255, 0.18);
  --teal: #00a1a7;
  --gold: #f2c14e;
  --red: #e35645;
  --green: #2aa66a;
  --blue: #3b70f2;
  --violet: #7b61ff;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "SF Mono", "IBM Plex Mono", Consolas, ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.deck-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: #cfd6d8;
}

.deck-shell {
  display: grid;
  grid-template-rows: 44px 1fr 46px;
  width: min(100vw, 1600px);
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 22px 68px rgba(13, 17, 23, 0.22);
}

.deck-top,
.deck-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(244, 239, 228, 0.94);
}

.deck-top {
  border-bottom: 1px solid rgba(13, 17, 23, 0.12);
}

.deck-bottom {
  border-top: 1px solid rgba(13, 17, 23, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.brand,
.tag,
.slide-title,
.nav button {
  font-family: var(--mono);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  font-size: 10px;
}

.brand strong,
.brand span:not(.flag) {
  display: block;
}

.brand span:not(.flag) {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 750;
  text-transform: none;
}

.flag {
  display: inline-block;
  width: 28px;
  height: 18px;
  border: 1px solid currentColor;
  background:
    linear-gradient(#fff 0 16%, #111418 16% 32%, #fff 32% 48%, #111418 48% 64%, #fff 64% 80%, #111418 80%);
}

.slide-title {
  color: var(--muted);
  font-size: 10px;
}

.tag {
  min-width: 82px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.stage {
  min-height: 0;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}

.dots {
  display: flex;
  gap: 7px;
}

.dots button {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.dots button.is-active {
  background: var(--ink);
  border-color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.slide-page {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.slide-page.dark {
  color: var(--white);
  background: var(--ink);
}

.slide-canvas {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  height: 100vh;
  padding: 30px 42px 32px;
}

.slide-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 28px;
}

.slide-head.wide {
  grid-template-columns: minmax(0, 1fr) 420px;
}

h1,
h2,
h3,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 930px;
  font-size: 68px;
  line-height: 0.92;
  font-weight: 940;
}

h2 {
  max-width: 930px;
  font-size: 54px;
  line-height: 0.96;
  font-weight: 930;
}

h3 {
  font-size: 18px;
  line-height: 1.08;
  font-weight: 880;
}

.kicker {
  margin-bottom: 8px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.dark .kicker {
  color: var(--gold);
}

.lead {
  max-width: 420px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.28;
  font-weight: 720;
}

.dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

.visual {
  min-height: 0;
}

.visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

svg text {
  font-family: var(--sans);
  font-weight: 820;
  letter-spacing: 0;
}

.svg-mono {
  font-family: var(--mono);
  font-weight: 850;
}

.stroke-dark {
  stroke: rgba(13, 17, 23, 0.2);
}

.stroke-light {
  stroke: rgba(255, 255, 255, 0.24);
}

.fine-dark {
  stroke: rgba(13, 17, 23, 0.12);
}

.fine-light {
  stroke: rgba(255, 255, 255, 0.12);
}

.panel-fill {
  fill: rgba(255, 255, 255, 0.76);
}

.dark-panel-fill {
  fill: rgba(255, 255, 255, 0.075);
}

.label-dark {
  fill: var(--ink);
}

.label-light {
  fill: var(--white);
}

.label-muted {
  fill: var(--muted);
}

.dark .label-muted {
  fill: rgba(255, 255, 255, 0.64);
}

.caption {
  font-size: 15px;
  font-weight: 760;
}

.tiny {
  font-size: 12px;
  font-weight: 760;
}

.node-label {
  font-size: 22px;
  font-weight: 910;
}

.large-label {
  font-size: 30px;
  font-weight: 930;
}

.mega-label {
  font-size: 42px;
  font-weight: 940;
}

.outline {
  fill: none;
  stroke-width: 2;
}

.thick {
  stroke-width: 5;
}

.hairline {
  stroke-width: 1;
}

.money-label {
  font-size: 34px;
  font-weight: 940;
}

.axis-label {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 850;
  text-transform: uppercase;
}

.matrix-label {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 850;
}

@media (max-width: 900px) {
  .deck-page {
    place-items: stretch;
  }

  .deck-shell {
    width: 100vw;
    height: 100vh;
    max-height: none;
    min-width: 0;
    aspect-ratio: auto;
    grid-template-rows: 34px 1fr 38px;
  }

  .deck-top,
  .deck-bottom,
  .stage,
  iframe {
    min-width: 0;
  }

  .deck-top,
  .deck-bottom {
    padding: 0 12px;
  }

  .deck-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .brand {
    min-width: 0;
    font-size: 8px;
  }

  .slide-title {
    display: none;
  }

  .brand span:not(.flag),
  .deck-bottom {
    font-size: 9px;
  }

  .tag {
    min-width: 58px;
    font-size: 8px;
    padding: 5px 7px;
  }

  .dots {
    gap: 4px;
  }

  .dots button {
    width: 7px;
    height: 7px;
  }

  .nav button {
    width: 28px;
    height: 28px;
  }

  [data-slide-note] {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .slide-canvas {
    padding: 18px;
    gap: 12px;
  }

  .slide-head,
  .slide-head.wide {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  h1 {
    max-width: 330px;
    font-size: 36px;
  }

  h2 {
    max-width: 330px;
    font-size: 34px;
  }

  .lead {
    max-width: none;
    font-size: 13px;
  }

  .visual {
    display: flex;
    align-items: flex-start;
  }

  .visual svg {
    height: auto;
    aspect-ratio: 1280 / 520;
  }
}
