/*
 * KayaPlays
 *
 * Mobile first: the base rules are the phone layout and each min-width query
 * adds room. The studio itself is monochrome, like its logo. Colour belongs to
 * the games, which set --accent through [data-game].
 */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: dark;

  --bg: #050608;
  --bg-raised: #0b0d12;
  --ink: #f3f4f6;
  --ink-soft: #a9b0bc;
  --ink-faint: #7d8593;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.22);
  --paper: #fff;
  --accent: #fff;
  --accent-ink: #050608;
  --live: #6df0a8;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --measure: 76rem;
  --bar: 3.75rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-game="glimmerdeep"] {
  --accent: #ff7aa8;
  --accent-ink: #1f0410;
}

[data-game="infinicraft"] {
  --accent: #4fe0cc;
  --accent-ink: #03110f;
}

[data-game="nixel"] {
  --accent: #7fd1ff;
  --accent-ink: #031019;
}

/* -------------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 1rem);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

code {
  font: 0.9em var(--mono);
}

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

.skip {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: #000;
  font: 600 0.8125rem/1 var(--mono);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.wrap--narrow {
  --measure: 46rem;
}

.icon {
  flex: none;
  width: 1em;
  height: 1em;
}

/* ------------------------------------------------------------ small pieces */

.kicker,
.eyebrow {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.kicker span {
  display: inline-block;
  margin-right: 0.75em;
  padding: 0.2em 0.5em;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.lead {
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.fineprint {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 600 0.78125rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn .icon {
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  border-color: var(--ink);
  background: rgb(255 255 255 / 0.06);
}

.btn:hover .icon {
  transform: translate(2px, 0);
}

.btn--solid {
  border-color: var(--paper);
  background: var(--paper);
  color: #000;
}

.btn--solid:hover {
  background: transparent;
  color: var(--ink);
}

.btn--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--accent:hover {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.btn--large {
  min-height: 3.5rem;
  padding-inline: 1.6rem;
  font-size: 0.875rem;
}

.btn--small {
  min-height: 2.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags li {
  padding: 0.35em 0.7em;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: 500 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--accent);
}

.status::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 0.6em transparent; }
}

.spec {
  display: grid;
  border-top: 1px solid var(--line);
}

.spec > div {
  display: grid;
  gap: 0.15rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.spec dt {
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.spec--boxed {
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.spec--boxed > div {
  padding-inline: 1rem;
}

.spec--boxed > div:last-child {
  border-bottom: 0;
}

@media (min-width: 34em) {
  .spec > div {
    grid-template-columns: minmax(9rem, 2fr) 5fr;
    gap: 1.25rem;
    align-items: baseline;
  }
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(5 6 8 / 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--bar);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__disc {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: var(--paper);
  transition: box-shadow 0.3s;
}

.brand__disc img {
  width: 72%;
}

.brand:hover .brand__disc {
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.18), 0 0 24px rgb(255 255 255 / 0.35);
}

.brand__name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand__kaya {
  width: auto;
  height: 0.8125rem;
}

.brand__plays {
  display: none;
  font: 400 0.8125rem/1 var(--mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (min-width: 24.375em) {
  .brand__plays {
    display: inline;
  }
}

.nav ul {
  display: flex;
  gap: clamp(0.9rem, 3.5vw, 2rem);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-soft);
  font: 500 0.71875rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--ink);
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: min(100svh - var(--bar), 54rem);
  padding-block: clamp(1.5rem, 6vw, 4.5rem) clamp(3rem, 9vw, 6rem);
}

/* A faint grid that fades out toward the edges, behind everything. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 10%, transparent 75%);
  opacity: 0.5;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 9rem;
  background: linear-gradient(transparent, var(--bg));
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 6vw, 3rem);
}

.hero__emblem {
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  animation: rise 0.9s var(--ease) both;
}

.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: min(54vw, 17rem);
  aspect-ratio: 1;
}

.emblem__disc {
  display: grid;
  place-items: center;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.9),
    0 0 3.5rem rgb(255 255 255 / 0.28),
    0 0 9rem rgb(150 190 255 / 0.2);
}

.emblem__disc img {
  width: 74%;
}

.emblem__orbit {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: orbit 48s linear infinite;
}

.emblem__orbit--near {
  inset: 9%;
  border-style: dashed;
  border-color: var(--line);
  animation-duration: 30s;
  animation-direction: reverse;
}

.emblem__orbit--far {
  inset: 0;
}

/* One small world per game, in that game's colour. */
.emblem__orbit i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0.9rem var(--dot);
  transform: translate(-50%, -50%);
}

.emblem__orbit--far i:nth-child(1) {
  --dot: #ff7aa8;
}

/* A third of the way round the same ring. */
.emblem__orbit--far i:nth-child(2) {
  --dot: #4fe0cc;
  top: 6.7%;
  left: 75%;
}

.emblem__orbit--near i {
  --dot: #7fd1ff;
  left: 100%;
  width: 0.5rem;
  height: 0.5rem;
}

@keyframes orbit {
  to { transform: rotate(1turn); }
}

.lockup {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.lockup__kaya {
  width: clamp(8.5rem, 34vw, 12rem);
  height: auto;
}

.lockup__plays {
  padding-left: 0.9em;
  font: 400 clamp(0.8125rem, 3vw, 1rem)/1 var(--mono);
  letter-spacing: 0.9em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  animation: rise 0.9s 0.12s var(--ease) both;
}

.hero h1 {
  font-size: clamp(2.75rem, 12.5vw, 6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 0.95rem + 0.7vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.readout {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1rem, 5vw, 2.5rem);
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.readout div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
}

.readout dt {
  font: 500 0.625rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.readout dd {
  font: 500 clamp(1.25rem, 5vw, 1.75rem)/1 var(--mono);
  letter-spacing: -0.02em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}

@media (min-width: 62em) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 4rem;
  }

  .hero__copy {
    order: -1;
    gap: 1.75rem;
  }

  .emblem {
    width: min(32vw, 26rem);
  }

  .lockup__kaya {
    width: 13rem;
  }
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: clamp(4rem, 12vw, 8rem);
}

.section--ruled {
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.section h2,
.legal h1,
.oops h1 {
  font-size: clamp(2rem, 7.5vw, 3.75rem);
}

/* ------------------------------------------------------------------- games */

.games {
  display: grid;
  gap: clamp(1.5rem, 5vw, 2.5rem);
}

.game {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 0.75rem 0.75rem 1.5rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(60rem 24rem at var(--mx, 85%) var(--my, 0%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    var(--bg-raised);
  transition: border-color 0.3s;
}

/* Viewfinder corners in the game's colour. */
.game::before,
.game::after {
  content: "";
  position: absolute;
  width: 1.125rem;
  height: 1.125rem;
  border: solid var(--accent);
  pointer-events: none;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}

.game::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.game::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.game:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.game:hover::before,
.game:hover::after {
  width: 2.25rem;
  height: 2.25rem;
}

.game__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000;
}

/* The picture element has to fill the frame too, or a cover that is wider
   than the frame leaves a gap below itself. */
.game__media picture {
  height: 100%;
}

.game__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.game:hover .game__media img {
  transform: scale(1.035);
}

.game__body {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding-inline: 0.5rem;
}

.game__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game__number {
  color: var(--ink-faint);
}

.game__name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(2.125rem, 9vw, 3.5rem);
}

.game__name a {
  text-decoration: none;
}

.game__name a:hover {
  color: var(--accent);
}

.game__mark {
  flex: none;
  width: auto;
  height: 0.9em;
}

.game__tagline {
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.35;
}

.game__summary {
  max-width: 36rem;
  color: var(--ink-soft);
}

.game .actions {
  width: 100%;
  margin-top: 0.6rem;
}

.game .actions .btn {
  flex: 1 1 auto;
}

@media (min-width: 34em) {
  .game .actions .btn {
    flex: 0 1 auto;
  }
}

@media (min-width: 62em) {
  .game {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 1.25rem;
  }

  .game__body {
    padding: 1rem 1.5rem 1rem 0;
  }

  .game:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
  }

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

  .game:nth-child(even) .game__body {
    padding: 1rem 0 1rem 1.5rem;
  }
}

/* ------------------------------------------------------------------ tenets */

.tenets {
  display: grid;
  gap: 2.5rem;
  counter-reset: tenet;
}

.tenets li {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
  counter-increment: tenet;
}

.tenets li::before {
  content: "0" counter(tenet);
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.tenets h3,
.features h3 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.tenets p,
.features p {
  color: var(--ink-soft);
}

@media (min-width: 48em) {
  .tenets {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* ------------------------------------------------------------------ studio */

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

/* The logo as it was drawn: black on white, set into the dark page. */
.plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 1;
  margin-inline: auto;
  background: var(--paper);
}

.plate img {
  width: 62%;
}

.plate::before,
.plate::after {
  content: "";
  position: absolute;
  width: 1.125rem;
  height: 1.125rem;
  border: solid #000;
}

.plate::before {
  top: 0.75rem;
  left: 0.75rem;
  border-width: 2px 0 0 2px;
}

.plate::after {
  right: 0.75rem;
  bottom: 0.75rem;
  border-width: 0 2px 2px 0;
}

.studio__copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.studio__copy > p:not([class]) {
  color: var(--ink-soft);
}

.studio__copy .spec {
  width: 100%;
  margin-top: 0.5rem;
}

@media (min-width: 62em) {
  .studio {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
  }

  .plate {
    max-width: none;
  }
}

/* ----------------------------------------------------------------- contact */

.contact .wrap {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.contact .lead {
  max-width: 36rem;
}

.contact__email {
  display: inline-block;
  margin-top: 0.5rem;
  padding-bottom: 0.15em;
  border-bottom: 2px solid var(--line-strong);
  font-size: clamp(1.75rem, 8.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-decoration: none;
  transition: border-color 0.2s;
}

.contact__email:hover {
  border-color: var(--ink);
}

.email__at {
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- game page */

.gamepage__head {
  position: relative;
  padding-top: clamp(1.25rem, 4vw, 2rem);
  background: radial-gradient(70rem 30rem at 80% -10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 65%);
}

.crumbs ol {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.75em;
}

.crumbs a {
  display: inline-block;
  padding-block: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.gamepage__intro {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(1rem, 4vw, 2.5rem) clamp(2rem, 6vw, 3.5rem);
}

.gamepage__intro > div {
  display: grid;
  gap: 1rem;
  justify-items: start;
  align-content: start;
}

.gamepage__name {
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: clamp(2.75rem, 13vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.gamepage__tagline {
  color: var(--accent);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.gamepage__domain {
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

@media (min-width: 62em) {
  .gamepage__intro {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 4rem;
  }
}

.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.shot img {
  width: 100%;
}

.shot--cover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 2rem 6rem -2rem color-mix(in srgb, var(--accent) 30%, transparent);
}

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

.about__text {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.about__text > p:not([class]) {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.about__text .tags {
  margin-top: 0.5rem;
}

.spec a {
  color: var(--accent);
}

@media (min-width: 62em) {
  .about {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.features {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.features li {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.5rem 1.25rem;
  background: var(--bg);
  transition: background-color 0.3s;
}

.features li:hover {
  background: var(--bg-raised);
}

.features h3::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-bottom: 1rem;
  background: var(--accent);
}

@media (min-width: 40em) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .features li {
    padding: 2rem 1.75rem;
  }
}

@media (min-width: 62em) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery {
  display: grid;
  gap: 1.25rem;
}

.gallery img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (min-width: 62em) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

.playband {
  background: radial-gradient(50rem 20rem at 50% 120%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  text-align: center;
}

.playband .wrap {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

/* ------------------------------------------------------------------- legal */

.legal {
  padding-block: clamp(2.5rem, 8vw, 5rem) clamp(4rem, 10vw, 7rem);
}

.legal__head {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal__updated {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.prose {
  display: grid;
  gap: 1.1rem;
  padding-top: 0.5rem;
  color: var(--ink-soft);
}

.prose h2 {
  margin-top: 2.25rem;
  color: var(--ink);
  font-size: clamp(1.375rem, 4.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 0.75rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

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

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
  list-style: square;
}

.prose ul ::marker {
  color: var(--ink-faint);
}

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

.summary {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--ink);
}

.summary h2 {
  margin-top: 0;
}

.table {
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

thead th,
td::before {
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

tbody th {
  color: var(--ink);
  font-weight: 600;
}

/* Phones: each row becomes a card and every cell carries its own label. */
@media (max-width: 43.99em) {
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tbody tr {
    display: grid;
    gap: 0.75rem;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  tbody tr:last-child {
    border-bottom: 0;
  }

  tbody th,
  td {
    display: block;
  }

  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
  }
}

@media (min-width: 44em) {
  th,
  td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  tbody tr:last-child > * {
    border-bottom: 0;
  }

  tbody th {
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------------- error */

.oops .wrap {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.oops__code {
  font: 500 clamp(5rem, 30vw, 14rem)/0.85 var(--mono);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.38);
}

.oops .lead {
  max-width: 34rem;
}

.oops__detail {
  width: 100%;
  margin: 1rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--ink-soft);
  font: 0.8125rem/1.5 var(--mono);
}

/* ------------------------------------------------------------------ footer */

.footer {
  padding-block: clamp(3rem, 8vw, 5rem) calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.footer__top {
  display: grid;
  gap: 2.5rem;
}

.footer__brand {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.footer a {
  text-decoration: none;
}

.footer p a,
.footer li a:hover {
  color: var(--ink);
}

.footer p a {
  text-decoration: underline;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__nav h2 {
  margin-bottom: 0.5rem;
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer__nav a {
  display: inline-block;
  padding-block: 0.4rem;
}

.footer__base {
  display: grid;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font: 0.75rem/1.5 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

@media (min-width: 48em) {
  .footer__top {
    grid-template-columns: 1fr auto;
    gap: 4rem;
  }

  .footer__nav {
    gap: 4rem;
  }

  .footer__base {
    grid-template-columns: 1fr auto;
  }
}

/* ----------------------------------------------------------- cookie notice */

.notice {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  max-width: 27rem;
  padding: 1.125rem 1.25rem 1.25rem;
  border: 1px solid var(--line-strong);
  background: rgb(11 13 18 / 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.65);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  animation: rise 0.5s var(--ease) both;
}

.notice__title {
  color: var(--ink);
  font: 600 0.75rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* ------------------------------------------------------------------ motion */

/* Only elements still below the fold when the script runs get this class, so
   nothing that is already on screen ever blinks out and back in. */
.reveal.is-waiting {
  opacity: 0;
  transform: translateY(1.5rem);
}

.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal.is-waiting {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------- print */

@media print {
  :root {
    --bg: #fff;
    --bg-raised: #fff;
    --ink: #000;
    --ink-soft: #222;
    --ink-faint: #555;
    --line: #bbb;
    --line-strong: #888;
    --accent: #000;
  }

  .masthead,
  .footer__nav,
  .notice,
  .hero__sky,
  .skip,
  .actions {
    display: none !important;
  }

  .reveal.is-waiting {
    opacity: 1;
    transform: none;
  }
}
