/* Pixel & Pocket: one stylesheet for the whole site.
   A quiet, modern studio shell (system fonts, hairlines, lots of space) with
   room for each app's own personality inside it. No third-party requests:
   the two web fonts (the studio wordmark and the Brightkin title face) are
   served from /fonts. */

@font-face {
  font-family: 'Fredoka';
  src: url('fonts/Fredoka_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* The wordmark face. Block rather than swap, so the header never flashes a
   fallback font under the pixel dot. */
@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: block;
}

:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --bg-raised: #ffffff;
  --bg-sunken: #f3f1ed;
  --text: #17151b;
  --muted: #6b6672;
  --faint: #a29dab;
  --line: #e6e3de;
  --line-strong: #d4d0c9;
  --accent: #3b7be0;
  --accent-soft: rgba(59, 123, 224, 0.1);
  --ok: #3aa864;
  --soon: #e39a2d;
  --dot: rgba(23, 21, 27, 0.09);
  --shadow: 0 1px 2px rgba(23, 21, 27, 0.04), 0 8px 24px rgba(23, 21, 27, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img.pixel,
.pal {
  image-rendering: pixelated;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }
}

/* --- Header and footer ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* The pocket logo sits on a little cream tile, like an app icon. */
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff3e6;
  box-shadow: inset 0 0 0 1px rgba(43, 29, 58, 0.12);
}

.brand-mark img {
  width: 26px;
  height: 26px;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-sunken);
}

