/*
 * play.atomictick.com — the holding site for the Atomic Tick browser client.
 *
 * Hand-written CSS, no framework, no build step, no external request of any
 * kind. The tokens, base and component vocabulary are ported from the Atomic
 * Tick site so the apex domain and this subdomain read as one product. Anything
 * this one page will never use — the encoded map, the queue panel, the tick
 * report, the four-beat rhythm, the two-column marketing hero — has been left
 * out rather than carried across unused. What is here is the whole of what is
 * here.
 *
 * Three components below do not exist on atomictick.com and were written for
 * this site: .uc-hero (the under-construction hero), .lands (the "what lands
 * here" checklist) and .build-strip (the build status strip). If the apex site
 * ever wants them, port them back rather than reinventing them.
 *
 * CONTENTS
 *   1  Tokens
 *   2  Base
 *   3  Shared pieces
 *   4  Header
 *   5  Under-construction hero
 *   6  Cadence demonstration clock
 *   7  What lands here
 *   8  Build status strip
 *   9  Cards
 *  10  Plain-spoken lists
 *  11  Closing call to action
 *  12  Footer
 *  13  Notices and the empty stage
 *  14  Utilities
 *  15  Print
 */

/* ---------------------------------------------------------------------------
 * 1  Tokens
 *
 * Declared four times: :root (dark defaults), the light system preference, and
 * both explicit [data-theme] choices, so a toggle beats the system setting in
 * either direction. Add a token, add it to all four.
 * ------------------------------------------------------------------------ */

:root {
  color-scheme: dark light;

  --bg: #0a0c10;
  --bg-2: #0e1218;
  --bg-3: #141a22;
  --bg-inset: #070a0d;
  --line: #202832;
  --line-2: #2d3846;
  --ink: #e9edf3;
  --ink-2: #a7b2c0;
  --ink-3: #78838f;

  --accent: #f2b03c;
  --accent-soft: rgba(242, 176, 60, 0.14);
  --accent-line: rgba(242, 176, 60, 0.4);
  --accent-hover: #f4bc59;
  --on-accent: #18120a;

  --cool: #63c9da;
  --good: #7fc98a;
  --warn: #eb9264;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.28);

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

  --wrap: 1140px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/*
 * Light theme.
 *
 * Warm paper rather than white. The page is read, not skimmed, and a pure #fff
 * sheet next to a dark amber accent is harsher than it needs to be.
 *
 * Two values differ from the first draft of this stylesheet, both because they
 * missed WCAG AA by a hair against the warm background and both are used on
 * small text. They match atomictick.com exactly, and must stay matched:
 *   --ink-3   #6f7783 -> #5f6773   (4.09:1 -> 5.16:1 on --bg)
 *   --accent  #9a6510 -> #8f5d0d   (4.47:1 -> 5.07:1 on --bg)
 * The dark theme already cleared AA everywhere and is unchanged.
 */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ee;
    --bg-2: #fffdfa;
    --bg-3: #efebe3;
    --bg-inset: #e9e4da;
    --line: #ddd6c9;
    --line-2: #c8c0b1;
    --ink: #171a1e;
    --ink-2: #4e5661;
    --ink-3: #5f6773;

    --accent: #8f5d0d;
    --accent-soft: rgba(154, 101, 16, 0.1);
    --accent-line: rgba(154, 101, 16, 0.35);
    --accent-hover: #7a4f0b;
    --on-accent: #fffaf0;

    --cool: #17707f;
    --good: #35744a;
    --warn: #9c4f22;

    --shadow: 0 1px 2px rgba(60, 50, 30, 0.1), 0 8px 24px rgba(60, 50, 30, 0.08);
  }
}

