/* --------------------------------------------------------------------------
   0. Fonts

   Self-hosted rather than pulled from fonts.googleapis.com. Google's own font
   CSS measured 293-377ms against 148-172ms for files served from this domain,
   and it cost two extra round trips to a third party before any text painted.

   Both families are variable fonts: one file covers the whole weight range,
   which is why three weights of each map to a single request.

   Baloo 2 and Nunito are licensed under the SIL Open Font License 1.1.
   See assets/fonts/OFL-Baloo2.txt and assets/fonts/OFL-Nunito.txt.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/baloo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/baloo2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Yipjoy: a coloring book that has already been coloured in.

   The logo's own device (a dark outline wrapped in a white sticker halo) is
   the structural motif: outlines and hard offset shadows instead of blurred
   drop-shadows, flat saturated fills instead of gradients-as-decoration.
   Calm paper sections alternate with full-bleed panels in each game's colours.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Sampled from the wordmark. `ink` is a deep grape, never black. */
  --ink: #241b4e;
  --ink-soft: #554a7d;
  --ink-faint: #8a82ad;
  --paper: #fffbf2;
  --paper-warm: #fff3dd;
  --white: #fff;

  --sun: #ffc72c;
  --bubble: #f2589e;
  --sky: #35a7e8;
  --mint: #2ec4b6;
  --grape: #9b57d3;
  --lime: #8dc63f;
  --coral: #f4595c;

  /* Per-game accents, re-bound inside each panel. */
  --accent: var(--sun);
  --accent-deep: var(--ink);

  --stroke: 3px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shell: 1180px;
  --measure: 34rem;

  --gap-xs: 0.5rem;
  --gap-sm: 0.875rem;
  --gap: 1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;
  --bay: clamp(4rem, 9vw, 7.5rem);

  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Nunito, ui-rounded, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Baloo 2", Nunito, ui-rounded, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

@media (min-width: 40em) {
  .shell {
    width: min(100% - 4rem, var(--shell));
  }
}

.bay {
  padding-block: var(--bay);
}

/* --------------------------------------------------------------------------
   4. Buttons: chunky game-UI pieces. The press state is the whole point.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.8125rem 1.5rem;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-family: "Baloo 2", Nunito, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--primary {
  background: var(--sun);
}

.btn--ghost {
  background: transparent;
  box-shadow: 0 4px 0 var(--ink);
}

.btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

/* Store buttons sit on saturated panels, so they wear the white halo. */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.6875rem;
  padding: 0.6875rem 1.25rem 0.6875rem 1rem;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 6px 0 var(--ink);
}

.store:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 0 0 var(--ink);
}

.store__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.store__text {
  display: grid;
  line-height: 1.15;
}

.store__pre {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.store__name {
  font-family: "Baloo 2", Nunito, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 0.875rem;
}

/* Softens whatever scrolls through the gutter around the pill. Masked so it
   fades out rather than cutting a hard edge across the page. */
.masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 -1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none;
}

.masthead > .shell {
  position: relative;
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: "Baloo 2", Nunito, sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

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

.nav a {
  padding: 0.5rem 0.9375rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav a:hover {
  background: var(--paper-warm);
}

.nav .btn {
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
  box-shadow: 0 3px 0 var(--ink);
}

.nav .btn:hover {
  background: var(--sun);
  box-shadow: 0 5px 0 var(--ink);
}

.nav__toggle {
  display: none;
}

@media (max-width: 47.99em) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: var(--stroke) solid var(--ink);
    border-radius: var(--radius-pill);
    background: var(--sun);
    box-shadow: 0 3px 0 var(--ink);
    cursor: pointer;
  }

  .nav {
    position: absolute;
    inset: calc(100% + 0.5rem) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.375rem;
    padding: 0.75rem;
    border: var(--stroke) solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: 0 4px 0 var(--ink);
    transform-origin: top center;
  }

  .nav[hidden] {
    display: none;
  }

  .nav a {
    padding: 0.6875rem 1rem;
    font-size: 1.0625rem;
    text-align: center;
  }

  .nav .btn {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   6. Hero: the studio's own game objects drifting behind the headline.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 4.75rem);
  max-width: 16ch;
  margin-inline: auto;
}

.hero__lede {
  max-width: 44ch;
  margin: var(--gap) auto 0;
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
}

.hero__note {
  margin-top: var(--gap);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-faint);
}

