/* comp: flat-warm (no borders, radius 0, tints for hierarchy, teal links only). No JavaScript:
   dark by default, light when the visitor's system asks for it. */
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-600.woff2") format("woff2"); }

:root {
  --bg: #0a0703; --bg-high: #15110a; --fg: #d5d0c6; --fg-title: #f6f1e7; --fg-dim: #9c988e; --fg-faint: #8f8a80;
  --accent: #6fc0c7; --accent-hover: #7ccdd4; --chip: #231f17; --chip-fg: #e9e4da;
  --rubric: #b5442f; --gold: #a98c4b; --star: #ffb81c;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fffff8; --bg-high: #f8f5ee; --fg: #181611; --fg-title: #070603; --fg-dim: #66635d; --fg-faint: #83807a;
    --accent: #0d5257; --accent-hover: #2a686d; --chip: #f1eee7; --chip-fg: #181611;
    --rubric: #8e2418; --gold: #7e6326; --star: #e8a20a;
    color-scheme: light;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.55 var(--font-ui); }
a { color: var(--accent); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
a:hover { color: var(--accent-hover); background-size: 100% 2px; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }

.nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.1rem; padding: 0.6rem 1rem; background: var(--bg-high); }
.brand { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--fg-title); background: none; letter-spacing: -0.01em; }
.nav a:not(.brand) { font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; }
.spacer { flex: 1; }
main { max-width: 100rem; margin: 0 auto; padding: 0.9rem 0.75rem 3rem; }
h1 { font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; line-height: 1.3; color: var(--fg-title); margin: 0 0 0.3rem; }
.intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.9rem; margin: 0.2rem 0 0.8rem; }
.intro h1 { margin: 0; }
.lede { color: var(--fg-dim); margin: 0 0 0.8rem; font-size: 0.9rem; }
.intro .lede { margin: 0; }
.lede b { color: var(--gold); font-family: var(--font-heading); font-variant-numeric: tabular-nums; }
.empty { color: var(--fg-dim); }

/* the grid: as many columns as fit, big releases two columns wide, gaps filled */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 0.5rem; grid-auto-flow: dense; }
@media (min-width: 900px) { .grid .imp-major, .grid .imp-seismic { grid-column: span 2; } }

.card { display: flex; flex-direction: column; min-width: 0; background: var(--bg-high); --tc: var(--fg-faint); }
.t-model { --tc: var(--accent); } .t-tool, .t-repo { --tc: var(--gold); } .t-paper, .t-dataset, .t-benchmark { --tc: #7b93ad; }
.t-security { --tc: var(--rubric); } .t-article, .t-video { --tc: var(--fg-dim); }
.pic { display: block; height: 10.5rem; overflow: hidden; background: var(--chip); background-image: none; }
.pic:hover { background-size: 0; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph { display: flex; align-items: flex-end; height: 100%; padding: 0.8rem 0.9rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 34%, var(--bg-high)), color-mix(in srgb, var(--tc) 8%, var(--bg-high))); }
.ph span { font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem; line-height: 1.15; color: var(--fg-title); overflow-wrap: anywhere; }
.body { flex: 1; padding: 0.65rem 0.85rem 0.55rem; }
.cmeta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-family: var(--font-heading);
  font-size: 0.75rem; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 0.3rem; }
.chip { display: inline-block; padding: 0.05rem 0.4rem; background: var(--chip); color: var(--chip-fg); font-family: var(--font-heading);
  font-weight: 600; font-size: 0.75rem; background-image: none; }
a.chip:hover { color: var(--accent); }
.cmeta .chip:first-child { color: var(--tc); }
.chip.imp { text-transform: uppercase; letter-spacing: 0.04em; }
.imp-seismic .chip.imp { background: color-mix(in srgb, var(--rubric) 70%, var(--chip)); color: #fff; }
.imp-major .chip.imp { background: color-mix(in srgb, var(--gold) 40%, var(--chip)); }
.card h2, .card h1 { font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; line-height: 1.3; margin: 0.4rem 0 0.3rem; }
.card h2 a, .card h1 a { color: var(--fg-title); background: none; }
.card h2 a:hover, .card h1 a:hover { color: var(--accent); }
.imp-major h2, .imp-seismic h2 { font-size: 1.2rem; }
.sum { margin: 0 0 0.45rem; font-size: 0.875rem; line-height: 1.5; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.foot { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.85rem; min-height: 2.1rem;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg-high)); font-family: var(--font-heading); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-dim); }
.foot .maker { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.foot .n { font-weight: 400; white-space: nowrap; }
.foot .sp { flex: 1; }
.foot a { white-space: nowrap; }

/* a release's own page: one wide card, its picture larger, the full summary */
.detail { max-width: 46rem; margin: 0 auto; }
.card-detail .pic { height: auto; max-height: 22rem; }
.card-detail .pic img { height: auto; max-height: 22rem; }
.card-detail .ph { height: 12rem; }
.card-detail h1 { font-size: 1.45rem; }
.card-detail .sum { font-size: 1rem; -webkit-line-clamp: unset; display: block; }
.card-detail .body { padding: 0.9rem 1.1rem 0.7rem; }
.card-detail .foot { padding: 0.55rem 1.1rem; text-transform: none; letter-spacing: 0; }
.also { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.also li { padding: 0.35rem 0; font-size: 0.9rem; }
.also .meta { margin-left: 0.4rem; font-family: var(--font-heading); font-size: 0.75rem; color: var(--fg-faint); }
h3 { font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; color: var(--rubric); margin: 1.4rem 0 0.3rem; }
.prose { max-width: 46rem; }
.prose p, .prose li { color: var(--fg); }
footer { max-width: 100rem; margin: 0 auto; padding: 1rem 0.75rem 2.5rem; color: var(--fg-faint); font-size: 0.8rem; font-family: var(--font-heading); }
.pager { display: flex; justify-content: space-between; margin-top: 1.2rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; }
@media (max-width: 600px) { main { padding: 0.7rem 0.5rem 2.5rem; } .grid { grid-template-columns: 1fr; } }
