/* PolyConsole site styles.
 *
 * The idea: the page is a CRT in a dark room. The ground is black with
 * faint scanlines, the chrome is neutral grey and off-white, and the
 * games bring the color. Red lives in the logo's balltops and almost
 * nowhere else.
 *
 * Identity
 *   Ground   black with scanlines, stepped up in lightness for surfaces
 *   Ink      off-white, with 72% / 52% tiers for body and muted text
 *   Accent   none in the chrome; buttons and focus are off-white
 *   Type     Unbounded (display + labels): wide, round, heavy, like the
 *            badge lettering on console hardware; it echoes the rounded
 *            wordmark. Figtree (body): friendly, open, big x-height.
 *            Both self hosted from static/assets/fonts (SIL OFL 1.1).
 *
 * Sizes come from one 1.333 scale; spacing sits on an 8px grid. */

@font-face {
    font-family: "Unbounded";
    src: url("/static/assets/fonts/unbounded-latin.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/static/assets/fonts/figtree-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;

    /* ground and surfaces: black, then neutral lightness steps */
    --ground: #000;
    --ground-sunk: #000;
    --raise-1: #0e0e0f;
    --raise-2: #161617;
    --raise-3: #222224;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --scanline: rgba(255, 255, 255, 0.035);

    /* ink tiers */
    --ink: #ececec;
    --ink-2: rgba(236, 236, 236, 0.72);
    --ink-3: rgba(236, 236, 236, 0.52);

    /* the brand red, kept for the logo's balltops */
    --red: #ff4a56;

    /* status only, always paired with a label */
    --ok: #9ccfa9;
    --warn: #f0c46c;

    --font-display: "Unbounded", "Figtree", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* 1.333 scale from an 18px body */
    --step--2: 0.75rem;
    --step--1: 0.875rem;
    --step-0: 1.125rem;
    --step-1: 1.5rem;
    --step-2: 2rem;
    --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
    --step-4: clamp(2.625rem, 1.5rem + 5.4vw, 6rem);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;

    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
}

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

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

body.site-body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--ink-2);
    background-color: var(--ground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* The ground: black glass with faint scanlines, fixed behind everything
   like the face of a tube. It sits under the content, so text stays
   crisp, and sections stay transparent so the lines run unbroken. */
body.site-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.6)),
        repeating-linear-gradient(180deg, var(--scanline) 0 1px, transparent 1px 4px);
}

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

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

/* Links in running text: full ink over a muted line set clear of the
 * descenders, which firms to ink on hover. No accent, like the rest of
 * the chrome. Nav, footer and button links set their own look. */
a {
    color: var(--ink);
    text-decoration-line: underline;
    text-decoration-color: var(--ink-3);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
    transition: text-decoration-color 160ms var(--ease-out);
}

a:hover {
    text-decoration-color: var(--ink);
    text-decoration-thickness: 2px;
}

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

button {
    font: inherit;
    color: inherit;
}

[hidden] {
    display: none !important;
}

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

::selection {
    background: rgba(255, 255, 255, 0.25);
    color: var(--ink);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    top: -200px;
    left: 16px;
    z-index: 200;
    background: var(--raise-3);
    color: var(--ink);
    padding: 12px 16px;
    border-radius: var(--r-md);
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 16px;
}

/* ---- type primitives ---- */

.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: var(--step--2);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 24px;
}

/* the short red rule from the brand banner, used as a section marker */
.kicker-rule {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--ink-3);
    flex: none;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--ink);
    text-wrap: balance;
}

.section-lead {
    font-size: 1.25rem;
    line-height: 1.55;
    max-width: 36em;
    text-wrap: pretty;
}

.fine {
    font-size: var(--step--1);
    color: var(--ink-3);
    max-width: 60em;
}

/* ---- header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--ground) 82%, transparent);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex: none;
}

.brand-wordmark {
    height: 30px;
    width: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink-2);
    transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

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

.nav-status {
    border: 1px solid var(--line-strong);
    margin-left: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warn);
    flex: none;
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out),
        transform 160ms var(--ease-out);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--ink);
    color: var(--ground);
}

.btn-primary:hover {
    background: #fff;
}

.btn-quiet {
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-quiet:hover {
    background: var(--raise-2);
}

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

.hero {
    padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 112px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--step-4);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.hero-title-accent {
    color: var(--ink-3);
}

.hero-aside {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
    margin-top: 32px;
}

.hero-lead {
    font-size: 1.25rem;
    line-height: 1.55;
    max-width: 34em;
    text-wrap: pretty;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- the TV ---- */

