/* Experiment Ledger — shared tokens and base styles. Sizes in rem; light first, dark follows the system.
   The page is a lab record: neutral paper, near-black ink, monospace for anything measured or coded.
   The accents are the colour-blind-safe set scientists already use in figures (Okabe and Ito), darkened
   for text: blue is the plan, vermillion is what differed, green is verified, purple is model-proposed.
   Every one of them is always paired with a word. */
:root {
  --ground: #f4f5f2;
  --surface: #ffffff;
  --sunk: #eceee9;
  --ink: #15191c;
  --ink-2: #3d454b;
  --ink-3: #59636a;
  --line: #cbd1ce;
  --line-2: #e2e5e1;
  --grid: rgba(21, 25, 28, .055);
  --action: #00619b;
  --action-ink: #ffffff;
  --action-soft: #dcecf7;
  --dev: #a34400;
  --dev-soft: #fde9db;
  --dev-solid: #b24900;
  --dev-solid-ink: #ffffff;
  --ok: #006b4c;
  --ok-soft: #dcf1e9;
  --model: #873565;
  --model-soft: #f7e6ef;
  --wait-ink: #6b4a00;
  --wait-soft: #faefc9;
  --grey-soft: #e6e9e6;
  --deep: #15191c;
  --deep-ink: #e9ecea;
  --deep-accent: #56b4e9;
  --radius: .25rem;
  --shadow: 0 1px 2px rgba(21, 25, 28, .08), 0 8px 22px rgba(21, 25, 28, .08);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101315;
    --surface: #181c1f;
    --sunk: #13171a;
    --ink: #e8ebe9;
    --ink-2: #bcc4c2;
    --ink-3: #939d9b;
    --line: #333a3d;
    --line-2: #262c2f;
    --grid: rgba(232, 235, 233, .05);
    --action: #6cbdec;
    --action-ink: #04202f;
    --action-soft: #15303f;
    --dev: #f5a26a;
    --dev-soft: #3b2415;
    --dev-solid: #f08a45;
    --dev-solid-ink: #1f0e00;
    --ok: #55d1a8;
    --ok-soft: #12332a;
    --model: #e9a8cb;
    --model-soft: #3a2130;
    --wait-ink: #f0d98a;
    --wait-soft: #393010;
    --grey-soft: #262c2f;
    --deep: #0a0c0e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3 { font-weight: 700; line-height: 1.18; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--action); text-underline-offset: .15em; }
:focus-visible { outline: .19rem solid var(--action); outline-offset: .15rem; border-radius: .15rem; }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }

.btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; cursor: pointer;
       padding: .6rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--ink-3); background: var(--surface);
       color: var(--ink); text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn.danger { color: var(--dev); border-color: var(--dev); }
.btn[disabled] { opacity: .5; cursor: default; }

.mark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem;
        letter-spacing: -.01em; color: inherit; text-decoration: none; }
.mark svg { width: 1.6rem; height: 1.6rem; flex: none; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* A chip always carries a word; the colour only repeats it. */
.chip { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 600; line-height: 1; padding: .28rem .45rem;
        border-radius: .2rem; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.chip.plan { background: var(--action-soft); color: var(--action); }
.chip.wait { background: var(--wait-soft); color: var(--wait-ink); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.dev { background: var(--dev-soft); color: var(--dev); }
.chip.crit { background: var(--dev-solid); color: var(--dev-solid-ink); }
.chip.model { background: var(--model-soft); color: var(--model); border: 1px dashed var(--model); }
.chip.off { background: transparent; border-color: var(--line); color: var(--ink-3); }

.demo-bar { background: var(--wait-soft); color: var(--wait-ink); font-size: .85rem; text-align: center; padding: .45rem 1rem; }
.demo-bar a { color: inherit; }
