:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f7f4;
  --ink: #111111;
  --muted: #5b5f5a;
  --quiet: #777c76;
  --line: #d8dcd5;
  --line-strong: #9ca39a;
  --accent: #111111;
  --ok: #156f3a;
  --warn: #8a6500;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 52px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-decoration: none;
  background: var(--panel);
}

.nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: end;
  gap: 28px;
  border-top: 1px solid var(--line-strong);
  padding-top: 40px;
  margin-bottom: 20px;
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--ok);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  font-size: 22px;
  line-height: 1.15;
}

.lede {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.counter {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 16px;
  text-align: right;
}

.counter b {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.counter span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--line);
}

.rail div {
  min-width: 0;
  padding: 14px 16px;
  background: var(--panel);
}

.rail b,
.rail span {
  display: block;
}

.rail b {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
}

.rail span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  overflow: hidden;
  text-decoration: none;
}

.card.priority {
  border-color: var(--line-strong);
}

.card:hover {
  border-color: var(--accent);
}

.shot,
.placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.shot {
  display: block;
  object-fit: cover;
  object-position: top left;
}

.placeholder {
  display: grid;
  place-content: center;
  gap: 10px;
  color: var(--quiet);
}

.placeholder span,
.placeholder b {
  display: block;
  text-align: center;
  letter-spacing: 0;
}

.placeholder span {
  font-size: 12px;
  text-transform: uppercase;
}

.placeholder b {
  color: var(--muted);
  font-size: clamp(36px, 6vw, 70px);
  line-height: .9;
}

.text-shot {
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 18px;
  background: var(--panel-2);
}

.text-shot span,
.text-shot b,
.text-shot small {
  display: block;
  text-align: center;
}

.text-shot span {
  color: var(--ok);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.text-shot b {
  color: var(--accent);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.text-shot small {
  color: var(--muted);
  font-size: 12px;
}

.apu-shot {
  background:
    linear-gradient(135deg, transparent 49%, #d8dcd5 49%, #d8dcd5 51%, transparent 51%),
    #fff4ed;
}

.apu-shot span,
.apu-shot b {
  color: #b43800;
}

.body {
  padding: 18px;
}

.body p:not(.tag) {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 12px;
  text-transform: uppercase;
}

.meta b {
  color: var(--accent);
}

.pending .meta b {
  color: var(--warn);
}

.bench {
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  gap: 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.bench h2 {
  font-size: 30px;
  line-height: 1.08;
}

.bench-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.bench article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  background: var(--panel);
  padding: 14px 16px;
}

.bench article b {
  color: var(--accent);
}

.bench article span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

@media (max-width: 880px) {
  .hero,
  .rail,
  .grid,
  .bench {
    grid-template-columns: 1fr;
  }

  .counter {
    width: 160px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 22px;
  }

  .topbar,
  .bench article {
    display: block;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .bench article span {
    display: block;
    margin-top: 8px;
  }
}
