:root {
  --bg: #090c10;
  --surface: #10161c;
  --surface-2: #151d24;
  --ink: #edf0ec;
  --ink-2: #b7c0c0;
  --muted: #7d898c;
  --line: #27323a;
  --line-2: #3a4b56;
  --accent: #8dbbd0;
  --grid: transparent;
  --halo: rgba(77, 130, 156, .1);
}

body {
  min-width: 320px;
  background:
    radial-gradient(900px 460px at 74% -8%, rgba(77, 130, 156, .14), transparent 68%),
    var(--bg);
  color: var(--ink-2);
  font-size: 16px;
}
body::before {
  opacity: .028;
  background: radial-gradient(#fff .55px, transparent .55px);
  background-size: 5px 5px;
}
body::after { display: none; }

.library { width: min(1080px, calc(100% - 64px)); margin: 0 auto; padding-bottom: 72px; }
.library-head { padding: 52px 0 44px; }
.library-kicker { margin: 0 0 12px; color: var(--accent); font: 12px/1.4 var(--mono); letter-spacing: .12em; }
.library-head h1 { margin: 0; max-width: 12ch; color: var(--ink); font: 700 clamp(38px, 5vw, 54px)/1.12 var(--sans); letter-spacing: -.045em; }
.library-headline { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-top: 18px; }
.library-headline > p { max-width: 620px; margin: 0; color: var(--muted); }
.library-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.library-meta span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(16, 22, 28, .72); color: var(--muted); font-size: 12px; white-space: nowrap; }
.library-meta b { color: var(--ink-2); font-weight: 500; }

.library-section {
  --section-accent: var(--blue);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(21, 29, 36, .7), rgba(12, 17, 22, .82));
}
.library-section[data-tone="teal"] { --section-accent: var(--teal); }
.library-section[data-tone="violet"] { --section-accent: var(--violet); }
.section-head { align-self: start; }
.section-number { display: block; margin-bottom: 20px; color: var(--section-accent); font: 12px/1 var(--mono); letter-spacing: .12em; }
.section-head h2 { margin: 0; color: var(--ink); font: 650 21px/1.35 var(--sans); }
.section-head p { margin: 8px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.section-count { display: inline-block; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font: 12px/1.4 var(--mono); }

.article-list { counter-reset: article; border-top: 1px solid var(--line); }
.article-list a {
  counter-increment: article;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  min-height: 68px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background .15s, padding-left .15s;
}
.article-list a::before {
  content: counter(article, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / 3;
  color: var(--section-accent);
  font: 11px/1 var(--mono);
}
.article-list a::after {
  content: "→";
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--muted);
  font: 16px/1 var(--sans);
  transition: color .15s, transform .15s;
}
.article-list a:hover { padding-left: 16px; background: rgba(255, 255, 255, .025); }
.article-list a:hover::after { color: var(--section-accent); transform: translateX(3px); }
.article-list strong { grid-column: 2; color: var(--ink); font-size: 15px; font-weight: 600; }
.article-list span { grid-column: 2; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .library { width: calc(100% - 30px); }
  .library-head { padding: 40px 0 32px; }
  .library-headline { align-items: flex-start; flex-direction: column; gap: 18px; }
  .library-meta { justify-content: flex-start; }
  .library-section { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px; }
  .section-number { margin-bottom: 12px; }
  .section-head p { margin-bottom: 10px; }
  .article-list a { grid-template-columns: 34px minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  .article-list a,.article-list a::after { transition: none; }
}
