/* Spoyu — общие токены и основа. Тёмная студия, тёплый кремовый текст, один коралловый акцент — кнопка «Создать». */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic-wght-normal.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-wght-normal.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: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2");
  font-weight: 500; 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 Garamond";
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; 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 {
  --canvas: #101012;
  --card: #17171a;
  --ink: #000000;
  --cream: #f7f4ef;
  --bone: #ffffff;
  --smoke: #c2c2c1;
  --coral: #fd429c;
  --coral-warm: #ff6a5c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --wash-1: rgba(255, 255, 255, 0.04);
  --wash-2: rgba(255, 255, 255, 0.06);
  --wash-3: rgba(255, 255, 255, 0.08);
  --muted: rgba(247, 244, 239, 0.62);
  --faint: rgba(247, 244, 239, 0.42);
  --dusk: radial-gradient(ellipse 90% 80% at 30% 20%, #d4622a 0%, #8a2a3a 45%, #1a0a0e 85%, #101012 100%);

  --sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --r-btn: 6px;
  --r-card: 12px;
  --r-img: 20px;
  --r-hero: 24px;
  --shadow: rgba(0, 0, 0, 0.25) 0 25px 50px -12px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(253, 66, 156, 0.35); color: var(--bone); }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid rgba(253, 66, 156, 0.6); outline-offset: 2px; border-radius: 6px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: var(--r-btn); border: 1px solid transparent;
  background: transparent; font-size: 14px; font-weight: 400; text-decoration: none;
  white-space: nowrap; user-select: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out), opacity 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-ghost:hover { background: var(--wash-3); }
.btn-outline { border-color: rgba(255, 255, 255, 0.2); }
.btn-outline:hover { background: var(--wash-2); border-color: rgba(255, 255, 255, 0.28); }
.btn-solid { background: var(--cream); color: var(--canvas); font-weight: 500; }
.btn-solid:hover { background: var(--bone); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Единственная цветная кнопка: создать */
.btn-create {
  height: 44px; padding: 0 22px; border-radius: 9999px; border: 0;
  background: linear-gradient(100deg, var(--coral) 0%, #ff5b7f 60%, var(--coral-warm) 100%);
  color: var(--bone); font-weight: 500; font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -10px rgba(253, 66, 156, 0.7);
}
.btn-create:hover { filter: brightness(1.06); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: var(--r-btn);
  background: var(--wash-2); border: 1px solid transparent;
  font-size: 12px; color: var(--cream); white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
button.chip:hover { background: var(--wash-3); }
button.chip:active { transform: scale(0.97); }
.chip.on { border-color: rgba(253, 66, 156, 0.55); background: rgba(253, 66, 156, 0.08); }

.wordmark {
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  letter-spacing: 0.16em; text-decoration: none; color: var(--cream);
}

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