/* Spectraform Studios */

/* Two typefaces, self-hosted (the CSP allows no other font source), as in the games: Lexend, made for reading fluency,
   for the text (one variable file), Atkinson Hyperlegible, made so letters and digits are told apart, for headings (2026-10-28) */
@font-face {
    font-family: "Lexend";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(/fonts/lexend-latin-wght-normal.woff2) format("woff2");
}
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }

:root {
    color-scheme: dark;
    --bg: #0d0b1a;
    --bg-2: #15122a;
    --surface: #1b1733;
    --surface-2: #221d40;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .18);
    --text: #ece9f6;
    --muted: #aaa4c6;
    --accent: #b78cff;
    --accent-strong: #cdb0ff;
    --ink: #140f26;
    --spectrum: linear-gradient(90deg, #ff4d6d, #ff8a3d, #ffd23f, #3ddc97, #3da5ff, #9b5de5);
    /* The heirloom gold from the Supreme Diversity days: only round the founder's portrait and the flagship */
    --gold: linear-gradient(140deg, #e8c170, #be772b 55%, #de9e41);
    --shadow: 0 1rem 2.5rem rgba(0, 0, 0, .35);
    --radius: 1rem;
    --wrap: 70rem;
    --font-head: "Atkinson Hyperlegible", "Lexend", system-ui, sans-serif;
    --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(60rem 40rem at 80% -10%, rgba(155, 93, 229, .22), transparent 70%),
        radial-gradient(50rem 30rem at -10% 30%, rgba(61, 165, 255, .10), transparent 70%),
        var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--font);
    letter-spacing: .005em;
}

main { flex: 1; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-family: var(--font-head); font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; height: auto; display: block; }

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

.skip { position: absolute; left: -999px; top: 1rem; z-index: 20; padding: .6rem 1rem; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 1.5rem; } }
.narrow { max-width: 48rem; }
.section { padding-block: 3.5rem; }
.section + .section { padding-top: 0; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 40rem; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }

.spectrum-text {
    background: var(--spectrum);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.panel { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel > :last-child, .heirloom > :last-child, .tile > :last-child { margin-bottom: 0; }
@media (max-width: 30rem) { .panel, .heirloom { padding: 1.5rem 1.25rem; } }

/* The heirloom frame: thin gold, the old asymmetric corners, and only on the flagship */
.heirloom {
    position: relative;
    padding: 2rem;
    border: 1.5px solid transparent;
    border-radius: 10px 40px;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gold) border-box;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(13, 11, 26, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.site-header::after { content: ""; display: block; height: 3px; background: var(--spectrum); }
.site-header .wrap { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 4rem; }

.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 2rem; height: 2rem; }
.brand span { color: var(--muted); font-weight: 500; }
.brand:hover { color: #fff; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.site-nav ul { display: flex; gap: .125rem; list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: .55rem .9rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav li a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.site-nav li a[aria-current="page"] { color: var(--text); font-weight: 600; background: rgba(255, 255, 255, .09); }
/* each item as wide as its own bold label from the start, so the current page's bold never pushes the others along
   (the hidden copy is out of sight and out of the accessibility tree) */
.site-nav li a { text-align: center; }
.site-nav li a::after { content: attr(data-label); display: block; height: 0; overflow: hidden; visibility: hidden; font-weight: 600; }

@media (min-width: 56rem) and (max-width: 67.99rem) {
    .site-nav { gap: .5rem; }
    .site-nav li a { padding: .5rem .55rem; font-size: .9rem; }
}

.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-button, .menu-scrim { display: none; }

@media (max-width: 55.99rem) {
    .menu-button {
        display: inline-flex; align-items: center; gap: .55rem; margin-left: auto;
        min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px;
        color: var(--text); font-weight: 600; font-size: .95rem; cursor: pointer; user-select: none;
    }
    .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s; }
    .menu-icon { position: relative; }
    .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
    .menu-icon::before { top: -6px; }
    .menu-icon::after { top: 6px; }
    .menu-toggle:checked + .menu-button { background: rgba(255, 255, 255, .09); }
    .menu-toggle:checked + .menu-button .menu-icon { background: transparent; }
    .menu-toggle:checked + .menu-button .menu-icon::before { transform: translateY(6px) rotate(45deg); }
    .menu-toggle:checked + .menu-button .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
    .menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--accent); outline-offset: 2px; }

    /* The pages open in a panel under the bar; the scrim behind it closes the panel on a tap outside */
    .site-nav {
        position: absolute; top: calc(100% + 3px); left: 1rem; right: 1rem; z-index: 2;
        flex-direction: column; align-items: stretch; gap: .25rem; margin: 0; padding: .75rem;
        background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
        visibility: hidden; opacity: 0; transform: translateY(-.5rem);
        transition: opacity .18s, transform .18s, visibility 0s .18s;
    }
    .site-nav ul { flex-direction: column; gap: .125rem; }
    .site-nav li a { padding: .75rem 1rem; font-size: 1rem; }
    .menu-toggle:checked ~ .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s, visibility 0s; }
    body:has(.menu-toggle:checked) .menu-scrim { display: block; position: fixed; inset: 0; z-index: 9; cursor: default; }
}

