/* ============================================================
   loppisfunn.no — BASE layer (loaded first, whatever theme runs)
   Neutral foundation: box-sizing, readable defaults, the shell.
   The active theme's accent layer (themes/loppis) paints on top.
   ============================================================ */

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

:root {
  --lf-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
             Arial, sans-serif;
  --lf-radius: 14px;
  --lf-shadow: 0 1px 3px rgba(31, 41, 55, .08), 0 4px 14px rgba(31, 41, 55, .06);
  --lf-shadow-lift: 0 2px 6px rgba(31, 41, 55, .10), 0 10px 28px rgba(31, 41, 55, .12);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--lf-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.lf-shell { min-height: 100dvh; display: flex; flex-direction: column; }

.lf-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

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