/* Self-hosted subsets from Google Fonts. Space Grotesk is variable, so one file covers every weight used.
   The latin-ext files carry the Polish letters; their unicode-range means only a page that uses one fetches them. */
@font-face {
  font-family: "Space Grotesk";
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/space-grotesk.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}

:root {
  color-scheme: light;
  --panel: #f6f3ec;
  --plate: #ddd5c6;
  --ink: #161514;
  --muted: #6b665e;
  /* --muted is 4.5:1 on --panel only; this holds 4.5:1 on --plate and the enamel. */
  --etch: #57524b;
  --faint: #a39d92;
  --led: #ff5a1f;
  /* The LED orange darkened to 4.5:1 on --panel, for small text. */
  --led-ink: #b33c0c;
  --hair: rgba(22, 21, 20, 0.12);
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* The app icon's plate: cream enamel lit from above, with a little grain. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --enamel: var(--grain), linear-gradient(#f3eee5, #ddd5c6);
  --raised:
    inset 0 -10px 22px rgba(0, 0, 0, 0.08),
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(22, 21, 20, 0.1),
    0 30px 60px -22px rgba(22, 21, 20, 0.32);
  --lit: radial-gradient(circle at 35% 30%, #ffd999, var(--led) 45%, var(--led-ink));
  --cap:
    linear-gradient(var(--panel) 0 0) center / 60% 4px no-repeat,
    linear-gradient(#3d3d3d, #1a1a1a 50%, #0d0d0d);
  --cap-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 1px rgba(0, 0, 0, 0.45),
    0 9px 14px rgba(0, 0, 0, 0.38),
    0 2px 3px rgba(0, 0, 0, 0.35);
}

/* Neither typeface has Cyrillic. Russian and Ukrainian use the system fonts throughout, so the English
   product names inside a sentence match the words around them. */
:root:lang(ru),
:root:lang(uk) {
  --sans: ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, Menlo, monospace;
}

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

html {
  background: var(--panel);
  overflow-x: clip;
}

/* Firefox only: anywhere else a scrollbar-color switches the ::-webkit-scrollbar parts off. */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: var(--ink) var(--panel);
  }
}

/* The page scrollbar as one more fader. Mouse only, so touch keeps its overlay bar. */
@media (hover: hover) and (pointer: fine) {
  html::-webkit-scrollbar {
    width: 22px;
    background: var(--panel);
  }

  html::-webkit-scrollbar-track {
    border: solid transparent;
    border-width: 6px 8px;
    border-radius: 11px;
    background: var(--ink) padding-box;
    box-shadow: inset 0 6px 8px #000;
  }

  html::-webkit-scrollbar-thumb {
    min-height: 44px;
    border-radius: 7px;
    background: var(--cap);
    box-shadow: var(--cap-shadow);
  }
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

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

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

.sprite {
  position: absolute;
}

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 56px);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 calc(50% - 50vw);
  padding: 18px calc(50vw - 50%);
  border-bottom: 1px solid var(--hair);
}

.mark {
  display: inline-flex;
  /* The wordmark keeps its typeface in every language. */
  font-family: "Space Grotesk", var(--sans);
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* A small copy of the hero's button. .top outranks .button, which comes later; the auto margin pins it
   beside the languages, whatever the header's space-between does. */
.top .top-download {
  margin-left: auto;
  padding: 7px 16px;
  font-size: 14px;
}

/* A status light between the button and the languages, and on the current language in the list. */
.top-dot,
.langs a[aria-current]::before {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--led);
}

.langs {
  position: relative;
  font-size: 14px;
}

.langs summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: var(--muted);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.langs summary::-webkit-details-marker {
  display: none;
}

.langs summary:hover,
.langs[open] summary {
  color: var(--ink);
}

.langs summary svg {
  transition: transform 0.2s ease-out;
}

.langs[open] summary svg {
  transform: rotate(180deg);
}

.langs .code {
  display: none;
}

/* Two columns read downwards: six languages each. Above the HUD, which is fixed in the same corner. */
.langs ul {
  position: absolute;
  z-index: 20;
  top: 100%;
  right: 0;
  display: grid;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  padding: 6px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 40px -14px rgba(22, 21, 20, 0.35);
}

.langs a {
  position: relative;
  display: block;
  padding: 8px 18px 8px 26px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.langs a:hover,
.langs a[aria-current] {
  color: var(--ink);
}

.langs a:hover {
  background: var(--panel);
}

.langs a[aria-current] {
  font-weight: 500;
}

.langs a[aria-current]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 11px;
  margin-top: -3px;
}

