/**
 * The 143 on the public look site.
 *
 * Values come from `tokens.css`; this file only composes them into the shapes
 * the founder page draws — the spectrum, the type wordmark, the IN BETA stamp,
 * the hard-offset Begin pill, and the small drawn objects (solitaire cards,
 * joysticks, arcade screen, birthday cake, mic, hand mirror, taped notes, film
 * strip, polaroid, pager). Every one of those is CSS: no stock SVGs, no photos.
 *
 * White ground, ink type, one spectrum. Never a second rainbow.
 *
 * The mark on this site is type — Archivo Black, lowercase, "the 143". The PNG
 * wordmark is retired here and must not come back into the nav.
 */

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

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0 0 0.95rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1.25rem;
  z-index: 60;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--ink);
}

/* The spectrum bar. 6px full bleed at the very top, exactly as in the app. */
.spectrum-top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 6px;
  background-image: var(--spectrum);
}

/* 4px section accent. The other place the spectrum is allowed to show. */
.spectrum-rule {
  height: 4px;
  width: 3.5rem;
  background-image: var(--spectrum);
}

/* ── Nav ────────────────────────────────────────────────────────────────── */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0;
}

/* The mark. Type, not a file. */
.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.wordmark:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav > a:not(.begin) {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-decoration: none;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.nav > a:not(.begin):hover,
.nav > a:not(.begin):focus-visible {
  color: var(--ink);
}

/* The page you are already on says so, and does not link to itself. */
.nav [aria-current="page"] {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

#main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-bottom: 2.5rem;
}

/* IN BETA. Nothing else wears this. */
.stamp {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 0.3rem 0.7rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1.7;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--amber);
}

.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

h1 {
  font-size: clamp(2.25rem, 11vw, 3.5rem);
}

/* The mark at hero size: lowercase, tight, and the loudest thing on the page. */
.hero-mark {
  font-size: clamp(3.25rem, 19vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}

.lede {
  margin: 1.25rem 0 0;
  font-size: 1.3rem;
  line-height: 1.4;
  max-width: 32rem;
}

.sublede {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--gray);
  max-width: 34rem;
}

.begin-row {
  margin: 1.75rem 0 0;
}

/* The three-note economics, next to the thing that makes them. */
.wave-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 2.75rem;
  flex: none;
}

.wave span {
  width: 4px;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: center;
  animation: wave 1.5s ease-in-out infinite;
}

.wave span:nth-child(6n + 1) {
  height: 24%;
  animation-delay: 0ms;
}
.wave span:nth-child(6n + 2) {
  height: 58%;
  animation-delay: 90ms;
}
.wave span:nth-child(6n + 3) {
  height: 100%;
  animation-delay: 180ms;
}
.wave span:nth-child(6n + 4) {
  height: 44%;
  animation-delay: 270ms;
}
.wave span:nth-child(6n + 5) {
  height: 78%;
  animation-delay: 360ms;
}
.wave span:nth-child(6n) {
  height: 34%;
  animation-delay: 450ms;
}

.wave-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: var(--gray);
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding: 2.5rem 0;
  border-top: 2px solid var(--line);
  scroll-margin-top: 2rem;
}

h2 {
  font-size: clamp(1.5rem, 6.5vw, 1.875rem);
  margin: 0.9rem 0 1.1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.fine {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--gray);
}

.footnote {
  margin: 0.7rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--gray);
}

/* ── The Begin pill ─────────────────────────────────────────────────────── */

/* Same pill, same red, same hard ink offset as Begin in the app: one door in,
   and it looks like the door they will land on. */
.begin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  width: 100%;
  padding: 0.9rem 1.75rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--record);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.begin:hover,
.begin:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.begin:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.begin-sm {
  width: auto;
  min-height: 2.5rem;
  padding: 0.4rem 1.05rem;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.breathe {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--white);
  animation: breathe 2.4s ease-in-out infinite;
}

/* ── The game: three modes ──────────────────────────────────────────────── */

.modes {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.mode {
  border: 2px solid var(--line);
  background: var(--white);
  padding: 1.25rem;
}

.mode-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.5rem;
  margin-bottom: 1rem;
}

