/* PaperShort design 5: Timeline
   A single dated rail: entries hang off a vertical line in strict chronology.

   A full treatment, not a recolour: this file re-points the design tokens AND
   restructures the feed layout. Loaded after style.css, so every fix in the
   base stylesheet still applies. */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --text: #111111;
  --text-soft: #3c3c3c;
  --text-faint: #66666a;
  --line: #dcdcdc;
  --rule: #111111;
  --accent: #111111;
  --accent-strong: #111111;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0c;
    --bg-soft: #141414;
    --text: #f0f0f0;
    --line: color-mix(in srgb, #f0f0f0 14%, transparent);
    --rule: color-mix(in srgb, #f0f0f0 78%, transparent);
    --accent: #f0f0f0;
    --accent-strong: #f0f0f0;
    --text-soft: #c6c6c6;
    --text-faint: #9a9a9a;
  }
}

/* ---- Feed: one centred column, four alternating treatments --------------
   A single measure down the middle of the page, but every entry is set
   differently so the column has rhythm instead of repetition:
     1st of four  lead   — artwork above, large headline
     2nd          text   — no picture, headline and dek only
     3rd          aside  — small square plate to the right of the text
     4th          plate  — wide artwork below the text
   Typographic covers never render: only real artwork earns space. */

.card-grid {
  display: block;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.6rem 0 3rem;
}

.card {
  margin-bottom: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.card:last-child { border-bottom: none; }

.card-link { display: block; }
.card-body { display: block; }

.card-cover:not(.card-cover-image) { display: none; }
.card-cover { border-radius: 8px; background: #fff; overflow: hidden; }
.card-cover-image img { border-radius: 8px; object-fit: cover; }

.card-category {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.card-headline { font-size: 1.3rem; line-height: 1.3; }
.card-dek { font-size: 0.94rem; line-height: 1.6; margin-top: 0.35rem; }
.card-date { display: block; margin-top: 0.5rem; font-size: 0.7rem; font-variant-numeric: tabular-nums; }

/* 1 — lead: artwork above, at full measure, with the largest headline. */
.card:nth-child(4n + 1) .card-cover { aspect-ratio: 3 / 2; margin-bottom: 0.95rem; }
.card:nth-child(4n + 1) .card-headline { font-size: 1.72rem; line-height: 1.22; letter-spacing: -0.02em; }

/* 2 — text only: the column breathes, no picture at all. */
.card:nth-child(4n + 2) .card-cover { display: none; }
.card:nth-child(4n + 2) .card-headline { font-size: 1.45rem; }

/* 3 — artwork above, wider crop, standard headline. */
.card:nth-child(4n + 3) .card-cover { aspect-ratio: 16 / 9; margin-bottom: 0.9rem; }

/* 4 — artwork below the text, wide crop: the entry reads then shows. */
.card:nth-child(4n + 4) .card-cover { aspect-ratio: 16 / 9; margin-top: 0.9rem; }

@media (max-width: 640px) {
  .card-headline { font-size: 1.18rem; }
  .card:nth-child(4n + 1) .card-headline { font-size: 1.42rem; }
}

/* Article pages share the same centred measure. */
.article { margin-left: auto; margin-right: auto; }

/* ---- Masthead ----------------------------------------------------------
   Minimal earns its keep through scale and space, not ornament: a large
   wordmark, a hairline rule, and the tagline holding the opposite corner. */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  align-items: baseline;
  padding-top: 1.1rem;
  padding-bottom: 0.85rem;
}

.logo-word {
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.masthead-tagline {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  max-width: 24ch;
}

.category-nav {
  border-bottom: 1px solid var(--line);
}

.chip {
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .header-inner { padding-top: 0.85rem; padding-bottom: 0.7rem; }
  .logo-word { font-size: 1.5rem; }
}
