/* Design tokens: one warm-paper archive palette, two families, one rhythm. */

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-cyrillic-ext-400-normal.ba9d66300d96.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0460-052F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-sans-cyrillic-ext-700-normal.5dc2c563ec31.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0460-052F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-latin-400-normal.0f7d9a10be7f.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: "Noto Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-sans-latin-700-normal.c7a65b5f9af2.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;
}

/* Literata: editorial display face, OFL, Cyrillic + Kazakh Cyrillic extended. */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/literata-cyrillic-ext-600.0dcd23f2d1cd.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
}

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

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/literata-latin-600.d9136abf5257.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 {
  color-scheme: light;

  --font-sans: "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Literata", "Noto Sans", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Paper and ink */
  --paper: #f4efe3;
  --paper-deep: #e9e1d0;
  --surface: #fffdf7;
  --surface-2: #faf6ec;
  --ink: #17211e;
  --ink-2: #4c5a54;
  --ink-3: #5e6a63;
  --line: #d9d0bd;
  --line-strong: #bdb29b;

  /* Pine, brass, clay */
  --pine: #123e36;
  --pine-deep: #0a2723;
  --pine-soft: #1b544a;
  --moss: #2e6b55;
  --brass: #c9a227;
  --brass-soft: #e7c978;
  --brass-ink: #7a5a0e;
  --clay: #8a4b2f;
  --mint: #dfe9dc;
  --sand: #f2e3c9;

  /* States */
  --focus: #1556a0;
  --danger: #9b2c24;
  --danger-soft: #f7e4e1;
  --success: #1f6b45;
  --success-soft: #e2efe6;
  --warning: #8a5a00;
  --warning-soft: #f6ecd7;

  /* Dark surface (hero, footer, reading room) */
  --night: #0b2a25;
  --night-2: #08211d;
  --night-ink: #f4efe3;
  --night-muted: #c3cfc7;
  --night-line: rgba(244, 239, 227, 0.18);
  --night-brass: #e7c978;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Type */
  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  --fs-2xl: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  --fs-3xl: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem);
  --fs-display: clamp(2.8rem, 1.2rem + 4.6vw, 5rem);
  --tracking-tight: -0.025em;
  --tracking-display: -0.035em;
  --tracking-caps: 0.14em;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-body: 1.6;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(23, 33, 30, 0.06);
  --shadow-sm: 0 1px 2px rgba(23, 33, 30, 0.05), 0 10px 30px -24px rgba(10, 39, 35, 0.45);
  --shadow-md: 0 18px 48px -30px rgba(10, 39, 35, 0.45);
  --shadow-lg: 0 32px 80px -40px rgba(10, 39, 35, 0.55);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 140ms;
  --dur-2: 220ms;
  --dur-3: 380ms;
  --dur-4: 700ms;

  /* Layout */
  --container: 78rem;
  --container-narrow: 58rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
