/**
 * PrayStation V10 — Typography Design System
 * SectionHeading + accents + motion (prefers-reduced-motion safe)
 */

:root {
  --font-hero: clamp(2.6rem, 1.35rem + 4vw, 5rem);
  --font-section: clamp(2rem, 1.25rem + 2.8vw, 3.5rem);
  --font-card: clamp(1.1rem, 1rem + 0.6vw, 1.45rem);
  --font-description: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  --font-eyebrow: 0.72rem;

  --line-height-heading: 1.08;
  --line-height-body: 1.65;
  --tracking-heading: -0.035em;
  --tracking-eyebrow: 0.14em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --color-heading: #f8fafc;
  --color-description: #94a3b8;
  --color-accent-text: #facc15;
  --color-eyebrow: #22d3ee;
}

[data-theme="light"] {
  --color-heading: #101024;
  --color-description: #475569;
  --color-accent-text: #b45309;
  --color-eyebrow: #0891b2;
}

/* ---- Accent span (semantic: span only, never changes heading level) ---- */
.text-accent {
  color: var(--color-accent-text);
  font-style: normal;
  font-weight: inherit;
}

.text-accent--cyan {
  color: var(--color-eyebrow);
}

/* ---- SectionHeading component ---- */
.section-heading {
  display: grid;
  gap: 0;
  max-width: 40rem;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-heading--center .section-heading__description {
  margin-inline: auto;
}

.section-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
  font-family: var(--font-display);
  font-size: var(--font-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-eyebrow);
  line-height: 1.2;
}

.section-heading__eyebrow svg {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  color: currentColor;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--color-eyebrow) 50%, transparent));
}

.section-heading__title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: var(--font-section);
  font-weight: var(--weight-extrabold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-heading);
  text-wrap: balance;
  max-width: 16ch;
}

.section-heading--impact .section-heading__title {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.85rem);
  max-width: 14ch;
}

.section-heading--center .section-heading__title {
  max-width: 22ch;
}

.section-heading__description {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-description);
  font-weight: var(--weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-description);
  max-width: 38ch;
}

.section-heading + .btn,
.section-heading + .btn-group,
.section-heading ~ .btn,
.split__copy > .btn,
.split__copy > .showcase-verse {
  margin-top: 1.35rem;
}

.section-heading.section-heading--center {
  margin-bottom: var(--space-7);
}

.pilot-copy .section-heading {
  margin-bottom: 0.25rem;
}

.pilot-copy .btn {
  margin-top: 1.5rem;
}

.split__copy .section-heading__title {
  max-width: 15ch;
}

.split__copy .section-heading__description {
  max-width: 36ch;
}

/* Bridge: legacy classes inherit V10 scale */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
  font-family: var(--font-display);
  font-size: var(--font-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  color: var(--color-eyebrow);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--font-section);
  font-weight: var(--weight-extrabold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-heading);
  margin-bottom: 1.15rem;
  text-wrap: balance;
}

.section-lead {
  color: var(--color-description);
  font-size: var(--font-description);
  line-height: var(--line-height-body);
  max-width: 40rem;
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-7);
}

.section-head--center .section-title {
  max-width: 22ch;
  margin-inline: auto;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* About title aligns with impact variant */
.about-title {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.85rem);
  font-weight: var(--weight-extrabold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-heading);
}

.about-title__accent,
.about-kicker {
  /* keep yellow kicker from about redesign */
}

.about-lead {
  font-size: var(--font-description);
  line-height: var(--line-height-body);
  color: var(--color-description);
}

/* CTA yellow solid for storytelling sections */
.btn--cta-yellow {
  background: var(--color-yellow);
  color: #101024;
  border: 0;
  font-weight: var(--weight-bold);
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.35);
}

.btn--cta-yellow:hover:not(:disabled) {
  filter: brightness(1.05);
  color: #101024;
}

[data-theme="light"] .btn--cta-yellow {
  background: #ca8a04;
  color: #fff;
  box-shadow: 0 8px 24px rgba(202, 138, 4, 0.3);
}

/* ---- Motion: accent soft glow on enter ---- */
.reveal.is-visible .text-accent {
  animation: accent-soft 0.9s var(--ease-out) both;
}

@keyframes accent-soft {
  from {
    opacity: 0.35;
    filter: brightness(0.85);
  }
  to {
    opacity: 1;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal.is-visible .text-accent {
    animation: none;
  }
}
