/* Алтай Ивент — токены и основа.
   Настроение — премия и статус: вечер церемонии, бархатный винный зал + лист бумаги программы; одна сигнальная краска — угли.
   Шрифты локально, OFL, две роли:
   Cormorant — заголовки и цифры (высококонтрастная антиква, курсив — акценты);
   Onest — текст и подписи (капсом с разрядкой). */

@font-face { font-family: "Onest"; src: url("../assets/fonts/Onest-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../assets/fonts/Cormorant-var-cyrillic.woff2") format("woff2"); font-weight: 300 700; 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: "Cormorant"; src: url("../assets/fonts/Cormorant-var-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; src: url("../assets/fonts/Cormorant-var-latin.woff2") format("woff2"); font-weight: 300 700; 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: "Cormorant"; src: url("../assets/fonts/Cormorant-Italic-var-cyrillic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url("../assets/fonts/Cormorant-Italic-var-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; src: url("../assets/fonts/Cormorant-Italic-var-latin.woff2") format("woff2"); font-weight: 300 700; font-style: italic; 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; }

:root {
  --wine: oklch(0.25 0.07 18);        /* зал */
  --wine-2: oklch(0.31 0.085 20);     /* плашки на зале */
  --paper: oklch(0.965 0.012 85);     /* лист */
  --paper-2: oklch(0.92 0.018 80);    /* плашки на листе */
  --ink: oklch(0.22 0.04 20);         /* текст на листе */
  --ink-muted: oklch(0.45 0.03 30);
  --on-wine: oklch(0.95 0.015 85);
  --on-wine-muted: oklch(0.78 0.03 50);
  --ember: oklch(0.7 0.17 45);        /* угли: кнопки на зале, крупные цифры */
  --ember-ink: oklch(0.52 0.16 38);   /* угли на бумаге (контраст ≥ 4.5) */
  --rule-wine: color-mix(in oklch, var(--on-wine) 18%, transparent);
  --rule-paper: color-mix(in oklch, var(--ink) 16%, transparent);

  --font: "Onest", system-ui, sans-serif;
  --font-display: "Cormorant", Georgia, serif;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.25rem, 0.95rem + 0.9vw, 1.75rem);
  --fs-h2: clamp(2.75rem, 1rem + 4.8vw, 6.5rem);
  --fs-h3: clamp(1.375rem, 1rem + 0.9vw, 1.875rem);

  --pad-x: clamp(20px, 5vw, 80px);
  --sec-y: clamp(72px, 9vw, 140px);
  --max: 1320px;
  --radius: 14px;
  --header-h: 68px;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin-inline: auto; }

/* Типографика */
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.num { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; line-height: 0.92; letter-spacing: -0.02em; text-wrap: balance; }
.h2 em { font-style: italic; color: var(--tone); }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.28; letter-spacing: -0.02em; text-wrap: pretty; }
.note { font-size: var(--fs-small); color: var(--ink-muted); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--btn-bg, var(--ember)); color: var(--btn-ink, var(--wine));
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-ink: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ink { --btn-bg: var(--wine); --btn-ink: var(--on-wine); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.link:hover { text-decoration-thickness: 2px; }

/* Метка «уточнить» — видна только пока сайт черновой */
.todo { background: oklch(0.9 0.12 95); color: oklch(0.25 0.05 60); padding: 0 0.3em; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
