/* © 2026 William C. Chesher. All Rights Reserved.
   pages - the skin the pages around the studio wear: the landing (/), Spawn Point (/point and
   /point/<id>) and the brand page (/brand/).

   The studio has its own skin (spawn.css); these pages are quieter and wider, so they share this
   one instead. Every colour comes from /tokens.css, which every page links before this file: no
   rule below names a colour of its own. A see-through shade of a token is color-mix() of the
   token, so the token stays the one place the colour lives.

   The house rules (the 2026-10-10 handoff): hover changes fills and borders, never opacity; a
   press scales to .985; focus is a 2px lime outline 2px out; anything that appears spawns in over
   four hard steps in 160ms; under reduced motion it simply appears (tokens.css). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }       /* the attribute wins over any display a class sets */
html, body { margin: 0; color: var(--ink); -webkit-text-size-adjust: 100%; }
html { background: var(--surface); }   /* the body stays clear so the void's light (tokens.css, body::before) shows through */
body { font: 16px/1.5 var(--body); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, kbd, .mono { font-family: var(--mono); }
.sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.lime { color: var(--accent); }
.sky { color: var(--p2); }
.spawn { animation: spawn-in var(--step) both; }
.grow { flex: 1 1 auto; }

/* ---- the lockup: the mark, the wordmark, and the place it is ---- */
.lockup { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--ink); }
.lockup:hover { color: var(--ink); }
.mark { flex: none; display: block; width: 32px; height: 32px; }
.mark .frame { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: square; }
.mark .p1 { fill: var(--accent); }
.mark .p2 { fill: var(--p2); }
.mark .in { animation: spawn-in var(--step) 120ms both; }
.wordmark { font: 800 26px/.9 var(--display); letter-spacing: -.055em; display: flex; align-items: baseline; color: var(--ink); }
/* the spawn block: the point a thing appears at */
.wordmark .pt { display: inline-block; flex: none; width: .17em; height: .17em; margin-left: .05em; background: var(--accent); }
.lock-label { font: 400 12px var(--pixel); color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }

