/* Base / reset – token-driven, no raw colours. */

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

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--text-body); }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--ui-hover); }

.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

@media (max-width: 1488px) { .container { width: calc(100% - 48px); } }
@media (max-width: 768px)  { .container { width: calc(100% - 32px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
