/* Docket design tokens. Shared by the landing page, the console and the docs.
   Every colour has one job:
     --stop  refused, blocked, failed
     --go    cleared, passed
     --warn  guardrail, inconclusive, warning
     --ink   everything else
   If a colour cannot be named by what it means, it does not belong here. */

@font-face { font-family: "Anton"; src: url("fonts/anton.woff2") format("woff2"); font-display: swap; font-weight: 400; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); font-display: swap; font-weight: 100 800; }
@font-face { font-family: "Silkscreen"; src: url("fonts/silkscreen-400.woff2") format("woff2"); font-display: swap; font-weight: 400; }
@font-face { font-family: "Silkscreen"; src: url("fonts/silkscreen-700.woff2") format("woff2"); font-display: swap; font-weight: 700; }

:root {
  color-scheme: dark;

  --field: #0b1020;
  --raise: #111936;
  --raise-2: #18224a;
  --line: #2a3558;
  --line-strong: #6578b5;
  --page: #0b1020;
  --grid: rgba(120, 140, 200, 0.07);

  /* The docket slip: the product's real artifacts are paper on the night field. */
  --paper: #efe7d2;
  --paper-2: #e4d9bd;
  --paper-line: #c9bc9a;
  --paper-ink: #141a2b;
  --paper-dim: #454b61;
  --paper-faint: #51576e;
  --paper-stop: #a52b14;
  --paper-go: #146438;
  --paper-warn: #7d5200;

  --ink: #efe7d2;
  --ink-dim: #b9bfd2;
  --ink-faint: #939cba;

  --stop: #ff5a36;
  --go: #5be39a;
  --warn: #ffc24a;

  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-pixel: "Silkscreen", "JetBrains Mono", monospace;

  /* Type steps are rem, so they ride the root scale below. The floors keep body text at 14px or more on a phone. */
  --step--2: clamp(0.72rem, 0.7rem + 0.05vw, 0.76rem);
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);

  --gutter: clamp(1rem, 3.4vw, 3.5rem);
  --max: 85rem;
  --nav-h: 3.5rem;
  --radius: 0;
  --hard: 0.25rem 0.25rem 0 0 rgba(0, 0, 0, 0.55);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-stamp: cubic-bezier(0.7, 0, 0.84, 0);
}

*, *::before, *::after { box-sizing: border-box; }
/* PPI scaling. One root size drives every rem in the system: 15px on a phone, 16px at 1440 CSS px,
 * about 18px at 1920, 22px at 2560 and 26px at 4K. It is written in % and rem, so a user's own default
 * font size still scales the whole interface. */
html { font-size: clamp(93.75%, calc(0.55rem + 0.5vw), 162.5%); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); background: var(--field); }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--field); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: var(--gutter); top: -3.75rem; z-index: 100;
  background: var(--ink); color: var(--field); padding: 0.625rem 0.875rem; text-decoration: none;
  font-family: var(--font-pixel); font-size: var(--step--1); text-transform: uppercase;
}
.skip:focus { top: 0.625rem; }

/* Pixel micro-label: the typographic twin of the sprites. */
.px {
  font-family: var(--font-pixel);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}
.px-b { font-weight: 700; }

/* Boxed mono chip, as a status stamp. */
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line-strong);
  padding: 0.3125rem 0.625rem;
  font-family: var(--font-pixel); font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-dim); background: transparent; white-space: nowrap;
}
.chip i { width: 0.5rem; height: 0.5rem; background: var(--ink-faint); flex: none; }
.chip.is-stop { color: var(--stop); border-color: var(--stop); }
.chip.is-stop i { background: var(--stop); }
.chip.is-go { color: var(--go); border-color: var(--go); }
.chip.is-go i { background: var(--go); }
.chip.is-warn { color: var(--warn); border-color: var(--warn); }
.chip.is-warn i { background: var(--warn); }

/* Controls. A button is a thing you press: it has a hard offset and it sinks. */
.btn {
  appearance: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: max(44px, 2.75rem); padding: 0 1.25rem;
  border: 1px solid var(--ink); background: var(--ink); color: var(--field);
  font-family: var(--font-pixel); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  box-shadow: 0.25rem 0.25rem 0 0 rgba(239, 231, 210, 0.22);
  transition: transform 90ms var(--ease), box-shadow 90ms var(--ease), background 120ms, color 120ms;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 0.3125rem 0.3125rem 0 0 rgba(239, 231, 210, 0.3); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 0 rgba(239, 231, 210, 0.3); }
.btn.is-line { background: transparent; color: var(--ink); box-shadow: none; }
.btn.is-line:hover { background: var(--raise-2); transform: none; box-shadow: none; }
.btn.is-line:active { transform: translate(0, 2px); }
.btn.is-stop { background: var(--stop); border-color: var(--stop); color: var(--field); box-shadow: 0.25rem 0.25rem 0 0 rgba(255, 90, 54, 0.25); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Tap targets: every link and control is at least 2.75rem tall. */
.skip { min-height: max(44px, 2.75rem); display: inline-flex; align-items: center; }
.brand { display: inline-flex; align-items: center; min-height: max(44px, 2.75rem); }
