/* ============================================================
   KALYNA DESIGN SYSTEM
   Sprint R1 — Design tokens (2026-05-12)
   Reference: alpakagear.com minimal + vyshyvanka heritage
   This file defines variables only — no selectors.
   Each later sprint consumes these tokens.
   ============================================================ */

:root,
.light-theme,
.dark-theme {

	/* ===== COLORS ===== */

	/* Neutrals */
	--k-black:           #0a0a0a;
	--k-ink:             #111111;     /* primary body text */
	--k-ink-muted:       #6b7280;     /* secondary text */
	--k-ink-soft:        #9ca3af;     /* tertiary / disabled */
	--k-border:          #e5e7eb;     /* dividers, hairlines */
	--k-border-strong:   #d1d5db;
	--k-bg:              #ffffff;     /* page background */
	--k-bg-alt:          #f7f7f5;     /* section background (off-white) */
	--k-bg-dark:         #0a0a0a;     /* footer / hero overlay */
	--k-white:           #ffffff;
	--k-overlay:         rgba(10,10,10,0.55);

	/* Accent — carmine red (Ukrainian vyshyvanka heritage) */
	--k-accent:          #c8102e;
	--k-accent-hover:    #a30d25;
	--k-accent-soft:     #fde7eb;
	--k-accent-ink:      #ffffff;     /* text on accent bg */

	/* Semantic */
	--k-success:         #10b981;
	--k-warning:         #f59e0b;
	--k-danger:          #ef4444;
	--k-info:            #3b82f6;

	/* ===== TYPOGRAPHY ===== */

	/* Font families — джерело правди kalyna/01-tokens.css (іде пізніше і
	   перекриває). Manrope/Inter спринту R1 у макеті нема і більше не
	   підключаються; тут лише запасні значення на шрифтах макета. */
	--k-font-display:    'Vinnytsia Serif', 'Times New Roman', serif;
	--k-font-body:       var(--k-font-text, 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
	--k-font-mono:       ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

	/* Modular type scale (1.25 ratio) */
	--k-fs-xs:           0.75rem;     /* 12px — labels, micro */
	--k-fs-sm:           0.875rem;    /* 14px — small body */
	--k-fs-base:         1rem;        /* 16px — body */
	--k-fs-md:           1.125rem;    /* 18px — large body */
	--k-fs-lg:           1.25rem;     /* 20px — h5 */
	--k-fs-xl:           1.5rem;      /* 24px — h4 */
	--k-fs-2xl:          2rem;        /* 32px — h3 */
	--k-fs-3xl:          2.5rem;      /* 40px — h2 */
	--k-fs-4xl:          3.25rem;     /* 52px — h1 */
	--k-fs-5xl:          4.5rem;      /* 72px — hero display */

	/* Weights */
	--k-fw-regular:      400;
	--k-fw-medium:       500;
	--k-fw-semibold:     600;
	--k-fw-bold:         700;
	--k-fw-extra:        800;

	/* Line heights */
	--k-lh-tight:        1.1;
	--k-lh-snug:         1.25;
	--k-lh-normal:       1.5;
	--k-lh-loose:        1.7;

	/* Letter spacing */
	--k-ls-tight:        -0.02em;
	--k-ls-normal:       0;
	--k-ls-wide:         0.05em;
	--k-ls-wider:        0.08em;      /* CTA buttons */
	--k-ls-widest:       0.14em;      /* uppercase labels */

	/* ===== SPACING (4px base) ===== */
	--k-sp-1:            4px;
	--k-sp-2:            8px;
	--k-sp-3:            12px;
	--k-sp-4:            16px;
	--k-sp-5:            24px;
	--k-sp-6:            32px;
	--k-sp-7:            48px;
	--k-sp-8:            64px;
	--k-sp-9:            96px;
	--k-sp-10:           128px;

	/* ===== LAYOUT ===== */
	--k-container:       1280px;
	--k-container-wide:  1440px;
	--k-gutter:          24px;
	--k-gutter-lg:       32px;

	--k-header-h:        80px;
	--k-header-h-mobile: 60px;
	--k-topbar-h:        36px;        /* thin announcement strip */

	/* ===== RADIUS — flat by design ===== */
	--k-r-none:          0;
	--k-r-pill:          9999px;      /* explicit opt-in for pills/avatars */
	--k-r-circle:        50%;

	/* Override Upstore theme radii to 0 (Alpaka-style sharp edges) */
	--up-border-radius-large:  0;
	--up-border-radius-medium: 0;
	--up-border-radius-small:  0;

	/* ===== MOTION ===== */
	--k-ease:            cubic-bezier(0.4, 0, 0.2, 1);
	--k-ease-out:        cubic-bezier(0, 0, 0.2, 1);
	--k-ease-in:         cubic-bezier(0.4, 0, 1, 1);
	--k-dur-fast:        150ms;
	--k-dur:             250ms;
	--k-dur-slow:        400ms;

	/* ===== Z-INDEX ===== */
	--k-z-base:          1;
	--k-z-header:        100;
	--k-z-dropdown:      200;
	--k-z-overlay:       500;
	--k-z-modal:         1000;
	--k-z-toast:         1100;

	/* ===== SHADOWS — used sparingly ===== */
	--k-shadow-sm:       0 1px 2px rgba(0,0,0,0.04);
	--k-shadow:          0 4px 16px rgba(0,0,0,0.06);
	--k-shadow-lg:       0 12px 32px rgba(0,0,0,0.08);
	--k-shadow-overlay:  0 24px 48px rgba(0,0,0,0.12);
}

/* ============================================================
   END R1 — Sprint R2 (typography) will define selectors
   that consume these tokens.
   ============================================================ */
