*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text:           #1a1a18;
  --text-secondary: #5f5e5a;
  --text-tertiary:  #888780;
  --border:         rgba(0, 0, 0, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text:           #f0ede6;
    --text-secondary: #b4b2a9;
    --text-tertiary:  #888780;
    --border:         rgba(255, 255, 255, 0.12);
  }
  body { background: #1c1c1a; }
}

body {
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

a { color: var(--text); }
a:hover { opacity: 0.6; }

hr {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 2rem 0;
}

/* ── Nav ── */
nav.site-nav { margin-bottom: 2.5rem; }
nav.site-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  margin-right: 1rem;
}
nav.site-nav a.active { color: var(--text); }

/* ── Headings ── */
h1 { font-size: 20px; font-weight: 500; margin-bottom: 4px; }

h2 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

/* ── Hero (index only) ── */
.bio { font-size: 15px; color: var(--text-secondary); margin-bottom: 1rem; }

.links { display: flex; gap: 1rem; }
.links a { font-size: 14px; color: var(--text-secondary); }

/* ── Projects ── */
.project {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.project-name { font-size: 15px; }

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.project-arrow {
  font-size: 15px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-left: 1rem;
  text-decoration: none;
}

/* ── Posts ── */
.post {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
}
.post:first-of-type { border-top: 0.5px solid var(--border); }
.post a { font-size: 15px; }

.post-date {
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ── Footer ── */
footer {
  margin-top: 3rem;
  font-size: 13px;
  color: var(--text-tertiary);
}

@media (max-width: 480px) {
  body { padding: 1.5rem 1.25rem; }
  .post { flex-direction: column; gap: 2px; }
}
