@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/public-sans-latin-400-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-600.woff2") format("woff2");
}

:root {
  --font-sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --sans: var(--font-sans);
  --serif: var(--font-serif);

  --type-display: 72px;
  --type-h1: 56px;
  --type-h2: 40px;
  --type-h3: 26px;
  --type-body: 17px;
  --type-label: 13px;
}

html {
  font-family: var(--font-sans);
  font-synthesis: none;
  font-variant-numeric: lining-nums proportional-nums;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  font-variant-numeric: lining-nums proportional-nums;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block-start: 0;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-optical-sizing: auto;
  text-transform: none;
}

h1 {
  font-size: var(--type-h1);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

:where([class*="hero"], [class*="masthead"], [class*="banner"]) h1,
:where(.display-heading, [data-display-heading]) {
  font-size: var(--type-display);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--type-h2);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

h3,
h4,
h5,
h6,
:where(.lead, .lede, [class*="-lead"], [class*="-lede"]) {
  font-size: var(--type-h3);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p,
li,
dt,
dd,
address,
blockquote,
figcaption {
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}

:where(main, footer, dialog) p {
  max-width: 68ch;
}

:where(.lead, .lede, [class*="-lead"], [class*="-lede"], [class*="intro"]) {
  max-width: 60ch;
}

a,
button,
input,
select,
textarea,
summary {
  font-size: var(--type-body);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

strong,
b {
  font-weight: 600;
}

i,
em {
  font-style: normal;
}

:where(article, .prose, [class*="article"], blockquote) em,
cite {
  font-style: italic;
}

small,
label,
legend,
th,
caption,
:where(
  .kicker,
  [class*="kicker"],
  .eyebrow,
  [class*="eyebrow"],
  .overline,
  [class*="overline"],
  [class*="caption"],
  [class*="meta"],
  [class*="category"],
  [class*="tag"]
) {
  font-family: var(--font-sans);
  font-size: var(--type-label);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

:where(
  .kicker,
  [class*="kicker"],
  .eyebrow,
  [class*="eyebrow"],
  .overline,
  [class*="overline"],
  th
) {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(
  table,
  time,
  output,
  [class*="metric"],
  [class*="stat"],
  [class*="price"],
  [class*="amount"],
  [class*="number"],
  [class*="figure"],
  [class*="calculator"],
  [data-numeric]
) {
  font-variant-numeric: lining-nums tabular-nums;
}

@media (max-width: 900px) {
  :root {
    --type-display: 46px;
    --type-h1: 40px;
    --type-h2: 30px;
    --type-h3: 22px;
    --type-body: 16px;
    --type-label: 12px;
  }

  h1 {
    line-height: 1.08;
  }

  :where([class*="hero"], [class*="masthead"], [class*="banner"]) h1,
  :where(.display-heading, [data-display-heading]) {
    line-height: 1.02;
  }

  h2 {
    line-height: 1.16;
  }
}