/* Torn paper label. Live is green; Coming is quiet. */
.torn {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.85rem 0.3rem 0.6rem;
  background: var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  clip-path: polygon(
    0 0,
    calc(100% - 6px) 0,
    100% 18%,
    calc(100% - 6px) 36%,
    100% 54%,
    calc(100% - 6px) 72%,
    100% 90%,
    calc(100% - 5px) 100%,
    0 100%
  );
}

.torn-live {
  background: var(--green);
  color: var(--white);
}

/* Two lines of it, stuck on at the same angle as the Polaroid. */
.torn-two {
  margin: 1.5rem 0 0;
  padding: 0.5rem 1.05rem 0.5rem 0.7rem;
  letter-spacing: 0.14em;
  line-height: 1.8;
  transform: rotate(-1.5deg);
}

/* Solitaire: Single Player, fanned. */
.cards {
  position: relative;
  width: 7.5rem;
  height: 4.75rem;
}

.card {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 4.25rem;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--white);
}

.card-1 {
  left: 0;
  transform: rotate(-13deg);
}
.card-2 {
  left: 2.25rem;
  transform: rotate(-1deg);
}
.card-3 {
  left: 4.5rem;
  transform: rotate(12deg);
}

.pip {
  display: block;
}

.pip-heart {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--record);
  transform: rotate(-45deg);
}

.pip-heart::before,
.pip-heart::after {
  content: "";
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--record);
}

.pip-heart::before {
  top: -0.3rem;
  left: 0;
}

.pip-heart::after {
  top: 0;
  left: 0.3rem;
}

.pip-diamond {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--blue);
  transform: rotate(45deg);
}

/* Two joysticks: Two-Player. */
.sticks {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  padding-top: 1.5rem;
}

.stick {
  position: relative;
  width: 2.75rem;
  height: 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 0.3rem;
  background: var(--white);
}

.stick i {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  width: 0.3rem;
  height: 1.6rem;
  border-radius: 2px;
  background: var(--ink);
}

.stick i::before {
  content: "";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.stick-1 i::before {
  background: var(--record);
}

.stick-2 i::before {
  background: var(--blue);
}

/* Arcade cabinet screen: Multiplayer. No copy under it, on purpose. */
.arcade {
  width: 7rem;
  padding: 0.5rem;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  background: var(--ink);
}

.arcade-screen {
  position: relative;
  display: block;
  height: 3.4rem;
  border-radius: 3px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.09) 0 1px,
    transparent 1px 4px
  );
  overflow: hidden;
}

/* Pixel art, drawn with shadows: 4px to a pixel. */
.invader {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 14px);
  width: 4px;
  height: 4px;
  background: transparent;
  box-shadow:
    8px 0 0 var(--green),
    16px 0 0 var(--green),
    4px 4px 0 var(--green),
    8px 4px 0 var(--green),
    12px 4px 0 var(--green),
    16px 4px 0 var(--green),
    20px 4px 0 var(--green),
    0 8px 0 var(--green),
    4px 8px 0 var(--green),
    8px 8px 0 var(--green),
    12px 8px 0 var(--green),
    16px 8px 0 var(--green),
    20px 8px 0 var(--green),
    24px 8px 0 var(--green),
    0 12px 0 var(--green),
    8px 12px 0 var(--green),
    12px 12px 0 var(--green),
    16px 12px 0 var(--green),
    24px 12px 0 var(--green),
    4px 16px 0 var(--green),
    20px 16px 0 var(--green);
}

/* ── How it works ───────────────────────────────────────────────────────── */

.how {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.how-art {
  display: flex;
  align-items: flex-end;
  height: 5.5rem;
  margin-bottom: 1.1rem;
}

/* Birthday cake: the date, one candle. */
.cake {
  position: relative;
  width: 5rem;
  height: 5.25rem;
}

.plate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.35rem;
  border-radius: 2px;
  background: var(--ink);
}

.tier {
  position: absolute;
  bottom: 0.35rem;
  left: 0.35rem;
  right: 0.35rem;
  height: 1.9rem;
  border: 2px solid var(--ink);
  border-radius: 0.15rem 0.15rem 0.3rem 0.3rem;
  background: var(--white);
}

.frosting {
  position: absolute;
  bottom: 2.1rem;
  left: 0.35rem;
  right: 0.35rem;
  height: 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0.2rem;
  background: var(--amber);
}

