/* ============================================================
   Greek Quiz — gq-typography.css
   Font imports, typographic scale, editorial styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ── Base Typography ── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gq-text-dark);
}

p { margin-bottom: 0; }

/* ── Type Scale ── */
.gq-t-xl  { font-size: clamp(2.5rem, 5vw, 4rem); }
.gq-t-lg  { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.gq-t-md  { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.gq-t-base{ font-size: 1rem; }
.gq-t-sm  { font-size: 0.9rem; }
.gq-t-xs  { font-size: 0.8rem; }

/* ── Font Families ── */
.gq-font-display    { font-family: 'Playfair Display', Georgia, serif; }
.gq-font-elegant    { font-family: 'Cormorant Garamond', Georgia, serif; }
.gq-font-body       { font-family: 'Inter', system-ui, sans-serif; }

/* ── Weights ── */
.gq-fw-light    { font-weight: 300; }
.gq-fw-regular  { font-weight: 400; }
.gq-fw-medium   { font-weight: 500; }
.gq-fw-semibold { font-weight: 600; }
.gq-fw-bold     { font-weight: 700; }
.gq-fw-black    { font-weight: 800; }

/* ── Colors ── */
.gq-text-gold     { color: var(--gq-gold); }
.gq-text-blue     { color: var(--gq-blue-deep); }
.gq-text-blue-mid { color: var(--gq-blue-mid); }
.gq-text-muted    { color: var(--gq-text-light); }
.gq-text-white    { color: var(--gq-white); }

/* ── Italic / Decorative ── */
.gq-italic      { font-style: italic; }
.gq-uppercase   { text-transform: uppercase; letter-spacing: 0.08em; }
.gq-small-caps  {
  font-variant: small-caps;
  letter-spacing: 0.06em;
}

/* ── Drop Cap ── */
.gq-dropcap::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4.2em;
  font-weight: 700;
  float: left;
  line-height: 0.75;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--gq-blue-deep);
}

/* ── Lead Text ── */
.gq-lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--gq-text-mid);
}

/* ── Overline ── */
.gq-overline {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gq-gold);
}

/* ── Editorial Pull Quote ── */
.gq-pull-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gq-blue-deep);
  text-align: center;
  padding: 28px 40px;
  position: relative;
  margin: 40px 0;
}
.gq-pull-quote::before,
.gq-pull-quote::after {
  content: '"';
  font-size: 5rem;
  color: var(--gq-gold);
  opacity: 0.3;
  font-family: 'Playfair Display', serif;
  line-height: 0;
  vertical-align: -0.5em;
}
.gq-pull-quote::before { margin-right: 6px; }
.gq-pull-quote::after  { content: '"'; margin-left: 6px; }

/* ── Inline Highlight ── */
.gq-highlight {
  background: linear-gradient(180deg, transparent 55%, rgba(201,162,39,0.3) 55%);
  padding: 0 2px;
}

/* ── Word Emphasis ── */
.gq-em-blue { color: var(--gq-blue-mid); font-weight: 600; }
.gq-em-gold { color: var(--gq-gold); font-weight: 600; }

/* ── Byline Style ── */
.gq-byline-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gq-text-light);
}

/* ── Article Typeset ── */
.gq-article-typeset p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #2C2C3E;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}
.gq-article-typeset h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gq-text-dark);
  margin: 48px 0 18px;
  position: relative;
  padding-bottom: 12px;
}
.gq-article-typeset h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 2px;
  background: var(--gq-gold);
  border-radius: 2px;
}
.gq-article-typeset h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--gq-blue-deep);
  margin: 32px 0 12px;
}
.gq-article-typeset ul,
.gq-article-typeset ol {
  padding-left: 26px;
  margin-bottom: 24px;
}
.gq-article-typeset li {
  font-size: 1rem;
  line-height: 1.8;
  color: #2C2C3E;
  margin-bottom: 6px;
}
.gq-article-typeset blockquote {
  border-left: 3px solid var(--gq-gold);
  margin: 32px 0;
  padding: 18px 28px;
  background: rgba(201,162,39,0.06);
  border-radius: 0 8px 8px 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gq-blue-deep);
  line-height: 1.7;
}

/* ── Monospace ── */
.gq-mono {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.88em;
  background: rgba(31,60,136,0.07);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--gq-blue-deep);
}

/* ── Sup / Sub ── */
sup { font-size: 0.65em; vertical-align: super; color: var(--gq-gold); }

/* ── Link Underline style ── */
.gq-link-underline {
  position: relative;
  color: var(--gq-blue-mid);
  font-weight: 500;
}
.gq-link-underline::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--gq-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.gq-link-underline:hover::after { transform: scaleX(1); }
.gq-link-underline:hover { color: var(--gq-gold); }

/* ── Responsive font clamp helpers ── */
.gq-display-xl {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
}
.gq-display-lg {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
}
.gq-display-md {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
}
