/* ════════════════════════════════════════════════════════════════
   VIOLETA VELJKOVIĆ — base.css · SLOJ 1/4
   ─────────────────────────────────────────────────────────────
   OOCSS sloj 1: dizajn tokeni, reset, tipografske primitive,
   utility klase. NIKAKVE komponente ni sekcije ovde.
   Tokeni (custom properties) = "interfejs" celog sistema:
   menjas boju/velicinu na jednom mestu, ceo sajt prati.
   ════════════════════════════════════════════════════════════════ */

/* ── Dizajn tokeni ──────────────────────────────────────────────── */
:root {
  /* Paleta (sa mockupa) */
  --c-cream:       #FAF6EE;   /* glavna pozadina stranice */
  --c-cream-deep:  #F1EADA;
  --c-beige:       #E9E0C9;   /* trake / pozadine blokova */
  --c-beige-deep:  #DCD0AF;
  --c-green:       #2C4A3B;   /* primarna — dugmad, naglasci */
  --c-green-deep:  #223A2F;
  --c-green-ink:   #1A2D24;   /* tamne sekcije / footer */
  --c-ink:         #211E18;   /* glavni tekst */
  --c-ink-soft:    #5D574A;   /* sekundarni tekst */
  --c-white:       #FFFFFF;
  --c-line:        #E4DBC5;   /* ivice, linije */

  /* Semantika — komponente citaju SAMO ove, ne sirove boje */
  --bg:            var(--c-cream);
  --fg:            var(--c-ink);
  --fg-muted:      var(--c-ink-soft);
  --surface:       var(--c-white);
  --surface-2:     var(--c-cream-deep);
  --accent:        var(--c-green);
  --accent-deep:   var(--c-green-deep);
  --on-accent:     var(--c-cream);
  --border:        var(--c-line);

  /* Tipografija */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-hand:    "Caveat", "Segoe Script", cursive;

  --fs-xs:   0.74rem;
  --fs-sm:   0.9rem;
  --fs-base: 1rem;
  --fs-md:   1.12rem;
  --fs-lg:   1.45rem;
  --fs-xl:   clamp(2rem, 4.5vw, 2.9rem);
  --fs-hero: clamp(2.7rem, 6vw, 4.2rem);
  --ls-wide: 0.18em;

  /* Raspored */
  --container:   1140px;
  --gutter:      clamp(1.1rem, 4vw, 2rem);
  --section-pad: clamp(3.5rem, 8vw, 6.25rem);
  --gap:         1.5rem;

  /* Oblici i senke — dugmad su UVEK pune pilule */
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-img:  16px;

  --shadow-1: 0 2px 10px rgb(33 30 24 / 0.06);
  --shadow-2: 0 14px 34px rgb(33 30 24 / 0.10);
  --shadow-accent: 0 14px 34px rgb(44 74 59 / 0.30);

  /* Kretanje */
  --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.16s;
  --t-med:  0.32s;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  min-height: 100svh;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  /* naslovi u nijansama hero-a (maslac): crni deo = hero ink */
  color: #38463b;
}
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--on-accent); }

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

/* ── Tipografske primitive (bez konteksta — kontekst daju sekcije) ── */
.display-1 { font-size: var(--fs-hero); letter-spacing: -0.01em; }
.display-2 { font-size: var(--fs-xl); letter-spacing: -0.005em; }
.display-3 { font-size: var(--fs-lg); }

/* rukom pisana reč iz display naslova (Caveat umesto kurziva) — site zelena,
   ista kao .hand akcenti ("Reči. Susreti. Tragovi." i sl.) */
.script {
  font-family: var(--font-hand);
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.18em;
  line-height: 0.8;
  display: inline-block;
  transform: rotate(-2deg) translateY(0.06em);
}

.text-muted { color: var(--fg-muted); }

/* ── Utility (samo vidljivost/pristupačnost — nema "skin" klase) ──── */
.u-center { text-align: center; }
.u-hidden { display: none !important; }

.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;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.7em 1.4em;
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: 1rem; }