:root {
  --bg: #0b0b0a;
  --surface: #121211;
  --ink: #eceae4;
  --muted: #a09d96;
  --faint: #73716b;
  --line: #262623;
  --accent: #c9a36a;
  --focus: #c9a36a;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

.pretty { text-wrap: pretty; }
.balance { text-wrap: balance; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 160ms ease-out, transform 160ms ease-out;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 2px;
}
.card h3 a:active { transform: scale(0.97); }

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

header { margin-bottom: 16px; }

.mark {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 4px;
}

h1 {
  font-weight: 400;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.lede {
  color: var(--muted);
  max-width: 46em;
  margin: 0;
  font-size: 14px;
}

.shelves {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

section { margin: 0; }
section h2 {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  text-wrap: balance;
}

.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.card:last-child { border-bottom: 0; }

.card h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }

.card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-wrap: pretty;
}

.news { margin-top: 4px; }
.news .list {
  display: grid;
  grid-template-columns: 1fr;
}
.news .card {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
  padding: 6px 12px;
}
.news .when {
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin: 0;
}
.news h3 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}
.news .card p,
.news .links { display: none; }

footer {
  margin-top: 16px;
  color: var(--faint);
  font-size: 12px;
}

@media (min-width: 1024px) {
  .shelves {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
  .news .list {
    grid-template-columns: 1fr 1fr;
  }
  .news .card:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1023px) {
  .wrap { width: calc(100% - 24px); }
}
