/**
 * Kultiva — base styles: fonts, design tokens, global type, focus and motion.
 *
 * Every value comes from the design's "Handoff — tokens" board (October 2026).
 * New code uses the --k-* tokens. The older --kultiva-* and --color-* names
 * below are aliases that keep pages not yet rebuilt in the new palette; they go
 * once the last page is migrated.
 */

/* ============================================
   FONTS (self-hosted; SIL Open Font License, see assets/fonts/web/)
   ============================================ */

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("../assets/fonts/web/archivo-latin.de2f1fe81758.woff2") format('woff2');
    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';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("../assets/fonts/web/archivo-latin-ext.589f7bc0fac4.woff2") format('woff2');
    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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Noto Sans Armenian';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62.5% 100%;
    font-display: swap;
    src: url("../assets/fonts/web/noto-sans-armenian.d32d3b62ac6c.woff2") format('woff2');
    unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/web/ibm-plex-mono-400.79936b18df9f.woff2") format('woff2');
    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: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../assets/fonts/web/ibm-plex-mono-500.b1c8a895f5fd.woff2") format('woff2');
    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: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../assets/fonts/web/ibm-plex-mono-600.5a2ce7798732.woff2") format('woff2');
    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;
}


/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
    /* Brand and neutrals */
    --k-night: #0F1A2E;
    --k-ink: #1C2A44;
    --k-navy: #26365A;
    --k-green: #2F7A3B;
    --k-green-dark: #276832;
    --k-green-press: #1F4D27;
    --k-leaf: #3F8A44;
    --k-harvest: #F2C230;
    --k-ground: #F3F4EF;
    --k-stage: #E7EBE1;
    --k-line: #DCE0D7;
    --k-line-soft: #E4E7E0;
    --k-body: #3A4557;
    --k-muted: #5B6472;
    --k-field: #7D8679;
    --k-chip-line: #C5CCC0;
    --k-white: #FFFFFF;

    /* Status: text on its tint */
    --k-success: #1F4D27;
    --k-success-bg: #E6F0E3;
    --k-warning: #3D3000;
    --k-warning-bg: #FBF0C9;
    --k-danger: #B42318;
    --k-danger-bg: #FDECEA;
    --k-info: #26365A;
    --k-info-bg: #E6EAF1;

    /* On Night backgrounds */
    --k-on-night: #FFFFFF;
    --k-on-night-2: #C9D1DE;
    --k-on-night-muted: #8E9AB0;
    --k-on-night-edge: #2A3854;

    /* Type */
    --k-sans: Archivo, "Noto Sans Armenian", "Helvetica Neue", Arial, sans-serif;
    --k-mono: "IBM Plex Mono", "Noto Sans Armenian", ui-monospace, monospace;

    /* Space, shape, depth */
    --k-section-y: 28px;
    --k-gutter: clamp(16px, 4vw, 64px);
    --k-radius-badge: 4px;
    --k-radius-tag: 6px;
    --k-radius-nav: 8px;
    --k-radius-control: 10px;
    --k-radius-button: 12px;
    --k-radius-card: 14px;
    --k-radius-dialog: 16px;
    --k-radius-sheet: 20px;
    --k-radius-panel: 24px;
    --k-shadow-raised: 0 6px 14px rgba(15, 26, 46, 0.06);
    --k-shadow-hover: 0 10px 24px rgba(15, 26, 46, 0.10);
    --k-shadow-bar: 0 -1px 0 #DCE0D7, 0 -8px 24px rgba(15, 26, 46, 0.12);
    --k-shadow-dialog: 0 24px 48px rgba(15, 26, 46, 0.24);
    --k-shadow-sheet: 0 -12px 32px rgba(15, 26, 46, 0.28);

    /* Motion */
    --k-ease: cubic-bezier(0.2, 0, 0, 1);
    --k-fast: 120ms;
    --k-base: 200ms;
    --k-slow: 280ms;

    /* Bootstrap, pointed at the tokens */
    --bs-body-font-family: var(--k-sans);
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.5;
    --bs-body-color: var(--k-body);
    --bs-body-bg: var(--k-white);
    --bs-emphasis-color: var(--k-night);
    --bs-secondary-color: var(--k-muted);
    --bs-heading-color: var(--k-ink);
    --bs-link-color: var(--k-ink);
    --bs-link-color-rgb: 28, 42, 68;
    --bs-link-hover-color: var(--k-green-dark);
    --bs-link-hover-color-rgb: 39, 104, 50;
    --bs-border-color: var(--k-line);
    --bs-border-radius: var(--k-radius-control);
    --bs-focus-ring-color: rgba(242, 194, 48, 0.6);

    /* Legacy aliases for pages not yet rebuilt */
    --kultiva-green: var(--k-green);
    --kultiva-green-dark: var(--k-green-dark);
    --kultiva-gold: var(--k-harvest);
    --kultiva-earth: var(--k-navy);
    --kultiva-grey: var(--k-body);
    --kultiva-light: var(--k-ground);
    --kultiva-warm-white: var(--k-white);
    --color-primary: var(--k-ink);
    --color-primary-dark: var(--k-night);
    --color-accent: var(--k-harvest);
    --color-text: var(--k-body);
    --color-bg-light: var(--k-ground);
    --color-bg-warm: var(--k-white);
    --color-card-bg: var(--k-white);
    --font-heading: var(--k-sans);
    --font-body: var(--k-sans);
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50%;
    --shadow-sm: 0 2px 4px rgba(15, 26, 46, 0.08);
    --shadow-md: var(--k-shadow-raised);
    --shadow-lg: var(--k-shadow-hover);
    --shadow-xl: var(--k-shadow-hover);
    --transition-fast: 120ms ease-out;
    --transition-base: 200ms ease-out;
    --transition-slow: 280ms ease-out;
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1050;
    --z-modal: 1055;
    --z-toast: 1090;
}

