/**
 * base.css — minimal reset + element defaults, built from tokens.css.
 * Loaded BEFORE the vendored Drupal CSS so the vendored theme keeps winning
 * inside article content (1:1 content parity); base only provides clean
 * site-wide primitives that the shell builds on.
 *
 * Colors, spacing, radii, shadows and fonts must come from tokens.css —
 * never hardcode a color here.
 */

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

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video {
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-strong);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5,
h6 { font-size: var(--text-md); }

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

::selection {
  background-color: var(--color-primary-soft);
}
