/* typography.css — Newspaper typography system */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  --ink:          #111111;
  --ink-light:    #2c2c2c;
  --paper:        #faf8f3;
  --paper-dark:   #f0ece0;
  --accent-red:   #cc0000;
  --accent-dark:  #990000;
  --rule:         #d4d0c8;
  --rule-dark:    #b0aa9e;
  --muted:        #666666;
  --muted-light:  #888888;
  --white:        #ffffff;
  --masthead-bg:  #0a0a0a;
  --card-bg:      #ffffff;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08);

  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
}

body {
  font-family:    var(--font-body);
  font-size:      var(--text-lg);
  color:          var(--ink);
  background:     var(--paper);
  line-height:    1.7;
}

/* Headings — always Playfair Display */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color:       var(--ink);
}

h1 { font-size: var(--text-5xl); font-weight: 900; }
h2 { font-size: var(--text-4xl); font-weight: 700; }
h3 { font-size: var(--text-3xl); font-weight: 700; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl);  font-weight: 600; }
h6 { font-size: var(--text-lg);  font-weight: 600; }

/* Drop cap for featured article lead paragraph */
.drop-cap::first-letter {
  font-family: var(--font-serif);
  font-size:   4.5rem;
  font-weight: 900;
  float:       left;
  line-height: 0.85;
  margin:      0.05em 0.08em 0 0;
  color:       var(--ink);
}

/* Section label — small caps, Inter */
.section-label {
  font-family:    var(--font-ui);
  font-size:      var(--text-xs);
  font-weight:    600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--accent-red);
}

/* Category stamp badge */
.category-badge {
  display:        inline-block;
  font-family:    var(--font-ui);
  font-size:      0.68rem;
  font-weight:    600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background:     var(--accent-red);
  color:          var(--white);
  padding:        2px 7px;
  border-radius:  0;
}

/* Byline text */
.byline {
  font-family: var(--font-ui);
  font-size:   var(--text-sm);
  color:       var(--muted);
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  flex-wrap:   wrap;
}

.byline a:hover { color: var(--accent-red); }

/* Pull quote */
.pull-quote {
  font-family:   var(--font-serif);
  font-size:     var(--text-2xl);
  font-style:    italic;
  font-weight:   400;
  line-height:   1.4;
  border-left:   4px solid var(--accent-red);
  margin:        2rem 0;
  padding:       1rem 1.5rem;
  color:         var(--ink-light);
}

/* Article body text */
.article-body {
  font-family: var(--font-body);
  font-size:   var(--text-lg);
  line-height: 1.8;
  color:       var(--ink-light);
}

.article-body p { margin-bottom: 1.4em; }
.article-body h2 { margin: 2em 0 0.5em; }
.article-body h3 { margin: 1.5em 0 0.4em; }
.article-body a { color: var(--accent-red); border-bottom: 1px solid currentColor; }
.article-body a:hover { opacity: 0.75; }
.article-body img { margin: 2em auto; border-radius: 2px; }
.article-body figcaption {
  text-align:  center;
  font-size:   var(--text-sm);
  color:       var(--muted);
  margin-top:  0.5rem;
  font-style:  italic;
}
.article-body blockquote {
  border-left: 3px solid var(--accent-red);
  padding-left: 1.2rem;
  color: var(--muted);
  font-style: italic;
  margin: 1.5em 0;
}
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.2em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4em; }
