/* Concept A — «Тёплая редакция»
   Warm paper, tomato accent, editorial rhythm. Fonts are self-hosted. */

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* surfaces */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f4f0;
  --surface-3: #ece8e1;
  --text: #1e1a15;
  --muted: #6b6153;
  --line: #ded1bc;
  --line-strong: #c9b89d;

  /* brand */
  --primary: #c8402a;
  --primary-hover: #ab3320;
  --primary-ink: #fff8f1;
  --accent: #5f6b4f;
  --success: #3e6b4c;
  --warning: #a96b18;
  --danger: #a62b1f;

  /* states */
  --focus: #c8402a;
  --focus-ring: rgba(200, 64, 42, 0.16);
  --selection-bg: #c8402a;
  --selection-ink: #fff8f1;
  --eyebrow: #a4512f;
  --label: #6b6153;

  /* form */
  --input-bg: #ffffff;
  --input-line: #d8c9b2;
  --input-radius: 10px;
  --placeholder: #9a8d7a;

  /* toast */
  --toast-bg: #1e1a15;
  --toast-ink: #fff8f1;

  /* buttons */
  --btn-line: #cfc0a8;
  --btn-radius: 999px;
  --btn-shadow: none;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(60, 45, 25, 0.06), 0 4px 14px rgba(60, 45, 25, 0.05);
  --shadow-md: 0 8px 24px rgba(60, 45, 25, 0.1), 0 2px 6px rgba(60, 45, 25, 0.06);
  --shadow-lg: 0 24px 60px rgba(60, 45, 25, 0.14), 0 6px 18px rgba(60, 45, 25, 0.08);

  /* type */
  --font-sans: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Unbounded", "Onest", "Segoe UI", system-ui, sans-serif;
  --font-label: "Onest", "Segoe UI", system-ui, sans-serif;
  --font-number: "Onest", "Segoe UI", system-ui, sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 34px;
  --text-3xl: 46px;
  --text-4xl: 64px;
  --text-hero: clamp(42px, 5.6vw, 68px);
  --text-h2: clamp(30px, 3.4vw, 44px);
  --text-h3: clamp(22px, 2vw, 28px);

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* layout */
  --gutter: 20px;
  --container: 1200px;
  --header-h: 76px;

  /* motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 200ms;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 40px;
  }
}