.brand-name {
  white-space: nowrap;
  font-family: 'Outfit', var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* The wordmark's i is a dotless i with a square orange pixel for its dot,
   placed where Outfit draws the real one. (The link's aria-label carries the
   name, so screen readers never meet the dotless i.) */
.pixel-i {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.pixel-i::after {
  content: '';
  position: absolute;
  left: 0.029em;
  top: 0.139em;
  width: 0.19em;
  height: 0.19em;
  background: #ff8a1f;
}

/* Phones: the pixel pocket alone leaves room for the links. */
@media (max-width: 440px) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .nav a {
    padding: 6px 10px;
  }
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* --- Shared bits ------------------------------------------------------ */

.eyebrow {
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.btn:hover {
  border-color: var(--faint);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.btn.primary:hover {
  background: color-mix(in srgb, var(--text) 86%, var(--bg));
}

.btn.small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

/* Status dot: amber while an app is on its way. Add .out once it's live. */
.live-dot {
  --dot-color: var(--soon);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot-color) 22%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

.live-dot.out {
  --dot-color: var(--ok);
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--dot-color) 0%, transparent);
  }
}

.section {
  padding-top: 112px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

/* --- Home: a bold hero, then pick an app ------------------------------ */

/* A big Denim panel with the studio's line and the logo, big. */
.hero-band {
  --denim: #3b7be0;
  --pixel: #ff8a1f;
  --thread: #fff3e6;
  position: relative;
  overflow: hidden;
  width: calc(100% - 24px);
  max-width: 1240px;
  margin: 8px auto 0;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(155deg, #4b8bed 0%, var(--denim) 45%, #2c62c4 100%);
  color: #fff;
}

/* The pixel grid, faint, fading toward the bottom. */
.hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 600px;
}

.hero-copy {
  padding: 88px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero-kicker::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--pixel);
}

.hero-band h1 {
  max-width: 11em;
  font-size: clamp(46px, 7.4vw, 88px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

/* The full stop is the logo's orange pixel. */
.hero-band h1 .dot {
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  margin-left: 0.04em;
  background: var(--pixel);
}

.hero-lede {
  max-width: 470px;
  margin: 26px 0 36px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.1vw, 20px);
  line-height: 1.55;
}

.btn.light {
  border-color: #fff;
  background: #fff;
  color: #17151b;
}

.btn.light:hover {
  background: var(--thread);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
}

.btn.ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* The logo, big: a denim pocket sewn onto the panel with the orange pixel
   tucked in it, bobbing, and smaller pixels popping out and dropping back. */
.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art svg {
  display: block;
  width: min(100%, 470px);
  height: auto;
  overflow: visible;
  rotate: -4deg;
}

.hero-art .tucked {
  animation: tuck 3.4s ease-in-out infinite alternate;
}

@keyframes tuck {
  to {
    transform: translateY(-18px);
  }
}

.hero-art .spill {
  animation: spill var(--t) var(--d) infinite;
}

/* Up and out of the pocket, then back in on a little arc. */
@keyframes spill {
  0%,
  18% {
    transform: translate(0, 0);
    animation-timing-function: cubic-bezier(0.2, 0.75, 0.35, 1);
  }
  52% {
    transform: translate(var(--dx), var(--rise));
    animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.35);
  }
  86%,
  100% {
    transform: translate(calc(var(--dx) * 1.5), 0);
  }
}

/* Pixels drifting about, in the logo's orange and cream. */
.hero-px {
  position: absolute;
  width: var(--s);
  height: var(--s);
  left: var(--x);
  top: var(--y);
  background: var(--c, #ff8a1f);
  animation: drift var(--t, 7s) ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  to {
    transform: translate(var(--dx, 6px), var(--dy, -10px));
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }
  .hero-copy {
    padding: 64px 0 8px;
  }
  /* Pixels that would land on the text in a narrow hero. */
  .hero-px.wide-only {
    display: none;
  }
  .hero-art {
    padding: 8px 0 44px;
  }
  .hero-art svg {
    width: min(76%, 330px);
  }
}

@media (max-width: 600px) {
  .hero-band {
    width: calc(100% - 16px);
    border-radius: 26px;
  }
}

/* The app picker, under the hero. */
.picker {
  padding-top: 72px;
}

/* One tile per app: icon, name, what it is and whether it's out, then the way in. */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-tile {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.app-tile:hover {
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgba(23, 21, 27, 0.04), 0 14px 32px rgba(23, 21, 27, 0.09);
  transform: translateY(-2px);
}

.app-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app-tile .app-icon {
  width: 76px;
  height: 76px;
}

.tile-body {
  flex: 1;
  min-width: 0;
}

.tile-body h2 {
  margin-bottom: 6px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.tile-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.tile-go {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-sunken);
  color: var(--muted);
  font-size: 17px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.app-tile:hover .tile-go {
  background: var(--text);
  color: var(--bg);
  transform: translateX(2px);
}

@media (max-width: 480px) {
  .app-tile {
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }
  .app-tile .app-icon {
    width: 60px;
    height: 60px;
  }
  .tile-go {
    display: none;
  }
}

.lede {
  max-width: 520px;
  margin: 24px 0 36px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Brightkin's world: a meadow with the pals bobbing along. */
.meadow {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  align-content: center;
  justify-content: center;
  gap: 8px 28px;
  min-height: 280px;
  padding: 40px 24px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 225, 122, 0.55), transparent 32%),
    linear-gradient(180deg, #cfeec2 0%, #9fd88c 70%, #8fcf7c 100%);
}

.meadow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(79, 176, 106, 0.35));
  pointer-events: none;
}

/* Each pal steps between its two frames at its own pace, like in the game. */
.pal {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  background-size: 144px 72px;
  background-repeat: no-repeat;
  animation: frames var(--speed, 0.5s) steps(1) infinite;
}

@keyframes frames {
  0%,
  49.9% {
    background-position: 0 0;
  }
  50%,
  100% {
    background-position: -72px 0;
  }
}

/* --- App pages ------------------------------------------------------- */

.crumbs {
  padding-top: 40px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
}

.product .app-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 28px;
}

/* The game's own title face. */
.game-title {
  font-family: 'Fredoka', var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product .lede {
  margin: 18px 0 20px;
}

.product .tag {
  margin-bottom: 28px;
}

.product .meadow {
  margin: 0;
  min-height: 360px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.product .meadow figcaption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 1;
  color: rgba(23, 21, 27, 0.55);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.features li {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features .num {
  display: block;
  margin-bottom: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}

.features h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* --- Game footage ---------------------------------------------------- */

/* Real footage in a phone: a dark bezel, rounded screen and a Dynamic Island. */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 9px;
  border-radius: 44px;
  background: #0d0c10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 2px 4px rgba(0, 0, 0, 0.1), 0 24px 48px rgba(23, 21, 27, 0.18);
}

.phone::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 50%;
  width: 28%;
  height: 22px;
  border-radius: 12px;
  background: #000;
  transform: translateX(-50%);
}

.phone video,
.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 590 / 1278;
  border-radius: 35px;
  background: #2a2438;
  object-fit: cover;
}

/* The hero phone, on a soft patch of meadow with two pals peeking out. */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px 0 24px;
}

