/* =========================================================
   base.css — Reset, Base Elements & Utilities (core)
   ---------------------------------------------------------
   Shared foundation. Depends on tokens.css being loaded first.
   ========================================================= */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--fg);
  background-color: var(--bg);
  transition:
    background-color var(--duration-base) var(--ease-out-quart),
    color var(--duration-base) var(--ease-out-quart);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Selection */
::selection {
  background-color: var(--fg);
  color: var(--bg);
}

/* Focus */
:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

/* ---- Utilities ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter-x);
}

.eyebrow {
  font-family: var(--font-en);
  font-size: var(--text-2xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hairline {
  border: 0;
  border-top: var(--hairline) solid var(--line);
}

/* ---- Reduced motion ----
   The single approved !important exception (accessibility). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