/* PolyConsole itself (static/app, in its own frame) in a plain black
   bezel. The stage is 16:9 on a #08090e ground; the poster sits under the
   frame and fades out once PolyConsole is up. */

.tv-figure {
    margin-top: clamp(40px, 6vw, 72px);
}

.tv {
    padding: clamp(6px, 1vw, 12px);
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, #1a1a1b, #0b0b0c);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 48px 96px -48px rgba(0, 0, 0, 0.9);
}

.tv-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--r-xl) - 10px);
    overflow: hidden;
    background: #08090e;
    isolation: isolate;
}

.tv-poster,
.tv-slot,
.tv-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tv-poster {
    object-fit: cover;
    transition: opacity 400ms var(--ease-out);
}

.tv-frame {
    display: block;
    border: 0;
    opacity: 0;
    transition: opacity 400ms var(--ease-out);
}

.tv-stage.is-live .tv-frame {
    opacity: 1;
}

.tv-stage.is-live .tv-poster {
    opacity: 0;
}

.tv-run {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 2;
}

.tv-caption {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.tv-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--raise-1);
    color: var(--ink);
    cursor: pointer;
    transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.chip-btn {
    padding: 0 16px;
    font-size: var(--step--1);
    font-weight: 600;
}

.chip-btn:hover {
    background: var(--raise-2);
}

.tv-readout {
    min-height: 1.6em;
    font-weight: 600;
    color: var(--ink);
}

.tv-readout:empty {
    display: none;
}

.tv-note {
    font-size: var(--step--1);
    color: var(--ink-3);
    max-width: 52em;
}

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

.section {
    padding-block: clamp(72px, 10vw, 128px);
    scroll-margin-top: 64px;
}

.section-head {
    margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .section-lead {
    margin-top: 24px;
}

.section-head-split {
    display: grid;
    gap: 24px 64px;
    align-items: end;
}

.section-head-split .section-lead {
    margin-top: 0;
}

@media (min-width: 960px) {
    .section-head-split {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
}

/* ---- how it works ---- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px 40px;
}

.step {
    position: relative;
    padding-top: 32px;
    border-top: 1px solid var(--line-strong);
}

.step::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: var(--ink);
}

.step-num {
    display: block;
    font-family: var(--font-display);
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    margin-bottom: 16px;
}

.step-title {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 16px;
}

/* ---- features ---- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 24px;
}

.feature {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--raise-1);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.feature-visual {
    display: grid;
    place-items: center;
    height: 200px;
    background: var(--ground-sunk);
    border-bottom: 1px solid var(--line);
}

.feature-copy {
    padding: 32px;
}

.feature-tag {
    font-family: var(--font-display);
    font-size: var(--step--2);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 12px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 12px;
}

.feature-body {
    max-width: 34em;
}

/* resume: a timeline with Jump Back snapshots and the playhead */
.viz-resume {
    width: min(80%, 340px);
}

.viz-track {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--raise-3) 0 88%, transparent 88%);
}

.viz-track::before {
    content: "";
    position: absolute;
    inset: 0 12% 0 0;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.4));
}

.viz-snap {
    position: absolute;
    left: 18%;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    background: var(--raise-3);
    box-shadow: 0 0 0 2px var(--ground-sunk);
}

/* Placed here, not in style attributes: the CSP allows no inline style. */
.viz-snap:nth-child(2) {
    left: 46%;
}

.viz-snap:nth-child(3) {
    left: 71%;
}

.viz-head {
    position: absolute;
    left: 88%;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--ink);
    box-shadow: 0 0 0 4px var(--ground-sunk);
}

.viz-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* controller */
.viz-pad {
    width: min(70%, 240px);
}

.pad-body {
    fill: var(--raise-2);
    stroke: var(--line-strong);
    stroke-width: 1.5;
}

.pad-dpad {
    stroke: var(--ink-3);
    stroke-width: 9;
    stroke-linecap: round;
    fill: none;
}