/* Hero */

.hero { padding: clamp(3rem, 8vw, 6rem) 0 3rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; } }
.hero h1 { margin-bottom: .5em; padding-bottom: .05em; }   /* the padding keeps descenders inside the gradient clip */
.hero .lead { font-size: 1.15rem; margin-bottom: 1.75rem; }

/* Beside the hero text: one picture from inside a game, a different one each day, glowing in that game's colour */
.spotlight { margin: 0; }
.spotlight img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
@supports (color: color-mix(in srgb, red, blue)) {
    .spotlight img { box-shadow: 0 0 0 1px color-mix(in srgb, var(--hue) 35%, transparent), 0 1.5rem 4.5rem -1rem color-mix(in srgb, var(--hue) 45%, transparent); }
}
.spotlight figcaption { color: var(--muted); font-size: .9rem; font-style: italic; margin-top: .75rem; }
.spotlight figcaption a { display: inline; color: var(--hue); font-style: normal; font-weight: 600; text-decoration: none; }
.spotlight figcaption a:hover { text-decoration: underline; }

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.page-head + .section { padding-top: 1rem; }
.page-head .lead { margin-bottom: 0; }
.page-head .buttons { margin-top: 1.75rem; }

/* Buttons */

.buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 2.75rem; padding: .6rem 1.35rem;
    border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
    color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.button:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .32); color: #fff; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--ink); }
.button.small { min-height: 2.4rem; padding: .4rem 1.1rem; font-size: .9rem; }
.button.big { width: 100%; min-height: 3.25rem; padding: .8rem 1.5rem; font-size: 1.05rem; }
@media (max-width: 30rem) { .buttons .button { flex: 1 1 100%; } }

/* The games as a showcase: a wide row each, the cover glowing in the game's own colour, sides alternating */

.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.showcase { display: grid; gap: clamp(3rem, 7vw, 5.5rem); margin-top: 2.5rem; }
.show { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56rem) {
    .show { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3.5rem; }
    .show:nth-child(even) .show-cover { order: 2; }
}
.show-cover { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1.5rem 3.5rem -1rem rgba(0, 0, 0, .6); transition: transform .25s, box-shadow .25s; }
@supports (color: color-mix(in srgb, red, blue)) {
    .show-cover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--hue) 30%, transparent), 0 1.5rem 4rem -1rem color-mix(in srgb, var(--hue) 40%, transparent); }
    .show-cover:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--hue) 60%, transparent), 0 1.75rem 4.5rem -.75rem color-mix(in srgb, var(--hue) 60%, transparent); }
}
.show-cover:hover { transform: translateY(-4px); }
.show-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.show-text { border-left: 3px solid var(--hue); padding-left: 1.25rem; }
.show .eyebrow { color: var(--hue); }
.show h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-bottom: .15rem; }
.show h3 a { color: var(--text); text-decoration: none; }
.show h3 a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--hue); }
.show .tagline { color: var(--muted); font-style: italic; font-size: 1.1rem; margin-bottom: .9rem; }
.show p { color: var(--muted); max-width: 32rem; }
.show .chips { margin-top: 1rem; }
.show .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: .78rem; font-weight: 500; padding: .2rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); }

/* Work in progress (the Experimental page and its apps): said in words every time, with an amber dashed edge as the
   look; the amber is kept for this alone */
