/* ========================================
   THE BENCH — Biotech Intelligence Broadsheet
   ======================================== */

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

:root {
  --ink: #1a1a1a;
  --paper: #f5f0e8;
  --rule: #2a2a2a;
  --accent: #8b0000;
  --gray: #555;
  --light-rule: #ccc;
  --col-gap: 2rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', 'Georgia', serif;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ---- Masthead ---- */
.masthead {
  text-align: center;
  border-bottom: 4px double var(--rule);
  padding: 1.5rem 0 1rem;
  margin-bottom: 0.5rem;
}

.masthead-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray);
}

.masthead h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0.25rem 0;
}

.masthead-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.masthead-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin-top: 0.75rem;
}

/* ---- Section Headers ---- */
.section-header {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border-bottom: 1px solid var(--light-rule);
  padding-bottom: 0.25rem;
  margin: 1.5rem 0 1rem;
}

/* ---- Article Grid ---- */
.front-page {
  display: grid;
  grid-template-columns: 1fr 1px 2fr 1px 1fr;
  gap: 0;
}

.column-rule {
  background: var(--light-rule);
  width: 1px;
}

.col-left, .col-right {
  padding: 0 var(--col-gap);
}

.col-center {
  padding: 0 var(--col-gap);
}

/* ---- Headlines ---- */
.headline-lead {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.headline-secondary {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.headline-minor {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

/* ---- Bylines & Kickers ---- */
.kicker {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

/* ---- Article Body ---- */
.article-body {
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-body p {
  margin-bottom: 0.75rem;
  text-align: justify;
  hyphens: auto;
}

.article-body p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.2em;
  float: left;
  line-height: 0.8;
  padding-right: 0.08em;
  margin-top: 0.05em;
  font-weight: 700;
}

.article-lead {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---- Sidebar Items ---- */
.sidebar-item {
  border-bottom: 1px solid var(--light-rule);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item .article-body {
  font-size: 0.85rem;
}

/* ---- Editorial / Podcast ---- */
.editorial-section {
  border-top: 4px double var(--rule);
  margin-top: 2rem;
  padding-top: 1rem;
}

.podcast-player {
  background: #fff;
  border: 1px solid var(--light-rule);
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
}

.podcast-player audio {
  width: 100%;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  border-top: 4px double var(--rule);
  padding: 1rem 0;
  margin-top: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .front-page {
    grid-template-columns: 1fr;
  }

  .column-rule {
    display: none;
  }

  .col-left, .col-center, .col-right {
    padding: 0;
    border-bottom: 1px solid var(--light-rule);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .article-body p {
    text-align: left;
  }
}
