/* Reset + the paper sheet */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(125% 105% at 50% 30%, #f4f4f5 0%, #ededf0 46%, #e2e2e6 78%, #d9d9de 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] body {
  background:
    radial-gradient(125% 105% at 50% 32%, #1c1c20 0%, #151517 44%, #101012 76%, #070709 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.site {
  position: fixed;
  z-index: 1;
  inset: var(--shell);
  background: var(--paper);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-sheet);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  scrollbar-width: none;
}

.site::-webkit-scrollbar {
  display: none;
}

.site__content {
  position: relative;
  min-height: 100%;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--small);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--micro);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.eyebrow__accent {
  color: var(--red);
}

.type-display {
  font-size: var(--display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
}

.type-h2 {
  font-size: var(--h2);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: var(--tracking-heading);
}

.text-muted {
  color: var(--muted);
}

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

.accent-red {
  color: var(--red);
}

.accent-green {
  color: var(--green);
}

.accent-violet {
  color: var(--violet);
}

.accent-blue {
  color: var(--blue);
}

.accent-faint {
  color: var(--faint);
}

/* Only the scene on screen runs its decorative loop. */

.is-offscreen .bubble__inner,
.is-offscreen .vision__icon,
.is-offscreen .among__row,
.is-offscreen .lemon__track,
.is-offscreen .story-play__card--c img {
  animation-play-state: paused;
}

/* Word reveal: markup is created by JS, so nothing hides without JS. */

.rv-line {
  display: block;
}

.rv-word {
  display: inline-block;
  white-space: pre;
}

.rv-word__in {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