:root { --wip: #ffcf5c; }
.wip-label { display: inline-block; margin: 0 0 .75rem; padding: .2rem .7rem; border: 1px dashed var(--wip); border-radius: 999px; color: var(--wip); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wip-notice { position: relative; margin: 0 0 1rem; padding: 1.5rem 1.5rem 1.25rem; border: 1px dashed rgba(255, 207, 92, .55); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.wip-notice::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: repeating-linear-gradient(-45deg, var(--wip) 0 10px, transparent 10px 20px); opacity: .8; }
.wip-notice h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: .5rem; }
.wip-notice p:not(.wip-label) { color: var(--muted); max-width: 44rem; }
.wip-notice > :last-child { margin-bottom: 0; }
.game-hero .wip-notice { margin: 0 0 1.5rem; padding: 1.1rem 1.25rem 1rem; max-width: 30rem; }
.game-hero .wip-notice .wip-label { margin-bottom: .5rem; }
.wip-panel { border-style: dashed; border-color: rgba(255, 207, 92, .55); }
.show.wip .show-text { border-left-style: dashed; }
.show .wip-label { color: var(--wip); max-width: none; }
@media (max-width: 30rem) { .wip-tag { bottom: .6rem; left: .6rem; padding: .2rem .6rem; font-size: .65rem; } }
.show-cover { position: relative; }
.wip-tag { position: absolute; bottom: .9rem; left: .9rem; padding: .3rem .8rem; border: 1px dashed var(--wip); border-radius: 999px; background: rgba(13, 11, 26, .88); color: var(--wip); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.badge { display: inline-block; margin-bottom: 1rem; padding: .25rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; }

/* Principles: what "designed for every player" means */

.grid.principles { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 1.5rem; }
.tile { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tile h3 { display: flex; align-items: center; gap: .6rem; }
.tile h3::before { content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--hue, var(--accent)); box-shadow: 0 0 .75rem var(--hue, var(--accent)); }
.tile p { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* The flagship */

.flagship h2 { margin-bottom: .25rem; }
.flagship h2 a { color: var(--text); text-decoration: none; }
.flagship h2 a:hover { color: #fff; }
.flagship .meta { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.flagship .button { margin-top: .5rem; }

/* The founder */

.founder { display: grid; gap: 1.5rem; align-items: center; max-width: 46rem; margin: 0 auto; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 36rem) { .founder { grid-template-columns: 8rem 1fr; gap: 2rem; } }
.avatar { width: 8rem; height: 8rem; border-radius: 50%; object-fit: cover; border: 3px solid transparent; background: var(--gold) border-box; }
.founder .role { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.founder h2 { margin-bottom: .5rem; }
.founder p { color: var(--muted); }
.founder .button { margin-top: .25rem; }

/* A game's own page, in the game's own colour (--hue on .game): the cover and the way in first, then the facts at a
   glance, the story, the pictures side by side, what it does for inclusion, and the way on */

.game-hero { position: relative; isolation: isolate; padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.game-hero::before { content: ""; position: absolute; inset: -4rem 0 -2rem; z-index: -1; pointer-events: none; background: radial-gradient(60% 70% at 75% 40%, rgba(155, 93, 229, .18), transparent 70%); }
.game-hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .game-hero:not(.no-cover) .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3.5rem; } }
.game-hero .eyebrow { color: var(--hue); }
.game-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); margin-bottom: .2em; }
.game-hero .tagline { color: var(--muted); font-style: italic; font-size: 1.2rem; margin-bottom: 1.75rem; }
.game-hero .button.big { width: auto; padding-inline: 2rem; }
.game-hero .hint { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }
.game-hero .badge { margin: 0; }
.game-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
@supports (color: color-mix(in srgb, red, blue)) {
    .game-hero::before { background: radial-gradient(60% 70% at 75% 40%, color-mix(in srgb, var(--hue) 20%, transparent), transparent 70%); }
    .game-cover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--hue) 35%, transparent), 0 1.5rem 4.5rem -1rem color-mix(in srgb, var(--hue) 45%, transparent); }
}

.game-hero + .section { padding-top: 2rem; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; margin: 0; }
.glance div { padding: 1rem 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--hue); border-radius: .75rem; background: var(--surface); }
.glance dt { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.glance dd { margin: 0; font-size: .95rem; }
/* On a phone the tiles would stack into a tall column: there it is one compact panel, a line per fact (user, 2026-10-29) */
@media (max-width: 36rem) {
    .glance { display: block; padding: .35rem 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--hue); border-radius: .75rem; background: var(--surface); }
    .glance div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; padding: .8rem 0; border: 0; border-radius: 0; background: none; }
    .glance div + div { border-top: 1px solid var(--line); }
    .glance dt { margin: 0; font-size: .7rem; }
}

