/* Index for research.jonoisart.com: a plain ledger. Each piece brings its own look. */
:root {
  --paper: #f4f2ec; --ink: #191a18; --muted: #62645e; --rule: #cfccc2; --accent: #a1401f;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #121311; --ink: #e8e5dc; --muted: #989a92; --rule: #30322e; --accent: #e8855f; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.5; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 54rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; display: flex; flex-direction: column; gap: 3rem; }

header { display: flex; flex-direction: column; gap: 0.75rem; }
.crumb, .colhead, .no, .date, .tags, footer { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumb { margin: 0; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }
h1 { margin: 0; font-weight: 500; font-size: clamp(2.8rem, 9vw, 4.75rem); line-height: 0.95; letter-spacing: -0.02em; }
.lede { margin: 0; max-width: 34rem; font-size: 1.15rem; color: var(--muted); }
.lede a { color: var(--accent); }

.colhead, .piece a { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 6.5rem; gap: 1rem; }
.colhead { padding-bottom: 0.5rem; border-bottom: 1px solid var(--ink); }
.colhead span:last-child, .date { text-align: right; }
.pieces { list-style: none; margin: 0; padding: 0; }
.piece a { padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: baseline; }
.main { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.title { font-size: clamp(1.5rem, 4.2vw, 2rem); line-height: 1.12; font-weight: 500; text-wrap: balance; }
.piece a:hover .title { color: var(--accent); }
.piece a:hover .no { color: var(--accent); }
.blurb { color: var(--muted); max-width: 36rem; }
.tags { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; }
.date { font-variant-numeric: tabular-nums; white-space: nowrap; }

footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .wrap { padding-top: 2rem; gap: 2.25rem; }
  .colhead { display: none; }
  .pieces { border-top: 1px solid var(--ink); }
  .piece a { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .date { grid-column: 2; text-align: left; }
}
