/*
Theme Name: Knyazi Stezhky
Theme URI: https://ostrohmandry.com.ua
Author: Knyazi Stezhky Team
Author URI: https://ostrohmandry.com.ua
Description: Trilingual (UA/EN/PL) interactive hiking-trail guide theme for the "Princes' Trail" route through Ostroh, Rivne region. Single-page layout with an interactive Leaflet map, POI catalog, and waypoint detail pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: knyazi
Tags: custom-background, custom-menu, translation-ready, one-column, grid-layout
*/

/* ─── THEME TOKENS (v2 — princely heraldic identity) ─── */
[data-theme="light"],
:root {
  --bg:        #FBF4D4;
  --bg-alt:    #F5ECC4;
  --bg-card:   #FFFFFF;
  --surface:   rgba(255,255,255,.7);
  --ink:       #1F1A0E;
  --ink-muted: #574B30;
  --ink-faint: #877748;
  --line:      rgba(103,109,57,.18);
  --accent:    #676D39;
  --accent-d:  #4F5429;
  --red:       #6C0303;
  --red-d:     #8A0404;
  --gold:      #CAA64A;
  --gold-d:    #9C7A2E;
  --card-border: rgba(103,109,57,.13);
  --shadow:    0 2px 20px rgba(103,109,57,.10);
  --nav-bg:    rgba(251,244,212,.92);
  --hero-overlay: rgba(251,244,212,.35);
  --stripe: repeating-linear-gradient(135deg, #EFE6BE 0 14px, #E7DCAE 14px 28px);

  /* POI category colors */
  --c-castle:    #6C0303;
  --c-monastery: #676D39;
  --c-church:    #9C7A2E;
  --c-nature:    #4B7A44;
  --c-upa:       #3A3A3A;
}

[data-theme="dark"] {
  --bg:        #2A2F18;
  --bg-alt:    #222714;
  --bg-card:   #333A1E;
  --surface:   rgba(42,47,24,.85);
  --ink:       #F0E8C8;
  --ink-muted: #B5AB85;
  --ink-faint: #7A7255;
  --line:      rgba(251,244,212,.12);
  --accent:    #8FA052;
  --accent-d:  #A8BC65;
  --red:       #9B1A1A;
  --red-d:     #B52020;
  --gold:      #CAA64A;
  --gold-d:    #E0BE6E;
  --card-border: rgba(251,244,212,.08);
  --shadow:    0 2px 20px rgba(0,0,0,.35);
  --nav-bg:    rgba(34,39,20,.92);
  --hero-overlay: rgba(34,39,20,.5);
  --stripe: repeating-linear-gradient(135deg, #333A1E 0 14px, #2A3018 14px 28px);
}

/* Legacy alias tokens kept so any old-build class references still resolve */
:root {
  --paper: var(--bg-card);
  --muted: var(--ink-muted);
  --green: var(--accent);
  --green-d: var(--accent-d);
  --green-l: var(--bg-alt);
}

/* ─── THE TITLE FACE ───
   Every heading in main.css reads this one token, so the title typeface is
   chosen here rather than in fourteen separate rules.

   Polish gets a different face because HOLOS contains none of the eighteen
   Polish letters — ą Ą ć Ć ę Ę ł Ł ń Ń ó Ó ś Ś ź Ź ż Ż. Left alone the browser
   falls back per character, which put two or three Cormorant letters inside
   otherwise-HOLOS words. NAMU 1400 covers Latin and Cyrillic both; see
   assets/fonts/NAMU-LICENSE.txt and tools/README-fonts.md.

   Two selectors, because the language is known two different ways: Polylang
   writes lang="pl-PL" on <html>, and knyazi_body_classes() adds ks-lang-pl from
   knyazi_current_lang(), which also works when the language comes from the
   cookie rather than the URL. NAMU is NOT followed by HOLOS in the stack — if
   it failed to load, falling back to HOLOS would restore the very problem it
   was brought in to fix. */
:root {
  --font-title: 'HOLOS', 'Cormorant Garamond', Georgia, serif;
}
html[lang^="pl"],
body.ks-lang-pl {
  --font-title: 'NAMU 1400', 'Cormorant Garamond', Georgia, serif;
}

/* Actual styles live in assets/css/main.css — this file only carries the
   required WP theme header + design tokens so they're available theme-wide
   even if main.css fails to enqueue for any reason. */