/* Explicit choice from the header toggle wins over the system preference, both ways. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0c10;
  --bg-2: #0e1218;
  --bg-3: #141a22;
  --bg-inset: #070a0d;
  --line: #202832;
  --line-2: #2d3846;
  --ink: #e9edf3;
  --ink-2: #a7b2c0;
  --ink-3: #78838f;
  --accent: #f2b03c;
  --accent-soft: rgba(242, 176, 60, 0.14);
  --accent-line: rgba(242, 176, 60, 0.4);
  --accent-hover: #f4bc59;
  --on-accent: #18120a;
  --cool: #63c9da;
  --good: #7fc98a;
  --warn: #eb9264;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3ee;
  --bg-2: #fffdfa;
  --bg-3: #efebe3;
  --bg-inset: #e9e4da;
  --line: #ddd6c9;
  --line-2: #c8c0b1;
  --ink: #171a1e;
  --ink-2: #4e5661;
  --ink-3: #5f6773;
  --accent: #8f5d0d;
  --accent-soft: rgba(154, 101, 16, 0.1);
  --accent-line: rgba(154, 101, 16, 0.35);
  --accent-hover: #7a4f0b;
  --on-accent: #fffaf0;
  --cool: #17707f;
  --good: #35744a;
  --warn: #9c4f22;
  --shadow: 0 1px 2px rgba(60, 50, 30, 0.1), 0 8px 24px rgba(60, 50, 30, 0.08);
}

/* ---------------------------------------------------------------------------
 * 2  Base
 * ------------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/*
 * The design forbids motion that carries meaning, and the only motion here is
 * orientation courtesy. Honour the system setting by removing all of it. The
 * clock keeps counting: it is information, not decoration.
 */
@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;
  }
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}

/*
 * h4-h6 are unstyled in the source stylesheet and inherit a user-agent margin
 * that fights every grid gap on the page. Given so, and given that the site
 * checker fails a heading level jump anyway, they are given a floor here rather
 * than left to chance.
 */
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.25;
  font-weight: 650;
  font-size: 1rem;
}

/*
 * All paragraph margin is zero. Vertical rhythm comes from `display: grid` plus
 * `gap` on the parent — .uc-hero .wrap, .cta .inner, .card, .stack and so on. A
 * bare <p> dropped into a non-grid container will collide with its neighbour.
 */
p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--cool);
  text-decoration-color: color-mix(in srgb, var(--cool) 45%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

/*
 * The header is sticky and at least 60px tall, and html has smooth scrolling.
 * Without this, every in-page anchor lands underneath the header.
 */
:target,
[id] {
  scroll-margin-top: 5rem;
}

/*
 * There is no img rule at all in the source stylesheet, because that site ships
 * no images. This one does. Without these two lines the under-construction
 * artwork overflows .wrap on a phone.
 */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
  background: var(--bg-3);
}

code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.34em;
}

kbd {
  box-shadow: 0 1px 0 var(--line-2);
}

pre {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

/* Deliberately :focus and not :focus-visible, so it reveals on keyboard tab. */
.skip:focus {
  left: 0;
}

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

/* ---------------------------------------------------------------------------
 * 3  Shared pieces
 * ------------------------------------------------------------------------ */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.lead {
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  color: var(--ink-2);
  max-width: 56ch;
}

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

/* Two sections that belong together, without an inline style. */
.section.tight {
  padding-top: 0;
}

.section-head {
  max-width: 62ch;
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.65rem, 4.2vw, 2.4rem);
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.02rem;
}

/*
 * The tick ruler.
 *
 * The recurring motif of both sites: evenly spaced marks with a taller mark
 * every fifth interval, like a measuring rule or a clock face opened flat. It is
 * the shape of the game — fixed, countable intervals that nothing can shift.
 * Always aria-hidden; it carries no information a screen reader needs.
 */
.ruler {
  height: 12px;
  border-top: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 12px);
  background-size: 100% 10px, 100% 5px;
  background-repeat: repeat-x;
  background-position: top left;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/*
 * A button label that wraps to two lines pushes the header bar out of shape on a
 * narrow phone. Both spans must be present in the markup or the label vanishes
 * at one width or the other.
 */
