/*
 * Слой читаемости.
 * Подключается последним на всех страницах и только увеличивает кегль,
 * межстрочный интервал и контраст текста. Композиция блоков, сетки и
 * изображения остаются прежними: ширины не меняются, растёт лишь высота текста.
 * Префикс `html body` нужен, чтобы перекрыть стили, встроенные в разметку страниц.
 */

:root {
  --read-body: clamp(17px, 0.55vw + 11px, 19px);
  --read-body-sm: clamp(16px, 0.35vw + 11.5px, 17.5px);
  --read-label: 13px;
  --read-caption: 14px;
  --read-text: rgba(238, 233, 225, 0.84);
  --read-muted: rgba(238, 233, 225, 0.7);
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(173, 138, 88, 0.42);
  color: #f6f1e8;
}

/* ═══ Шапка ═══ */
html body .memory-header__brand-date { font-size: 12px; }
html body .memory-header__brand-title { font-size: 14px; }
html body .memory-nav__link,
html body .memory-nav__trigger { font-size: 14px; color: rgba(240, 236, 230, 0.9) !important; }
html body .memory-nav__person { font-size: 15px; color: rgba(240, 236, 230, 0.86) !important; }

/* ═══ Главная: первый экран ═══ */
html body .hc-hero__intro-label {
  font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: 0.32em;
  color: rgba(240, 236, 230, 0.74);
}
html body .hc-hero__intro-line { font-size: clamp(38px, 6.2vw, 76px); }
html body .hc-hero__lead { font-size: clamp(21px, 1.6vw + 12px, 34px); line-height: 1.42; }
html body .hc-hero__sub { font-size: clamp(18px, 0.9vw + 11px, 23px); color: #ddd7cd; }
html body .hc-hero__name { font-size: clamp(14px, 0.45vw + 10px, 18px); color: #e6e0d6; }
html body .hc-hero__btn { font-size: 14px; }

/* ═══ Экипаж ═══ */
html body .hp-crew__title { font-size: clamp(30px, 2.4vw + 18px, 50px); }
html body .hp-crew__text { font-size: var(--read-body); line-height: 1.75; color: #bcb6aa; max-width: 660px; }
html body .hp-crew__name { font-size: clamp(17px, 0.5vw + 13px, 21px); }
html body .hp-crew__role { font-size: 13.5px; letter-spacing: 0.08em; color: #aaa294; }

/* ═══ Хронология полёта ═══ */
html body .hp-chrono__date { font-size: 14px; color: #8fa6bf; }
html body .hp-chrono__title { font-size: clamp(30px, 2.8vw + 16px, 54px); }
html body .hp-chrono__subtitle { font-size: clamp(17px, 0.4vw + 13px, 20px); color: #b9c6d4; max-width: 680px; }
html body .hp-c__step { font-size: 13px; color: #8ea5bd; }
html body .hp-c__title { font-size: clamp(18px, 0.5vw + 13px, 21px); color: #e6edf4; }
html body .hp-c__text { font-size: clamp(15px, 0.3vw + 11.5px, 16.5px); line-height: 1.66; color: #bccad8; }
html body .hp-chrono__quote blockquote { font-size: clamp(19px, 1vw + 12px, 26px); color: #cdd6df; }

/* ═══ История поисков ═══ */
html body .hp-timeline__title { font-size: clamp(30px, 2.4vw + 18px, 50px); }
html body .hp-timeline__intro { font-size: clamp(17px, 0.4vw + 13px, 20px); color: #c0c0c7; max-width: 720px; }
html body .hp-timeline__year { font-size: clamp(26px, 1.2vw + 18px, 36px); }
html body .hp-timeline__event { font-size: clamp(16.5px, 0.35vw + 12.5px, 19px); line-height: 1.68; color: #babac2; max-width: 620px; }
html body .hp-timeline__media-caption { font-size: 14px; color: #dfe1e6; }
html body .hp-timeline__quote-text { font-size: clamp(20px, 0.9vw + 14px, 28px); }
html body .hp-timeline__quote-sub { font-size: 16px; color: #a3a3ac; }
html body .hp-timeline__footer-text { font-size: var(--read-body); color: #babac2; max-width: 680px; }

/* ═══ Что удалось установить ═══ */
html body .hp-card__eyebrow,
html body .hp-card__conclusion-eyebrow { font-size: 13px; }
html body .hp-card__title { font-size: clamp(30px, 2.6vw + 16px, 52px); }
html body .hp-card__intro { font-size: clamp(17px, 0.4vw + 13px, 20px); color: #c4bdb2; max-width: 680px; }
html body .hp-card__crew-badge { font-size: 12.5px; }
html body .hp-card__crew-name { font-size: clamp(22px, 1vw + 15px, 30px); }
html body .hp-card__crew-desc { font-size: var(--read-body); color: #c1baaf; }
html body .hp-card__crew-meta-item { font-size: 15.5px; color: #b9b2a7; }
html body .hp-card__map-legend-item { font-size: 12.5px; color: #c1baaf; }
html body .hp-card__conclusion-title { font-size: clamp(24px, 1.4vw + 15px, 36px); }
html body .hp-card__conclusion-text { font-size: var(--read-body); color: #c1baaf; }
html body .hp-card__footer-text { font-size: 14px; opacity: 0.8; }

/* ═══ Финал главной ═══ */
html body .hp-memorial-hero__eyebrow { font-size: clamp(14px, 1.3vw, 17px); }
html body .hp-memorial-hero__title { font-size: clamp(32px, 3.6vw + 16px, 68px); }
html body .hp-memorial-story__line { font-size: clamp(18px, 0.7vw + 13px, 24px); color: rgba(240, 236, 227, 0.9); }
html body .hp-memorial-story__line--accent { font-size: clamp(24px, 1.2vw + 16px, 34px); color: #c8a45c; }
html body .hp-memorial-crew__heading { font-size: 15px; }
html body .hp-memorial-crew__role { font-size: 16px; color: rgba(200, 164, 92, 0.9); }
html body .hp-memorial-quote__line:first-child { color: rgba(240, 236, 227, 0.68); }
html body .hp-memorial-footer__line { font-size: clamp(14px, 1.5vw, 16px); opacity: 0.88; }

/* ═══ Биографии ═══ */
html body .bio-kicker { font-size: 13px; }
html body .bio-hero__role { font-size: clamp(17px, 0.5vw + 13px, 21px); color: rgba(240, 236, 230, 0.84); }
html body .bio-meta span { font-size: 12px; color: rgba(240, 236, 230, 0.86); }
html body .bio-back { font-size: 12px; color: rgba(240, 236, 230, 0.74) !important; }
html body .bio-section__number { font-size: 13px; }
html body .bio-section__label { font-size: 12px; color: #b4b6ba; }
html body .bio-section__copy p { font-size: var(--read-body); line-height: 1.8; color: var(--read-text); }
html body .bio-draft-note { font-size: 12px; color: rgba(180, 182, 186, 0.85); }
html body .bio-crew-links__title { font-size: 12px; color: #b4b6ba; }
html body .bio-crew-link small { font-size: 11.5px; }
html body .bio-crew-link strong { font-size: 18px; }

/* Глава Бурденюка */
html body .hp-bio__subtitle { font-size: clamp(18px, 0.5vw + 14px, 23px); }
html body .hp-bio__text,
html body .hp-school__text,
html body .hp-scene__text,
html body .hp-math__text,
html body .hp-cadet__text,
html body .hp-card__body p,
html body .hp-card__text,
html body .hp-nav__list-item { font-size: var(--read-body); line-height: 1.75; }
html body .hp-card__list li { font-size: var(--read-body-sm); }
html body .hp-scene__accent { font-size: clamp(18px, 0.4vw + 14px, 21px); }
html body .hp-math__eyebrow,
html body .hp-math__card-label { font-size: 13px; }
html body .hp-cadet__date { font-size: 15px; }
html body .hp-cadet__frame-label,
html body .hp-card__gallery-title { font-size: 14px; }
html body .hp-card__photo-caption { font-size: 14px; }
html body .hp-card__gallery-num { font-size: 12px; color: rgba(232, 228, 222, 0.6); }
html body .hp-hero__eyebrow { font-size: 14px; color: #a99d90; }
html body .hp-text-section__paragraph { font-size: clamp(18px, 0.5vw + 14px, 21px); }

/* ═══ Новости ═══ */
html body .news-eyebrow { font-size: 12px; }
html body .news-hero__lead { font-size: clamp(17px, 0.5vw + 13px, 20px); color: rgba(238, 233, 225, 0.8); }
html body .news-feed__count { font-size: 12px; color: #b2b3b5; }
html body .news-card__visual-note { font-size: 11.5px; }
html body .news-card__meta { font-size: 12px; }
html body .news-card__summary { font-size: var(--read-body); line-height: 1.75; color: var(--read-text); }
html body .news-details summary { font-size: 12.5px; min-height: 44px; }
html body .news-details__content { font-size: var(--read-body-sm); line-height: 1.8; color: var(--read-text); }
html body .news-details__content h4 { font-size: clamp(22px, 0.6vw + 17px, 27px); }
html body .news-details__content blockquote { font-size: clamp(19px, 0.5vw + 15px, 22px); }
html body .news-source { font-size: 12px; }

/* ═══ Телефоны ═══ */
@media (max-width: 820px) {
  html body .memory-nav__link,
  html body .memory-nav__trigger { font-size: clamp(10.5px, 3vw, 12.5px); letter-spacing: 0.035em; }
  html body .hp-crew__role { font-size: 12.5px; }
  html body .hp-c__text { font-size: 16px; }
  html body .bio-meta span { font-size: 11px; }
  html body .news-card h3 { font-size: clamp(28px, 7.8vw, 36px); }
}

@media (max-width: 380px) {
  html body .memory-nav__link,
  html body .memory-nav__trigger { font-size: 10.5px; letter-spacing: 0.02em; }
  html body .hc-hero__name { font-size: 13px; }
}

/* ═══ Атмосфера: пепел в первых экранах ═══ */
.site-ash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
