/* =============================================================================
   EHCKK Design System — Base
   Reset + sensible defaults. Loads after tokens.
   ============================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: var(--font-body);
  line-height: var(--leading-normal);
  color-scheme: light;
}

[data-theme="dark"] { color-scheme: dark; }

body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:not(.btn):hover { color: var(--color-accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-tight);
  color: var(--color-fg);
}

h1 { font-size: var(--text-h1); line-height: var(--leading-display); letter-spacing: var(--tracking-normal); }
h2 { font-size: var(--text-h2); line-height: var(--leading-tight); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); letter-spacing: var(--tracking-wider); }

p { line-height: var(--leading-relaxed); }

strong, b { font-weight: var(--weight-bold); }

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

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

::selection {
  background: var(--ehckk-red);
  color: var(--ehckk-white);
}

/* Focus ring — universal accessible outline */
:focus-visible {
  outline: 0;
  box-shadow: var(--shadow-focus-ring);
  border-radius: var(--radius-sm);
}

/* Blazor's FocusOnNavigate focuses the first h1 after navigation for accessibility.
   Keep that focus target, but don't draw an interactive-control ring around headings. */
:where(h1, h2, h3, h4, h5, h6)[tabindex="-1"]:focus {
  outline: 0;
  box-shadow: none;
}

/* Scrollbar (subtle stadium tint) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--color-muted); }
::-webkit-scrollbar-thumb {
  background: var(--color-fg-muted);
  border: 3px solid var(--color-muted);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-fg); }
