/* One unit is 8 CSS px at the browser default. Use half units for intermediate type sizes.
   Keep the root font size user-controlled. Breakpoints change the role, never interpolate it. */
:root {
  --type-unit: .5rem;
  --type-body: calc(2 * var(--type-unit));
  --type-lead: 1.25rem;
  --type-subheading: 1.25rem;
  --type-section: 1.5rem;
  --type-title: 2rem;
  --type-product: 2rem;
  --type-stat: 2.5rem;
  --type-display: 3rem;
  --type-year: 4.5rem;
}

@media (min-width: 45em) {
  :root {
    --type-subheading: 1.5rem;
    --type-section: 2rem;
    --type-title: 2.5rem;
    --type-product: 3rem;
    --type-stat: 3.5rem;
    --type-display: 4rem;
    --type-year: 6rem;
  }
}

@media (min-width: 64em) {
  :root {
    --type-subheading: 2rem;
    --type-section: 2.5rem;
    --type-title: 3rem;
    --type-product: 4rem;
    --type-stat: 4.5rem;
    --type-display: 5.5rem;
    --type-year: 7.5rem;
  }
}

body { font-size: var(--type-body); }
:where(button, input, select, textarea) { font-size: inherit; }

/* The news and privacy templates still load the original corporate stylesheet. */
.jp-archive .nav-links a,
.jp-archive .lang-btn,
.jp-archive .lang-btn .caret,
.jp-archive .press-meta,
.jp-archive .press-source,
.jp-archive .press-date,
.jp-archive .read-more,
.jp-archive .page-btn,
.jp-archive .page-desc,
.jp-archive .footer p,
.jp-archive .footer a {
  font-size: var(--type-body);
}
.jp-archive .page-title { font-size: var(--type-display); }
.jp-archive .press-title { font-size: var(--type-lead); }
.jp-archive .privacy-content h2 { font-size: var(--type-section); }

.jp-archive .privacy-content,
.jp-archive .page-title,
.jp-archive .footer { overflow-wrap: anywhere; }
.jp-archive .footer-bottom { flex-wrap: wrap; }

@media (max-width: 17em) {
  .jp-archive .nav-content .logo a { font-size: var(--type-body); }
}
