/* ============================================================
   BASE — resets + element defaults for the portfolio surface.
   Kept minimal: sets the warm-stone canvas, mono/selection,
   focus ring, and reduced-motion baseline.
   ============================================================ */

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

::selection {
  background: var(--amber-24);
  color: var(--text);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
