/*
 * ANKF design tokens.
 *
 * Primitive tokens hold raw brand values; semantic tokens assign them a
 * purpose. Components consume the semantic tokens only, so a brand change
 * stays a one-line edit here.
 *
 * Palette: dark navy foundation with the Armenian flag colours (red, blue,
 * apricot-gold) used as controlled accents.
 */

:root {
    color-scheme: light;

    /* --- Primitives ----------------------------------------------------- */
    --navy-950: #030b18;
    --navy-900: #061428;
    --navy-850: #0a1c37;
    --navy-800: #0e2749;
    --navy-700: #143462;
    --navy-600: #1c4a86;

    --blue-600: #1f4fa3;
    --blue-500: #2b64c6;

    --red-600: #d61032;
    --red-700: #b00d29;

    --gold-500: #f2a900;
    --gold-400: #ffc247;
    /* Text-safe gold. The brand golds are decorative on light surfaces:
     * #f2a900 on --surface-50 measures 1.87:1, far under the 4.5:1 that
     * normal-size text needs. This one measures 4.87:1 there and 5.22:1 on
     * white, so gold lettering can stay gold without failing AA. */
    --gold-700: #956200;

    --surface-0: #ffffff;
    --surface-50: #f5f7fb;
    --surface-100: #e9eef6;

    --ink-900: #0a1324;
    --ink-700: #33415a;
    --ink-500: #64748b;

    --white-95: rgba(255, 255, 255, 0.95);
    --white-70: rgba(255, 255, 255, 0.72);
    --white-50: rgba(255, 255, 255, 0.52);
    --white-12: rgba(255, 255, 255, 0.12);
    --white-06: rgba(255, 255, 255, 0.06);

    /* --- Semantic: surfaces --------------------------------------------- */
    --bg-page: var(--surface-0);
    --bg-subtle: var(--surface-50);
    --bg-inverse: var(--navy-950);
    --bg-brand: var(--navy-900);

    --surface-card: var(--surface-0);
    --surface-card-inverse: var(--navy-850);
    --surface-raised: var(--navy-800);

    /* --- Semantic: text -------------------------------------------------- */
    --text-primary: var(--ink-900);
    --text-secondary: var(--ink-700);
    --text-muted: var(--ink-500);
    --text-inverse: var(--white-95);
    --text-inverse-muted: var(--white-70);

    /* --- Semantic: accents ----------------------------------------------- */
    --accent-primary: var(--red-600);
    --accent-primary-hover: var(--red-700);
    --accent-secondary: var(--blue-600);
    --accent-highlight: var(--gold-500);
    /*
     * Gold that carries TEXT, as opposed to gold that decorates.
     *
     * Light surfaces are the default, so this resolves to the dark gold.
     * Dark bands re-point it at --gold-400 (see "inverse surfaces" in
     * main.css) because the dark gold only reaches 3.26:1 on navy -- the two
     * cases genuinely need different values and neither one works for both.
     */
    --accent-highlight-text: var(--gold-700);

    /* --- Semantic: borders ----------------------------------------------- */
    --border-default: #d7dfec;
    --border-strong: #b6c3d8;
    --border-inverse: var(--white-12);

    /* --- Focus ----------------------------------------------------------- */
    --focus-ring: var(--blue-500);
    --focus-width: 3px;
    --focus-offset: 3px;

    /* --- Typography ------------------------------------------------------ */
    --font-sans: "Segoe UI", "Noto Sans Armenian", "Helvetica Neue", Arial,
        sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: clamp(1.2rem, 0.5vw + 1.05rem, 1.4rem);
    --text-2xl: clamp(1.45rem, 1vw + 1.2rem, 1.9rem);
    /* Steeper on small screens so the longest Armenian section-title word
       ("իրադարձություններ") fits a 320px phone without breaking mid-word;
       unchanged at 768px and capped as before on desktop. */
    --text-3xl: clamp(1.5rem, 2.4vw + 1.1rem, 2.6rem);
    --text-4xl: clamp(2.1rem, 3.6vw + 1.2rem, 3.6rem);

    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.65;

    /* --- Spacing --------------------------------------------------------- */
    --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;

    --page-padding: 1.25rem;
    --section-spacing: 3.5rem;

    --container-content: 1200px;
    --container-wide: 1440px;
    --container-reading: 44rem;

    /* --- Radii and shadows ----------------------------------------------- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(6, 20, 40, 0.08);
    --shadow-md: 0 10px 24px rgba(6, 20, 40, 0.10);
    --shadow-lg: 0 24px 60px rgb(37 88 173 / 35%);

    /* --- Motion ---------------------------------------------------------- */
    --duration-fast: 120ms;
    --duration-base: 220ms;
    --easing: cubic-bezier(0.2, 0, 0.2, 1);

    /* --- Controls -------------------------------------------------------- */
    --touch-target: 44px;
}

@media (min-width: 768px) {
    :root {
        --page-padding: 2rem;
        --section-spacing: 4.5rem;
    }
}

@media (min-width: 1280px) {
    :root {
        --page-padding: 2.5rem;
        --section-spacing: 5.5rem;
    }
}