/* Drifting object field. Decorative only, so hidden from assistive tech. */
.orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.orbit__item {
  position: absolute;
  width: var(--size, 4.5rem);
  opacity: 0;
  animation: settle 0.9s var(--ease-pop) forwards;
  animation-delay: var(--in, 0s);
}

.orbit__item > * {
  animation: drift var(--dur, 9s) ease-in-out infinite alternate;
  animation-delay: var(--in, 0s);
}

.orbit__item:nth-child(1) { --size: 5rem;    --in: 0.15s; --dur: 8s;  top: 14%;  left: 6%; }
.orbit__item:nth-child(2) { --size: 3.25rem; --in: 0.3s;  --dur: 11s; top: 58%;  left: 13%; }
.orbit__item:nth-child(3) { --size: 4rem;    --in: 0.45s; --dur: 9s;  top: 20%;  right: 8%; }
.orbit__item:nth-child(4) { --size: 5.5rem;  --in: 0.6s;  --dur: 12s; top: 62%;  right: 5%; }
.orbit__item:nth-child(5) { --size: 2.5rem;  --in: 0.75s; --dur: 10s; top: 82%;  left: 16%; }

@media (max-width: 61.99em) {
  .orbit__item:nth-child(2),
  .orbit__item:nth-child(5) {
    display: none;
  }

  .orbit__item:nth-child(1) { top: 3%;  left: -2%; --size: 3.5rem; }
  .orbit__item:nth-child(3) { top: 5%;  right: -1%; --size: 3rem; }
  .orbit__item:nth-child(4) { top: 86%; right: -3%; --size: 3.75rem; }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.7) rotate(-14deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translateY(-9px) rotate(-5deg);
  }
  to {
    transform: translateY(9px) rotate(5deg);
  }
}

/* --------------------------------------------------------------------------
   7. Game panels: the loud half of the rhythm.
   -------------------------------------------------------------------------- */

.games {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: var(--bay);
}

.game {
  --accent: var(--sun);
  --accent-deep: var(--ink);
  position: relative;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--accent);
  box-shadow: 0 8px 0 var(--ink);
  overflow: hidden;
}

.game--cubely {
  --accent: #6ec1f2;
}

.game--gooey {
  --accent: #b5e06a;
}

.game--coloring {
  --accent: #f88fc0;
}

.game__grid {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 3rem);
}

@media (min-width: 56em) {
  .game__grid {
    grid-template-columns: 1.05fr 1fr;
  }

  .game:nth-child(even) .game__art {
    order: 2;
  }
}

.game__body > * + * {
  margin-top: var(--gap);
}

.game__title {
  font-size: clamp(2.125rem, 4.6vw, 3.25rem);
}

/* The full store name lives in the h2 for search; the descriptor half is set
   smaller so the brand name still reads as the headline. */
.game__subtitle {
  display: block;
  margin-top: 0.2em;
  font-size: 0.46em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  opacity: 0.78;
}

.game__tagline {
  font-family: "Baloo 2", Nunito, sans-serif;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--ink);
  opacity: 0.72;
}

.game__desc {
  max-width: 42ch;
  font-weight: 600;
}

.game__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.flag {
  display: inline-block;
  padding: 0.3125rem 0.8125rem;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--sun);
  font-family: "Baloo 2", Nunito, sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
  transform: rotate(-3deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.375rem 0.8125rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 700;
}

.game__body > .store-note {
  margin-top: 0.8125rem;
  font-size: 0.875rem;
  font-weight: 700;
  opacity: 0.68;
}

/* Art wells */
.game__art {
  display: grid;
  gap: var(--gap-sm);
}

.game__promo {
  width: 100%;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}

/* Portrait phone shots run as one strip; landscape tablet captures need more
   width each, so they pair up into a 2x2 instead. */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--gap-sm);
}

.shots--wide {
  grid-auto-flow: row;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 34em) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }
}

