/* Broadsheet — classic newspaper styling */

:root {
  --paper: #f4f1e8;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --rule: #1a1a1a;
  --accent: #8b0000;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  font-size: 17px;
  line-height: 1.55;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

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

.masthead-top {
  display: flex;
  justify-content: space-between;
  font-variant: small-caps;
  font-size: 0.85rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.3rem 0.25rem;
  margin-bottom: 0.75rem;
}

.paper-name {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.motto {
  font-style: italic;
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

/* ── Lead story ───────────────────────────────────────── */
.lead-story {
  text-align: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.lead-headline {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.lead-body {
  max-width: 62ch;
  margin: 0.5rem auto 0;
  font-size: 1.08rem;
}

.lead-body::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding-right: 0.08em;
  font-weight: 700;
}

.byline {
  font-variant: small-caps;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.read-on a { color: var(--accent); font-style: italic; }

/* ── Grid ─────────────────────────────────────────────── */
.front-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
}

.main-column {
  border-right: 1px solid var(--rule);
  padding-right: 1.5rem;
}

.story {
  margin-bottom: 1.1rem;
  text-align: justify;
  hyphens: auto;
}

.story h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  text-align: left;
}

.story h3 a { color: inherit; text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }

.story p { margin-top: 0.3rem; }

.story.compact h3 { font-size: 1.02rem; }

.section-title {
  font-variant: small-caps;
  font-size: 1.1rem;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.25rem 0;
  margin: 1.25rem 0 1rem;
  letter-spacing: 0.08em;
}

/* ── Side boxes ───────────────────────────────────────── */
.ruled-box {
  border: 1px solid var(--rule);
  padding: 0.8rem 0.9rem;
  margin-bottom: 1.25rem;
}

.ruled-box h4 {
  font-variant: small-caps;
  text-align: center;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.3rem;
  margin-bottom: 0.6rem;
}

.markets-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.markets-table td { padding: 0.2rem 0.1rem; }
.markets-table .price { text-align: right; font-variant-numeric: tabular-nums; }
.markets-table .change { text-align: right; font-variant-numeric: tabular-nums; }
.markets-table tr.up .change { color: #1a5c1a; }
.markets-table tr.down .change { color: var(--accent); }

.editorial p { margin-bottom: 0.6rem; font-style: italic; text-align: justify; }

/* ── Back page ────────────────────────────────────────── */
.backpage {
  margin-top: 1.5rem;
  border-top: 3px double var(--rule);
  padding-top: 1rem;
}

.backpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

/* ── Colophon ─────────────────────────────────────────── */
.colophon {
  margin-top: 2rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--ink-soft);
}
.colophon hr { border: none; border-top: 1px solid var(--rule); margin-bottom: 0.75rem; }
.archive-link { margin-top: 0.4rem; }
a { color: var(--accent); }

/* ── Archive page ─────────────────────────────────────── */
.archive-list { list-style: none; max-width: 30ch; margin: 2rem auto; }
.archive-list li {
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0;
  text-align: center;
  font-size: 1.1rem;
}

/* ── Responsive & print ───────────────────────────────── */
@media (max-width: 720px) {
  .front-grid { grid-template-columns: 1fr; }
  .main-column { border-right: none; padding-right: 0; }
  body { padding: 1rem 1rem; }
}

@media print {
  body { background: white; max-width: none; }
  a { color: inherit; text-decoration: none; }
  .read-on { display: none; }
}
