/* Typography System — Editorial Serif + Architectural Clean Sans (Authoritative Responsive Scale) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Headings & Display Hierarchy */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Specific Scale Tokens */
.font-display-hero {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 6.85rem);
  line-height: 1.0;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.font-display-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 4.85rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.font-display-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3.85rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.font-display-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2.45rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.font-display-h4 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1.28;
  font-weight: 500;
}

/* Body & Interface Hierarchy */
.font-body-lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  line-height: 1.7;
  font-weight: 300;
  color: var(--color-text-secondary);
  overflow-wrap: break-word;
}

.font-body-base {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.15vw, 1.125rem);
  line-height: 1.75;
  font-weight: 400;
  color: var(--color-text-secondary);
  overflow-wrap: break-word;
}

.font-body-sm {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1vw, 1rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--color-text-secondary);
  overflow-wrap: break-word;
}

.font-caption {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Editorial Overline Signature Label */
.font-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: clamp(0.6875rem, 1.8vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand-cyan);
  margin-bottom: var(--space-xs);
  max-width: 100%;
}

.font-overline::before {
  content: '';
  display: inline-block;
  width: clamp(16px, 3vw, 28px);
  height: 1.5px;
  background-color: var(--color-brand-cyan);
  flex-shrink: 0;
}

/* Number Indexes (e.g. 01, 02) */
.font-index {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--color-brand-cyan);
  line-height: 1;
}

/* Cinematic Dark Themes Overrides */
.theme-dark, .section-dark {
  background-color: var(--color-dark-primary);
  color: var(--color-text-on-dark);
}

.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4,
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--color-text-on-dark);
}

.theme-dark .font-body-lead,
.theme-dark .font-body-base,
.theme-dark .font-body-sm,
.section-dark .font-body-lead,
.section-dark .font-body-base,
.section-dark .font-body-sm {
  color: var(--color-text-on-dark-muted);
}

.theme-dark .font-overline,
.section-dark .font-overline {
  color: var(--color-brand-cyan-bright);
}

.theme-dark .font-overline::before,
.section-dark .font-overline::before {
  background-color: var(--color-brand-cyan-bright);
}

.theme-dark .font-index,
.section-dark .font-index {
  color: var(--color-brand-cyan-bright);
}
