/* ==========================================================================
   VR Celebrations — Typography
   File: assets/css/typography.css
   Font families are loaded via <link> in each page head (Google Fonts):
   Poppins (body), Playfair Display (display), Great Vibes (script).
   ========================================================================== */

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-2xs);
  color: var(--color-text);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

/* Home hero overrides h1 to --fs-3xl explicitly; these are defaults for content pages */
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
h4 { font-size: var(--fs-base); }
h5 { font-size: var(--fs-sm); }
h6 { font-size: var(--fs-sm); }

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-secondary);
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

strong, b {
  font-weight: var(--fw-semibold);
}

small {
  font-size: var(--fs-sm);
}

ul, ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
}

blockquote {
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: var(--radius-sm);
  font-style: italic;
}

/* --------------------------------------------------------------------
   Display styles
   -------------------------------------------------------------------- */

.display-serif {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
}

.display-script {
  font-family: var(--font-script);
  font-weight: var(--fw-regular);
  color: var(--color-accent);
  line-height: 1.1;
}

/* Section headings — centered title used on every page */
.section-heading {
  max-width: 640px;
  margin: 0 auto var(--space-sm);
  text-align: center;
}

.section-heading__title {
  margin-bottom: var(--space-2xs);
  font-size: var(--fs-xl);
}

.section-heading__subtitle {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

/* Small uppercase kicker above headings */
.section-heading__kicker {
  display: inline-block;
  margin-bottom: var(--space-2xs);
  color: var(--color-primary-dark);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------
   Text helpers
   -------------------------------------------------------------------- */

.text-muted     { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-accent    { color: var(--color-accent); }
.text-primary   { color: var(--color-primary-dark); }
.text-invert    { color: var(--color-text-invert); }
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }

.text-gradient {
  background: var(--gradient-celebration);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Kicker + title (functional UI headings) ────────────────────────────── */

.kicker-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  line-height: 1;
  margin-bottom: 3px;
}

.kicker-title {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.3;
  margin: 0;
}

/* ─── Gold gradient text (DB-driven entity names) ─────────────────────────── */

.heading-gradient {
  background: linear-gradient(135deg, #F0B14B 0%, #C97B15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.25;
  display: inline-block;
}

/* Selection */
::selection {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}
