/*
 * Ark typography source of truth.
 * Use a .type-* role or its --type-* token for new UI; do not add local size
 * overrides. Roles describe the content, independent of its HTML heading level.
 * The selectors below adapt the legacy Webflow classes to the same roles.
 * Chart coordinates/readouts and icon glyphs retain their own graphic scale.
 */
:root {
  --font-display: "Signifier", Georgia, serif;
  --font-body: "Ppneuemontreal", Arial, sans-serif;
  --font-mono: "Soehne Mono Buch", monospace;

  --type-hero-title: clamp(46px, 4.65vw, 88px);
  --type-hero-card: 28px;
  --type-page-title: 64px;
  --type-section-title: 48px;
  --type-subheading: 36px;
  --type-card-title: 24px;
  --type-intro: 18px;
  --type-body: 18px;
  --type-small: 16px;
  --type-eyebrow: 16px;
  --type-label: 14px;
  --type-control: 16px;
  --type-nav: 12px;
  --type-metric: 48px;
  --type-quote: 36px;
  --type-chart-label: 12px;
  --type-graphic-label: 10px;

  --leading-title: 1.2;
  --leading-hero: 1.12;
  --leading-body: 1.4;
  --leading-label: 1.4;
  --leading-tight: 1;
}
@media (min-width: 1920px) {
  :root {
    --type-page-title: 88px;
    --type-section-title: 56px;
    --type-subheading: 40px;
    --type-card-title: 28px;
    --type-intro: 20px;
    --type-nav: 14px;
    --type-metric: 56px;
    --type-quote: 40px;
  }
}
@media (max-width: 991px) {
  :root {
    --type-hero-title: clamp(43px, 6vw, 60px);
    --type-hero-card: 22px;
    --type-page-title: 48px;
    --type-section-title: 36px;
    --type-subheading: 28px;
    --type-card-title: 22px;
    --type-body: 16px;
    --type-eyebrow: 14px;
    --type-metric: 36px;
    --type-quote: 28px;
  }
}
@media (max-width: 767px) {
  :root {
    --type-page-title: 40px;
    --type-section-title: 32px;
    --type-small: 14px;
    --type-control: 14px;
    --type-label: 12px;
  }
}
@media (max-width: 600px) {
  :root { --type-hero-title: clamp(42px, 10.4vw, 62px); }
}
@media (max-width: 479px) {
  :root {
    --type-hero-card: 20px;
    --type-page-title: 32px;
    --type-card-title: 20px;
    --type-intro: 16px;
    --type-eyebrow: 12px;
    --type-graphic-label: 8px;
  }
}

/* Heading roles. Keep the fluid homepage display distinct from page titles. */
.body .type-hero-title {
  font-family: var(--font-display);
  font-size: var(--type-hero-title);
  line-height: var(--leading-hero);
}
.body :is(.type-page-title, .heading-1, .heading-1.lightmode, .heading-1.lightmode.center, .heading-1.center.darkmode, .heading-italics) {
  font-family: var(--font-display);
  font-size: var(--type-page-title);
  line-height: var(--leading-title);
}
.body :is(.type-section-title, .heading-2.lightmode, .heading-2.lightmode.center, .heading-2.darkmode.center, .statement-headline.heading-2.lightmode.center, .ai-heading, .security-heading, .thesis-line.heading-2.lightmode.center):not(:where(.svc-copy *, .heading-2.lightmode.center.darkmode-color, .heading-2.darkmode.center.caption, .heading-2.darkmode.center.bottom)) {
  font-family: var(--font-display);
  font-size: var(--type-section-title);
  line-height: var(--leading-title);
}
.body :is(.type-subheading, .heading-3.lightmode, .svc-copy .heading-2.lightmode, .trust-heading, .heading-2.color) {
  font-family: var(--font-display);
  font-size: var(--type-subheading);
  line-height: var(--leading-title);
}
.body :is(.type-card-title, .heading-4.lightmode, .service-t, .results-card-title, .security-card-title, .heading-2.lightmode.center.darkmode-color, .heading-2.darkmode.center.caption, .heading-2.darkmode.center.bottom) {
  font-family: var(--font-display);
  font-size: var(--type-card-title);
  line-height: var(--leading-title);
}

/* Text roles. Intro selectors follow body so explicit roles win. */
.body.page-open-source .grid-24px._2x2 .heading-2.color {
  font-family: var(--font-display);
  font-size: var(--type-card-title);
  line-height: var(--leading-title);
}

.body :is(.type-body, .paragraph.lightmode, .paragraph.lightmode.center, .paragraph.lightmode.black.r-d, .paragraph.darkmode, .paragraph.darkmode-color, .paragraph-darkmode, .paragraph-darkmode.lightmode, .blog-text.lightmode, .results-card-body, .results-panel.v2 .results-card-body, .security-card-body, .svc-list li, .q-option, .trust-badge-s) {
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}
.body :is(.type-intro, .paragraph.lightmode.black.larger, .paragraph.lightmode.larger.span-gray, .ai-body, .paragraph.lightmode.black.hero-r-d, .page-hero > .paragraph, .process-hero-description, .results-panel.v2 .results-lead, .rd-stat-text, .hero-stats .rd-stat-text) {
  font-family: var(--font-body);
  font-size: var(--type-intro);
  line-height: var(--leading-body);
}
.body :is(.type-small, .chapter-stat-t, .service-s, .service-more, .statement-note, .q-note, .q-error, .bars-label, .gmp-quote-attr, .paragraph.lightmode.author) {
  font-size: var(--type-small);
  line-height: var(--leading-body);
}
.body :is(.type-eyebrow, .eyebrow.lightmode, .process-hero .process-hero-eyebrow, .splash-kicker) {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow);
  line-height: var(--leading-tight);
}
.body :is(.type-label, .mono-label, .rd-mono-label, .trust-badge-t, .service-n, .thesis-toc-item, .viz-key) {
  font-size: var(--type-label);
  line-height: var(--leading-label);
}
.body .viz-card .mono-label, .body .hood-chip {
  font-size: var(--type-chart-label);
}
.body .viz-card:is(.sim, .twin) .viz-key {
  font-family: var(--font-mono);
  font-size: var(--type-chart-label);
  line-height: var(--leading-label);
  letter-spacing: .8px;
  text-transform: uppercase;
}
.body :is(.type-control, .button.primary, .button.secondary, .button-style, .text-field) {
  font-family: var(--font-body);
  font-size: var(--type-control);
  line-height: var(--leading-label);
}
.body :is(.type-nav, .nav-link.light-mode, .nav-text) { font-size: var(--type-nav); }
.body .button.nav { font-size: var(--type-control); }
.body :is(.type-metric, .chapter-stat-n, .rd-stat-number, .hero-stats .rd-stat-number) {
  font-size: var(--type-metric);
  line-height: var(--leading-tight);
}
.body :is(.type-quote, .gmp-quote-text, .proof-quotes .gmp-quote-text) {
  font-size: var(--type-quote);
  line-height: var(--leading-title);
}

/* Article hierarchy uses reading-sized subheads, not landing-page headings. */
.body .w-richtext h2 { font-size: var(--type-subheading); line-height: var(--leading-title); }
.body .w-richtext h3 { font-size: var(--type-card-title); line-height: var(--leading-title); }
.body .w-richtext p { font-size: var(--type-body); line-height: var(--leading-body); }
