/* ============================================================
   WSC · Base element styles
   Applies the foundation to raw HTML. Kept light so it composes
   with consuming pages. Imported last in styles.css.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--body-font);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  font-weight: var(--body-weight);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  color: var(--text-strong);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.5em;
  text-wrap: pretty;
}
h1 { font-size: var(--text-3xl); line-height: var(--leading-display); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 1em; text-wrap: pretty; }

a {
  color: var(--text-brand);
  text-decoration-color: color-mix(in srgb, var(--text-brand) 35%, transparent);
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--action-hover); }

small { font-size: var(--text-sm); }
strong, b { font-weight: var(--fw-semibold); color: var(--text-strong); }

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

hr {
  border: none;
  border-top: var(--hairline);
  margin: var(--space-6) 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-sm);
}

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