/* ============================================================
   OBSTEC · Base layer
   Minimal, opinionated reset wiring elements to the tokens.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

p { margin: 0; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--obs-blue-500); text-decoration: underline; text-underline-offset: 2px; }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* Eyebrow / kicker helper */
.obs-eyebrow {
  font-family: var(--font-display);
  font-size: var(--type-eyebrow-size);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
}

::selection { background: var(--accent); color: var(--accent-contrast); }

:focus-visible {
  outline: none;
  box-shadow: var(--glow-focus);
  border-radius: var(--radius-xs);
}

/* Thin, dark scrollbars to match the console aesthetic */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--obs-ink-600) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: var(--obs-ink-600);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--obs-ink-500); }
