/* ===========================================================================
   ENDPOINT · BASE ELEMENT DEFAULTS
   Minimal, opt-in element styling built on the tokens. Sets the dark stage,
   body type, selection, focus, scrollbars. Consumers get a sane baseline.
   =========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--text-default);
  background-color: var(--bg-base);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--text-strong);
}

p { margin: 0; }

a {
  color: var(--brand-hover);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--brand); }

::selection {
  background: var(--ep-blue-tint);
  color: var(--text-strong);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Thin steel scrollbars on dark surfaces */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--ep-ink-600) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--ep-ink-600);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--ep-ink-500); }

img, svg, video { display: block; max-width: 100%; }

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