/* ============================================================
   BASE — Reset, tipografija, utilities
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv11" on, "calt" on;
  font-variant-numeric: lining-nums;
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background var(--duration-base), color var(--duration-base);
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
  letter-spacing: var(--tracking-tighter);
  font-weight: 800;
}
h2 {
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-tight);
}
h3 { font-size: var(--text-3xl); line-height: var(--leading-snug); }
h4 { font-size: var(--text-2xl); line-height: var(--leading-snug); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p { text-wrap: pretty; max-width: 65ch; }

/* Numerical content */
.tabular { font-variant-numeric: tabular-nums; }

/* Mono text — SKU, codes, specs */
.mono, code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.95em;
  letter-spacing: 0;
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* Focus ring (brendiran) */
:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top var(--duration-fast);
}
.skip-link:focus { top: 1rem; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-narrow { max-width: 1200px; }
.container-wide   { max-width: 1600px; }

/* Section */
.section {
  padding-block: var(--section-pad-y);
}
.section-lg {
  padding-block: var(--section-pad-y-lg);
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

/* Lead text */
.lead {
  font-size: clamp(1.125rem, 1.2vw + 0.875rem, 1.375rem);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  text-wrap: pretty;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--color-border);
  border: 0;
}

/* Reduced motion */
@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;
  }
}

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