@media (min-width: 992px) {
    :root {
        --k-section-y: clamp(40px, 5vw, 80px);
    }
}


/* ============================================
   GLOBAL
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--k-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--k-body);
    background-color: var(--k-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 992px) {
    body {
        line-height: 1.55;
    }
}


/* ============================================
   TYPOGRAPHY (phone first; tablet from 768 px, desktop from 992 px)
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--k-sans);
    font-weight: 800;
    color: var(--k-ink);
    margin-bottom: 0.75rem;
    text-wrap: balance;
}

h1, .k-h1 { font-size: 34px; line-height: 1; font-stretch: 85%; }
h2, .k-h2 { font-size: 28px; line-height: 1.05; font-stretch: 85%; }
h3, .k-h3 { font-size: 20px; line-height: 1.25; font-stretch: 88%; }
h4, .k-h4 { font-size: 18px; line-height: 1.3; }
h5, .k-h5 { font-size: 16px; line-height: 1.35; }
h6, .k-h6 { font-size: 14px; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.k-display {
    font-size: 42px;
    line-height: 0.98;
    font-weight: 800;
    font-stretch: 85%;
    letter-spacing: -0.015em;
}

p {
    margin-bottom: 1rem;
}

.lead, .k-lead {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 400;
}

small, .small, .k-small {
    font-size: 14px;
    line-height: 1.45;
}

/* Spec tags and eyebrows */
.k-label {
    font-family: var(--k-mono);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.k-num {
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    h1, .k-h1 { font-size: 48px; }
    h2, .k-h2 { font-size: 36px; line-height: 1.02; }
    h3, .k-h3 { font-size: 22px; line-height: 1.2; }
    .k-display { font-size: 58px; }
}

@media (min-width: 992px) {
    h1, .k-h1 { font-size: 56px; }
    h2, .k-h2 { font-size: 44px; }
    h3, .k-h3 { font-size: 24px; line-height: 1.15; }
    h4, .k-h4 { font-size: 20px; }
    h5, .k-h5 { font-size: 17px; }
    .k-display { font-size: 76px; }
    .lead, .k-lead { font-size: 18px; line-height: 1.55; }
    .k-label { font-size: 13px; letter-spacing: 0.08em; }
}

/* Armenian: sizes stay; headings never narrower than 80%; labels keep their case */
:lang(hy) h6, :lang(hy) .k-h6,
:lang(hy) .k-label {
    text-transform: none;
    letter-spacing: 0;
}


/* ============================================
   LAYOUT HELPERS
   ============================================ */

/* Content tops out at 1,280 px inside a 1,408 px container */
.k-container {
    width: 100%;
    max-width: 1408px;
    margin-inline: auto;
    padding-inline: var(--k-gutter);
}

.k-section {
    padding-block: var(--k-section-y);
}

.k-surface {
    background: var(--k-ground);
}

.k-skip {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--k-radius-control);
    background: var(--k-night);
    color: var(--k-white);
    font-weight: 700;
    text-decoration: none;
}

.k-skip:focus {
    top: 12px;
    color: var(--k-white);
}


/* ============================================
   FOCUS AND MOTION
   ============================================ */

/* One focus ring everywhere: a 2 px Night ring inside a 3 px Harvest outline */
:focus-visible {
    outline: 3px solid var(--k-harvest);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--k-night);
}

:focus:not(:focus-visible) {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
