/**
 * Типографика темы EARLCODA
 * Выразительный Display (Prata) для крупных заголовков и чистый Sans-serif (Manrope) для интерфейса.
 */

/* ==========================================================================
   1. Подключение локальных шрифтов (@font-face)
   ========================================================================== */

/* Prata Regular 400 (Cyrillic) */
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/prata/prata-regular-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Prata Regular 400 (Latin) */
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/prata/prata-regular-latin.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;
}

/* Prata Regular 400 (Fallback single file) */
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/prata/prata-regular.woff2") format("woff2");
}

/* Manrope Variable 400-700 (Cyrillic) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope/manrope-variable-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Manrope Variable 400-700 (Latin) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope/manrope-variable-latin.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;
}

/* Manrope Variable 400-700 (Fallback single file) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope/manrope-variable.woff2") format("woff2");
}

/* ==========================================================================
   2. Базовые правила текста
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.15;
}

.font-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
}

.font-serif {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
}

.font-sans {
  font-family: var(--font-sans);
}

/* Стилизация секционных заголовков */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-label__marker {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-cobalt);
  flex-shrink: 0;
}

.section-label__number {
  font-weight: 500;
}

.section-label__divider {
  color: var(--border-subtle);
}

.section-label__title {
  letter-spacing: 0.08em;
}

/* Вертикальные и акцентные подписи */
.vertical-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

/* Текстовые ссылки */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  color: var(--accent-cobalt);
}
