:root {
  color-scheme: light dark;
  --canvas: #f5f5f7;
  --surface: #fbfbfd;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --line: rgb(29 29 31 / 0.1);
  --accent: #5268c9;
  --accent-fill: #5268c9;
  --focus: #6177d9;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1c1c1e;
    --surface: #2c2c2e;
    --text: #f5f5f7;
    --secondary: #aeaeb2;
    --line: rgb(255 255 255 / 0.1);
    --accent: #a9b5ff;
    --accent-fill: #5268c9;
    --focus: #a9b5ff;
  }
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 88% -8%, rgb(97 119 217 / 0.14), transparent 34%),
    radial-gradient(circle at 4% 104%, rgb(113 79 167 / 0.08), transparent 32%),
    var(--canvas);
}

body {
  min-height: 100%;
  margin: 0;
  padding: 28px 20px 64px;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

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

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 46%, transparent);
  outline-offset: 3px;
}

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.site-header {
  margin-bottom: 28px;
}

.brand {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

main {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

h1 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h2 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

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

main p:first-of-type,
.lede {
  color: var(--text);
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

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

.site-footer {
  margin-top: 22px;
  color: var(--secondary);
  font-size: 0.9rem;
}
