/* Colours and type shared by every slide */
:root {
  --coral: #D9776A;
  --ink: #2A1814;
  --cream: #F4EFE3;
  --sun: #F6D58C;
  --green: #2F7D57;
  --lavender: #B8A9E8;
  --muted: #4A342C;
  --display: 'Rubik Dirt', 'Rubik', system-ui, sans-serif;
  --body: 'Rubik', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

input::placeholder { color: #8A7A70; }

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

/* Full-screen snapping pages */
.snap {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.slide {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 48px 24px;
  overflow-x: hidden;
}

.slide-ink { background: var(--ink); color: var(--cream); flex-direction: column; align-items: stretch; padding-top: 32px; padding-bottom: 32px; }
.slide-cream { background: var(--cream); }
.slide-coral { background: var(--coral); }
.slide-sun { background: var(--sun); }
.slide-lavender { background: var(--lavender); }
.slide-green { background: var(--green); color: var(--cream); flex-direction: column; align-items: stretch; padding-bottom: 32px; }

/* Type */
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 116px);
  line-height: .92;
  letter-spacing: -2px;
}
.display span { display: block; }

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: .95;
}

.lead { margin: 0; font-size: 20px; line-height: 1.5; max-width: 40ch; color: #E2D8C6; }
.body { margin: 0; font-size: 19px; line-height: 1.55; max-width: 38ch; }
.muted { color: var(--muted); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 3px; }
.kicker-sm { font-size: 12px; font-weight: 700; letter-spacing: 2px; }

/* Side dots */
.dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}
.dots a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dots a span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot, var(--ink));
  opacity: .45;
  transition: all .25s var(--ease);
}
.dots a[aria-current="true"] span { width: 10px; height: 22px; opacity: 1; }

@media (max-width: 700px) {
  .snap { scroll-snap-type: y proximity; }
  .dots { right: 6px; }
  .slide { padding-left: 20px; padding-right: 36px; }
}
