/* ============================================================
   typography.css — S.C. Kincaid Author Website
   Google Fonts import, base type rules, utility classes
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=IM+Fell+English:ital@0;1&family=Jost:wght@300;400;500&display=swap');

/* --- Base Body Type --- */
body {
  font-family: var(--font-jost);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--vellum);
  background-color: var(--iron-dark);
}

/* --- Headings --- */
/* Default heading style — overridden by utility classes */
h1 {
  font-family: var(--font-cormorant);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  color: var(--vellum);
}

h2 {
  font-family: var(--font-cormorant);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  color: var(--vellum);
}

h3 {
  font-family: var(--font-cormorant);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  color: var(--vellum);
}

h4 {
  font-family: var(--font-cormorant);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--frost-silver);
}

/* --- Prose Body Text --- */
.prose {
  font-family: var(--font-palatino);
  font-size: 17px;
  line-height: 1.65;
  color: var(--vellum);
}

.prose--frost {
  font-family: var(--font-palatino);
  font-size: 17px;
  line-height: 1.65;
  color: var(--frost-silver);
}

.prose--lg {
  font-family: var(--font-palatino);
  font-size: 18px;
  line-height: 1.65;
  color: var(--frost-silver);
}

/* --- Font Utility Classes --- */
.font-cinzel {
  font-family: var(--font-cinzel);
  letter-spacing: var(--tracking-cinzel);
  text-transform: uppercase;
}

.font-cormorant {
  font-family: var(--font-cormorant);
}

.font-cormorant-italic {
  font-family: var(--font-cormorant);
  font-style: italic;
}

.font-fell {
  font-family: var(--font-fell);
}

.font-fell-italic {
  font-family: var(--font-fell);
  font-style: italic;
}

.font-jost {
  font-family: var(--font-jost);
}

.font-palatino {
  font-family: var(--font-palatino);
}

/* --- Series Mark --- */
.series-mark {
  font-family: var(--font-cinzel);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: var(--tracking-cinzel);
  color: var(--vellum);
  font-size: clamp(24px, 4vw, 52px);
  line-height: 1.1;
}

/* --- Wordmark (S.C. KINCAID) --- */
.wordmark {
  font-family: var(--font-cinzel);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: var(--tracking-cinzel);
  color: var(--vellum);
}

/* --- Category Labels --- */
.category-label {
  font-family: var(--font-jost);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps-md);
  display: block;
}

.category-label--world {
  color: var(--forge-gold);
}

.category-label--lore {
  color: var(--aurora-teal);
}

.category-label--history {
  color: var(--swan-silver);
}

/* --- Meta / Byline --- */
.byline {
  font-family: var(--font-jost);
  font-weight: 300;
  font-size: 13px;
  color: var(--ash-gray);
}

/* --- Label / Eyebrow --- */
.eyebrow {
  font-family: var(--font-cinzel);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps-lg);
}

.eyebrow--red {
  color: var(--ember-red);
}

.eyebrow--gold {
  color: var(--forge-gold);
}

.eyebrow--ash {
  color: var(--ash-gray);
}

/* --- Tagline --- */
.tagline {
  font-family: var(--font-fell);
  font-style: italic;
  font-size: clamp(14px, 2vw, 20px);
  color: var(--frost-silver);
  line-height: 1.4;
}

/* --- Pull Quote --- */
.pull-quote-text {
  font-family: var(--font-fell);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--vellum);
  line-height: 1.5;
  text-align: center;
}

/* --- Aurora Line --- */
.aurora-line {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--aurora-gradient);
  border: none;
  margin: 0;
}

/* --- Section Divider (blog posts) --- */
.section-divider {
  display: block;
  text-align: center;
  color: var(--ember-red);
  font-size: 16px;
  margin: var(--space-xl) auto;
  letter-spacing: 0.5em;
}

.section-divider--ash {
  color: var(--ash-gray);
}

/* --- Horizontal Rule (series mark separator) --- */
.rule-frost {
  display: block;
  height: 1px;
  background: var(--frost-silver);
  border: none;
  width: 100%;
}

/* --- Focus styles (WCAG AA) --- */
:focus-visible {
  outline: 2px solid var(--ember-red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
