:root {
  --bg: #111318;
  --panel: #171a21;
  --fg: #f2f0e9;
  --muted: #a6a99f;
  --accent: #6ee7b7;
  --border: #262a34;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}

nav .brand {
  font-weight: 700;
  color: var(--fg);
}
nav .brand:hover { text-decoration: none; opacity: 0.85; }

nav .links {
  display: flex;
  gap: 1.25rem;
}
nav .links a {
  color: var(--muted);
  font-size: 0.95rem;
}
nav .links a.active {
  color: var(--accent);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

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

.dot { color: var(--accent); }

/* About page */
.profile {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.profile img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--panel);
}

/* Blog list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list li:first-child { border-top: 1px solid var(--border); }
.post-list a {
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 600;
}
.post-list time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

/* Rendered markdown post */
#post-content {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}
#post-content h1 { font-size: 1.9rem; }
#post-content h2 { font-size: 1.4rem; margin-top: 2rem; }
#post-content p { margin: 1rem 0; }
#post-content pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
}
#post-content code {
  background: var(--panel);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
#post-content pre code {
  background: none;
  padding: 0;
}
#post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--muted);
}
#post-content img {
  max-width: 100%;
  border-radius: 6px;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}