.shots img {
  width: 100%;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   8. Studio + contact: deliberately quiet.
   -------------------------------------------------------------------------- */

.studio {
  border-top: var(--stroke) solid var(--ink);
  background: var(--paper-warm);
}

.studio__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 52em) {
  .studio__grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }

  /* Full width, so the short heading column never leaves a void beneath it. */
  .studio .contact-card {
    grid-column: 1 / -1;
  }
}

.studio h2 {
  font-size: clamp(2rem, 4.4vw, 2.875rem);
  max-width: 14ch;
}

.studio__body > * + * {
  margin-top: var(--gap);
}

.studio__body p {
  max-width: var(--measure);
  color: var(--ink-soft);
}

.contact-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 0 var(--ink);
}

.contact-card h3 {
  font-size: 1.5rem;
}

.contact-card p {
  margin-top: 0.625rem;
  color: var(--ink-soft);
}

.contact-card .btn {
  margin-top: var(--gap);
}

/* --------------------------------------------------------------------------
   9. FAQ: plain visible text, because search and AI crawlers read it.
   -------------------------------------------------------------------------- */

.faq {
  border-top: var(--stroke) solid var(--ink);
}

.faq h2 {
  font-size: clamp(2rem, 4.4vw, 2.875rem);
  max-width: 18ch;
  margin-bottom: var(--gap-lg);
}

.faq__list {
  display: grid;
  gap: var(--gap-lg);
}

@media (min-width: 52em) {
  .faq__list {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--gap-xl);
  }
}

.faq__item h3 {
  font-size: 1.1875rem;
}

.faq__item p {
  margin-top: 0.5rem;
  max-width: 46ch;
  color: var(--ink-soft);
}

.faq__item a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--bubble);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: var(--stroke) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--gap-xl) var(--gap-lg);
}

.footer a {
  color: var(--paper);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--gap-lg);
}

.footer .brand {
  color: var(--paper);
  font-size: 1.5rem;
}

.footer__tag {
  margin-top: 0.5rem;
  max-width: 30ch;
  font-size: 0.9375rem;
  color: rgba(255, 251, 242, 0.68);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.footer__links a {
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--gap);
  margin-top: var(--gap-xl);
  padding-top: var(--gap);
  border-top: 2px solid rgba(255, 251, 242, 0.16);
  font-size: 0.875rem;
  color: rgba(255, 251, 242, 0.6);
}

/* --------------------------------------------------------------------------
   11. Legal pages
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-head h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
}

.page-head p {
  margin-top: var(--gap);
  max-width: var(--measure);
  color: var(--ink-soft);
}

.stamp {
  display: inline-block;
  padding: 0.375rem 0.9375rem;
  margin-bottom: var(--gap);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--sun);
  font-size: 0.875rem;
  font-weight: 700;
}

.prose {
  max-width: 40rem;
  padding-bottom: var(--bay);
}

.prose > * + * {
  margin-top: 1.125rem;
}

.prose h2 {
  margin-top: 3rem;
  font-size: 1.625rem;
  scroll-margin-top: 7rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.1875rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose strong {
  color: var(--ink);
}

.prose ul {
  margin-block: 0.75rem;
  padding-left: 1.125rem;
}

.prose li + li {
  margin-top: 0.4375rem;
}

.prose a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--bubble);
}

.prose hr {
  margin-block: 2.5rem;
  border: 0;
  border-top: 2px dashed var(--ink-faint);
}

.callout {
  padding: 1.25rem 1.5rem;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-warm);
  box-shadow: 0 5px 0 var(--ink);
}

.callout p {
  color: var(--ink);
  font-weight: 600;
}

.toc {
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--ink-faint);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9375rem;
}

@media (max-width: 34em) {
  .toc ol {
    columns: 1;
  }
}

.toc li {
  margin-bottom: 0.3125rem;
  break-inside: avoid;
}

/* 404 */
.notfound {
  display: grid;
  place-items: center;
  gap: var(--gap);
  min-height: 62vh;
  padding-block: var(--bay);
  text-align: center;
}

.notfound h1 {
  font-size: clamp(3rem, 12vw, 7rem);
}

/* --------------------------------------------------------------------------
   12. Motion preferences
   -------------------------------------------------------------------------- */

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

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

  .orbit__item {
    opacity: 1;
  }
}
