:root {
  --bg: #ffffff;
  --fg: #16161a;
  --muted: #5b5b66;
  --rule: #e3e3e8;
  --link: #1f5fd0;
  --accent: #16161a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101013;
    --fg: #e9e9ee;
    --muted: #9a9aa6;
    --rule: #2a2a31;
    --link: #7fa9f5;
    --accent: #e9e9ee;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

main {
  max-width: 42rem;
  margin: 0 auto;
}

header {
  padding: 3.5rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.eyebrow {
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

p, li { color: var(--fg); }

.lede, .updated {
  color: var(--muted);
  margin: 0;
}

.updated {
  font: 400 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

a { color: var(--link); }

a:hover { text-decoration: none; }

ul { padding-left: 1.25rem; }

li { margin: 0.4rem 0; }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 2rem 0;
}

.card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
}

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

.card strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }

.card span { color: var(--muted); font-size: 0.95rem; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { color: var(--muted); }

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