/* ---- the pixel label: eyebrows and step numbers, never a sentence ---- */
.eyebrow { margin: 0 0 14px; font: 400 12px/1.4 var(--pixel); color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow .sq { flex: none; width: 8px; height: 8px; background: var(--accent); }
.eyebrow .sq.two { width: 9px; height: 9px; background: var(--p2); }
.eyebrow .n { color: var(--accent); }
.eyebrow.sky { color: var(--p2); }
.label { margin: 0 0 8px; font: 400 11px/1.4 var(--pixel); color: var(--muted); }

/* ---- buttons: primary lime (one a screen), plain, outline, quiet, and the one that deletes; heights from tokens.css ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none; min-height: var(--btn-h); padding: 0 var(--btn-pad);
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  font: 600 15px/1.2 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.btn:hover { border-color: var(--muted); color: var(--ink); }
.btn:active { transform: scale(.985); }
.btn svg { flex: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary { transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); box-shadow: var(--glow); }   /* lit, like a key under the hand */
.btn.outline { background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--line-2); }
.btn.outline:hover { border-color: var(--muted); }
.btn.lime-line { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn.lime-line:hover { background: var(--accent-soft); color: var(--accent); }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.btn.danger.fill { background: var(--bad); color: var(--accent-ink); }
.btn.danger.fill:hover { background: color-mix(in srgb, var(--bad) 85%, var(--ink)); color: var(--accent-ink); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn.quiet:hover { color: var(--ink); border-color: transparent; }
.btn.big { min-height: var(--btn-h-big); padding: 0 var(--btn-pad-big); font-size: 16px; }
.btn.small { min-height: var(--btn-h-small); padding: 0 var(--btn-pad-small); font-size: 13.5px; }
.btn.inline { min-height: var(--btn-h-small); padding: 0 var(--btn-pad-small); border-radius: 8px; font-size: 12.5px; }
.btn[disabled] { cursor: default; color: var(--muted); border-color: var(--line); background: var(--panel); }
.btn[disabled]:active { transform: none; }
/* a wordless button (wordless.js) is a square of its size's height, whatever its hidden words measure */
.btn.icon-only { width: var(--btn-h); padding: 0; }
.btn.big.icon-only { width: var(--btn-h-big); }
.btn:is(.small, .inline).icon-only { width: var(--btn-h-small); }
.linkish { background: none; border: 0; padding: 6px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); }
.mono-link { font: 400 13px var(--mono); color: var(--muted); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mono-link:hover { color: var(--ink); }

/* ---- segmented: two or three choices, the chosen one lifted ---- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); max-width: 100%; }
.seg > button, .seg > a { white-space: nowrap; padding: 7px 16px; border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  font: 600 14px/1.3 var(--body); text-decoration: none; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.seg > button:hover, .seg > a:hover { color: var(--ink); }
.seg > [aria-selected="true"], .seg > [aria-pressed="true"], .seg > [aria-current="page"] { background: var(--panel-2); color: var(--ink); }
.seg.small > button { padding: 6px 12px; font-size: 13px; }

/* ---- pills and chips ---- */
.pill { display: inline-block; font: 400 10px/1.5 var(--pixel); color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  padding: 1px 8px; background: color-mix(in srgb, var(--surface) 70%, transparent); white-space: nowrap; }
.chip { display: inline-block; font: 600 12px/1.5 var(--mono); padding: 1px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.solid, .gold { color: var(--good); }
.works, .prototype, .alpha, .beta { color: var(--caution); }
.breaks { color: var(--bad); }

/* ---- fields ---- */
.field { min-width: 0; padding: 11px 14px; background: var(--well); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font: 400 15px var(--body); }
.field:focus { border-color: var(--accent); outline: none; }
.field.code { font: 600 16px var(--mono); color: var(--accent); }
.field::placeholder { color: var(--muted); opacity: 1; }

/* ---- brackets: selection and the screen. Eight strokes, no glowing ring ---- */
.brackets { position: relative; }
.brackets::before { content: ""; position: absolute; inset: var(--bracket-inset, 0); pointer-events: none; z-index: 2;
  --c: var(--bracket, var(--accent)); --a: var(--bracket-arm, 32px); --t: var(--bracket-weight, 3px);
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--a) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--a) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--a) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--a) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--a) no-repeat; }
/* a card that is yours: 14 by 2.5, just outside it */
.brackets.mine { --bracket-inset: -5px; --bracket-arm: 14px; --bracket-weight: 2.5px; }
.brackets.muted-brackets { --bracket: var(--muted); --bracket-arm: 24px; }

/* ---- a game's tile: its sprite on its background, or a box when it has no art ---- */
.tile { position: relative; display: block; overflow: hidden; background: var(--surface); }
.tile .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 8%; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tile .sprite { position: absolute; left: 50%; bottom: 10%; width: 18%; transform: translateX(-50%); image-rendering: pixelated; }
.tile .box { position: absolute; left: 50%; bottom: 10%; width: 16%; aspect-ratio: 1; transform: translateX(-50%); border: 1.5px dashed var(--line-2); }
.tile .badge { position: absolute; right: 5%; top: 5%; }

/* ---- the screen: the game in a sandboxed frame at 600, scaled to its box ---- */
.screen { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--screen); }
.screen iframe { position: absolute; left: 0; top: 0; width: 600px; height: 600px; border: 0; transform-origin: 0 0; background: var(--screen); }

/* ---- the site header and footer around gamecenter ---- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  padding: 14px clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.head-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* ONE HEADER FOR THE PAGES AROUND THE STUDIO (2026-11-03 second review: Spawn Point's full-width bar, /you's and
   /feedback's narrow centred ones, the 404's logo alone): the lockup to the front page, then the landing's own nav in
   its order -- Spawn Point, New here?, Open the studio (its words from 768px up, .wide-words) -- on every page */
.site-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.site-nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font: 500 var(--type-small, 14px)/1 var(--body); white-space: nowrap; 
  /* a 32px tall target, not the 13px line box (the 2026-11-06 audit, D3: under WCAG 2.5.8's 24px on a phone) */
  display: inline-flex; align-items: center; min-height: 32px; }