.btn-short {
  display: none;
}

@media (max-width: 560px) {
  .btn-long {
    display: none;
  }

  .btn-short {
    display: inline;
  }
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

/*
 * The hover shade is a token, not a fixed mix direction.
 *
 * Lightening the accent is right in the dark theme, where it is a bright amber carrying
 * near-black text, and exactly backwards in the light theme, where it is a dark brown
 * carrying near-white text - there, lightening dropped the label below AA. --accent-hover
 * moves away from the label in whichever direction that theme needs: 10.78:1 dark,
 * 6.84:1 light.
 */
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--ink-3);
  background: var(--bg-3);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

/* A bordered surface that deliberately resembles a panel in a game client. */
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.panel-head strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Works in any flex row. Pushes everything after it to the far end. */
.spacer {
  margin-left: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.85rem;
  color: var(--ink-3);
  font-size: 0.84rem;
  font-family: var(--mono);
  line-height: 1.55;
}

/* ---------------------------------------------------------------------------
 * 4  Header
 * ------------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  /* position: relative is here for a future drop-down nav panel to anchor to. */
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-height: 60px;
  padding-block: 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The mark: five ticks with the fourth struck, i.e. one interval among many. */
.wordmark .mark {
  display: inline-block;
  width: 20px;
  height: 16px;
  flex: none;
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    repeating-linear-gradient(to right, var(--ink-3) 0 2px, transparent 2px 6px);
  background-size: 2px 16px, 20px 10px;
  background-position: 12px 0, 0 3px;
  background-repeat: no-repeat, repeat-x;
}

/*
 * This site ships no navigation — there is one page. These rules exist so a
 * <nav class="site-nav"> added later is not unstyled. If one is ever added,
 * bring a mobile pattern with it: below 860px the row simply wraps, which is
 * fine for two or three links and not for more.
 */
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.35rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.site-nav a[aria-current="page"] {
  color: var(--ink);
  /* inset shadow rather than a border, so the row height does not change. */
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.site-nav + .header-actions {
  margin-left: 1.35rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.theme-toggle:hover {
  color: var(--ink);
  background: var(--bg-3);
}

/*
 * An inline SVG rather than a half-moon character. The obvious glyphs for this
 * control are absent from plenty of default font stacks and fall back to a
 * replacement box or, worse, a colour emoji — on the one control whose whole job
 * is to look deliberate.
 */
.theme-toggle svg {
  width: 15px;
  height: 15px;
  display: block;
}

/*
 * Touch targets in the header.
 *
 * This block has to sit after the .theme-toggle and .btn-sm definitions rather than with
 * the other narrow-screen header rules: a media query adds no specificity, so a 44px
 * width declared earlier in the file would simply lose to the 34px declared later.
 *
 * At the desktop values the toggle is 34x34 and the header button is about 35px tall.
 * Neither fails SC 2.5.8, which asks for 24x24 - but on a phone, where these are pressed
 * with a thumb rather than clicked, both are under the 44px comfortable target. Matches
 * atomictick.com, which has the same two controls in the same bar.
 */
@media (max-width: 860px) {
  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .btn-sm {
    padding-block: 0.7rem;
  }
}

/* ---------------------------------------------------------------------------
 * 5  Under-construction hero
 *
 * A single centred column: eyebrow, headline, lead, the artwork, then actions.
 * Everything is centred and everything is optional — drop any child and the grid
 * closes up.
 * ------------------------------------------------------------------------ */

.uc-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2.75rem, 7vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--accent-soft) 0%, transparent 62%),
    var(--bg);
}

/* A very quiet grid behind the hero. Fades out well before it competes with text. */
.uc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.4;
  mask-image: radial-gradient(100% 80% at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.uc-hero .wrap {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3.6vw, 2.2rem);
  justify-items: center;
  text-align: center;
}

