@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:wght@400;700&display=swap");

:root {
  --blue: #2e72b8;
  --blue-deep: #1f5a99;
  --blue-dim: #8aaed0;
  --river: #75acd2;
  --bg: #ffffff;
  --page: #f4f6f9;
}

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

.reveal {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 42px;
  color: var(--blue);
}

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

.reveal .slides section {
  box-sizing: border-box;
  height: 100%;
}

/* Vertical stack wrappers — no frame (nested slides carry the border) */
.reveal .slides section:has(> section) {
  background: transparent;
  border: none;
  padding: 0;
}

.reveal .slides section:not(:has(> section)) {
  background: var(--bg);
  border: 2px solid var(--blue);
  padding: 2.5rem 3rem;
}

.reveal h1,
.reveal h2,
.reveal h3 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  color: var(--blue);
  text-transform: none;
  letter-spacing: -0.005em;
  line-height: 0.92;
}

.reveal h1 {
  font-size: 3.65em;
  margin-bottom: 0.05em;
}

.reveal h2 {
  font-size: 2.5em;
  margin-bottom: 0.05em;
  margin-top: 50px;
}

.reveal h3 {
  font-size: 1.65em;
}

.reveal .subtitle {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-size: 0.32em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-dim);
  margin: 0.15em 0 0.85em;
}

.reveal p,
.reveal li {
  font-size: 0.8em;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.reveal ul li {
  margin-bottom: 0.35em;
  display: flex;
  align-items: baseline;
  gap: 0.75em;
}

.reveal ul li::before {
  margin-right: 0;
  flex-shrink: 0;
}

.reveal strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.reveal a {
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
}

.reveal a:hover {
  color: var(--blue-deep);
}

.reveal ul {
  list-style: none;
}

.reveal ul li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  margin-right: 0.75em;
  vertical-align: middle;
  background: var(--bg);
}

.reveal ul li.talk::before {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border: none;
}

.reveal table {
  font-size: 0.7em;
  border-collapse: collapse;
}

.reveal table th,
.reveal table td {
  border: 1.5px solid var(--blue);
  padding: 0.5em 0.9em;
}

