:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --link: #0b57d0;
  --border: #e3e3e3;
  --code-bg: #f6f6f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --fg: #e6e6e6;
    --muted: #9a9a9a;
    --link: #8ab4f8;
    --border: #33363d;
    --code-bg: #1f2228;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  max-width: 42rem;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  margin-bottom: 2.5rem;
}

.site-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

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

.about {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.post-entry {
  margin-bottom: 2rem;
}

.post-entry h2 {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
}

.post-entry p {
  margin: 0.35rem 0 0;
}

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

.post h1 {
  margin: 0 0 0.25rem;
  font-size: 1.7rem;
  line-height: 1.25;
}

.post time {
  display: block;
  margin-bottom: 1.5rem;
}

.post h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.post img {
  max-width: 100%;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

pre.shiki {
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

pre.shiki code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.shiki {
  color: var(--shiki-light);
  background-color: var(--code-bg);
}

.shiki span {
  color: var(--shiki-light);
}

@media (prefers-color-scheme: dark) {
  .shiki {
    color: var(--shiki-dark);
    background-color: var(--code-bg);
  }

  .shiki span {
    color: var(--shiki-dark);
  }
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
