/* Licensed, self-hosted alternatives to the reference site's dedicated fonts. */
@import url("../fonts/jost/font-face.css");
@import url("../fonts/noto-sans-jp/font-face.css");

:root {
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --display: "Jost", var(--sans);
  --body: "Jost", var(--sans);
  --product-title-weight: 400;
  --heading-accent: var(--blue);
  --hero-title-size: clamp(56px, 8.2vw, 120px);
}

body {
  font-weight: 400;
  font-synthesis: style;
  line-height: 1.7;
  letter-spacing: 0.025em;
}

.hero h1,
.brand-story h2,
.guide h2,
.home-racing h2,
.featured-content h2,
.shop-hero h1,
.flow-hero h1,
.international-intro h2,
.international-section-heading h2,
.international-conditions h2,
.international-notice h2,
.international-cta h2,
.about-hero-content h1,
.about-origin h2,
.about-craft-copy h2,
.about-profile h2,
.about-contact h2,
.racing-hero-copy h1,
.racing-philosophy h2,
.racing-podium h2,
.racing-machines h2,
.racing-archive h2,
.racing-film h2,
.racing-cta h2 {
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.08;
}

.hero h1,
.about-hero-content h1 {
  font-size: var(--hero-title-size);
}

.hero h1 {
  font-stretch: normal;
  line-height: 1.04;
}

.hero h1 span:last-child {
  margin-top: 0.08em;
}

.hero .outline-text,
.brand-story h2 em {
  color: inherit;
  -webkit-text-stroke: 0;
}

.about-contact,
.international-cta {
  --heading-accent: #fff;
}

.international-intro h2 em,
.international-conditions h2 em,
.international-cta h2 em,
.about-hero-content h1 em,
.about-origin h2 em,
.about-profile h2 em,
.about-contact h2 em,
.product-copy h2 em,
.racing-hero-copy h1 em,
.racing-philosophy h2 em,
.racing-podium h2 em,
.racing-machines h2 em,
.racing-archive h2 em,
.racing-film h2 em,
.racing-cta h2 em {
  color: var(--heading-accent);
  font-style: normal;
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: currentColor;
}

.guide h2 {
  font-size: clamp(48px, 5vw, 80px);
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.desktop-nav a,
.language-switch {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.button,
.text-link,
.home-racing-link,
.brand-story .brand-story-button {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.brand-sub {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.vehicle-card p,
.category-card p,
.footer-column h3 {
  font-size: 11px;
  font-weight: 500;
}

.vehicle-card h3,
.category-card h3,
.mobile-menu nav a {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.product-card-info h2 {
  font-weight: var(--product-title-weight);
}

@media (max-width: 720px) {
  :root {
    --hero-title-size: clamp(28px, 8.6vw, 46px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-picture,
  .hero-shade,
  .hero-copy-block,
  .hero-cta {
    grid-column: 1;
  }

  .hero h1 {
    letter-spacing: 0.015em;
  }

  .brand-story h2 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .guide h2 {
    font-size: clamp(32px, 9vw, 50px);
  }

  .home-racing h2 {
    font-size: clamp(30px, 9.1vw, 52px);
  }

  .flow-hero h1,
  .shop-hero h1,
  .racing-hero-copy h1 {
    font-size: clamp(32px, 9.5vw, 54px);
  }

  .racing-philosophy h2,
  .racing-podium h2,
  .racing-machines h2,
  .racing-archive h2,
  .racing-film h2,
  .racing-cta h2 {
    font-size: clamp(32px, 9.5vw, 54px);
  }
}