.reveal table th {
  background: var(--blue);
  color: var(--bg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.reveal pre {
  background: var(--page);
  border: 1.5px solid var(--blue);
  box-shadow: none;
  width: 100%;
}

.reveal pre code {
  font-family: "Space Mono", monospace;
  font-size: 0.6em;
  line-height: 1.4;
  color: var(--blue-deep);
  max-height: 420px;
}

.reveal blockquote {
  background: var(--page);
  border-left: 4px solid var(--blue);
  padding: 1.2em 1.5em;
  font-size: 0.82em;
  line-height: 1.5;
  font-style: normal;
  box-shadow: none;
  width: 90%;
}

.reveal .caption {
  font-size: 0.6em;
  color: var(--blue-dim);
}

.reveal .slide-number {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dim);
  background: transparent;
  padding: 0;
  right: 1.25rem;
  bottom: 1rem;
}

.reveal .slide-number a {
  color: inherit;
}

.reveal .progress span {
  background: var(--blue);
}

.reveal .controls {
  color: var(--blue);
}

/* ── Slide 1: hero with river canvas ── */
.reveal .slides section.slide-hero {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.slide-hero .river-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide-hero canvas#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide-hero .title-block {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  width: min(92vw, 1400px);
  max-width: calc(100% - 48px);
  pointer-events: none;
}

.slide-hero .title {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  color: var(--blue);
  line-height: 0.9;
  text-shadow:
    2px 0 0 var(--bg),
    -2px 0 0 var(--bg),
    0 2px 0 var(--bg),
    0 -2px 0 var(--bg);
}

.slide-hero .title-brand {
  display: block;
  font-size: clamp(5rem, 16vw, 11rem);
  letter-spacing: -0.01em;
}

.slide-hero .title-tagline {
  display: block;
  margin-top: 0.12em;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.slide-hero .hero-footer {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  font-family: "Space Mono", monospace;
  color: var(--blue);
  text-shadow:
    2px 0 0 var(--bg),
    -2px 0 0 var(--bg),
    0 2px 0 var(--bg),
    0 -2px 0 var(--bg);
}

.slide-hero .hero-event {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: lowercase;
}

.slide-hero .hero-speaker {
  margin: 0.5em 0 0;
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.slide-hero .hero-date {
  margin: 0.85em 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reveal .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.reveal .about-me {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 0.5em;
}

.reveal .about-me__avatar {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.reveal .about-me__body p {
  margin: 0 0 0.65em;
}

.reveal .about-me__bio {
  margin: 0 0 1em;
  font-size: 0.62em;
  line-height: 1.55;
  max-width: 28em;
}

.reveal .about-me__body p:not(.about-me__bio) {
  font-size: 0.72em;
}

.reveal .about-me__body p:last-child {
  margin-bottom: 0;
}

.reveal .thanks-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  margin-top: 0.5em;
}

.reveal .thanks-hire {
  margin: 0;
  font-size: 0.68em;
  line-height: 1.55;
  max-width: 22em;
}

.reveal .thanks-qr {
  margin: 0;
  text-align: center;
}

.reveal .thanks-qr-label {
  margin: 0 0 0.6em;
  font-size: 0.52em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal .thanks-qr img {
  display: block;
  width: 280px;
  height: 280px;
  border: 2px solid var(--blue);
}

.reveal .thanks-qr figcaption {
  margin-top: 0.65em;
  font-size: 0.5em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal .thanks-qr figcaption a {
  border-bottom: none;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.reveal .slide-lead {
  margin: 0;
  font-size: 0.68em;
  line-height: 1.55;
  max-width: 36em;
}

.reveal .shellui-today__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  justify-content: flex-start;
}

.reveal .shellui-today__row .chip {
  margin: 0;
  flex: 1 1 9.5em;
  min-height: 3.4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22em;
  padding: 0.5em 0.45em;
  font-size: 0.5em;
  box-sizing: border-box;
  text-align: center;
}

.reveal a.chip.chip--link {
  border: 1.5px solid var(--blue);
  text-decoration: none;
  color: var(--blue);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.reveal a.chip.chip--link:hover {
  background: var(--page);
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}

.reveal .chip__label {
  display: block;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.reveal .chip__url {
  display: block;
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--blue-dim);
  line-height: 1.2;
}

.reveal a.chip.chip--link:hover .chip__url {
  color: var(--blue-deep);
}

.reveal .chip__meta {
  display: block;
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dim);
}

.reveal .shellui-today__row--packages .chip {
  flex: 1 1 8em;
  flex-direction: row;
  min-height: 2.5em;
  gap: 0;
  padding: 0.55em 0.5em;
  font-size: 0.44em;
}

.reveal .shellui-today__row--packages code {
  border: none;
  font-size: 1em;
}

.reveal .shellui-today__row .chip--soon {
  border-style: dashed;
  color: var(--blue-dim);
  cursor: default;
}

.reveal .shellui-today__opensource {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45em 0.55em;
  margin: 1.1em 0 0;
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal .shellui-today__opensource a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.reveal .github-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.reveal .shellui-today__label {
  margin: 1.1em 0 0.55em;
  font-size: 0.38em;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-dim);
}

.reveal .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75em;
  margin-top: 0.35em;
  max-width: 100%;
}

.reveal .feature-grid .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55em 0.5em;
  font-size: 0.44em;
  letter-spacing: 0.1em;
  text-align: center;
  min-height: 2.75em;
  box-sizing: border-box;
}

.reveal .feature-grid .chip--more {
  border-style: dashed;
  color: var(--blue-dim);
}

.reveal .features-note {
  margin: 1em 0 0;
  font-size: 0.55em;
  font-style: italic;
  color: var(--blue-dim);
  letter-spacing: 0.04em;
}

.reveal .backend-apis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin-top: 1em;
}

.reveal .backend-apis .chip {
  margin: 0;
  flex: 1 1 8em;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5em;
}

.reveal .backend-apis .chip--soon {
  border-style: dashed;
  color: var(--blue-dim);
}

.reveal .backend-apis-legend {
  margin: 0.65em 0 0;
  font-size: 0.42em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dim);
}

.reveal .chip {
  display: inline-block;
  border: 1.5px solid var(--blue);
  padding: 0.35em 0.8em;
  font-size: 0.58em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
}

.reveal .fragment.fade-up {
  transform: translateY(12px);
}

/* ── PDF / print export ──
   Reveal.js: open with ?print-pdf, then Cmd+P → Save as PDF
   (Landscape, Margins: None, Background graphics: on) */

html.reveal-print,
html.reveal-print * {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

html.reveal-print .reveal-viewport {
  background: var(--page);
}

html.reveal-print .reveal {
  color: var(--blue);
}

html.reveal-print .reveal .fragment {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Reveal moves each slide into a .pdf-page wrapper — frame the page, pad inside */
html.reveal-print .reveal .slides .pdf-page {
  box-sizing: border-box !important;
  border: 2px solid var(--blue) !important;
  background: var(--bg) !important;
}

html.reveal-print .reveal .slides .pdf-page > section {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 2.5rem 3rem !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html.reveal-print .reveal .slides .pdf-page > section.slide-hero {
  padding: 0 !important;
}

html.reveal-print .slide-hero .river-wrap {
  display: none;
}

html.reveal-print .reveal h1,
html.reveal-print .reveal h2,
html.reveal-print .reveal h3,
html.reveal-print .reveal p,
html.reveal-print .reveal li,
html.reveal-print .reveal .subtitle,
html.reveal-print .reveal .slide-lead,
html.reveal-print .reveal .features-note {
  color: var(--blue) !important;
}

html.reveal-print .reveal .subtitle,
html.reveal-print .reveal .chip__url,
html.reveal-print .reveal .chip__meta,
html.reveal-print .reveal .shellui-today__label,
html.reveal-print .reveal .backend-apis-legend,
html.reveal-print .reveal .feature-grid .chip--more,
html.reveal-print .reveal .shellui-today__row .chip--soon,
html.reveal-print .reveal .backend-apis .chip--soon {
  color: var(--blue-dim) !important;
}

html.reveal-print .reveal a:not(.chip) {
  color: var(--blue) !important;
  border-bottom: 1px solid var(--blue) !important;
}

html.reveal-print .reveal ul li::before {
  border-color: var(--blue);
}

html.reveal-print .reveal ul li.talk::before {
  background: var(--blue);
}

html.reveal-print .reveal .chip {
  border: 1.5px solid var(--blue) !important;
  color: var(--blue) !important;
}

html.reveal-print .reveal a.chip.chip--link {
  border: 1.5px solid var(--blue) !important;
  border-bottom: 1.5px solid var(--blue) !important;
  text-decoration: none !important;
  color: var(--blue) !important;
}

html.reveal-print .reveal table th {
  background: var(--blue) !important;
  color: var(--bg) !important;
}

html.reveal-print .reveal table th,
html.reveal-print .reveal table td {
  border-color: var(--blue) !important;
}

html.reveal-print .reveal pre {
  background: var(--page) !important;
  border-color: var(--blue) !important;
}

html.reveal-print .reveal aside.notes {
  display: none !important;
}

/* Fallback when printing without ?print-pdf (overrides reveal paper.scss) */
@media print {
  html:not(.print-pdf),
  html:not(.print-pdf) * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html:not(.print-pdf) .reveal h1,
  html:not(.print-pdf) .reveal h2,
  html:not(.print-pdf) .reveal h3,
  html:not(.print-pdf) .reveal h4,
  html:not(.print-pdf) .reveal h5,
  html:not(.print-pdf) .reveal h6,
  html:not(.print-pdf) .reveal p,
  html:not(.print-pdf) .reveal li,
  html:not(.print-pdf) .reveal td {
    color: var(--blue) !important;
  }

  html:not(.print-pdf) .reveal a:link,
  html:not(.print-pdf) .reveal a:visited {
    color: var(--blue) !important;
    font-weight: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--blue);
  }

  html:not(.print-pdf) .reveal .fragment {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  html.print-pdf .reveal .slides .pdf-page,
  html:not(.print-pdf) .reveal .slides .pdf-page {
    box-sizing: border-box !important;
    border: 2px solid var(--blue) !important;
    background: var(--bg) !important;
  }

  html.print-pdf .reveal .slides .pdf-page > section,
  html:not(.print-pdf) .reveal .slides .pdf-page > section {
    padding: 2.5rem 3rem !important;
    border: none !important;
    box-sizing: border-box !important;
  }

  html.print-pdf .reveal .chip,
  html.print-pdf .reveal a.chip.chip--link,
  html:not(.print-pdf) .reveal .chip,
  html:not(.print-pdf) .reveal a.chip.chip--link {
    border: 1.5px solid var(--blue) !important;
    border-bottom: 1.5px solid var(--blue) !important;
    color: var(--blue) !important;
  }
}