.uc-hero h1 {
  font-size: clamp(2.05rem, 6.4vw, 3.6rem);
  letter-spacing: -0.035em;
  max-width: 19ch;
}

/* The accent-word device: one word of the headline in the amber. */
.uc-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.uc-hero .lead {
  max-width: 58ch;
}

.uc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/*
 * Stacked buttons of different widths read as an accident. Below this, match them.
 *
 * The nowrap on .btn has to be lifted at the same time. A full-width button that may not
 * wrap can neither shrink nor break, and body's overflow-x: hidden then clips whatever
 * does not fit rather than letting the reader scroll to it.
 */
@media (max-width: 520px) {
  .uc-actions {
    width: 100%;
  }

  .uc-actions .btn {
    flex: 1 1 100%;
    white-space: normal;
    text-align: center;
  }
}

.uc-note {
  font-size: 0.88rem;
  color: var(--ink-3);
  max-width: 54ch;
}

/*
 * The artwork.
 *
 * The frame keeps its own dark ground in both themes, because the image supplies
 * a starfield of its own. A light-theme frame around a black picture would read
 * as a mistake, and a transparent one shows a pale seam for as long as the SVG
 * takes to paint.
 */
/*
 * The artwork is square (1024x1024), not the 3:2 the stand-in drawing used, so the
 * cap is 560px rather than 780px: at 780 a square hero is taller than most laptop
 * viewports and pushes the "what has to happen first" list entirely below the fold,
 * which is the part of this page that does the actual work.
 *
 * Keep this figure in step with the `sizes` attribute on the <img>. If they drift,
 * the browser picks its candidate from a width the layout never uses.
 */
.uc-art {
  margin: 0;
  width: min(100%, 560px);
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.uc-art img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0c10;
  box-shadow: var(--shadow);
}

.uc-art figcaption {
  margin-top: 0;
  text-align: center;
  max-width: 56ch;
}

/* ---------------------------------------------------------------------------
 * 6  Cadence demonstration clock
 *
 * The one moving thing on the site. It is arithmetic against UTC boundaries on
 * the reader's own device — it reaches no server and there is no server for it
 * to reach. Label the panel head as a demonstration of cadence, never as a Shard
 * with players in it.
 * ------------------------------------------------------------------------ */

.tick-panel {
  font-family: var(--mono);
  width: min(100%, 460px);
}

/* A definition list carries a 1em user-agent margin that reads as dead space. */
.tick-rows {
  margin: 0;
  display: grid;
  gap: 0;
}

.tick-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  text-align: left;
}

.tick-row + .tick-row {
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.tick-row dt {
  color: var(--ink-3);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.tick-row dd {
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.tick-row dd.big {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* site.js adds and removes this class on the [data-locks] element. */
.tick-row dd.lock {
  color: var(--accent);
}

.tick-meter {
  padding: 0.9rem 1rem 1.1rem;
  border-top: 1px solid var(--line);
}

.tick-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* site.js sets style.width on this. */
.tick-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, transparent), var(--accent));
  transition: width 0.9s linear;
}

/*
 * 96.66% is (1800 - 60) / 1800: correct for a 30-minute cadence with a 60-second
 * lock lead, and wrong for anything else. site.js recomputes it from the panel's
 * own data-cadence and data-lock-lead, so this is only the no-JS fallback.
 */
.tick-bar-lock {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 96.66%;
  width: 2px;
  background: var(--ink);
  opacity: 0.75;
}

.tick-legend {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------------------
 * 7  What lands here
 *
 * A checklist of what this URL will eventually serve. Every box is empty,
 * because none of it is deployed. That is the point of the component: it says
 * what is coming without implying any of it has arrived.
 *
 *   <ul class="lands">
 *     <li>
 *       <strong>Sign in</strong>
 *       <span>A code emailed to you. There is no password to invent.</span>
 *     </li>
 *   </ul>
 *
 * Two children per <li>: a <strong> label and a <span> of prose. The drawn
 * checkbox spans both rows of the item, so the prose sits under the label rather
 * than under the box.
 *
 * .lands li.done exists for the day something here genuinely ships. Do not use
 * it before then. A ticked box on this page is a factual claim.
 * ------------------------------------------------------------------------ */

.lands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  text-align: left;
}

.lands li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.15rem 0.85rem;
  padding: 0.85rem 1.15rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.lands li:last-child {
  border-bottom: 0;
}

/* An empty checkbox, drawn rather than typed: the obvious glyphs for this are
 * missing from too many default font stacks to risk. */
.lands li::before {
  content: "";
  grid-row: span 2;
  width: 15px;
  height: 15px;
  margin-top: 0.24em;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--bg-inset);
}

