:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --text: #1f2328;
  --muted: #6a6f76;
  --rule: #e3e0d8;
  --link: #0b5cad;
  --accent: #8a5a2b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --text: #e6e3dc;
    --muted: #9aa0a6;
    --rule: #2a2d31;
    --link: #8ab4f8;
    --accent: #d3a06a;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.65;
}

.site-header {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--link);
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

.intro {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
}

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

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

.post-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.post-list h3 a {
  text-decoration: none;
}

.post-list h3 a:hover {
  text-decoration: underline;
}

.post-list time {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.post-list p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

article {
  max-width: 44rem;
}

article header {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

article header time {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(127, 127, 127, 0.12);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

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

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

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

@media (max-width: 600px) {
  html {
    font-size: 17px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .site-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav a {
    margin: 0 1rem 0 0;
  }
}
