:root {
  --bg: #0f0f12;
  --surface: #18181c;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

.avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
}

.avatar-wrap .avatar {
  margin: 0;
}

.avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  display: block;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bg);
  border: 3px solid var(--surface);
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.tagline {
  color: var(--text-muted);
  font-size: 1rem;
}

.bio {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.bio p {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.links a:hover {
  background: var(--accent-dim);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--accent);
}

.links a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

footer {
  text-align: center;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Blog list */
.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 1rem;
}

.post-list a {
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: 1rem;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}

.post-list a:hover {
  background: var(--accent-dim);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--accent);
}

.post-list .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Blog post */
.post-body {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  margin-top: 1rem;
}

.post-body h1, .post-body h2, .post-body h3 { margin-top: 1.25em; margin-bottom: 0.5em; }
.post-body p { margin-bottom: 1em; }
.post-body pre { overflow-x: auto; padding: 1rem; background: var(--bg); border-radius: 8px; margin: 1em 0; }
.post-body code { font-family: 'JetBrains Mono', monospace; font-size: 0.9em; }
.post-body pre code { padding: 0; background: none; }
.post-body a { color: var(--accent); }
.post-body ul, .post-body ol { margin: 1em 0; padding-left: 1.5em; }

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-admin-actions {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.post-admin-actions a {
  color: var(--accent);
  text-decoration: none;
}

.post-admin-actions a:hover {
  text-decoration: underline;
}

.post-admin-actions .link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}

.post-admin-actions .link-button:hover {
  text-decoration: underline;
}

.post-admin-actions form {
  display: inline;
}

.post-admin-actions a::after {
  content: " · ";
  color: var(--text-muted);
}

.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}
