/* Гефест v1.0. Палитра и роли; подключать после согласованного внедрения. */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/GolosText-Regular.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/GolosText-Medium.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/GolosText-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/GolosText-Bold.woff2") format("woff2"); }
@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/Prata-Regular.woff2") format("woff2"); }
:root {
  --gefest-paper: #F6F1E7;
  --gefest-porcelain: #FFFCF5;
  --gefest-ink: #252A27;
  --gefest-terra: #A24C35;
  --gefest-terra-hover: #873D2A;
  --gefest-clay: #E9D2C2;
  --gefest-fired-clay: #C67D63;
  --gefest-muted: #626459;
  --gefest-line: #D5C8B9;
  --gefest-control-border: #9D8E7D;
  --gefest-success: #365C43;
  --gefest-warning: #79550E;
  --gefest-error: #9B3037;
  --gefest-success-surface: #E3EADF;
  --gefest-warning-surface: #F1E4C9;
  --gefest-error-surface: #F2DDDA;
  --gefest-font-body: "Golos Text", Arial, sans-serif;
  --gefest-font-display: "Prata", Georgia, serif;
  --gefest-space-1: 4px;
  --gefest-space-2: 8px;
  --gefest-space-3: 12px;
  --gefest-space-4: 16px;
  --gefest-space-6: 24px;
  --gefest-space-8: 32px;
  --gefest-space-12: 48px;
  --gefest-space-16: 64px;
  --gefest-space-24: 96px;
  --gefest-radius-control: 8px;
  --gefest-radius-panel: 8px;
  --gefest-control-border-strong: var(--gefest-muted);
  --gefest-content-max: 1280px;
  --gefest-focus-width: 2px;
  --gefest-focus-offset: 3px;
  --gefest-focus-color: var(--gefest-terra);
  --gefest-focus-color-on-dark: var(--gefest-porcelain);
  --gefest-type-hero-size: 64px;
  --gefest-type-hero-line: 72px;
  --gefest-type-section-size: 44px;
  --gefest-type-section-line: 54px;
  --gefest-type-block-size: 24px;
  --gefest-type-block-line: 32px;
  --gefest-type-body-size: 18px;
  --gefest-type-body-line: 28px;
  --gefest-type-control-size: 16px;
  --gefest-type-control-line: 24px;
  --gefest-type-caption-size: 14px;
  --gefest-type-caption-line: 20px;
  --gefest-type-dense-table-size: 14px;
  --gefest-type-dense-table-line: 20px;
  --gefest-duration-fast: 160ms;
  --gefest-duration-normal: 240ms;
}
/* Пример адаптивного применения; подключение само по себе не меняет разметку. */
@media (max-width: 767px) {
  :root {
    --gefest-type-hero-size: 40px;
    --gefest-type-hero-line: 48px;
    --gefest-type-section-size: 30px;
    --gefest-type-section-line: 38px;
    --gefest-type-block-size: 20px;
    --gefest-type-block-line: 28px;
    --gefest-type-body-size: 16px;
    --gefest-type-body-line: 25px;
  }
}
.gefest-focusable:focus-visible {
  outline: var(--gefest-focus-width) solid var(--gefest-focus-color);
  outline-offset: var(--gefest-focus-offset);
}
[data-gefest-surface="dark"] { --gefest-focus-color: var(--gefest-focus-color-on-dark); }
/* Не анимируем размеры, отступы, позицию или толщину границ: layout не прыгает. */
.gefest-motion {
  transition: color var(--gefest-duration-fast) ease,
              background-color var(--gefest-duration-fast) ease,
              border-color var(--gefest-duration-fast) ease,
              opacity var(--gefest-duration-normal) ease;
}
@media (prefers-reduced-motion: reduce) {
  .gefest-motion { animation: none !important; transition: none !important; }
  .gefest-smooth-scroll { scroll-behavior: auto !important; }
}
