:root {
  --ink: #111;
  --muted: #555;
  --rule: #e5e5e5;
  --bg: #fafafa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: var(--ink);
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.nav a {
  margin-left: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* Intro */

.intro {
  padding: 56px 0 32px;
}

.intro h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.intro p {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
}

/* Section rhythm */

section {
  margin-top: 64px;
}

section h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
}

/* Tools */

.tool-row {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.tool-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.tool-row strong {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.tool-row span {
  font-size: 14px;
  color: var(--muted);
}

/* About */

.about p {
  margin: 10px 0;
  font-size: 15px;
  color: var(--muted);
}

/* Topics */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.topic-grid a {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

.topic-grid a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Footer */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--rule);
}

.site-footer p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-links a {
  margin-right: 16px;
  font-size: 13px;
  color: var(--muted);
}
