:root {
  --ink: #1d2127;
  --muted: #5f6774;
  --bg: #ffffff;
  --bg-alt: #f2f2f3;
  --header: #15181d;
  --accent: #2f7d5b;
  --rule: #e1e3e6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Open Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--ink); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.prose > * { max-width: 760px; }
h1, h2, h3 { line-height: 1.2; }
.band h1 { font-size: 2.2rem; margin: .25rem 0 .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; min-height: 3.75rem; }
.logo { font: 600 1.15rem var(--mono); color: #fff; text-decoration: none; letter-spacing: .01em; }
.logo .prompt { color: #6fd3a3; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-header nav a { color: #c9ced6; text-decoration: none; font-size: .95rem; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #fff; }

/* Sections */
.hero { background: var(--bg-alt); padding: 4rem 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 260px; gap: 3rem; align-items: center; }
.hero h1 { margin: 0 0 .75rem; font-size: 2.4rem; line-height: 1.15; }
.eyebrow { margin: 0 0 .5rem; font: 600 .85rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.portrait { width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 8px 30px rgb(0 0 0 / .15); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.tags li { padding: .2rem .7rem; border-radius: 999px; background: var(--header); color: #fff; font: .85rem var(--mono); }

.band { padding: 3.5rem 0; }
.band.alt { background: var(--bg-alt); }
.band h2 { margin-top: 0; font-size: 1.8rem; }
.prose h3 { margin: 2rem 0 .1rem; font-size: 1.2rem; }
.prose h3 + p { margin-top: 0; color: var(--muted); }
.prose h4 { margin-bottom: .25rem; }
.prose li { margin: .3rem 0; }
.prose img { display: block; max-height: 85vh; width: auto; margin: 1.5rem 0; border-radius: 6px; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }

.meta { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.meta a { text-decoration: none; }

/* Post cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.card-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1rem 1.25rem 1.25rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.1rem; line-height: 1.35; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card-body > p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }
.more { font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { background: var(--header); color: #9aa1ab; padding: 1.5rem 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; }
.site-footer .links { display: flex; gap: 1.25rem; }
.site-footer a { color: #c9ced6; text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 720px) {
  .hero { padding: 2.5rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portrait { width: 200px; order: -1; }
  .hero h1 { font-size: 2rem; }
}
