:root {
  --bg: #fbf9f5;
  --text: #22272b;
  --muted: #69717a;
  --accent: #1f4e5f;
  --accent-soft: #e3a04f;
  --rule: #e4dfd6;
  --code-bg: #f1ede6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191c;
    --text: #e3e1dc;
    --muted: #9aa1a8;
    --accent: #8cc3d4;
    --accent-soft: #e3a04f;
    --rule: #2b3236;
    --code-bg: #1e2427;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.site-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-title span {
  color: var(--accent-soft);
}

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

.site-header nav a:first-child {
  margin-left: 0;
}

.site-header nav a:hover {
  color: var(--accent);
}

main {
  padding: 2.5rem 0 3rem;
}

h1,
h2 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

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

h2 {
  font-size: 1.2rem;
  margin: 2.2rem 0 0.6rem;
}

.intro {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.post-list li {
  margin: 0 0 2rem;
}

.post-list a {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

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

.post-list p {
  margin: 0.25rem 0 0;
}

.meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
}

.post-list .meta {
  margin: 0.15rem 0 0;
}

article ul {
  padding-left: 1.2rem;
}

article li {
  margin: 0.35rem 0;
}

code {
  background: var(--code-bg);
  padding: 0.1em 0.3em;
  border-radius: 4px;
  font-size: 0.9em;
}

.back {
  margin-top: 3rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
}
