/* CAVA base stylesheet: reset, typography and accessibility primitives
   shared by every page. Component styles (buttons, cards, forms, nav)
   belong in components.css, not here.

   Bodoni Moda (display) + Jost (ui) are loaded by inc/partials/header.php with
   a preconnect and a real <link>, not an @import here: an @import inside a
   stylesheet can only be discovered after this file has downloaded, which
   serialises two round trips before a single glyph can paint. The css2 endpoint
   ships a latin-ext @font-face alongside latin for both families - verified
   directly against the live response, not assumed - which is required for
   č ć ž š đ to render in the actual webfont instead of silently falling back
   to Georgia/system-ui. */

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

* {
  margin: 0;
}

:root {
  color-scheme: light;
}

html {
  background: var(--bone);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -.01em;
  font-weight: 400;
}

h1 {
  font-size: var(--step-6);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
