:root {
  color-scheme: light dark;
  --canvas: #f0f1f4;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --accent: #c2410c;
  --hairline: rgba(28, 28, 30, 0.12);
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --surface: #131314;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #f97316;
    --hairline: rgba(245, 245, 247, 0.14);
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

header,
main,
footer {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin-inline: auto;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

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

nav a[aria-current="page"] {
  font-weight: 600;
}

main {
  padding: 2.25rem 0 3.5rem;
}

h1 {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

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

.updated {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

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

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.4rem;
}

footer {
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero {
  padding: 4.5rem 0 5rem;
}

.hero h1 {
  margin-bottom: 0.75rem;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.hero-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
