/* /w/ index — clean directory, Gwern-inspired */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #fcfcfa;
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 28px 96px 28px;
}

/* ============ Back link ============ */

.back {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  margin-bottom: 28px;
}

.back:hover {
  color: #222;
}

/* ============ Page header ============ */

.page-header {
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid #ddd;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-header p {
  margin-top: 6px;
  font-size: 15px;
  color: #666;
}

/* ============ Sections ============ */

.section {
  margin-top: 36px;
}

.section h2 {
  font-size: 19px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0dc;
}

/* ============ Two-column entry list ============ */

.entries {
  columns: 2 280px;
  column-gap: 32px;
  list-style: none;
}

.entry {
  break-inside: avoid;
  margin-bottom: 14px;
  line-height: 1.45;
}

.entry a {
  color: #2a5db0;
  text-decoration: none;
  font-weight: 500;
}

.entry a:hover {
  color: #14305a;
  text-decoration: underline;
}

.entry .desc {
  display: block;
  font-size: 14px;
  color: #777;
  margin-top: 1px;
}

.entry .tags {
  display: inline;
  margin-left: 4px;
}

.entry .tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #f0ead0;
  color: #8a7a50;
  border: 1px solid #e0d8b8;
  white-space: nowrap;
}

/* ============ Footer ============ */

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: #aaa;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

footer a {
  color: #999;
  text-decoration: none;
}

footer a:hover {
  color: #222;
}

/* ============ Responsive ============ */

@media (max-width: 600px) {
  body {
    padding: 24px 16px 48px 16px;
  }

  .entries {
    columns: 1;
  }
}
