/* Central typography settings. Edit this block to update the whole website. */

@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader/Newsreader-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --font-heading: 'Newsreader', 'Times New Roman', serif;
  --font-body: Satoshi, Arial, sans-serif;
  --weight-thin: 200;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-bold: 700;

  --title-weight: var(--weight-regular);
  --title-line-height: 1.12;
  --title-letter-spacing: -.025em;
  --title-hero-size: clamp(36px, 4.5vw, 72px);
  --title-display-size: clamp(60px, 6.65vw, 108px);
  --title-section-size: clamp(30px, 3.4vw, 52px);
  --title-subsection-size: clamp(26px, 2.6vw, 40px);
  --title-card-size: clamp(20px, 1.7vw, 27px);
  --title-small-size: 16px;
  --title-gap: 24px;
  --subtitle-gap: 16px;

  --label-size: 11px;
  --label-weight: var(--weight-bold);
  --label-letter-spacing: 3px;
  --label-line-height: 1.5;
  --label-gap: 28px;

  --body-size: 15px;
  --body-line-height: 1.5;
  --body-weight: var(--weight-regular);
  --lead-size: 18px;
  --caption-size: 12px;
  --journey-label-size: clamp(10px, 1.15vw, 14px);
  --journey-number-size: clamp(14px, 1.4vw, 18px);
  --highlight-color: var(--gold);
}

/* About us keeps the Thin title style requested for this page. */
.about-page { --title-weight: var(--weight-thin); }

/* Reusable roles: add data-type="hero", "section", "card", etc. to new text. */
#main [data-type="hero"], #main [data-type="display"],
#main [data-type="section"], #main [data-type="subsection"],
#main [data-type="card"], #main [data-type="small-title"] {
  font-family: var(--font-heading);
  font-weight: var(--title-weight);
  line-height: var(--title-line-height);
  letter-spacing: var(--title-letter-spacing);
  margin-top: 0;
  margin-bottom: var(--title-gap);
}
#main [data-type="hero"] { font-size: var(--title-hero-size); }
#main [data-type="display"] { font-size: var(--title-display-size); font-weight: var(--weight-light); }
#main [data-type="section"] { font-size: var(--title-section-size); }
#main [data-type="subsection"] { font-size: var(--title-subsection-size); }
#main [data-type="card"] { font-size: var(--title-card-size); margin-bottom: var(--subtitle-gap); overflow-wrap: anywhere; }
#main [data-type="small-title"] { font-size: var(--title-small-size); margin-bottom: var(--subtitle-gap); overflow-wrap: anywhere; }
#main [data-type="label"] {
  font-family: var(--font-body); font-size: var(--label-size); font-weight: var(--label-weight);
  line-height: var(--label-line-height); letter-spacing: var(--label-letter-spacing);
  text-transform: uppercase; margin-top: 0; margin-bottom: var(--label-gap);
}
#main [data-type="body"], #main [data-type="lead"], #main [data-type="caption"] {
  font-family: var(--font-body); font-weight: var(--body-weight); line-height: var(--body-line-height);
}
#main [data-type="body"] { font-size: var(--body-size); }
#main [data-type="lead"] { font-size: var(--lead-size); }
#main [data-type="caption"] { font-size: var(--caption-size); }
#main :is(h1, h2, h3)[data-type] span { color: var(--highlight-color); }
#main [data-type="step"] {
  font-family: var(--font-body); font-size: var(--caption-size); font-weight: var(--weight-regular);
  line-height: var(--body-line-height); letter-spacing: 0;
}

@media(max-width:680px) {
  :root {
    --title-hero-size: clamp(32px, 8vw, 48px);
    --title-display-size: clamp(47px, 10.2vw, 68px);
    --title-section-size: clamp(29px, 6.6vw, 40px);
    --title-subsection-size: clamp(26px, 6vw, 34px);
    --title-card-size: 22px;
    --lead-size: 16px;
    --body-size: 14px;
  }
}
