/* ==========================================================================
   KANAF design tokens: midnight navy and champagne gold on paper.
   The token NAMES are guri.life's (the plugins' 4,800 lines of CSS read them), the VALUES are KANAF's:
   --dk-teal is the navy, --dk-clay is the deep gold accent, --dk-mustard is champagne gold,
   --dk-cream is paper, --dk-paper is the white card.
   Gold is for accents only, never a large background.
   ========================================================================== */

:root {
	/* Brand (KANAF names) */
	--kf-night: #15233F;
	--kf-night-deep: #0E182E;
	--kf-night-soft: #24365C;
	--kf-ink: #1B2333;
	--kf-smoke: #6A7282;
	--kf-paper: #FAF7F2;
	--kf-white: #FFFFFF;
	--kf-sand: #E9D9C5;
	--kf-line: #E8E1D4;
	--kf-gold: #C9A46E;
	--kf-gold-light: #F3E3C3;
	--kf-gold-mid: #D9BC8C;
	--kf-gold-ink: #8C6A35; /* gold for text: 4.9:1 on white */
	--kf-sage: #9DB4A4;
	--kf-water: #2F6F73;
	--kf-coral: #B5523F;
	--kf-gold-gradient: linear-gradient(135deg, #F3E3C3 0%, #D9BC8C 45%, #F6E9CF 70%, #C9A46E 100%);

	/* Palette (guri.life names, KANAF values) */
	--dk-cream: #FAF7F2;
	--dk-cream-2: #F3EEE6;
	--dk-paper: #FFFFFF;
	--dk-sand: #E9D9C5;
	--dk-ink: #1B2333;
	--dk-ink-2: #3A4255;
	--dk-muted: #6A7282;
	--dk-line: #E8E1D4;
	--dk-line-2: #DCD3C4;

	--dk-teal: #15233F;
	--dk-teal-600: #24365C;
	--dk-teal-400: #5A6B8C;
	--dk-teal-100: #DDE3EE;
	--dk-teal-50: #F0F3F8;

	--dk-clay: #8C6A35;
	--dk-clay-600: #73562A;
	--dk-clay-400: #B08A52;
	--dk-clay-100: #F3E3C3;
	--dk-clay-50: #FBF6EC;

	--dk-mustard: #C9A46E;
	--dk-mustard-600: #A9834B;
	--dk-mustard-100: #F3E3C3;

	--dk-sage: #9DB4A4;
	--dk-sage-600: #5E7D69;
	--dk-sage-100: #E6EEE8;
	--dk-moss: #4F6B58;

	--dk-sky: #E4EFEF;
	--dk-sky-100: #F0F6F6;
	--dk-sky-600: #2F6F73;
	--dk-peach: #F6EDDE;
	--dk-blush: #F4E7E2;
	--dk-banana: #C9A46E;

	--dk-success: #4F7D62;
	--dk-warn: #B5523F;
	--dk-danger: #A3402F;

	/* Semantic */
	--dk-bg: var(--dk-cream);
	--dk-surface: var(--dk-paper);
	--dk-text: var(--dk-ink);
	--dk-text-soft: var(--dk-ink-2);
	--dk-primary: var(--dk-teal);
	--dk-primary-hover: var(--kf-night-deep);
	--dk-secondary: var(--dk-teal);
	--dk-focus: rgba(201, 164, 110, .55);

	/* Type: Heebo for headings, Assistant for reading and the interface (base 17px) */
	--dk-font-display: 'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--dk-font-body: 'Assistant', 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--dk-font-head: var(--dk-font-display);
	--dk-fs-xs: .78rem;
	--dk-fs-sm: .9rem;
	--dk-fs-md: 1.0625rem;
	--dk-fs-lg: 1.18rem;
	--dk-fs-xl: 1.4rem;
	--dk-fs-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	--dk-fs-3xl: clamp(1.9rem, 1.45rem + 1.9vw, 2.75rem);
	--dk-fs-4xl: clamp(2.3rem, 1.6rem + 3vw, 3.9rem);
	--dk-lh-tight: 1.2;
	--dk-lh: 1.65;

	/* Shape: 18 to 28px for cards and panels */
	--dk-r-xs: 10px;
	--dk-r-sm: 14px;
	--dk-r: 18px;
	--dk-r-lg: 22px;
	--dk-r-xl: 28px;
	--dk-r-pill: 999px;
	--dk-radius: var(--dk-r);
	--dk-radius-sm: var(--dk-r-sm);
	--dk-radius-lg: var(--dk-r-lg);
	--dk-radius-xl: var(--dk-r-xl);
	--dk-blob: 28px; /* guri.life's organic blob: a plain rounded corner on KANAF */

	/* Depth: soft navy shadows */
	--dk-shadow-xs: 0 1px 2px rgba(21, 35, 63, .06);
	--dk-shadow-sm: 0 1px 2px rgba(21, 35, 63, .04), 0 8px 20px -14px rgba(21, 35, 63, .22);
	--dk-shadow: 0 18px 40px -28px rgba(21, 35, 63, .35), 0 2px 6px rgba(21, 35, 63, .04);
	--dk-shadow-lg: 0 28px 60px -30px rgba(21, 35, 63, .45), 0 4px 12px rgba(21, 35, 63, .06);
	--dk-shadow-pop: 0 10px 22px -12px rgba(21, 35, 63, .6);
	--dk-ring: 0 0 0 3px var(--dk-paper), 0 0 0 5px var(--dk-focus);

	/* Space */
	--dk-gap-xs: .35rem;
	--dk-gap-sm: .65rem;
	--dk-gap: 1rem;
	--dk-gap-lg: 1.6rem;
	--dk-gap-xl: 2.75rem;
	--dk-gutter: clamp(16px, 4vw, 32px);

	/* App chrome */
	--dk-header-h: 64px;
	--dk-bottom-nav-h: 0px; /* 68px while the members' tab bar shows (phones) */
	--dk-safe-bottom: env(safe-area-inset-bottom, 0px);

	/* Motion: slow, soft and precise, like paper unfolding. Never bouncy. */
	--dk-ease: cubic-bezier(.22, .61, .36, 1);
	--dk-ease-bounce: cubic-bezier(.22, .61, .36, 1);
	--dk-dur: .28s;

	/* Textures: none (guri.life's grain, swoosh and squiggle become quiet lines) */
	--dk-grain: none;
	--dk-swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 L198 5' fill='none' stroke='%23C9A46E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	--dk-squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M0 6 H120' fill='none' stroke='%23E8E1D4' stroke-width='1.5'/%3E%3C/svg%3E");

	/* guri.life's "fridge door" layer, neutralised for the plugins that still read these */
	--dk-font-hand: var(--dk-font-display);
	--dk-edge: rgba(21, 35, 63, .1);
	--dk-sticky: #F6EEDC;
	--dk-sticky-2: #F4E9E4;
	--dk-sticky-3: #E7F0F0;
	--dk-sticky-4: #E9F0EA;
	--dk-coin: #D9BC8C;
	--dk-coin-dark: #A9834B;
	--dk-doodles: none;
	--dk-tape: none;
	--dk-tape-sage: none;
	--dk-tape-clay: none;
}

@media (prefers-reduced-motion: reduce) {
	:root { --dk-dur: 0s; }
}

/* Sticky offsets below the header (the Elementor header is a single row). */
@media (min-width: 960px) { :root { --dk-header-h: 76px; } }

/* The members' tab bar shows on phones only. */
@media (max-width: 959px) { body.dk-has-bottom-nav { --dk-bottom-nav-h: 68px; } }
