:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1c211e;
  --muted: #66716b;
  --accent: #0d6b4f;
  --rule: #e3e8e5;
  --code-bg: #f4f7f5;
  --max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151a17;
    --text: #d9e0dc;
    --muted: #8fa097;
    --accent: #5fc9a4;
    --rule: #2a332e;
    --code-bg: #1d2420;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.65 Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
}
.site-header, main, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: system-ui, -apple-system, sans-serif;
}
.site-title {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.site-header nav a {
  margin-left: .8rem;
  text-decoration: none;
  color: var(--muted);
  font-size: .95rem;
}
.site-header nav a:hover { color: var(--accent); }
main { padding-top: 1.5rem; padding-bottom: 3rem; }
a { color: var(--accent); }
h1 { font-size: 1.65rem; line-height: 1.25; }
.hero h1 { font-size: 1.9rem; margin-bottom: .3rem; }
.subhead {
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
  margin-top: 0;
}
.meta { color: var(--muted); font-size: .9rem; font-family: system-ui, sans-serif; }
.post-list { list-style: none; padding: 0; }
.post-list li {
  display: flex;
  gap: .8rem;
  padding: .25rem 0;
  align-items: baseline;
}
.post-list time {
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
  font-size: .8rem;
  white-space: nowrap;
}
.post-list .summary { color: var(--muted); font-size: .9rem; }
article img, main img { max-width: 100%; height: auto; }
.pub-year {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: .06em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .25rem;
  margin-top: 2rem;
}
.hero-portrait {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-portrait > div { flex: 1 1 20rem; }
.hero-portrait .portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--rule);
}
@media (max-width: 480px) {
  .hero-portrait .portrait { width: 96px; height: 96px; }
}
.layers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1.5rem 0; }
.layer {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: .9rem 1rem;
}
.layer h3 { margin: 0 0 .4rem; font-family: system-ui, sans-serif; font-size: 1rem; color: var(--accent); }
.layer p { margin: 0; font-size: .92rem; color: var(--muted); }
blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
pre { overflow-x: auto; background: var(--code-bg); padding: .8rem; font-size: .85rem; }
code { background: var(--code-bg); padding: 0 .25em; }
pre code { padding: 0; }
table { border-collapse: collapse; font-size: .92rem; }
th, td { border: 1px solid var(--rule); padding: .35rem .6rem; text-align: left; }
.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: .85rem;
  font-family: system-ui, sans-serif;
}
.constellation { color: var(--muted); }
