/* EST Datacorp: fonts, tokens, base. Component styles live in style.css. */
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/host-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Metric-matched fallback: the swap does not move the layout. */
@font-face { font-family: "Host Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 101%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }

:root {
  color-scheme: dark;
  /* ground: night ink, tinted towards blue */
  --bg: #0a0d12;
  --bg-2: #0f131a;
  --bg-3: #151a23;
  --line: #222935;
  --line-2: #3a4452;
  --line-field: #717c8c;   /* input boundary: 3:1 or more against the field and the panel (WCAG 1.4.11) */
  /* ink */
  --ink: #eef1f4;
  --ink-2: #b9c0ca;
  --muted: #8f99a6;
  /* signal: actions, live state, the one thing that matters in a picture */
  --accent: #d2f24b;
  --accent-hi: #e2fb72;
  --accent-ink: #0a0d12;
  --danger: #ff9d8a;

  --font-sans: "Host Grotesk", "Host Fallback", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* fluid type, interpolated 360 to 1440 */
  --fs-h2: clamp(1.875rem, 1.333rem + 2.41vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 1.11vw, 2.25rem);
  --fs-h4: clamp(1.1875rem, 1.125rem + 0.28vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.28vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-data: 0.75rem;

  --gutter: clamp(1.25rem, 0.333rem + 4.07vw, 4rem);
  --wrap: 90rem;
  --section: clamp(4.5rem, 3.333rem + 5.19vw, 8rem);
  --header-h: 4.5rem;
  --control-h: 3rem;
  --r-s: 0.25rem;
  --r-m: 0.5rem;
  --r-l: 0.875rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); scrollbar-color: var(--line-2) var(--bg); background: var(--bg); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; caret-color: var(--accent); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
:where(p, li, figcaption, blockquote):has(br) { text-wrap: wrap; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
main:focus { outline: none; }

/* One focus line per control. Bordered controls override this with border + hugging shadow (style.css). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-s); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.data { font-family: var(--font-mono); font-size: var(--fs-data); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }
.icon { width: 1rem; height: 1rem; flex: none; }

@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; transition-delay: 0s !important; }
}
/* Lenis drives scrolling when motion is allowed: native smooth scroll would fight it */
html.has-lenis { scroll-behavior: auto; }
html.has-lenis body { block-size: auto; }
.lenis.lenis-stopped { overflow: clip; }
