/*
 * Base — document-level defaults.
 *
 * Typeface (Inter), body color, line-height. Add to this file only when
 * a default is genuinely wrong everywhere in the app, not in a single
 * place. Single-place overrides belong in the component's own file.
 */

@layer base {
  /* Border-box everywhere so padding and border count INSIDE an
     element's declared size rather than expanding it. The default
     content-box behavior breaks any layout that uses min-height: 100vh
     plus padding (the padding silently adds another 2*padding to the
     element height, pushing it past the viewport). Standard reset. */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 system-ui, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "cv11", "ss01", "ss03";
    color: var(--color-text-body);
    background: var(--color-white);
    line-height: 1.5;
  }

  body { margin: 0; }

  h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-heading);
  }

  a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 120ms ease;
  }

  a:hover {
    color: var(--color-link-hover);
  }

  code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
  }
}