.lands li strong {
  color: var(--ink);
  font-weight: 600;
}

/* Colour and a tick, not colour alone. */
.lands li.done::before {
  content: "\2713";
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}

.lands li.done strong {
  color: var(--ink);
}

/* ---------------------------------------------------------------------------
 * 8  Build status strip
 *
 * The most important component on this site. It exists so the page can say
 * "tick resolution — built in code" next to "public server — not started"
 * without a word of spin, and without either claim leaning on the other.
 *
 *   <ol class="build-strip">
 *     <li class="build-step">
 *       <p class="state built">Built in code</p>
 *       <h3>Tick resolution</h3>
 *       <p>Runs in development, on a test suite. Not deployed anywhere.</p>
 *     </li>
 *   </ol>
 *
 * Four states, each with a glyph as well as a colour:
 *   .built     ✓  written and tested in the private codebase
 *   .progress  →  actively being built
 *   .designed  ·  written down in design, no code yet
 *   .later     –  not started
 *
 * There is deliberately no "live", "deployed" or "playable" state. Nothing is.
 *
 * The dividing rules are box-shadows on the children rather than gaps showing a
 * container background, and rather than borders. In an auto-fit grid you cannot
 * know in CSS which item ends a row, so a gap-as-rule approach leaves the empty
 * cells of an incomplete last row painted in the line colour — a slab of grey
 * across the bottom of the panel. A box-shadow takes no layout space, and the
 * container's overflow:hidden clips the ones that fall on the outer edges, so
 * the strip is correct at any item count and any width.
 * ------------------------------------------------------------------------ */

.build-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}

.build-step {
  background: var(--bg-2);
  padding: 1.15rem 1.15rem 1.35rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}

/* For the row the page most wants read. Emphasis without inventing a colour. */
.build-step.is-key {
  background: var(--bg-3);
}

.build-step .state {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.build-step .state::before {
  font-weight: 700;
  flex: none;
}

.build-step .state.built {
  color: var(--good);
}

.build-step .state.built::before {
  content: "\2713";
}

.build-step .state.progress {
  color: var(--accent);
}

.build-step .state.progress::before {
  content: "\2192";
}

.build-step .state.designed {
  color: var(--cool);
}

.build-step .state.designed::before {
  content: "\00b7";
}

.build-step .state.later {
  color: var(--ink-3);
}

.build-step .state.later::before {
  content: "\2013";
}

.build-step h3 {
  font-size: 1.02rem;
}

.build-step p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

/*
 * The line that stops the strip being read as a progress bar. Put the plain
 * statement here — nothing on this list is deployed, running, or reachable.
 */
.build-note {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  max-width: 74ch;
}

.build-note strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * 9  Cards
 * ------------------------------------------------------------------------ */

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  text-align: left;
}

/* Three cards on a 1140px page become three narrow columns whether you wanted
 * that or not. This asks for two. */
.card-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.card .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.card h3 {
  font-size: 1.08rem;
}

.card p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* A card that is also a link. Without this it inherits the link colour and an
 * underline, and looks like a mistake. */
