/* **The look every page of mechaneion.com shares**: its colours, its type, the bands every section sits in, the bar
   across the top and the foot. `index.html` and `privacy.html` both link it before their own `<style>`, so a rule of
   a page's own comes after these and a page never has to restate them. It is committed source served byte for byte,
   like everything else in `page/`: there is no build step between this file and a reader. */

/* **Two looks, following the visitor's system setting, and the only place these colours are written down for mechaneion.com.**
   The values are `@mechaneion/rulings`' own tones (`tokensFor`, tone layer): light is its base set and dark is its
   `prefers-color-scheme: dark` set, so the front door and the app read as one brand. The accent is the bronze Zack
   picked on 2026-10-03, `--tone-bronze` in each set.
   Two values are this page's own, because the design system has them for dark only: `--accent-lit`, the hover and
   emphasis bronze, and `--on-accent`, the text on a bronze button. On light they are #6B4019 (8.1:1 on the ground)
   and #FFFFFF (6.2:1 on the bronze, 8.9:1 on its hover), where the dark #DCB47A would read at 1.8:1. */
:root {
  color-scheme: light;
  --ground: #F5F5F7;
  --surface: #FAFAFB;
  --surface-raised: #FFFFFF;
  --line: #E2E2E8;
  --line-strong: #C9CAD3;
  --text: #1A1B21;
  --text-dim: #565866;
  --text-faint: #62646F;
  --accent: #8A5524;
  --accent-lit: #6B4019;
  --on-accent: #FFFFFF;
  --works: #0E7141;
  --doesnt: #B0302A;
  --wash: 14%;
  /* The one shadow, the design system's `--tone-shadow` in each set: what makes a surface read as raised. */
  --shadow: 0 12px 32px -8px rgb(26 27 33 / 0.18), 0 2px 6px rgb(26 27 33 / 0.06);
  /* The agent's side is a terminal, sunk below the section it sits in, in the visitor's look like everything else.
     On light it is the page's own tones; the bubble is the design system's `--tone-selected` and the highlighted row
     a bronze tint, one step off the pane as the dark one is. Dark has its own darker-than-ground set, below. */
  --term: var(--ground);
  --term-line: var(--line);
  --term-voice: #E7E7EE;
  --term-hi: #F5ECE2;
  --term-text: var(--text);
  --term-dim: var(--text-dim);
  --term-faint: var(--text-faint);
  --term-accent: var(--accent);
  --term-accent-lit: var(--accent-lit);
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 20px;
  --measure: 1080px;
  --measure-wide: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0F1014;
    --surface: #15161B;
    --surface-raised: #1A1B21;
    --line: #282932;
    --line-strong: #3A3B47;
    --text: #E9E9EE;
    --text-dim: #A4A6B3;
    --text-faint: #8F919F;
    --accent: #CD7F32;
    --accent-lit: #DCB47A;
    --on-accent: #15161B;
    --works: #4DC38A;
    --doesnt: #F0726B;
    --shadow: 0 16px 40px -8px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.3);
    --term: #0B0C0F;
    --term-line: #282932;
    --term-voice: #212229;
    --term-hi: #17140F;
    --term-text: #E9E9EE;
    --term-dim: #A4A6B3;
    --term-faint: #8F919F;
    --term-accent: #CD7F32;
    --term-accent-lit: #DCB47A;
  }
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-lit); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* Read by a screen reader, drawn for nobody. */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Every band is the same measure with the same gutter, set once here; the comparison takes the wider one. */
.band { max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter); }
.band.wide { max-width: var(--measure-wide); }
.ruled { border-top: 1px solid var(--line); }
.raised { background: var(--surface); }

/* One heading and one opening sentence per section, the same everywhere below the hero. */
.head { display: grid; gap: 10px; }
.head h2 { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; }
.head p { margin: 0; max-width: 62ch; color: var(--text-dim); }

/* --- the bar ----------------------------------------------------------------------------------- */
.bar { padding-block: 12px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: var(--text); text-decoration: none; }
.mark svg { color: var(--accent); flex: none; }
.mark b { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.grow { flex-grow: 1; }
.quiet { font-size: 0.875rem; color: var(--text-dim); text-decoration: none; }
.quiet:hover { color: var(--text); }
/* The bar's one bronze link, *Start free*. */
.pill {
  position: relative; white-space: nowrap;
  font-size: 0.8125rem; font-weight: 500; text-decoration: none;
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent);
}
a.pill:hover { background: var(--accent); color: var(--on-accent); }
/* A thumb's worth of target around a pill drawn smaller than one. */
a.pill::after { content: ""; position: absolute; inset: -9px -4px; }
/* Sign in keeps the right edge, on the first row or, when the bar is too narrow for it, on the second. */
.bar .quiet { margin-left: auto; padding-block: 12px; }

/* --- the foot ---------------------------------------------------------------------------------- */
.foot { padding-block: 28px 40px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .mark { color: var(--text-faint); }
.foot .mark svg { color: var(--text-faint); }
.foot .mark b { font-size: 0.8125rem; font-weight: 400; }