.hero-stage::before {
  content: '';
  position: absolute;
  width: min(560px, 120%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 216, 140, 0.55), rgba(255, 225, 122, 0.18) 45%, transparent 68%);
}

.hero-stage .phone {
  max-width: 290px;
}

.peek {
  position: absolute;
  z-index: 1;
}

.peek.left {
  left: calc(50% - 205px);
  bottom: 70px;
}

.peek.right {
  right: calc(50% - 200px);
  top: 90px;
}

@media (max-width: 480px) {
  .peek.left {
    left: 0;
  }
  .peek.right {
    right: 0;
  }
}

/* How it plays: three phones in a row, swiped through on small screens. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps .phone {
  max-width: 270px;
  margin-bottom: 24px;
}

.steps .num {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Six worlds, side by side; a swipeable strip on small screens. */
.worlds {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.worlds img {
  display: block;
  width: 100%;
  aspect-ratio: 590 / 1278;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.worlds figure {
  margin: 0;
}

.worlds figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.worlds .num {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 860px) {
  .steps,
  .worlds {
    grid-template-columns: none;
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 4px 24px 12px;
    scroll-padding: 0 24px;
  }
  .steps::-webkit-scrollbar,
  .worlds::-webkit-scrollbar {
    display: none;
  }
  .steps {
    grid-auto-columns: min(72%, 280px);
    gap: 24px;
  }
  .worlds {
    grid-auto-columns: min(42%, 180px);
  }
  .steps > li,
  .worlds > li {
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .steps,
  .worlds {
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scroll-padding: 0 16px;
  }
}

.swipe-hint {
  display: none;
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 860px) {
  .swipe-hint {
    display: block;
  }
}

/* Meet the pals: the meadow, wide, with names. */
.meadow.wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 12px;
  min-height: 0;
  padding: 40px 24px 32px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.meadow.wide figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
}

.meadow.wide figcaption {
  margin-top: 6px;
  color: #17151b;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.meadow.wide figcaption span {
  display: block;
  color: rgba(23, 21, 27, 0.6);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 760px) {
  .meadow.wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* A closing call to action. */
.closing {
  margin-top: 112px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  text-align: center;
}

.closing .app-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.closing h2 {
  margin-bottom: 12px;
}

.closing p {
  margin: 0 auto 28px;
  max-width: 440px;
  color: var(--muted);
}

.closing .actions {
  justify-content: center;
}

@media (max-width: 600px) {
  .closing {
    padding: 36px 20px;
  }
}

/* --- Long-form pages (privacy, support) ------------------------------- */

.doc {
  max-width: 720px;
}

.doc h1 {
  margin-top: 24px;
  font-size: clamp(36px, 6vw, 56px);
}

.doc .updated {
  margin: 14px 0 32px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}

.doc .lead {
  margin-bottom: 40px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunken);
  font-size: 18px;
}

.doc h2 {
  margin: 44px 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.doc p {
  color: color-mix(in srgb, var(--text) 82%, var(--bg));
}

.doc a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}

.doc a:hover {
  text-decoration-color: currentColor;
}

.doc .crumbs {
  color: var(--faint);
}

.doc .crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.doc .crumbs a:hover {
  color: var(--text);
}

/* --- 404 ------------------------------------------------------------- */

.lost {
  padding: 120px 0 40px;
}

.lost p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
}

.lost a {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pal,
  .live-dot,
  .hero-px,
  .hero-art .tucked,
  .hero-art .spill {
    animation: none;
  }
  /* Still, the pixels hang just above the pocket as if caught mid-spill. */
  .hero-art .spill {
    transform: translate(var(--dx), var(--rise));
  }
}