.frosting::before,
.frosting::after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
}

.frosting::before {
  left: 0.5rem;
}

.frosting::after {
  right: 0.6rem;
}

.candle {
  position: absolute;
  bottom: 2.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.3rem;
  height: 1.1rem;
  border-radius: 2px;
  background: var(--record);
}

.flame {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.45rem;
  height: 0.65rem;
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: var(--amber);
  animation: flicker 2s ease-in-out infinite;
}

/* Mic: three notes, and the light that says we are listening. */
.mic {
  position: relative;
  width: 3.4rem;
  height: 5.25rem;
}

.capsule {
  position: absolute;
  top: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.85rem;
  height: 2.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.grille {
  position: absolute;
  inset: 0.3rem;
  border-radius: 999px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--ink) 0 2px,
    transparent 2px 5px
  );
  opacity: 0.7;
}

.stem {
  position: absolute;
  top: 2.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.3rem;
  height: 1.6rem;
  background: var(--ink);
}

.foot {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 0.35rem;
  border-radius: 2px;
  background: var(--ink);
}

.light {
  position: absolute;
  top: 0.55rem;
  right: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--record);
  animation: breathe 2.4s ease-in-out infinite;
}

/* Hand mirror: the reading. */
.hand-mirror {
  position: relative;
  width: 3.75rem;
  height: 5.25rem;
}

.glass {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.75rem;
  height: 3.75rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background-image: linear-gradient(145deg, var(--white) 0 45%, var(--line) 45% 100%);
  overflow: hidden;
}

.shine {
  position: absolute;
  top: 0.3rem;
  left: 1rem;
  width: 0.35rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--white);
  transform: rotate(26deg);
}

.handle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.75rem;
  height: 1.75rem;
  border: 2px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 0.4rem 0.4rem;
  background: var(--white);
}

/* ── Why do this ────────────────────────────────────────────────────────── */

.values {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.values li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 1.05rem;
  font-size: 1.15rem;
  line-height: 1.5;
}

.values li:last-child {
  margin-bottom: 0;
}

.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 1.25rem;
  height: 3px;
  background: var(--ink);
}

.values li:nth-child(1)::before {
  background: var(--record);
}
.values li:nth-child(2)::before {
  background: var(--amber);
}
.values li:nth-child(3)::before {
  background: var(--green);
}
.values li:nth-child(4)::before {
  background: var(--blue);
}

/* ── Three notes ────────────────────────────────────────────────────────── */

.notes {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

/* Taped to the page, slightly crooked, the way a note actually lands. */
.note {
  position: relative;
  border: 2px solid var(--line);
  border-left-width: 6px;
  background: var(--white);
  padding: 1.6rem 1.1rem 1.15rem;
  box-shadow: 3px 3px 0 var(--line);
}

.note::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 4.75rem;
  height: 1.15rem;
  background: var(--tape);
  border-left: 1px solid rgba(17, 17, 17, 0.1);
  border-right: 1px solid rgba(17, 17, 17, 0.1);
}

.note-1 {
  border-left-color: var(--record);
  transform: rotate(-0.6deg);
}
.note-1::before {
  transform: translateX(-50%) rotate(-3deg);
}

.note-2 {
  border-left-color: var(--amber);
  transform: rotate(0.5deg);
}
.note-2::before {
  transform: translateX(-50%) rotate(2deg);
}

.note-3 {
  border-left-color: var(--blue);
  transform: rotate(-0.3deg);
}
.note-3::before {
  transform: translateX(-50%) rotate(-1.5deg);
}

.note-name {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
}

.note-sub {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.note-micro {
  margin: 0.55rem 0 0;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--gray);
}

/* Film strip: the three notes as frames, and the Mirror typing under them. */
.strip {
  margin-top: 1.9rem;
}

.film {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 0.7rem;
  border-radius: 0.3rem;
  background: var(--ink);
}

.film::before,
.film::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  height: 0.3rem;
  background-image: repeating-linear-gradient(
    to right,
    var(--white) 0 0.35rem,
    transparent 0.35rem 0.8rem
  );
}

.film::before {
  top: 0.28rem;
}

.film::after {
  bottom: 0.28rem;
}