.pad-face {
    fill: var(--raise-3);
}

.pad-face.is-lit {
    fill: var(--ink);
}

.pad-stick {
    fill: var(--ground-sunk);
    stroke: var(--line-strong);
    stroke-width: 1.5;
}

/* CRT: a tiny screen with scanlines and a pixel heart */
.viz-crt {
    width: 200px;
    aspect-ratio: 4 / 3;
    padding: 10px;
    border-radius: 18px;
    background: var(--raise-2);
}

.viz-crt-screen {
    position: relative;
    height: 100%;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: radial-gradient(90% 80% at 50% 45%, #232326, #050505);
    overflow: hidden;
}

.viz-crt-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px),
        radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55));
}

.viz-crt-sprite {
    width: 6px;
    height: 6px;
    /* the heart spans 42 by 36; shift its top-left pixel so it centres */
    transform: translate(-18px, -15px);
    color: var(--ink);
    /* a 7 by 6 pixel heart, drawn with shadows */
    box-shadow:
        6px 0, 12px 0, 24px 0, 30px 0,
        0 6px, 6px 6px, 12px 6px, 18px 6px, 24px 6px, 30px 6px, 36px 6px,
        0 12px, 6px 12px, 12px 12px, 18px 12px, 24px 12px, 30px 12px, 36px 12px,
        6px 18px, 12px 18px, 18px 18px, 24px 18px, 30px 18px,
        12px 24px, 18px 24px, 24px 24px,
        18px 30px;
}

/* parental PIN */
.viz-lock {
    display: flex;
    gap: 16px;
    padding: 24px 32px;
    border-radius: 999px;
    background: var(--raise-2);
}

.viz-pin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--ink-3);
}

.viz-pin.is-set {
    background: var(--ink);
    box-shadow: none;
}

/* ---- systems ---- */

.section-systems {
    background: rgba(255, 255, 255, 0.015);
    border-block: 1px solid var(--line);
}

.section-lead .count {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    color: var(--ink-3);
}

.systems {
    columns: 4 220px;
    column-gap: 40px;
    margin-bottom: 48px;
}

.system-group {
    break-inside: avoid;
    padding-bottom: 32px;
}

.system-maker {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line-strong);
    font-family: var(--font-display);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.system-maker span {
    font-size: var(--step--2);
    font-weight: 500;
    color: var(--ink-3);
}

.system-list li {
    font-size: 1rem;
    line-height: 1.85;
}

/* ---- play together ---- */

.together {
    display: grid;
    gap: 56px 72px;
    align-items: center;
}

@media (min-width: 960px) {
    .together {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }
}

.together-copy .section-lead {
    margin-top: 24px;
}

.together-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px 40px;
    margin-top: 48px;
}

.together-list h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.together-list p {
    font-size: 1rem;
    line-height: 1.55;
}

.lobby {
    background: var(--raise-1);
    border-radius: var(--r-lg);
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.9);
}

.lobby-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.lobby-room,
.lobby-sys {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.lobby-game {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
}

.lobby-sys {
    margin-left: auto;
}

.lobby-seats {
    display: grid;
    gap: 8px;
    margin-block: 16px;
}

.seat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: var(--r-md);
    background: var(--raise-2);
}

.seat.is-you {
    box-shadow: inset 0 0 0 2px var(--ink);
}

.seat-p {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--raise-3);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ink);
}

.seat.is-you .seat-p {
    background: var(--ink);
    color: var(--ground);
}

.seat-name {
    font-weight: 700;
    color: var(--ink);
}

.seat-dev {
    margin-left: auto;
    font-size: var(--step--1);
    color: var(--ink-3);
}

.lobby-chat {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: var(--r-md);
    background: var(--ground-sunk);
    font-size: 0.9375rem;
}

.lobby-chat b {
    color: var(--ink);
    margin-right: 8px;
}

.lobby-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.proof {
    margin-top: clamp(56px, 7vw, 88px);
    padding-top: 32px;
    border-top: 1px solid var(--line-strong);
    font-size: 1.25rem;
    line-height: 1.55;
    max-width: 52em;
}

.proof b {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    margin-right: 8px;
}

/* ---- where it runs ---- */

.section-status {
    background: rgba(255, 255, 255, 0.03);
    border-block: 1px solid var(--line);
}

