:root {
  color-scheme: light dark;

  --bg: #fdfcf9;
  --text: #16150f;
  --muted: #6b6659;
  --rule: #dcd8cc;
  --accent: #1a5cff;

  --font-prose: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121210;
    --text: #f2f0e9;
    --muted: #a19c8e;
    --rule: #302e29;
    --accent: #7aa2ff;
  }
}

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

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

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-prose);
  font-size: 18px;
  line-height: 1.65;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.site-header .brand {
  font-weight: 600;
  color: var(--text);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

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

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

main {
  display: block;
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.35;
}

h2 .mono {
  font-weight: 400;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

li::marker {
  color: var(--muted);
}

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

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.project {
  margin: 0 0 1.5rem;
}

.project h2 {
  margin-top: 0;
}

.project .links,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

footer.site-footer {
  margin-top: 3.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

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

footer.site-footer a:hover,
footer.site-footer a:focus-visible {
  color: var(--text);
}
