:root {
  color-scheme: light dark;
  --text: #1f2328;
  --muted: #59636e;
  --bg: #fff;
  --link: #0a58ca;
  --subtle: #f4f5f7;
  --border: #e3e5e8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e8eb;
    --muted: #9198a1;
    --bg: #111418;
    --link: #6cb4ff;
    --subtle: #1b1f24;
    --border: #2d333b;
  }
}

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

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 1.125rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

header {
  margin-bottom: 3rem;
}

.site-title {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

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

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

time {
  color: var(--muted);
  font-size: 0.875rem;
}

article > time {
  display: block;
  margin-bottom: 2rem;
}

.intro {
  margin-top: 0;
  color: var(--muted);
}

.posts {
  padding: 0;
  list-style: none;
}

.posts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: var(--subtle);
}

pre {
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
  background: var(--subtle);
}

pre code {
  padding: 0;
  font-size: 1em;
  background: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

footer {
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.875rem;
}
