/* ---- Tokens ---- */
:root {
  --ink: #111111;
  --paper: #fefefe;
  --rule-strong: #111111;
  --rule-soft: #cfcfcf;
  --accent: #8b1a1a;
  --muted: #595959;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans Condensed", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: env(safe-area-inset-top, 0px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

a { color: inherit; }

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

/* ---- Masthead (tight) ---- */
.masthead {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px 0;
  text-align: center;
}

.masthead__dateline {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-soft);
  padding: 4px 0;
}

.masthead__dateline-sep { margin: 0 8px; }

.masthead__title-row { margin: 10px 0 2px; }

.masthead__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.masthead__tagline {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 0.88rem;
}

.masthead__nav {
  font-family: var(--sans);
  font-size: 0.85rem;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 3px double var(--rule-strong);
  padding: 6px 0;
  display: flex;
  justify-content: center;
  gap: 26px;
}

.masthead__nav a { text-decoration: none; }
.masthead__nav a:hover { text-decoration: underline; }

/* ---- Front page: asymmetric top row ---- */
.edition { padding-top: 20px; }

.edition__top-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-soft);
}

.lead-story__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 10px;
  filter: grayscale(15%);
}

.lead-story__headline {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.06;
  margin: 0 0 8px;
  max-width: 24ch;
}

.lead-story__headline a { text-decoration: none; }
.lead-story__headline a:hover { text-decoration: underline; }

.lead-story__deck {
  font-size: 1rem;
  color: #333;
  max-width: 58ch;
  margin: 0 0 8px;
  line-height: 1.35;
}

.byline {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Secondary list: compact, headline-led, thin rules between items */
.secondary-list__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}

.secondary-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}

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

.secondary-item__body { flex: 1; min-width: 0; }

.secondary-item__headline {
  font-size: 1.02rem;
  line-height: 1.15;
  margin: 0 0 4px;
}

.secondary-item__headline a { text-decoration: none; }
.secondary-item__headline a:hover { text-decoration: underline; }

.secondary-item__deck {
  font-size: 0.84rem;
  color: #444;
  margin: 0 0 4px;
  line-height: 1.3;
}

.secondary-item__image {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  object-fit: cover;
  filter: grayscale(15%);
}

/* Below-the-fold row: remaining secondaries as a tight 3-col strip */
.below-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 22px;
}

.below-item {
  padding: 0 20px;
  border-left: 1px solid var(--rule-soft);
}

.below-item:first-child { padding-left: 0; border-left: none; }
.below-item:last-child { padding-right: 0; }

.below-item__headline {
  font-size: 1.05rem;
  line-height: 1.15;
  margin: 0 0 6px;
}
.below-item__headline a { text-decoration: none; }
.below-item__headline a:hover { text-decoration: underline; }

.below-item__deck {
  font-size: 0.82rem;
  color: #444;
  margin: 0 0 6px;
  line-height: 1.3;
}

/* ---- Article page ---- */
.article {
  padding-top: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.article__headline {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.08;
  margin: 0 0 10px;
}

.article__deck {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.4;
  margin: 0 0 10px;
}

.article__meta {
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 8px 0;
  margin-bottom: 18px;
}

.article__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 6px;
  filter: grayscale(15%);
}

.article__image-caption {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0 0 22px;
}

.article__body {
  font-size: 1.05rem;
  line-height: 1.55;
}

.article__body p { margin: 0 0 1.1em; max-width: 66ch; }

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ---- Archive ---- */
.archive { padding-top: 24px; max-width: 680px; margin: 0 auto; }

.archive__title { font-size: 1.5rem; margin: 0 0 4px; }

.archive__intro {
  color: var(--muted);
  font-style: italic;
  margin: 0 0 20px;
  font-size: 0.92rem;
}

.archive__list { list-style: none; margin: 0; padding: 0; }

.archive__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.archive__item a { text-decoration: none; font-size: 1rem; }
.archive__item a:hover { text-decoration: underline; }

.archive__item-date {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- Footer ---- */
.site-footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 780px) {
  .edition__top-row { grid-template-columns: 1fr; }
  .below-row { grid-template-columns: 1fr; gap: 20px; }
  .below-item { padding: 0; border-left: none; border-top: 1px solid var(--rule-soft); padding-top: 16px; }
  .below-item:first-child { border-top: none; padding-top: 0; }
  .masthead__nav { gap: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: text-decoration-color 0.15s ease; }
}
