@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/type-study/jetbrains-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'VCR OSD Mono Cyr';
  src: url('assets/type-study/vcr-cyr.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root[data-edition="jetbrains"] {
  --heading-face: 'JetBrains Mono', var(--body);
  --heading-weight: 500;
  --hero-measure: 7.28;
}
:root[data-edition="vcr-cyr"] {
  --heading-face: 'VCR OSD Mono Cyr', var(--body);
  --heading-weight: 400;
  --hero-measure: 7.8;
}

/* Former pixel accents such as prices, menu links and timer digits use the body face. */
:root[data-edition] { --pixel: var(--body); }
:root[data-edition] :is(h1, h2, h3, h4, h5, h6, .brand, .gift strong) {
  font-family: var(--heading-face);
  font-weight: var(--heading-weight);
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

[data-edition] .hero-copy,
[data-edition] .booking-text,
[data-edition] .legal-head {
  container-type: inline-size;
}
[data-edition] .hero h1 {
  --display-size: clamp(52px, 5.6vw, 84px);
  font-size: min(var(--display-size), calc(98cqi / var(--hero-measure)));
  line-height: 1.1;
}
[data-edition] .booking-text h2 {
  font-size: min(clamp(32px, 3.55vw, 56px), calc(98cqi / 7.5));
}
[data-edition] .legal-head h2 {
  font-size: min(clamp(24px, 3vw, 40px), calc((100cqi - 52px) / 10.3));
  line-height: 1.15;
}
[data-edition] .section-title,
[data-edition] .card-title h3 { line-height: 1.12; }
[data-edition] .benefit-grid h3 { line-height: 1.2; }

@media (max-width: 760px) {
  [data-edition] .hero h1 { --display-size: clamp(36px, 10.5vw, 66px); }
}