/* On phones the trigger is the language's two-letter code, so the logo and the button keep their room. */
@media (max-width: 480px) {
  .langs .full {
    display: none;
  }

  .langs .code {
    display: inline;
  }
}

/* Tighter on narrow phones so the logo, the button and the languages still share one line at 360px. */
@media (max-width: 400px) {
  .top {
    gap: 10px;
  }

  .top .top-download {
    padding-inline: 12px;
  }
}

/* Below 360px they no longer fit; the big button is right below. */
@media (max-width: 359px) {
  .top .top-download,
  .top-dot {
    display: none;
  }
}

/* Small mono type is for legends and specs, the way a front panel labels its controls. */
.meta,
.hint,
.channel b,
.channel small,
.cal-head span,
.rating dt {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  margin: 0 calc(50% - 50vw);
  padding: clamp(36px, 8vh, 96px) calc(50vw - 50%) clamp(72px, 12vh, 136px);
  border-bottom: 1px solid var(--hair);
  background: #fff;
}

h1 {
  font-size: clamp(2.75rem, 1.3rem + 4.8vw, 5.25rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* The heading metrics above are tuned for Space Grotesk. System Cyrillic needs a little more air,
   and Chinese, Japanese and Korean glyphs fill their whole box. */
:lang(ru) :is(h1, h2),
:lang(uk) :is(h1, h2) {
  line-height: 1.05;
  letter-spacing: -0.02em;
}

:lang(zh) :is(h1, h2),
:lang(ja) :is(h1, h2),
:lang(ko) :is(h1, h2) {
  line-height: 1.2;
  letter-spacing: 0;
}

/* Break between words and phrases, not inside them. */
:lang(ko) {
  word-break: keep-all;
}

:lang(ja) :is(h1, h2) {
  word-break: auto-phrase;
}

.sub {
  margin-top: 22px;
  max-width: 27em;
  color: var(--muted);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.status {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  text-wrap: balance;
}

.meta span {
  white-space: nowrap;
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  text-wrap: balance;
}

/* The mixer: the app icon at desk size. */
.deck {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.panel {
  --cap-w: 56px;
  --cap-h: 32px;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 66px 8px 26px;
  border-radius: 32px;
  background: var(--enamel);
  box-shadow: var(--raised);
}

.panel::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lit);
  box-shadow:
    0 0 18px 6px rgba(255, 90, 31, 0.42),
    0 0 3px rgba(255, 90, 31, 0.8);
  transition: box-shadow 0.8s ease-out;
}

.panel.off::before {
  background: radial-gradient(circle at 35% 30%, #d6cfc1, #a39d92 60%, #8a8479);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.channel {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.slot {
  position: relative;
  display: grid;
  margin-bottom: 12px;
}

/* The cut the cap rides in: shaded from its top edge, with a light lip below. */
.slot::before {
  content: "";
  position: absolute;
  top: calc(var(--cap-h) / 2 - 6px);
  bottom: calc(var(--cap-h) / 2 - 6px);
  left: 50%;
  width: 14px;
  margin-left: -7px;
  border-radius: 7px;
  background: var(--ink);
  box-shadow:
    inset 0 6px 8px #000,
    0 1.5px 0 rgba(255, 255, 255, 0.75);
}

.slot::after {
  --tick: linear-gradient(var(--faint) 0 0);
  content: "";
  position: absolute;
  top: calc(var(--cap-h) / 2 - 2px);
  bottom: calc(var(--cap-h) / 2 - 2px);
  left: calc(50% + var(--cap-w) / 2 + 6px);
  width: 12px;
  background-image: var(--tick), var(--tick), var(--tick), var(--tick), var(--tick), var(--tick);
  background-size: 100% 3px;
  background-position: 0 0, 0 20%, 0 40%, 0 60%, 0 80%, 0 100%;
  background-repeat: no-repeat;
}

.fader {
  position: relative;
  width: var(--cap-w);
  height: clamp(190px, 23vw, 264px);
  margin: 0;
  writing-mode: vertical-lr;
  direction: rtl;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  cursor: grab;
  touch-action: none;
}

.fader:active {
  cursor: grabbing;
}

.fader:focus-visible {
  outline: none;
  --ring: 0 0 0 3px #f1ece2, 0 0 0 5px var(--led-ink);
}

.fader::-webkit-slider-runnable-track {
  background: none;
}

.fader::-moz-range-track {
  background: none;
}

.fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--cap-w);
  height: var(--cap-h);
  border: 0;
  border-radius: 7px;
  background: var(--cap);
  box-shadow: var(--cap-shadow), var(--ring, 0 0 #0000);
}

.fader::-moz-range-thumb {
  width: var(--cap-w);
  height: var(--cap-h);
  border: 0;
  border-radius: 7px;
  background: var(--cap);
  box-shadow: var(--cap-shadow), var(--ring, 0 0 #0000);
}

.channel b,
.channel small {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.channel b {
  font-size: 14px;
}

.channel small {
  color: var(--etch);
  font-size: 11px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
}

/* The macOS volume and brightness HUD, as TheeJ raises it. */
.hud {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px 14px;
  border-radius: 18px;
  background: rgba(30, 29, 27, 0.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 14px 34px -8px rgba(22, 21, 20, 0.45);
  color: #f1ece2;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.hud svg {
  width: 20px;
  height: 20px;
}

.hud span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background:
    linear-gradient(#f1ece2 0 0) 0 / calc(var(--v, 0.5) * 100%) 100% no-repeat,
    rgba(255, 255, 255, 0.18);
}

.hud.live {
  position: fixed;
  z-index: 10;
  top: 72px;
  right: 16px;
  width: min(240px, calc(100vw - 24px));
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transition:
    opacity 0.2s ease-out,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.hud.live.show {
  opacity: 1;
  transform: none;
}

.story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(36px, 7vh, 72px) 0;
}

.story p {
  margin-top: 18px;
  max-width: 26em;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

/* Each scene sits on a plate of the same enamel as the mixer. */
.tray {
  container-type: inline-size;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  padding: clamp(18px, 4vw, 40px);
  border-radius: 28px;
  background: var(--enamel);
  box-shadow: var(--raised);
}

.knobs b,
.monitor b,
.cal-head b {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--panel);
  font: 500 11px var(--mono);
}

.jobs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 4cqi;
  width: 100%;
  font-size: clamp(11px, 3.2cqi, 14px);
}

/* The tray is narrowest just above the 760px breakpoint; one pixel less keeps the longest labels inside the menu. */
@container (max-width: 290px) {
  .jobs {
    font-size: 10px;
  }
}

/* Narrower still (a window just above that breakpoint, or a 320px phone), half a pixel less keeps every language's labels inside it. */
@container (max-width: 265px) {
  .jobs {
    font-size: 9.5px;
  }
}

.knobs {
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.knobs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--etch);
  white-space: nowrap;
}

.knobs .on {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(22, 21, 20, 0.12);
}

.knobs .on b,
.monitor.lit b,
.cal-head b {
  background: var(--led);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.menu {
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 0 0 0.5px rgba(22, 21, 20, 0.16),
    0 20px 40px -14px rgba(22, 21, 20, 0.42);
  line-height: 1.25;
}

.menu li {
  position: relative;
  padding: 0.3em 0.8em 0.3em 2em;
  border-radius: 6px;
  white-space: nowrap;
}

.menu .group {
  margin-top: 0.4em;
  padding-left: 0.8em;
  color: var(--etch);
  font-size: 0.8em;
  font-weight: 500;
}

.menu .group:first-child {
  margin-top: 0;
}

.menu .picked {
  background: var(--ink);
  color: var(--panel);
}

.menu .ticked svg {
  position: absolute;
  top: 50%;
  left: 0.6em;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
}

.desk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6cqi;
  width: 100%;
}

.monitor {
  display: grid;
  justify-items: center;
}

.screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 5px solid var(--ink);
  border-radius: 9px;
  background: linear-gradient(160deg, #f7dcc0, #ef9a62 50%, #a8431b);
  box-shadow: 0 18px 26px -16px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7%;
  background: rgba(255, 255, 255, 0.5);
}

.monitor::after {
  content: "";
  order: 1;
  width: 24%;
  height: 4cqi;
  background: linear-gradient(#c3bbac, #9d9587);
  clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
}

.monitor p {
  order: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--etch);
  font: 500 11px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.screen .hud {
  position: absolute;
  top: 14%;
  right: 5%;
  width: 66%;
  gap: 0.5em;
  padding: 0.6em 0.75em 0.75em;
  border-radius: 0.9em;
  font-size: clamp(8px, 2.2cqi, 12px);
}

.screen .hud svg {
  width: 1.2em;
  height: 1.2em;
}

.screen .hud i {
  height: 0.4em;
}

.cal {
  width: min(100%, 360px);
  padding: 1.3em;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 0 0 0.5px rgba(22, 21, 20, 0.14),
    0 20px 40px -16px rgba(22, 21, 20, 0.38);
  font-size: clamp(12px, 3.4cqi, 14px);
}

.cal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8em;
  font-weight: 600;
}

.cal-head span {
  margin-left: auto;
  color: var(--etch);
  font-size: 11px;
}

.steps {
  display: grid;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  padding: 0.45em 0;
  color: var(--etch);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--faint);
  font: 500 11px var(--mono);
}

.steps .done {
  color: var(--ink);
}

.steps .done::before {
  background: var(--ink);
  color: var(--panel);
  box-shadow: none;
}

.steps .now {
  color: var(--ink);
  font-weight: 500;
}

.steps .now::before {
  color: var(--led-ink);
  box-shadow:
    inset 0 0 0 1.5px var(--led),
    0 0 0 4px rgba(255, 90, 31, 0.16);
}

.steps .now span {
  color: var(--etch);
  font: 500 11px var(--mono);
}

.steps .now i {
  grid-column: 2 / -1;
  height: 4px;
  margin-top: 0.5em;
  border-radius: 2px;
  background:
    linear-gradient(var(--led) 0 0) 0 / calc(var(--v) * 100%) 100% no-repeat,
    rgba(22, 21, 20, 0.12);
}

/* A recessed strip of status lights, the one place the page is cut in rather than raised. */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 44px;
  margin-top: clamp(28px, 6vh, 56px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--plate);
  box-shadow:
    inset 0 2px 7px rgba(22, 21, 20, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.8);
}

.features li {
  position: relative;
  padding-left: 22px;
}

.features li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lit);
  box-shadow: 0 0 8px 1px rgba(255, 90, 31, 0.45);
}

