/* ============================================================================
   React Spectrum Design System — base layer
   Minimal, opinionated defaults so any page linking styles.css inherits the
   Spectrum look. Kept intentionally light — components carry their own styles.
   ============================================================================ */

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--heading-font-weight);
  line-height: var(--line-height-heading);
  color: var(--heading-color);
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

code, pre, kbd {
  font-family: var(--font-code);
  font-size: var(--font-size-code-sm);
}

a {
  color: var(--accent-content);
  text-decoration: none;
}
a:hover {
  color: var(--accent-color-1000);
  text-decoration: underline;
  text-underline-offset: 2px;
}

::selection {
  background: var(--blue-400);
}
