:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #5b5b60;
  --accent: #1857c8;
  --rule: #e2e2e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --fg: #ececef;
    --muted: #a2a2aa;
    --accent: #7aa9ff;
    --rule: #2c2d33;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

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

header.site .wrap {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
}

nav.site {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--accent);
}

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

main h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin: 0.35rem 0;
}

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

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(127, 127, 127, 0.14);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  word-break: break-word;
}

.cards {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 34rem) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.card p:last-child {
  margin-bottom: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .wrap {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

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