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

:root {
  color-scheme: light dark;
  --bg: #f6f0e6;
  --surface: #fffaf2;
  --ink: #182126;
  --muted: #546066;
  --line: #dfd4c2;
  --accent: #1c7280;
  --accent-strong: #12535e;
  --warm: #b95c43;
  --code: #eee2d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111416;
    --surface: #1e2224;
    --ink: #f4efe6;
    --muted: #c9c0b3;
    --line: #353a3d;
    --accent: #79c9d2;
    --accent-strong: #a7e0e6;
    --warm: #f0a088;
    --code: #2a3033;
  }
}

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

a {
  color: var(--accent-strong);
  font-weight: 650;
}

nav {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 980px;
  padding: 0.9rem 1.25rem;
}

.brand,
.nav-links {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

main {
  margin: 0 auto;
  max-width: 980px;
  padding: 3rem 1.25rem 5rem;
}

.hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.eyebrow {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.4rem);
  letter-spacing: 0;
  line-height: 1;
  max-width: 820px;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 1rem;
  max-width: 760px;
}

.updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1rem;
}

section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 1rem;
  padding: 1.3rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 0.7rem;
}

h3 {
  font-size: 1rem;
  margin: 1rem 0 0.4rem;
}

p,
li {
  color: var(--muted);
  font-size: 0.96rem;
}

p + p {
  margin-top: 0.8rem;
}

ul {
  margin: 0.5rem 0 0 1.2rem;
}

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

.callout {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

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

code {
  background: var(--code);
  border-radius: 5px;
  color: var(--ink);
  padding: 0.08rem 0.3rem;
}

footer {
  color: var(--muted);
  margin: 2rem auto 0;
  max-width: 980px;
  padding: 0 1.25rem 3rem;
}

@media (max-width: 680px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  section {
    padding: 1rem;
  }
}
