/* ============================================================================
   tokens.css — design tokens (Nordic minimal palette)
   ========================================================================= */

@layer reset, base, layout, components, utilities, overrides;

:root {
	/* === Color — neutral base (warm off-white) ============================ */
	--color-bg: #fafaf7;
	--color-bg-subtle: #f4f4ef;
	--color-bg-muted: #efefea;
	--color-border: #e8e8e5;
	--color-border-strong: #dcdcd7;

	/* === Color — text (ink scale) ======================================== */
	--color-text: #1a1a1a;
	--color-text-muted: #4a4a47;
	--color-text-subtle: #8a8a85;

	/* === Color — brand & accents (Nordic navy + warm yellow) ============= */
	--color-brand: #003580;
	--color-brand-hover: #002a66;
	--color-accent: #ffce00;
	--color-accent-hover: #f0c000;

	/* === Color — semantic ================================================ */
	--color-success: #5c7f5a;
	--color-success-bg: #edf2ec;
	--color-success-border: #d5dfd3;
	--color-warning: #b8860b;
	--color-danger: #b32424;
	--color-info: #003580;
	--color-info-bg: #edf1f8;
	--color-info-border: #d2dcec;

	--color-rating-star: #1a1a1a;
	--color-rating-star-off: #dcdcd7;

	--color-row-top-bg: linear-gradient(to right, #fffbe8 0%, transparent 60%);

	/* === Typography ====================================================== */
	--font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--font-display: var(--font-sans);
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-md: 1.125rem;
	--fs-lg: 1.25rem;
	--fs-xl: 1.5rem;
	--fs-2xl: 1.75rem;
	--fs-3xl: 2.25rem;
	--fs-4xl: 3rem;
	--fs-5xl: 4.5rem;

	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;
	--fw-black: 800;

	--lh-tight: 1.02;
	--lh-snug: 1.2;
	--lh-normal: 1.6;
	--lh-relaxed: 1.75;

	--tracking-tight: -0.035em;
	--tracking-snug: -0.02em;
	--tracking-normal: -0.01em;
	--tracking-wide: 0.06em;
	--tracking-wider: 0.1em;
	--tracking-widest: 0.12em;

	/* === Spacing scale (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: 5.5rem;
	--space-10: 8rem;

	/* === Layout ========================================================== */
	--container-max: 1200px;
	--container-narrow: 760px;
	--container-padding: clamp(1.25rem, 3vw, 2rem);

	/* === Radii (Nordic — sharp) ========================================== */
	--radius-sm: 2px;
	--radius-md: 4px;
	--radius-lg: 4px;
	--radius-xl: 8px;
	--radius-full: 999px;

	/* === Shadows (restrained) ============================================ */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 2px 8px rgba(0, 0, 0, 0.05);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.07);

	/* === Transitions ===================================================== */
	--transition-fast: 120ms ease;
	--transition-base: 200ms ease;

	/* === Z-index ========================================================= */
	--z-dropdown: 100;
	--z-sticky: 200;
	--z-modal: 1000;
}
