html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.slides {
  height: 100vh;
  width: 100vw;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  counter-reset: slide;
}

.slide {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  box-sizing: border-box;
  counter-increment: slide;
  z-index: 1;
}

/* Container that maintains aspect ratio */
.slide__content {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: start;

  width: min(calc(100vh * (16 / 9) * 0.95), calc(100vw * 0.95));
  aspect-ratio: 16/9;

  background: rgba(0, 0, 0, 0.25);
  border-radius: 2em;
  padding: min(1vh, 1vw) min(2vh, 2vw);
  box-sizing: border-box;
  color: white;
  font-size: min(calc(100vh / 45), calc(100vw / 80));
  line-height: 1.5;
  overflow: hidden;
  pointer-events: none;
}

/* Numbering */
.slide__content::before {
  display: flex;
  justify-content: center;
  align-items: center;
  content: counter(slide);
  position: absolute;
  top: 1em;
  right: 1em;
  background: rgba(0, 0, 0, 0.5);
  aspect-ratio: 1;
  height: 2em;
  border-radius: 50em;
  pointer-events: all;
}

.slide__content--center {
  align-items: center;
}

.hero__logo {
  margin: 0;
}

/* Hero logo image */
.hero__logo img {
  height: 35em;
  width: auto;
}

.hero__logo .title {
  letter-spacing: 0.45em;
  margin-right: -0.4em;
}

/* Hero tagline */
.hero__logo p {
  font-size: 0.87em;
  letter-spacing: 0.13em;
}

/* Titles */
.slide__title {
  font-size: 2em;
  margin: 0.5em 0;
  color: var(--color-yellow-medium);
}

.slide__subtitle {
  font-size: 1.25em;
  margin: 0;
  margin-bottom: 1em;
  color: color-mix(in srgb, var(--color-yellow-medium) 33%, #fff);
}

/* Ensure footer stays at bottom */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: -1;
}

/* Problem slide specific styling */
.slide__content h1 {
  font-size: 2.5em;
  margin: 0 0 0.5em 0;
  color: var(--color-yellow-medium);
}

/* Main problem introduction text */
.slide__content > p {
  font-size: 1.2em;
  margin-bottom: 1.5em;
  opacity: 0.9;
}

/* Numbered sections */
.slide__content ol,
.slide__content ul {
  padding: 0;
  margin: 0;
  margin-left: 1.25em;
  list-style-position: outside;
  counter-reset: problem;
}

.slide__content ol > li {
  padding-left: 0.5em;
  margin: 1.2em 0;
  position: relative;
  font-size: 1.1em;
  font-weight: 600;
  color: color-mix(in srgb, var(--color-yellow-medium) 66%, #fff);
}

/* Bullet points under numbered items */
.slide__content ol > li > ul {
  margin-top: 0.5em;
  padding-left: 1em;
}

.slide__content ol > li > ul > li {
  margin: 0.5em 0;
  color: white; /* Reset color for bullet points */
  font-weight: normal;
  opacity: 0.85;
}

.slide__graph {
  align-self: center;
  height: 78%;
}

.slide__grid {
  display: grid;
  grid-template-columns: var(--columns, 1fr 1fr);
  gap: 1em;
}

.slide__grid > img {
  border-radius: 1em;
}

.slide__punchline {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
