/**
 * Typography
 * Base type rules built entirely from tokens in variables.css.
 *
 * Self-hosting is used deliberately so the site does not depend on a
 * third-party font CDN at runtime. The Saans trial font files live in
 * assets/fonts/ and are loaded locally with `font-display: swap`.
 */

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-SemiBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-SemiBoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-Heavy.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("../fonts/Saans-TRIAL-HeavyItalic.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--color-text-heading);
  margin: 0 0 var(--space-4);
}

h1,
.h1 {
  font-size: var(--text-5xl);
}

h2,
.h2 {
  font-size: var(--text-4xl);
}

h3,
.h3 {
  font-size: var(--text-3xl);
}

h4,
.h4 {
  font-size: var(--text-2xl);
}

h5,
.h5 {
  font-size: var(--text-xl);
}

h6,
.h6 {
  font-size: var(--text-lg);
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-text-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-text-link-hover);
}

small,
.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-lg {
  font-size: var(--text-lg);
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand-gold-500);
}

/* Text-on-dark context (used inside header/footer/dark sections) */
.on-dark,
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4,
.on-dark h5,
.on-dark h6 {
  color: var(--color-text-on-dark);
}

.on-dark p,
.on-dark li {
  color: var(--color-text-on-dark-muted);
}

.on-dark a {
  color: var(--color-text-on-dark);
}

.on-dark a:hover,
.on-dark a:focus-visible {
  color: var(--color-brand-gold-500);
}
