/* The Essays page (page-essays.hbs): a sky shelf, the latest essay's line beside the title, then the essays. After t.css. */
.tx-top { padding: 140px 0 var(--t-s9); }
.tx-glow { display: none; }
.tx-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.tx-kick { color: var(--t-muted); }
.tx-top h1 { font: 400 124px/.9 var(--t-serif); letter-spacing: -.03em; margin-top: 14px; }
.tx-sub { font: 400 22px/1.5 var(--t-serif); color: var(--t-body); max-width: 560px; margin-top: var(--t-s5); }
.tx-stats { display: flex; gap: 46px; margin-top: 40px; }
.tx-stats b { display: block; font: 800 44px/1 var(--t-sans); letter-spacing: -.035em; }
.tx-stats .t-k { display: block; margin-top: var(--t-s2); color: var(--t-muted); }
.tx-quote { margin: 0; border-left: 4px solid var(--t-sun); padding-left: 26px; }
.tx-quote[hidden] { display: none; }
.tx-quote p { font: italic 400 28px/1.4 var(--t-serif); color: var(--t-ink); }
.tx-quote a { display: inline-block; margin-top: var(--t-s4); color: var(--t-muted); transition: color .2s; }
.tx-quote a:hover { color: var(--t-ink); }
.tx-notch { margin-top: 70px; }

.tx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--t-s7) var(--t-s6); padding-top: var(--t-s8); }
.tx-card { display: flex; flex-direction: column; }
.tx-pic { aspect-ratio: 16 / 10; background: var(--t-soft); overflow: hidden; border-radius: 4px; }
.tx-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tx-card:hover h2, .tx-card:focus-visible h2 { text-decoration: underline; text-decoration-color: var(--t-sun); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tx-bx { padding: 18px 0 0; display: flex; flex-direction: column; flex: 1; }
.tx-bx .t-k { color: var(--t-muted); }
.tx-card h2 { font: 400 27px/1.15 var(--t-serif); letter-spacing: -.01em; margin: 10px 0; }
.tx-card p { font-size: 15.5px; color: var(--t-muted); line-height: 1.5; flex: 1; }
.tx-ft { display: flex; justify-content: space-between; margin-top: 18px; }
.tx-ft .t-k { color: var(--t-muted); }
/* the newest essay, across two columns on dusk */
.tx-card.big { grid-column: span 2; flex-direction: row; background: var(--t-night); color: #fff; border-radius: 10px; overflow: hidden; }
.tx-card.big .tx-pic { aspect-ratio: auto; width: 55%; flex: none; border-radius: 0; }
.tx-card.big .tx-bx { padding: 30px; justify-content: flex-end; }
.tx-card.big h2 { font-size: 40px; }
.tx-card.big p { color: rgba(255,255,255,.75); flex: 0; }
.tx-card.big .t-k { color: var(--t-sun); }
.tx-card.big .tx-ft .t-k { color: rgba(255,255,255,.7); }
/* a last card on its own runs the full width */
.tx-card.wide { grid-column: 1 / -1; flex-direction: row; }
.tx-card.wide .tx-pic { aspect-ratio: auto; width: 34%; flex: none; }
.tx-card.wide { gap: var(--t-s6); }
.tx-card.wide .tx-bx { justify-content: center; padding: 0; }

@media (max-width: 900px) {
  .tx-top { padding: 100px 0 var(--t-s8); }
  .tx-lead { grid-template-columns: 1fr; gap: 34px; }
  .tx-top h1 { font-size: 64px; }
  .tx-sub { font-size: 18px; }
  .tx-stats { gap: 22px; }
  .tx-stats b { font-size: 32px; }
  .tx-quote p { font-size: 20px; }
  .tx-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .tx-card.big, .tx-card.wide { grid-column: auto; flex-direction: column; }
  .tx-card.big .tx-pic, .tx-card.wide .tx-pic { width: 100%; aspect-ratio: 16 / 10; }
  .tx-card.big h2 { font-size: 26px; }
}

/* ---------- numbers, stats and small text in the data face: Atkinson Hyperlegible Next with lining, even-width figures (content/DESIGN.md, section 3) ---------- */
.tx-stats b { font-family: var(--t-data); font-variant-numeric: var(--t-figs); letter-spacing: -.01em; }
.tx-card p, .tx-quote a, .tx-ft .t-k { font-family: var(--t-data); font-variant-numeric: var(--t-figs); letter-spacing: 0; }
