:root {
  --bg: #fbfaf7;
  --text: #1d1d1b;
  --muted: #6b6a66;
  --accent: #b4532a;
  --rule: #e6e3dc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --text: #ecebe7;
    --muted: #9a9892;
    --accent: #e08a5f;
    --rule: #2c2b29;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 12vh 20px 48px;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.tagline {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 8px 0 0;
}

section {
  margin-top: 48px;
}

h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 12px;
}

p { margin: 0; }

ul { list-style: none; padding: 0; margin: 0; }

.projects li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.projects li:last-child { border-bottom: 1px solid var(--rule); }
.projects strong { display: block; }
.projects span { color: var(--muted); }

.posts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.posts li:last-child { border-bottom: 1px solid var(--rule); }
.posts time {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  border-bottom: 1px solid var(--rule);
}
.tabs a {
  color: var(--muted);
  padding-bottom: 8px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--text); border-bottom-color: transparent; }
.tabs a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

article header { margin-top: 48px; }
article .title {
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  margin: 0 0 4px;
}
article time { color: var(--muted); }
article .body { margin-top: 32px; }
article .body p + p { margin-top: 1em; }

.links { display: flex; flex-wrap: wrap; gap: 20px; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover { border-bottom-color: currentColor; }

footer {
  margin-top: 64px;
  color: var(--muted);
  font-size: 0.85rem;
}
