/* HoardIQ — Organized Warmth design tokens (shared: landing, web app, blog) */

/* Self-hosted fonts (no Google Fonts CDN — GDPR / ePrivacy) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-400-normal.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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-500-normal.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: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-600-normal.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: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-700-normal.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: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext-400-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-400-italic.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: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fraunces-latin-500-normal.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: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin-600-normal.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: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-700-normal.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: 'Fraunces';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext-800-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/fraunces-latin-800-normal.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;
}

:root {
  --cream: #faf8f5;
  --canvas: var(--cream);
  --bg: var(--cream);
  --ink: #0f172a;
  --ink2: #475569;
  --ink3: #94a3b8;
  --surface: #fff;
  --surface2: #f4f1ec;
  --surface-alt: #faf8f5;
  --blue: #3b82f6;
  --blue2: #2563eb;
  --blue3: #60a5fa;
  --blue-soft: #eff6ff;
  --blue-soft-strong: #dbeafe;
  --amber: #f59e0b;
  --amber2: #d97706;
  --amber-soft: #fef9ec;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --error: #dc2626;
  --error-soft: #fef2f2;
  --bdr: #e8e4de;
  --bdr-card: #ebe6df;
  --shadow: 0 1px 3px rgba(15, 23, 42, .04);
  --shadow2: 0 12px 40px rgba(15, 23, 42, .08);
  --shadow3: 0 24px 60px rgba(15, 23, 42, .12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .03);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .06), 0 1px 3px rgba(59, 130, 246, .04);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, .1), 0 4px 12px rgba(59, 130, 246, .06);
  --shadow-xl: 0 28px 72px rgba(15, 23, 42, .14), 0 8px 24px rgba(37, 99, 235, .1);
  --shadow-glow: 0 8px 32px rgba(59, 130, 246, .28);
  --shadow-amber: 0 8px 28px rgba(245, 158, 11, .22);
  --grad-brand: linear-gradient(135deg, #3b82f6 0%, #2563eb 48%, #1d4ed8 100%);
  --grad-warm: linear-gradient(135deg, rgba(245, 158, 11, .14) 0%, rgba(59, 130, 246, .1) 100%);
  --grad-cta: linear-gradient(135deg, #1e3a5f 0%, #0f172a 52%, #1a2744 100%);
  --grad-mesh-blue: radial-gradient(ellipse 55% 45% at 85% 15%, rgba(59, 130, 246, .14) 0%, transparent 65%);
  --grad-mesh-amber: radial-gradient(ellipse 45% 50% at 10% 85%, rgba(245, 158, 11, .1) 0%, transparent 65%);
  --fs-display: clamp(2.6rem, 6vw, 4.5rem);
  --fs-h2: clamp(1.85rem, 3.8vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 2.2vw, 1.55rem);
  --r: 14px;
  --r2: 22px;
  --r-pill: 999px;
  --f: 'DM Sans', system-ui, -apple-system, sans-serif;
  --fh: 'Fraunces', Georgia, serif;
  --wrap: 1140px;
  --sidebar-w: 260px;
  --hdr-h: 68px;
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--blue) 28%, transparent);
  --auth-panel: linear-gradient(145deg, #0b1a2e 0%, #12263f 48%, #0e3a5c 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #0c1222;
    --canvas: var(--cream);
    --bg: var(--cream);
    --ink: #f1f5f9;
    --ink2: #94a3b8;
    --ink3: #64748b;
    --surface: #111827;
    --surface2: #1a2234;
    --surface-alt: #151d2e;
    --blue: #60a5fa;
    --blue2: #3b82f6;
    --blue3: #93c5fd;
    --blue-soft: #172554;
    --blue-soft-strong: #1e3a5f;
    --amber: #fbbf24;
    --amber2: #f59e0b;
    --amber-soft: #422006;
    --ok: #34d399;
    --ok-soft: #064e3b;
    --error: #f87171;
    --error-soft: #450a0a;
    --bdr: #1e293b;
    --bdr-card: #243044;
    --shadow: 0 1px 3px rgba(0, 0, 0, .25);
    --shadow2: 0 12px 40px rgba(0, 0, 0, .35);
    --shadow3: 0 24px 60px rgba(0, 0, 0, .45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .35), 0 1px 3px rgba(96, 165, 250, .08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .45), 0 4px 12px rgba(96, 165, 250, .1);
    --shadow-xl: 0 28px 72px rgba(0, 0, 0, .55), 0 8px 24px rgba(96, 165, 250, .12);
    --shadow-glow: 0 8px 32px rgba(96, 165, 250, .35);
    --shadow-amber: 0 8px 28px rgba(251, 191, 36, .25);
    --grad-brand: linear-gradient(135deg, #60a5fa 0%, #3b82f6 48%, #2563eb 100%);
    --grad-warm: linear-gradient(135deg, rgba(251, 191, 36, .12) 0%, rgba(96, 165, 250, .1) 100%);
    --grad-mesh-blue: radial-gradient(ellipse 55% 45% at 85% 15%, rgba(96, 165, 250, .16) 0%, transparent 65%);
    --grad-mesh-amber: radial-gradient(ellipse 45% 50% at 10% 85%, rgba(251, 191, 36, .1) 0%, transparent 65%);
  }
}

:root[data-theme="dark"] {
  --cream: #0c1222;
  --canvas: var(--cream);
  --bg: var(--cream);
  --ink: #f1f5f9;
  --ink2: #94a3b8;
  --ink3: #64748b;
  --surface: #111827;
  --surface2: #1a2234;
  --surface-alt: #151d2e;
  --blue: #60a5fa;
  --blue2: #3b82f6;
  --blue3: #93c5fd;
  --blue-soft: #172554;
  --blue-soft-strong: #1e3a5f;
  --amber: #fbbf24;
  --amber2: #f59e0b;
  --amber-soft: #422006;
  --ok: #34d399;
  --ok-soft: #064e3b;
  --error: #f87171;
  --error-soft: #450a0a;
  --bdr: #1e293b;
  --bdr-card: #243044;
  --shadow: 0 1px 3px rgba(0, 0, 0, .25);
  --shadow2: 0 12px 40px rgba(0, 0, 0, .35);
  --shadow3: 0 24px 60px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .35), 0 1px 3px rgba(96, 165, 250, .08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .45), 0 4px 12px rgba(96, 165, 250, .1);
  --shadow-xl: 0 28px 72px rgba(0, 0, 0, .55), 0 8px 24px rgba(96, 165, 250, .12);
  --shadow-glow: 0 8px 32px rgba(96, 165, 250, .35);
  --shadow-amber: 0 8px 28px rgba(251, 191, 36, .25);
  --grad-brand: linear-gradient(135deg, #60a5fa 0%, #3b82f6 48%, #2563eb 100%);
  --grad-warm: linear-gradient(135deg, rgba(251, 191, 36, .12) 0%, rgba(96, 165, 250, .1) 100%);
  --grad-mesh-blue: radial-gradient(ellipse 55% 45% at 85% 15%, rgba(96, 165, 250, .16) 0%, transparent 65%);
  --grad-mesh-amber: radial-gradient(ellipse 45% 50% at 10% 85%, rgba(251, 191, 36, .1) 0%, transparent 65%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
