/* =============================================================================
   LAYER 2 — BASE
   Element selectors only. No classes, no components.
   Also the ONLY place GeneratePress is overridden — every override is commented with
   what it overrides and why, so a GP update has a checklist.
   ============================================================================= */

/* --- self-hosted faces (GDPR: design.md §2 bars the Google CDN) ---------------
   REAL FILES, present in assets/fonts/ since 2026-08-09 (downloaded once at build
   time from Google's servers, self-hosted forever after — no runtime CDN request).
   Ten faces: Archivo 600/700/800 + Source Sans 3 400/600, each split latin /
   latin-ext with Google's own unicode-ranges. latin-ext is NOT optional: č ć ž š đ
   live there, and without it every Croatian word falls back mid-sentence.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-600-latin-ext.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-700-latin-ext.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-700-latin.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-800-latin-ext.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-800-latin.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-600-latin-ext.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- document ------------------------------------------------------------- */
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--surface);
}

/* GP OVERRIDE: GeneratePress sets its own h1-h6 sizes from the Customizer. We own the
   type scale (design.md §2), so these must win. If a GP update changes specificity here,
   this is the block to check. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  color: var(--sea);
  line-height: var(--lh-head);
  text-wrap: balance;
  margin: 0 0 var(--s3);
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: var(--fs-h1-m); }
  h2 { font-size: var(--fs-h2-m); }
  h3 { font-size: var(--fs-h3-m); }
}

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

/* Links on white are --sea, NEVER --azure. Azure at ~2.4:1 on white is exactly the
   low-contrast defect the old site shipped; design.md §1 bars it explicitly. */
a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--sea-dark); }

small, figcaption { font-size: var(--fs-small); color: var(--muted); }
strong, b { font-weight: 600; }

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

/* --- focus (design.md §6, non-negotiable) --------------------------------- */
/* GP OVERRIDE: GeneratePress removes outlines on several interactive elements.
   Accessibility sits above tokens in the precedence order, so this wins unconditionally. */
:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* --- tables: defaults only; the responsive behaviour is a component -------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: var(--s3); vertical-align: top; }
th { font-family: var(--f-display); font-weight: 600; }

/* Digits that line up in columns get tabular figures — regs dates, sizes, prices. */
table, .sr-tnum { font-variant-numeric: tabular-nums; }

/* --- forms ---------------------------------------------------------------- */
input, select, textarea, button { font: inherit; }
input[type="text"], input[type="email"], input[type="search"], select, textarea {
  padding: 10px var(--s3);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  background: var(--surface);
  color: var(--ink);
  max-width: 100%;
}

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