/* Draci Strakonice: design tokens.
   Every colour, size and duration used by the other files lives here. Components never use a raw hex. */

:root {
  color-scheme: light;

  /* ---------- colour: ground, ink, accent ---------- */
  --ground: #F3F5F1;        /* page ground: river mist, low-chroma */
  --surface: #E6EAE3;       /* one tone step from the ground: tiles, closed accordion rows */
  --sheet: #FFFFFF;         /* panel cards, dialogs, menus, form fields */
  --ink: #0B1F3A;           /* dragon navy: all text and the strongest marks (15.1:1 on ground) */
  --ink-hover: #2A3F5F;     /* hover on ink-filled buttons */
  --muted: #4A5868;         /* secondary text (6.6:1 on ground, 6.0:1 on surface) */
  --accent: #F2B400;        /* dragon gold: the primary action and the motif, never text on light grounds */
  --accent-hover: #FFC21A;
  --accent-ink: #0B1F3A;    /* text on gold (8.9:1) */
  --on-ink: #FFFFFF;        /* text on navy fields */
  --on-ink-muted: #C9D2DC;  /* secondary text on navy fields (10.8:1) */

  /* app lines: panel and forms only; public pages separate by tone, never by lines */
  --line: #DCE1D9;          /* card edges in the panel */
  --rule: #ECEFEA;          /* row rules inside panel lists */
  --control: #7A8694;       /* input and checkbox borders, 3.7:1 on white (WCAG 1.4.11) */

  /* ---------- the one data hue (panel), "Otava blue" ---------- */
  --blue: #2346D8;          /* data marks, active nav icon, links in the panel (7.2:1 on white) */
  --blue-ink: #1A3399;      /* text on blue tints */
  --blue-50: #EEF2FF;       /* active nav row, selected states, progress track */
  --blue-100: #DCE4FF;

  /* ---------- the five crews (fields on the public site, identity tints in the panel) ---------- */
  --crew-buchta: #1A2CA3;      --crew-buchta-ink: #FFFFFF;      --crew-buchta-tint: #E4E7F8;
  --crew-klidek: #5FE0B8;      --crew-klidek-ink: #0B1F3A;      --crew-klidek-tint: #DBF7EE;
  --crew-rumpalnice: #62DDE8;  --crew-rumpalnice-ink: #0B1F3A;  --crew-rumpalnice-tint: #DBF5F8;
  --crew-samavoda: #13305E;    --crew-samavoda-ink: #FFFFFF;    --crew-samavoda-tint: #E1E6EE;
  --crew-slavici: #7C9BFF;     --crew-slavici-ink: #0B1F3A;     --crew-slavici-tint: #E8EDFF;

  /* ---------- map ---------- */
  --water: #A9D3E2;        /* river on the static map */
  --water-ink: #1E5A72;    /* river label, 5.5:1 on water */
  --map-land: #EEF1EC;

  /* ---------- status (pale tint + dark ink of the same hue) ---------- */
  --ok-bg: #DDF5E6;    --ok-ink: #1E6B45;
  --bad-bg: #FCE8E6;   --bad-ink: #8C1D18;   --bad: #B3261E;
  --note-bg: #FFF1C7;  --note-ink: #7A4A00;
  --neutral-bg: #DDE3EA; --neutral-ink: #0B1F3A;

  /* ---------- type ---------- */
  --font-display: "League Spartan", "Avenir Next", Futura, "Segoe UI", Arial, sans-serif;
  --font-text: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* public pages: five steps, far apart */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);   /* 13-14 captions, meta */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);     /* 17-19 running text */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);       /* 20-26 supporting line, tile questions */
  --step-sub: clamp(1.5rem, 1.2rem + 1vw, 2rem);               /* 24-32 headings inside a section */
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);              /* 32-64 section headings */
  --step-display: clamp(2.75rem, 6.4vw, 6.25rem);              /* 44-100 hero h1 */

  --display-tracking: -0.04em;
  --display-leading: 0.92;  /* 0.88 on the sheet; 0.92 keeps Czech carons (Č Ř Š Ž ě) clear of the line above */
  --head-tracking: -0.03em;

  /* panel: app scale */
  --fs-12: 0.75rem;   /* meta, axis, pills (nothing smaller) */
  --fs-14: 0.875rem;  /* cells, nav, labels */
  --fs-16: 1rem;      /* body, card titles */
  --fs-20: 1.25rem;   /* section title on phone, lead figure */
  --fs-24: 1.5rem;    /* page title (h1) */
  --fs-28: 1.75rem;   /* the screen's answer figure */

  /* ---------- space (4px base) ---------- */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;  --space-4: 1rem;
  --space-5: 1.5rem;   --space-6: 2rem;    --space-7: 3rem;     --space-8: 4rem;
  --space-9: 6rem;     --space-10: 8rem;

  --margin: clamp(1rem, 5vw, 4.5rem);     /* one pair of page margins, 16-72px */
  --gutter: clamp(1rem, 2vw, 2rem);       /* grid column gap */
  --section: clamp(5rem, 11vw, 10rem);    /* gap between public sections, 80-160px */
  --measure: 62ch;

  /* panel */
  --sidebar: 15rem;     /* 240px */
  --app-pad: 2rem;      /* canvas gutter on desktop */
  --app-gap: 1rem;      /* one gutter, both directions */
  --card-pad: 1.25rem;
  --bottom-nav: 4rem;   /* 64px + safe area */

  /* ---------- shape ---------- */
  --radius: 0;            /* public: tiles and fields are square; pictures and buttons take the hull */
  --radius-card: 8px;     /* panel cards and dialogs */
  --radius-control: 6px;  /* panel inputs and buttons */
  --radius-pill: 999px;   /* status pills, avatars */
  --tip: 12%;             /* hull: length of the pointed bow and stern (see .hull in components.css) */

  --touch: 2.75rem;       /* 44px minimum target */
  --control-h: 2.75rem;   /* 44px inputs and buttons in the panel */
  --button-h: 3.25rem;    /* 52px public buttons */

  /* ---------- elevation: only things that float ---------- */
  --shadow-float: 0 18px 40px rgb(11 31 58 / 0.18), 0 2px 8px rgb(11 31 58 / 0.08);

  /* ---------- motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  /* durations of the motion layer (motion.css) */
  --dur-1: 120ms;   /* press, colour */
  --dur-2: 200ms;   /* hover, small state changes, leaving */
  --dur-3: 360ms;   /* disclosure, sheet, flash */
  --dur-4: 800ms;   /* hero, scroll reveal */
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --t-open: 1200ms;
  --stagger: 80ms;

  --z-sticky: 10;
  --z-nav: 50;
  --z-sheet: 100;
}