.frame {
  position: relative;
  width: 4rem;
  height: 2.6rem;
  border-radius: 2px;
  background: var(--white);
}

.frame::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.5rem;
  height: 3px;
}

.frame-1::after {
  background: var(--record);
}
.frame-2::after {
  background: var(--amber);
}
.frame-3::after {
  background: var(--blue);
}

.typewriter {
  margin: 0.95rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 0.15em;
  vertical-align: -0.15em;
  background: var(--ink);
  animation: blink 1.1s steps(1, end) infinite;
}

/* ── Why this exists ────────────────────────────────────────────────────── */

.polaroid {
  position: relative;
  width: min(17rem, 100%);
  margin: 2rem 0 1.9rem;
  padding: 0.85rem 0.85rem 1.15rem;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--line);
  transform: rotate(-1.5deg);
}

/* Taped to the page by two corners, like it came off a fridge. */
.polaroid::before,
.polaroid::after {
  content: "";
  position: absolute;
  top: -0.7rem;
  width: 3.4rem;
  height: 1.15rem;
  background: var(--tape);
  border-left: 1px solid rgba(17, 17, 17, 0.1);
  border-right: 1px solid rgba(17, 17, 17, 0.1);
}

.polaroid::before {
  left: -0.5rem;
  transform: rotate(-24deg);
}

.polaroid::after {
  right: -0.5rem;
  transform: rotate(22deg);
}

/* The shot goes in raw and square. Nothing crops them out of the flowers. */
.photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--line);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/**
 * It develops. Grey to colour as it comes up the screen, on the scroll itself.
 *
 * The shorthand leaves the duration at 0s on purpose: where scroll-driven
 * timelines are not supported, `both` lands the photo on the last keyframe and
 * it is simply in colour. Reduced motion takes the same road, because the
 * blanket rule below drops the animation and the filter with it.
 */
.develop {
  animation: develop linear both;
  animation-timeline: view();
  animation-range: entry 15% cover 45%;
}

.polaroid figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

.signoff {
  margin-top: 1.1rem;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--gray);
}

/* ── Why "143" ──────────────────────────────────────────────────────────── */

.pager {
  position: relative;
  width: min(15rem, 100%);
  margin: 1.5rem 0;
  padding: 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0.6rem 0.6rem 0.9rem 0.9rem;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--line);
}

.lcd {
  display: block;
  padding: 0.6rem 0.4rem;
  border: 2px solid var(--ink);
  border-radius: 0.25rem;
  background: rgba(46, 158, 72, 0.18);
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1.1;
  text-align: center;
  text-indent: 0.3em;
  color: var(--ink);
}

.grille-2 {
  display: block;
  width: 3.25rem;
  height: 0.5rem;
  margin: 0.75rem 0 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--ink) 0 2px,
    transparent 2px 5px
  );
}

.button {
  position: absolute;
  right: 0.9rem;
  bottom: 0.75rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--record);
}

/* ── The close ──────────────────────────────────────────────────────────── */

.close {
  border-top: 2px solid var(--line);
  padding: 2.5rem 0 0.5rem;
}

.close-note {
  margin: 0.9rem 0 0;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--gray);
}

.footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.footer p {
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray);
}

/* One rule across the footer, not one per line. */
.footer p + p {
  margin-top: 0.4rem;
  padding-top: 0;
  border-top: 0;
}

.footer a {
  color: var(--gray);
  text-decoration-color: var(--line);
  text-underline-offset: 0.25em;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--ink);
}

/* ── Motion ─────────────────────────────────────────────────────────────── */

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.35);
  }
}

@keyframes flicker {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scale(0.86);
    opacity: 0.8;
  }
}

@keyframes develop {
  from {
    filter: grayscale(1) contrast(1.08);
  }
  to {
    filter: grayscale(0) contrast(1);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* ── Wider ──────────────────────────────────────────────────────────────── */

@media (min-width: 46rem) {
  .bar {
    padding-top: 2.25rem;
  }

  .nav {
    gap: 1.4rem;
  }

  #main {
    padding-top: 2.5rem;
  }

  .begin {
    width: auto;
    min-width: 20rem;
  }

  .begin-sm {
    min-width: 0;
  }

  .modes,
  .how {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .notes {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Nothing loops for someone who asked for that. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
