/*
 * CarbonStealth.eu | Dust2 DM — визията „Нощна операция в пустинята“.
 * Карбоново черно (цветът на Carbon Stealth) + електрическо циан за действие и „на живо“ +
 * кехлибар на Dust2 за слънцето, XP и нивата. Заглавията са Sofia Sans Extra Condensed (български
 * форми на кирилицата, OFL), текстът — Sofia Sans. Нула изображения от Valve: небето, мерникът,
 * решетката и иконите са наши (CSS/SVG).
 * Файлове: site.css (основа, лента, колонтитул) · components.css · home.css + features.css (начало)
 * · pages.css + profile.css (вътрешните страници).
 */

@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/sofia-sans-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/sofia-sans-latin-400-normal.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: 'Sofia Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/sofia-sans-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/sofia-sans-latin-700-normal.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: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/sofia-sans-extra-condensed-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/sofia-sans-extra-condensed-latin-800-normal.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 {
  --bg: #070a0e; /* карбонът: фонът на сайта */
  --bg-2: #0a1016; /* редуващи се ленти */
  --panel: #0f161d; /* повърхности */
  --panel-2: #16212b; /* повдигнати повърхности, чипове */
  --line: #1f2c38; /* тънки рамки */
  --line-2: #2d4050; /* по-ясни рамки, полета */
  --text: #e9f1f5;
  --muted: #93a6b3;
  --cyan: #00e5ff; /* цветът на Carbon Stealth: действие, „на живо“, фокус */
  --cyan-dim: #0aa9bd;
  --amber: #ffb547; /* Dust2: слънцето, XP, нивата */
  --amber-dim: #c98a22;
  --ember: #ff6b57;
  --ember-text: #ff9a8b;

  --font-text: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sofia Sans Extra Condensed', 'Sofia Sans', 'Arial Narrow', sans-serif;
  --font-mono:
    ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --gutter: max(16px, 4vw);
  --max: 76rem;
  --measure: 46rem;
  --r-card: 14px;
  --r-ctl: 10px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--cyan);
  color: var(--bg);
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0 0 0.6em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: 0.005em;
}
h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}
p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  border-radius: var(--r-ctl);
}
.skip:focus {
  top: 0.75rem;
}

.muted {
  color: var(--muted);
}

/* ── Движение: един превключвател за всичко декоративно ──────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.calm *,
.calm *::before,
.calm *::after {
  animation: none !important;
  transition: none !important;
}

@media print {
  .top,
  .foot,
  .dock,
  .sky,
  .cmd,
  .filters,
  .pager {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
