/**
 * Maestro Parents — shared typography (Rubik headings + Assistant body).
 * Load after Google Fonts in HTML.
 */
:root {
  --font-display: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  --leading-body: 1.78;
  --leading-heading: 1.32;
  --leading-tight: 1.24;
  --space-heading-below: clamp(0.65rem, 1.8vw, 1rem);
  --space-h1-below: clamp(0.85rem, 2.2vw, 1.35rem);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Assistant", var(--font-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
}

[dir="rtl"] body {
  letter-spacing: 0.012em;
}

[dir="rtl"] p,
[dir="rtl"] li {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title,
.section-heading,
.store-logo .logo-main,
.quiz-title,
.mp-section-head h2,
.checkout-modal-content h2,
.checkout-stickers-heading {
  font-family: "Rubik", var(--font-display);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: -0.02em;
}

h1,
.hero-title,
.mp-hero h1 {
  line-height: var(--leading-tight);
  margin-bottom: var(--space-h1-below);
}

h2,
h3,
.section-title,
.section-heading {
  margin-bottom: var(--space-heading-below);
}

h1 + p,
h2 + p,
h3 + p,
.hero-title + p,
.section-title + p,
.section-heading + p,
.mp-hero h1 + p,
.mp-section-head h2 + p {
  margin-top: 0;
}

p + p {
  margin-top: 0.85em;
}

@media (max-width: 768px) {
  :root {
    --leading-body: 1.82;
    --leading-heading: 1.28;
  }

  body {
    font-size: 1.02rem;
  }

  h1,
  .hero-title,
  .mp-hero h1 {
    line-height: 1.26;
    letter-spacing: -0.015em;
  }

  h2,
  h3,
  .section-heading,
  .section-title {
    line-height: 1.3;
  }

  p,
  li {
    max-width: 38em;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
    line-height: 1.85;
  }
}
