/* ============================================================
   STUDIJAS RESET (~25 rindas) — kopē 1:1 katrā jaunā projektā.
   Destilēts no azrent bāzes + modernā reseta prakses.
   Nekāda vizuālā stila — tikai saprātīgi noklusējumi.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h, 0px) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;            /* body ≥ 16px mobilajā — vienmēr */
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
}

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

h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.15; text-wrap: balance; color: var(--color-heading); }
p { margin: 0 0 1em; }

input, button, textarea, select { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

section[id] { scroll-margin-top: calc(var(--header-h, 0px) + 8px); }

/* Kustība tikai tiem, kas to vēlas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
