/* ==========================================================================
   Self-hosted Inter Font (152-ФЗ compliant, no Google Fonts CDN)
   ========================================================================== */

/* Cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600.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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700.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 — Flavor Theme
   ========================================================================== */

:root {
  /* Colors — Primary */
  --color-primary: #3D5CE0;
  --color-primary-hover: #2D4BC8;
  --color-primary-light: #eef1ff;
  --color-primary-50: #f0f3ff;
  --color-primary-100: #dce3fe;
  --color-primary-700: #3350d4;

  /* Colors — Logo */
  --color-logo-blue: #2B4AE2;

  /* Colors — Header (dark) */
  --color-header-bg: #1C2035;
  --color-header-text: #ffffff;
  --color-header-muted: rgba(255, 255, 255, 0.85);

  /* Colors — Telegram */
  --color-telegram: #2AABEE;
  --color-telegram-hover: #229ED9;

  /* Colors — Accent (красный для срочного/CTA) */
  --color-accent: #dc2626;
  --color-accent-hover: #b91c1c;
  --color-accent-light: #fef2f2;

  /* Colors — Dark (чёрный с синевой — из макета тёмного логотипа) */
  --color-dark: #151A2D;
  --color-dark-lighter: #1E2440;
  --color-dark-border: #2B3352;

  /* Colors — Neutral */
  --color-bg: #f4f6fa;
  --color-surface: #ffffff;
  --color-surface-alt: #eef1f6;
  --color-border: #dfe3eb;
  --color-border-light: #eef1f6;

  /* Colors — Text (тёмный с синевой — совпадает с логотипом) */
  --color-text: #1A1F30;
  --color-text-secondary: #4b5468;
  --color-text-muted: #6b7590;
  --color-text-inverse: #ffffff;

  /* Colors — Semantic */
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-error: #dc2626;
  --color-info: #2563eb;

  /* Colors — Categories */
  --color-cat-incidents: #dc2626;
  --color-cat-society: #7c3aed;
  --color-cat-politics: #3B5CE0;
  --color-cat-business: #059669;
  --color-cat-culture: #d97706;
  --color-cat-sport: #4A6CF7;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: var(--font-family);

  --font-size-xs: 0.75rem;                          /* 12px */
  --font-size-sm: 0.8125rem;                        /* 13px */
  --font-size-base: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);    /* 15→16px */
  --font-size-md: 1rem;                             /* 16px */
  --font-size-lg: clamp(1.125rem, 1rem + 0.25vw, 1.25rem);      /* 18→20px */
  --font-size-xl: clamp(1.25rem, 1.15rem + 0.3vw, 1.375rem);    /* 20→22px */
  --font-size-2xl: clamp(1.5rem, 1.3rem + 0.5vw, 1.75rem);      /* 24→28px */
  --font-size-3xl: clamp(1.875rem, 1.6rem + 0.7vw, 2.25rem);    /* 30→36px */
  --font-size-4xl: clamp(2.25rem, 1.9rem + 0.9vw, 2.75rem);     /* 36→44px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing (8px base) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */

  /* Layout */
  --container-max: 1280px;
  --container-padding: var(--space-4);
  --sidebar-width: 320px;
  --grid-gap: var(--space-5);
  --carousel-padding: 28px;

  /* Typography extras */
  --line-height-relaxed: 1.75;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Z-index */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* Dark mode removed — light theme only (news site) */

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
  }

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