:root {
  --bg: #0d0d0c;
  --card: #161614;
  --card-hover: #1c1c19;
  --ink: #e9e5dc;
  --muted: #8d887d;
  --faint: #5b5850;
  --line: #24231f;
  --accent: #d9a25f;
  --oss: #7fc59a;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Masthead */
.masthead { padding: 96px 20px 40px; }
.mark {
  font: 13px/1 "JetBrains Mono", ui-monospace, monospace;
  color: var(--accent);
  margin: 0 0 28px;
}
h1 {
  font: 400 clamp(48px, 9vw, 96px)/.95 "Instrument Serif", Georgia, serif;
  letter-spacing: -.02em;
  margin: 0 0 24px;
}
h1 em { color: var(--accent); }
.lede { color: var(--muted); font-size: 17px; margin: 0 0 32px; max-width: 52ch; }
.lede b { color: var(--ink); font-weight: 500; }

.chips { display: flex; gap: 8px; }
.chip {
  font: 500 13px/1 Inter, sans-serif;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--faint); background: var(--card); }
.chip .n { color: var(--faint); margin-left: 6px; font-variant-numeric: tabular-nums; }
.chip:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

section { padding-top: 48px; }
section[hidden] { display: none; }
h2 {
  font: 400 12px/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* Online grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .2s, border-color .2s, transform .2s;
}
.card:hover { background: var(--card-hover); border-color: #34332d; transform: translateY(-2px); }
.shot {
  aspect-ratio: 16 / 10;
  background: #0a0a09;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; opacity: .92; transition: opacity .2s; }
.card:hover .shot img { opacity: 1; }
.shot.blank {
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 20%, #23211c 0%, #0f0f0e 70%);
  font: italic 40px/1 "Instrument Serif", Georgia, serif;
  color: var(--muted);
}
.card > a, .card > .card-main { display: flex; flex-direction: column; flex: 1; }
.card.archived:hover { background: var(--card); border-color: var(--line); transform: none; }
.card.archived .shot img { opacity: .6; filter: grayscale(.35); }
.body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.body.top { padding-bottom: 0; }
.body.bottom { padding-top: 0; flex: 0; }
.name { font: 500 16px/1.3 Inter, sans-serif; margin: 0; display: flex; justify-content: space-between; gap: 12px; }
.name .arrow { color: var(--faint); transition: color .2s, transform .2s; }
.card:hover .name .arrow { color: var(--accent); transform: translate(2px, -2px); }
.blurb { color: var(--muted); margin: 0; font-size: 14px; }
.foot-row {
  margin-top: auto; padding-top: 10px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font: 12px/1 "JetBrains Mono", ui-monospace, monospace;
  color: var(--faint);
}

.tag {
  font: 500 11px/1 Inter, sans-serif;
  letter-spacing: .02em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
a.tag.oss, .tag.oss { color: var(--oss); border-color: rgba(127, 197, 154, .3); }
a.tag.oss:hover { border-color: var(--oss); }
.tag.building { color: var(--accent); border-color: rgba(217, 162, 95, .3); }

/* The rest */
.groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px 48px;
}
.group h3 {
  font: 400 italic 22px/1.2 "Instrument Serif", Georgia, serif;
  color: var(--ink);
  margin: 16px 0 4px;
}
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.group li:last-child { border-bottom: 0; }
.row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-head strong { font-weight: 500; }
.group .blurb { margin-top: 4px; }

.foot {
  padding-top: 80px; padding-bottom: 48px;
  font: 12px/1 "JetBrains Mono", ui-monospace, monospace;
  color: var(--faint);
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .masthead { padding: 64px 16px 24px; }
  .grid, .groups { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
