/**
 * Base styles: reset, html/body, and element defaults.
 * All design values come from tokens.css (loaded first).
 */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Ubuntu", sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Accessible focus: visible outline for keyboard users only */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to content: visible on focus for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent);
  color: var(--white);
  font-family: "Ubuntu", sans-serif;
  font-size: var(--step--1);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--ease);
}

.skip-link:focus {
  top: var(--sp-4);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
