/* ==========================================================================
   Typography — Text Styles из макета
   Класс = имя стиля в Figma (.text-h1, .text-button, .text-tag …)
   ========================================================================== */

:root {
  --font-serif: "Oranienbaum", Georgia, "Times New Roman", serif;
  --font-sans: "Inter Tight", system-ui, sans-serif;
}

/* --- H1 --- desktop 64 / mobile 40 */
.text-h1,
.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-heading);
}

@media (min-width: 768px) {
  .text-h1,
  .h1 {
    font-size: 64px;
  }
}

/* --- H2 --- desktop 48 / mobile 32 */
.text-h2,
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: normal;
  letter-spacing: 0;
  color: var(--color-heading);
}

@media (min-width: 768px) {
  .text-h2,
  .h2 {
    font-size: 48px;
  }
}

/* --- H3 --- mobile 24 / line-height 38.4px */
.text-h3,
.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 38.4px;
  letter-spacing: 0;
  color: var(--color-heading);
}

/* --- H4 --- desktop 32 / mobile 24 */
.text-h4,
.h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-heading);
}

@media (min-width: 768px) {
  .text-h4,
  .h4 {
    font-size: 32px;
    line-height: 1;
  }
}

/* --- H5 --- 28px */
.text-h5,
.h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-heading);
}

/* --- text --- 16px */
.text-body,
.text,
.body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-body);
}

/* --- text large --- 18px / 130% */
.text-large {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--color-body);
}

/* --- Button --- Inter Tight Medium 18px / -1% */
.text-button,
.button-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: normal;
  letter-spacing: -0.01em;
  color: var(--color-heading);
}

/* --- tag --- 14px / UPPER */
.text-tag,
.tag {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-body);
}

/* Модификаторы цвета */
.text-h1--white,
.text-h2--white,
.text-h3--white,
.text-h4--white,
.text-h5--white {
  color: var(--color-white);
}

.text-body--white,
.text-large--white,
.text-tag--white {
  color: var(--color-white);
}

.text-body--dark,
.text-large--dark {
  color: var(--color-heading);
}

.text-tag--gold {
  color: var(--color-gold);
}