.status {
    display: grid;
    gap: 48px 72px;
    align-items: start;
}

@media (min-width: 960px) {
    .status {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }
}

.status-copy .section-lead {
    margin-top: 24px;
}

.platforms {
    border-top: 1px solid var(--line-strong);
}

.platform {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 24px;
    padding-block: 20px;
    border-bottom: 1px solid var(--line-strong);
}

.platform-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
}

.platform-note {
    grid-column: 1;
    font-size: 1rem;
}

.platform-state {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--step--1);
    font-weight: 600;
    white-space: nowrap;
    color: var(--ink);
}

.platform-state::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
}

.platform.is-nearly .platform-state::before {
    background: var(--warn);
}

.platform.is-later .platform-state {
    color: var(--ink-3);
}

.platform.is-later .platform-state::before {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--ink-3);
}

/* ---- what's next ---- */

.soon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.soon-item {
    padding-top: 24px;
    border-top: 1px dashed var(--line-strong);
}

.soon-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
}

.soon-body {
    font-size: 1rem;
    line-height: 1.55;
}

/* ---- faq ---- */

.faq-wrap {
    max-width: calc(880px + var(--gutter) * 2);
}

.faq {
    border-top: 1px solid var(--line-strong);
}

.faq-item {
    border-bottom: 1px solid var(--line-strong);
}

.faq-h {
    font-size: inherit;
    font-weight: inherit;
}

/* Each question is a <details>: it opens with no script at all, and the
   answer is in the page for readers and crawlers alike. */
.faq-q {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1875rem;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q:hover {
    color: #fff;
}

/* a plus that turns into a minus */
.faq-icon {
    position: relative;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--raise-1);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    border-radius: 1px;
    background: var(--ink-2);
    transform: translate(-50%, -50%);
    transition: transform 200ms var(--ease-out);
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
    max-width: 44em;
    padding-bottom: 24px;
}

.faq-item[open] .faq-a {
    animation: fade-in 240ms var(--ease-out);
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

/* ---- 404 ---- */

.lost-inner {
    display: grid;
    justify-items: start;
    gap: 24px;
    min-height: 50vh;
    align-content: center;
}

.lost-title {
    font-size: var(--step-4);
    letter-spacing: -0.04em;
}

/* ---- notices ---- */

.notices-inner {
    display: grid;
    gap: 32px;
}

.notices-how {
    max-width: 52em;
    display: grid;
    gap: 16px;
}

.notices-files {
    display: grid;
    gap: 8px;
    padding-left: 1.25em;
    list-style: disc;
}

/* The table scrolls sideways on a phone; the page never does. */
.notices-table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--line-strong);
}

.notices-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 1rem;
}

.notices-table th,
.notices-table td {
    padding: 14px 16px 14px 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.notices-table thead th {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.notices-table tbody th {
    font-weight: 700;
    color: var(--ink);
}

.notices-note {
    display: block;
    margin-top: 4px;
    font-size: var(--step--1);
    color: var(--ink-3);
}

/* The source column's archive link, kept to one line. */
.notices-table td:last-child .notices-note {
    white-space: nowrap;
}

.notices-table code {
    font-size: var(--step--1);
}

.notices-sub {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
}

.notices-components {
    display: grid;
    gap: 8px;
    max-width: 52em;
}

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

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 56px calc(56px + env(safe-area-inset-bottom, 0px));
}

.site-footer-inner {
    display: grid;
    gap: 32px 48px;
    align-items: start;
}

@media (min-width: 800px) {
    .site-footer-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-mark {
    flex: none;
    color: var(--ink);
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.footer-tagline span {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--ink-3);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

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

.footer-fine {
    grid-column: 1 / -1;
    font-size: var(--step--1);
    color: var(--ink-3);
    max-width: 52em;
}

/* ---- narrow screens ---- */

@media (max-width: 960px) {
    .site-nav li:not(:last-child) {
        display: none;
    }

    .nav-status {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .brand-wordmark {
        height: 26px;
    }

    .tv-run {
        bottom: 12px;
    }

    .feature-visual {
        height: 168px;
    }

    .feature-copy {
        padding: 24px;
    }

    .lobby {
        padding: 16px;
    }
}

@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;
    }
}