a.card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

a.card:hover {
  border-color: var(--accent-line);
  background: var(--bg-3);
}

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

/* ---------------------------------------------------------------------------
 * 10  Plain-spoken lists
 *
 * The house "what it is / what it isn't" device, and the single most useful
 * component for honest copy. Reuse it heavily.
 * ------------------------------------------------------------------------ */

.plain {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.plain-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  text-align: left;
}

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

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.plain-list li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.7rem;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.plain-list li::before {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.6;
}

.plain-list.no li::before {
  content: "\00d7";
  color: var(--warn);
}

.plain-list.yes li::before {
  content: "\2713";
  color: var(--good);
}

/* ---------------------------------------------------------------------------
 * 11  Closing call to action
 * ------------------------------------------------------------------------ */

.cta {
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 50% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
}

/* .inner is context-scoped: a bare .inner does nothing at all. */
.cta .inner {
  display: grid;
  gap: 1.3rem;
  justify-items: center;
  max-width: 60ch;
  margin-inline: auto;
}

.cta h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.cta p {
  color: var(--ink-2);
}

/* ---------------------------------------------------------------------------
 * 12  Footer
 * ------------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

/*
 * Footer column headings are <h2>. They sit after the page's <h3>s in document
 * order, which the checker allows — going back up a level never trips it.
 */
.site-footer h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-about p {
  color: var(--ink-3);
  font-size: 0.88rem;
  max-width: 40ch;
  margin-top: 0.85rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------------------
 * 13  Notices and the empty stage
 * ------------------------------------------------------------------------ */

/*
 * The natural home for "Atomic Tick is not playable yet". Two flavours, and
 * the label gives each one a cue that is not colour.
 */
.notice {
  padding: 1rem 1.15rem;
  border: 1px solid var(--accent-line);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.93rem;
  text-align: left;
}

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

/*
 * --ink-2 rather than --ink-3 because the plain notice's background is the accent wash,
 * which lifts far enough that --ink-3 falls to 4.03:1 on it in the dark theme. The .info
 * flavour swaps that background for --bg-3 and takes --ink-3 back below.
 */
.notice .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--ink-2);
}

.notice.info {
  border-color: var(--line-2);
  background: var(--bg-3);
}

/* On --bg-3 the quieter label still clears AA: 4.53:1 dark, 4.81:1 light. */
.notice.info .label {
  color: var(--ink-3);
}

/* A short centred column. Used by 404.html. */
.stage {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  padding-block: clamp(3rem, 10vw, 6rem);
}

.stage .panel {
  width: min(100%, 560px);
  text-align: left;
}

/* ---------------------------------------------------------------------------
 * 14  Utilities
 *
 * Each of these replaces an inline style="" that the source pages repeat. Prefer
 * them; the CSP allows inline style attributes, but they are still copy-paste
 * waiting to drift.
 * ------------------------------------------------------------------------ */

.stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.measure {
  max-width: 62ch;
}

.measure-sm {
  max-width: 46ch;
}

.muted {
  color: var(--ink-2);
}

.dimmed {
  color: var(--ink-3);
}

.title-lg {
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
}

/* An eyebrow used as a heading. Use this instead of <h3 class="eyebrow"> with an
 * inline margin, which is what the source site does. */
.subhead {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin: 0 0 1rem;
}

/* ---------------------------------------------------------------------------
 * 15  Print
 *
 * Nobody prints a holding page, but somebody will print it to show somebody
 * else, and a black rectangle where the artwork was is a poor showing.
 * ------------------------------------------------------------------------ */

@media print {
  .site-header,
  .site-footer,
  .skip,
  .theme-toggle,
  .cta,
  .uc-hero::before {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .uc-hero {
    background: none;
    border-bottom: 0;
  }

  .panel,
  .card,
  .build-step,
  .uc-art {
    break-inside: avoid;
  }

  a[href^="https://"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
}
