:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --faint: #9ca3af;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --ring: #dbeafe;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Homepage hero ---------- */
.home { padding: 88px 0 48px; }

.hero {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px var(--ring), 0 10px 25px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.hero-text h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 34ch;
}

.interests {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 1.05rem;
}
.interests li {
  position: relative;
  padding-left: 22px;
  margin: 6px 0;
}
.interests li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Buttons / links ---------- */
.links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-solid {
  background: var(--accent);
  color: #fff;
}
.btn-solid:hover { background: var(--accent-hover); }

/* ---------- Divider / sections ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 32px;
}

.recent h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin: 0 0 16px;
}

/* ---------- Post lists ---------- */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.post-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.post-list a:hover { color: var(--accent); }
.post-list time {
  color: var(--faint);
  font-size: 0.85rem;
  white-space: nowrap;
}

.muted { color: var(--muted); }

.footer {
  margin-top: 48px;
  color: var(--faint);
  font-size: 0.8rem;
}

/* ---------- Single post / blog page ---------- */
.post { padding: 56px 0 80px; }

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.back:hover { color: var(--accent); }

.post-header { margin: 24px 0 32px; }
.post-header h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.post-header time {
  color: var(--faint);
  font-size: 0.9rem;
}

.disclaimer {
  margin: 0 0 32px;
  padding: 12px 16px;
  background: #f6f8fa;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.5;
}

.post-body { font-size: 1.05rem; }
.post-body h2 { margin-top: 2em; letter-spacing: -0.01em; }
.post-body a { color: var(--accent); }
.post-body pre {
  background: #f6f8fa;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.post-body blockquote {
  border-left: 3px solid var(--border);
  margin: 1.5em 0;
  padding-left: 16px;
  color: var(--muted);
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tagline { max-width: none; }
  .links { justify-content: center; }
  .home { padding-top: 56px; }
}
