:root {
  color-scheme: dark;
  --bg: #1b1d21;
  --text: #c3c6cb;
  --title: #d8dadd;
  --muted: #8a9099;
  --accent: #9db4a0;
  --accent-hover: #bccfbe;
  --rule: #2c3036;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 50rem;
  padding: 2rem 1rem 4rem;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.site-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--title);
  text-decoration: none;
}

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

nav a {
  color: var(--muted);
  text-decoration: none;
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--title);
}

h1 {
  font-size: 1.75rem;
  margin-top: 0;
}

h3 .meta {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

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

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

footer a:hover {
  color: var(--title);
}
