/* «1736» — общая основа стиля для сайта, документов, страниц покупки и лаунчера (копия: Лаунчер/ui/brand.css).
   Палитра взята с плана Челябинской крепости 1736 года: серо-зелёная бумага чертежа, железо-галловые чернила,
   акварельная бирюза реки и кармин, которым на военных планах отмечали постройки. Ночная сторона — те же чернила
   с речной зеленью: загадочно, но не мрачно. Шрифт один на сайт, лаунчер и игровое меню — Lora (SIL OFL 1.1),
   лежит на нашем сервере: сторонние шрифтовые сервисы не подключаем (152-ФЗ). */

@font-face { font-family: "Lora"; src: url("fonts/Lora-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  /* бумага плана */
  --paper: #e4e3d1;
  --paper-2: #d7d7c1;
  --paper-line: #b9b9a0;
  /* чернила */
  --ink: #23201b;
  --ink-2: #4b473d;
  /* ночь над Миассом */
  --night: #172221;
  --night-2: #1f2d2c;
  --night-3: #2b3b39;
  --night-line: rgba(228, 227, 209, .14);
  /* туман — текст на тёмном */
  --fog: #ebe9dc;
  --fog-2: #b9bead;
  /* акварель плана */
  --river: #8db5ad;
  --river-ink: #2f5f5a;      /* река на светлом: ссылки и вторичные акценты */
  --carmine: #a3363a;        /* главное действие */
  --carmine-2: #bb4448;
  --torch: #d9a54c;          /* огонёк: фокус, мелкие отблески */

  --serif: "Lora", "PT Serif", Georgia, serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(3.5rem, 2rem + 8vw, 7.5rem);

  --radius: 3px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow: 0 10px 30px -12px rgba(10, 16, 15, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--step-0)/1.62 var(--serif); font-kerning: normal; font-variant-numeric: oldstyle-nums proportional-nums; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }

/* поверхности браузера — из палитры */
::selection { background: var(--carmine); color: #fff; }
:focus-visible { outline: 2px solid var(--torch); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }

/* кнопки: одна пара на весь проект */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.35em; border-radius: var(--radius);
  font: 700 var(--step-0)/1 var(--serif); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border: 1px solid currentColor; background: transparent; color: inherit;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--carmine); border-color: var(--carmine); color: #fff; }
.btn-primary:hover { background: var(--carmine-2); border-color: var(--carmine-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: default; transform: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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