.features strong {
  display: block;
  font-weight: 600;
}

.features span {
  display: block;
  color: var(--etch);
  font-size: 15px;
}

.close {
  display: grid;
  place-items: center;
  padding: clamp(64px, 12vh, 128px) 0;
}

/* The rating plate on the back of the box, screwed on at the corners. */
.rating {
  --screw: radial-gradient(circle, #8f887c 0 2px, #d6cfc1 2.5px 4.5px, rgba(22, 21, 20, 0.2) 5px, transparent 5.5px);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(100%, 520px);
  padding: 48px clamp(24px, 6vw, 52px) 44px;
  border-radius: 26px;
  background: var(--enamel);
  box-shadow: var(--raised);
  text-align: center;
}

.rating::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: var(--screw), var(--screw), var(--screw), var(--screw);
  background-size: 12px 12px;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.rating img {
  filter: drop-shadow(0 1px 1px rgba(22, 21, 20, 0.25)) drop-shadow(0 8px 16px rgba(22, 21, 20, 0.22));
}

.rating h2 {
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
}

.rating dl {
  width: 100%;
  border-top: 1px solid var(--hair);
  text-align: left;
}

.rating dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--hair);
}

.rating dt {
  color: var(--etch);
  font-size: 12px;
}

.rating dd {
  font-weight: 500;
  text-align: right;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--enamel);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  box-shadow:
    inset 0 -4px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(22, 21, 20, 0.14),
    0 12px 24px -12px rgba(22, 21, 20, 0.45);
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out;
}

.button:hover {
  transform: translateY(-1px);
}

/* Pressed back into the panel, like the old engraved status label. */
.button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 3px rgba(22, 21, 20, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.85);
}

/* The arrow sits in a lit LED. */
.button svg {
  width: 26px;
  margin-left: -12px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--lit);
  color: #fff;
  box-shadow: 0 0 10px 2px rgba(255, 90, 31, 0.5);
  animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    box-shadow: 0 0 3px 0 rgba(255, 90, 31, 0.3);
  }
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 18px 0 32px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Made by sits on the right, alone on the 404 page too. */
footer > :last-child {
  margin-left: auto;
}

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

@media (min-width: 760px) {
  .story:nth-of-type(even) .tray {
    order: 1;
  }
}

@media (max-width: 759px) {
  .hero,
  .story {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .status {
    margin-top: 26px;
  }

  .panel {
    --cap-w: 46px;
    --cap-h: 28px;
    padding: 58px 4px 22px;
    border-radius: 26px;
  }

  .fader {
    height: 200px;
  }

  .tray {
    aspect-ratio: auto;
    min-height: 300px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hud.live,
  .button {
    transition: none;
  }

  .button svg {
    animation: none;
  }
}