.site-nav > a:not(.btn):hover, .site-nav > a[aria-current="page"] { color: var(--ink); }
@media (max-width: 479px) { .site-nav { gap: 4px 12px; } .head-right { gap: 10px; }
  /* on Spawn Point the tabs are the way there: its own link and label step aside, so the lockup and the nav share the
     first row and the tabs take the second (two rows, as before, not three) */
  .gc-head .site-nav > a[href="/point"], .gc-head .lock-label { display: none; }
  .gc-head .gc-tabs { order: 3; flex: 1 1 100%; } }
/* THE FOOTER AT THE FOOT (the same review: /you's footer floated mid-screen, the 404's ended 170px up): a page shorter
   than the window keeps its footer at the bottom */
body:has(> .site-foot) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(> .site-foot) > .site-foot { margin-top: auto; }
.site-foot { border-top: 1px solid var(--line); }
.site-foot .in { max-width: 1280px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 44px; display: flex; flex-wrap: wrap;
  gap: 14px 40px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.site-foot p { margin: 0; max-width: 62ch; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot .copyright { max-width: none; }
.page { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

/* ---- the pixel field behind a hero ---- */
.field-hero { position: relative; overflow: hidden; }
.field-hero > canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated;
  background: none; border: 0; border-radius: 0; padding: 0; }   /* the canvas shares the form field's class name: shed its well, or it paints over the spawn point's light */
.field-hero > .sweep { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 92%, transparent) 34%,
    color-mix(in srgb, var(--surface) 50%, transparent) 52%, color-mix(in srgb, var(--surface) 15%, transparent) 70%); }
.field-hero > .wash { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--surface)); }
/* THE SPAWN POINT'S LIGHT (genesis, 2026-10-13). Behind the field, at the point a sprite appears
   (--ax / --ay, set by gamecenter/portal.js from the portal's anchor): a green core in a royal
   halo, on the void's pixel grid, which fades out from that point so the grid reads as the world a
   thing is about to appear in, not a page of graph paper. It breathes, slowly; under reduced
   motion it is simply lit. */
.field-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 220px at var(--ax, 72%) var(--ay, 46%), var(--bloom-1), transparent 72%),
    radial-gradient(circle 520px at var(--ax, 72%) var(--ay, 46%), var(--bloom-2), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(circle 680px at var(--ax, 72%) var(--ay, 46%), #000 20%, transparent 100%);
          mask-image: radial-gradient(circle 680px at var(--ax, 72%) var(--ay, 46%), #000 20%, transparent 100%); }
@media (prefers-reduced-motion: no-preference) {
  .field-hero::before { animation: breathe 6s var(--ease) infinite alternate; }
}
@keyframes breathe { from { opacity: .72; } to { opacity: 1; } }

/* ---- the pixel cursor: the eyebrow's square blinks like a game waiting on player one ---- */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow .sq.blink { animation: blink 1.1s steps(1, end) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- a word that comes and goes ---- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--ink); color: var(--surface);
  font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: var(--radius-sm); opacity: 0; pointer-events: none; z-index: 50;
  transition: opacity var(--step); }
.toast.on { opacity: 1; }

/* ---- a panel ---- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---- the confirm that a take-down deletes the game for good ---- */
.confirm { border: 1px solid var(--bad); border-radius: var(--radius-sm); padding: 14px 16px; background: color-mix(in srgb, var(--bad) 7%, transparent);
  display: flex; flex-direction: column; gap: 12px; animation: spawn-in var(--step) both; }
.confirm p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.confirm p b { color: var(--ink); }
.confirm .row { display: flex; flex-wrap: wrap; gap: 10px; }

/* SPAWN POINT'S WAY INTO THE STUDIO KEEPS ITS WORDS (wchesher, 2026-11-03, on the review: the count and Spawn
   Point get words, the studio's controls stay wordless); on a phone the header has no room, so the words go
   out of sight there and the icon carries them, as the no-words ruling does everywhere else */
@media (max-width: 767px) { .wide-words { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