.story p { max-width: 40rem; }
.story p:first-of-type { font-size: 1.15rem; }
.story .uses { max-width: 40rem; padding-left: 1.25rem; margin: 0 0 1.25rem; }
.story .uses li { color: var(--muted); margin-bottom: .6rem; }
.story .uses li::marker { color: var(--accent); }
.story .uses strong { color: var(--text); }

/* The pictures side by side at the same height: each grows by its own width-to-height ratio */
.gallery { display: flex; flex-wrap: wrap; gap: 2rem 1.5rem; align-items: flex-start; }
.shot { margin: 0; flex: var(--ratio) 1 0; min-width: 0; }
.shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot figcaption { color: var(--muted); font-size: .9rem; font-style: italic; margin-top: .75rem; max-width: 36rem; }
@media (max-width: 44rem) {
    .shot { flex-basis: 100%; }
    .shot.portrait { max-width: 20rem; margin-inline: auto; }   /* a phone screenshot: phone-sized, not the full width */
}

.access-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .6rem 2rem; }
.access-list li { position: relative; padding-left: 1.6rem; color: var(--text); font-size: .95rem; }
.access-list li::before { content: ""; position: absolute; left: .15rem; top: .3em; width: .4rem; height: .75rem; border: solid var(--hue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.access .access-note { margin-top: 1.5rem; }

.game-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.game-nav { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.game-nav a { font-weight: 600; text-decoration: none; }
.game-nav a:hover { text-decoration: underline; }
.game-nav a[style] { color: var(--hue); }

/* The studio page: the team as wide cards, the portrait beside the text (above it on phones), and the games as a
   strip of covers */
.team { display: grid; gap: 1.25rem; max-width: 54rem; }
.person { margin: 0; display: grid; justify-items: center; gap: 1.25rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 40rem) { .person { grid-template-columns: 9rem minmax(0, 1fr); align-items: start; justify-items: start; gap: 2rem; } }
@media (max-width: 30rem) { .person { padding: 1.5rem 1.25rem; } }
.person .avatar { width: 9rem; height: 9rem; }
.person .role { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.person h3 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem); margin-bottom: .5rem; }
.person p { color: var(--muted); max-width: 40rem; }
.person a { font-weight: 600; text-decoration: none; }
.person a:hover { text-decoration: underline; }
/* How we make the games (/making): the page's own index, a row of pills under the lead; the parts land clear of the header */
.page-index ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.page-index a { display: inline-block; padding: .4rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: .9rem; font-weight: 600; text-decoration: none; }
.page-index a:hover { background: rgba(255, 255, 255, .06); }
.section[id] { scroll-margin-top: 5.5rem; }

/* Together's weather, live: the game's skies (its four gradients by the time of day) and ground (its season colours,
   the thaw without its patches) as the backdrop, up to the game's horizon (--land, from weather.js); the canvas over both */
.weather-demo { max-width: 54rem; margin: 1.5rem 0 1rem; }
.weather-demo[hidden] { display: none; }
.weather-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #040817; }
@media (max-width: 40rem) { .weather-stage { aspect-ratio: 4 / 3; } }
.weather-stage > * { position: absolute; }
.weather-stage .sky { inset: 0; transition: background 1.2s; }
.weather-stage .ground { left: 0; right: 0; bottom: 0; height: var(--land, 26%); }
.weather-stage canvas { inset: 0; width: 100%; height: 100%; }
.weather-stage[data-sky="dag"] .sky { background: linear-gradient(#5f8fbd, #9dbbd6 55%, #cfd8d9); }
.weather-stage[data-sky="gryning"] .sky { background: linear-gradient(#1f2b55, #5c5a8c 38%, #e59a6e 72%, #f6d39a); }
.weather-stage[data-sky="skymning"] .sky { background: linear-gradient(#0c1024 0%, #1d2350 38%, #4a3a68 62%, #b8665a 82%, #eaa86e 100%); }
.weather-stage[data-sky="natt"] .sky { background: linear-gradient(#040817, #0c1532 55%, #18264a); }
.weather-stage[data-ground="vinter"] .ground { background: linear-gradient(#e3e9f0 0%, #c9d2de 30%, #a7b1c2 70%, #8a93a8 100%); }
.weather-stage[data-ground="to"] .ground { background: linear-gradient(#6c6878 0%, #4d4a5c 30%, #33323f 100%); }
.weather-stage[data-ground="var"] .ground { background: linear-gradient(#4f5a48 0%, #3a4436 15%, #2a3027 55%, #171b16 100%); }
.weather-stage[data-sky="natt"] .ground, .weather-stage[data-sky="skymning"] .ground { filter: brightness(.6); }
.weather-controls { display: grid; gap: .85rem; margin-top: 1.1rem; }
.choose { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.choose-label { min-width: 6.5rem; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.choose button:not(.button) { min-height: 2.4rem; padding: .35rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.choose button:not(.button):hover { background: rgba(255, 255, 255, .06); }
.choose button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.choose input[type="range"] { width: 11rem; accent-color: var(--accent); }
.choose output { min-width: 8.5rem; font-variant-numeric: tabular-nums; }

/* Mattemums' chime: the notes light as they sound, on the code's own timing (chime.js) */
.chime-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin: 1.5rem 0 1.25rem; }
.chime-demo[hidden] { display: none; }
.notes { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.notes li { min-width: 3.6rem; padding: .45rem .6rem; border: 1px solid var(--line-strong); border-radius: .75rem; font: 700 1.25rem/1.2 var(--font-head); text-align: center; transition: background .12s, color .12s, transform .12s; }
.notes small { display: block; color: var(--muted); font: 400 .7rem/1.3 var(--font); }
.notes li.on { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-4px); }
.notes li.on small { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .notes li { transition: none; } .notes li.on { transform: none; } }
.walk + .button, .walk ~ .button { margin-top: .25rem; }

/* The torch on the studio page: the live flame on the dark of a tomb beside its buttons (above them on phones), and its
   code under it; code in the device's own monospace, the one place the site leaves its two typefaces, for the code's
   columns */
.torch-demo { display: grid; justify-items: center; gap: 1.5rem; max-width: 54rem; margin: 1.5rem 0 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #07050d; }
.torch-demo[hidden] { display: none; }
@media (min-width: 40rem) { .torch-demo { grid-template-columns: 12rem minmax(0, 1fr); justify-items: start; align-items: center; gap: 2rem; } }
.torch-demo canvas { width: 12rem; height: 15rem; image-rendering: crisp-edges; image-rendering: pixelated; }   /* 32 × 40 cells drawn six times larger: sharp squares, as in the game, not a blur */
.torch-controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.torch-controls p { flex-basis: 100%; margin: .25rem 0 0; }
.track-demo { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin: 1.5rem 0 1rem; }
.track-demo[hidden] { display: none; }
.track-time { font-variant-numeric: tabular-nums; }
/* the walkthrough: a numbered step each, its words, then the few lines that do it */
.walk { max-width: 54rem; margin: 1.5rem 0; padding: 0; list-style: none; counter-reset: walk; display: grid; gap: 1.75rem; }
.walk > li { counter-increment: walk; }
.walk h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.walk h3::before { content: counter(walk) ". "; color: var(--accent); }
.walk p { max-width: 40rem; color: var(--muted); }
.walk p code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); white-space: nowrap; }
/* code, line by line (codeview.php): a long line wraps under its own start instead of scrolling sideways; comments dimmed */
.codeview { margin: 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); font: .8rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); }
.codeview code { display: block; }
.codeview .ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: calc(var(--c) + 2ch); text-indent: -2ch; }
.codeview .cm { color: var(--muted); font-style: italic; }
/* A colleague's portrait has a plain ring: the gold is the founder's */
.avatar.colleague { background: var(--surface-2); border-color: var(--line-strong); }
.avatar.initials { display: grid; place-items: center; font: 700 2.5rem/1 var(--font-head); color: var(--text); letter-spacing: .02em; }
.game-strip { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; }
.game-strip a { display: block; color: var(--text); font-weight: 600; text-decoration: none; }
.game-strip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .75rem; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: .6rem; transition: transform .2s; }
.game-strip a:hover img { transform: translateY(-3px); }
.game-strip a:hover span { text-decoration: underline; text-decoration-color: var(--hue); }
@supports (color: color-mix(in srgb, red, blue)) {
    .game-strip img { box-shadow: 0 0 0 1px color-mix(in srgb, var(--hue) 30%, transparent), 0 1rem 2.5rem -1rem color-mix(in srgb, var(--hue) 45%, transparent); }
}

/* The library at /play: every game down the side, the chosen one beside it with its Play button (Steam's library,
   much simplified). On a phone the list and the game are pages of their own. */
.library { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) {
    .library { grid-template-columns: 16rem minmax(0, 1fr); gap: 2rem; align-items: start; }
    .lib-list { position: sticky; top: 5.5rem; }
    .lib-back { display: none; }
}
@media (max-width: 55.99rem) {
    .library:not(.chosen) .lib-game { display: none; }
    .library.chosen .lib-list { display: none; }
}
.lib-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem .6rem; }
.lib-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.lib-list a { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-radius: .6rem; border-left: 3px solid transparent; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.lib-list a:hover { background: rgba(255, 255, 255, .06); }
.lib-list a[aria-current] { background: rgba(255, 255, 255, .09); border-left-color: var(--hue); }
/* /play alone shows the first game beside the list on a wide screen, so mark it there; on a phone /play is only the list, and nothing is chosen yet */
@media (min-width: 56rem) { .lib-list a.shown { background: rgba(255, 255, 255, .09); border-left-color: var(--hue); } }
.lib-list img { flex: none; width: 2.5rem; height: 2.5rem; border-radius: .5rem; }
.lib-list small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; margin-top: .1rem; }
.lib-back { margin: 0 0 1rem; }
.lib-back a { font-weight: 600; text-decoration: none; }
.lib-banner { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; }
.lib-banner img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lib-banner.no-cover { display: grid; place-items: center; aspect-ratio: 16 / 7; background: radial-gradient(60% 90% at 50% 50%, rgba(255, 255, 255, .08), transparent 70%), var(--surface); }
.lib-banner .lib-banner-icon { width: 6rem; height: 6rem; aspect-ratio: auto; border-radius: 1.25rem; box-shadow: var(--shadow); }
.lib-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.lib-bar .button.big { width: auto; padding-inline: 2rem; }
.lib-bar dl { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; }
.lib-bar dt { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lib-bar dd { margin: 0; font-size: .9rem; }
.lib-body { display: grid; gap: 1.5rem 2.5rem; margin-top: 2rem; }
@media (min-width: 72rem) { .lib-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.lib-body .eyebrow { color: var(--hue); }
.lib-body h2 { margin-bottom: .15rem; }
.lib-body .tagline { color: var(--muted); font-style: italic; font-size: 1.1rem; }
.lib-body h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.lib-body .access-list { margin-top: 0; grid-template-columns: 1fr; }
@supports (color: color-mix(in srgb, red, blue)) {
    .lib-banner.no-cover { background: radial-gradient(60% 90% at 50% 50%, color-mix(in srgb, var(--hue) 28%, transparent), transparent 75%), var(--surface); }
}

/* The press kit: the texts, then each game with its pictures to download */
.press-text { margin-top: 2rem; }
.press-text h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 1.5rem 0 .4rem; }
.press-game .eyebrow { color: var(--hue); }
.press-game h2 { margin-bottom: .15rem; }
.press-game .tagline { color: var(--muted); font-style: italic; font-size: 1.1rem; }
.press-blurb { max-width: 40rem; }
.press-meta { color: var(--muted); font-size: .9rem; }
.press-files { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1.25rem; align-items: end; }
.press-files li { display: grid; gap: .5rem; font-size: .9rem; }
.press-files img { width: 100%; height: 9rem; object-fit: contain; border-radius: .75rem; border: 1px solid var(--line); background: var(--surface); }
.press-files.logos img { padding: 1.25rem; }
.press-files .on-light img { background: #f6f4fb; }

.contact-address { font-size: clamp(1.15rem, 1rem + 1vw, 1.5rem); font-weight: 600; overflow-wrap: anywhere; }

/* Footer */

.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 62rem) { .site-footer .wrap { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 24rem; }
.site-footer h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; margin: 0; }

/* Entrance: .reveal fades in as it scrolls into view (reveal.js adds "js" to <html> and "in" to each element) */

.reveal { transition: opacity .5s ease, transform .5s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(12px); }
.grid > .reveal:nth-child(2) { transition-delay: .06s; }
.grid > .reveal:nth-child(3) { transition-delay: .12s; }
.grid > .reveal:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .show-cover, .game-strip img, .button, .menu-icon, .menu-icon::before, .menu-icon::after, .site-nav { transition: none !important; }
    .js .reveal:not(.in) { opacity: 1; transform: none; }
}

/* the line over the principles: where the settings live */
.principles-note { color: var(--muted); max-width: 40rem; margin: 0 0 1.5rem; }
/* under a game's accessibility list: where to tell us when something does not work */
.access-note { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }
