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

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --white: #f0f6fc;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas,
    monospace;
  line-height: 1.7;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.site-header .prompt {
  color: var(--green);
  font-size: 1.1rem;
}

.site-header .prompt .path {
  color: var(--accent);
}

.site-header .prompt .cursor {
  color: var(--white);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.site-header nav {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.site-header nav a {
  color: var(--text-muted);
  margin-right: 1.5rem;
}

.site-header nav a:hover {
  color: var(--accent);
}

/* Tagline */
.tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}

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

.post-list li {
  border-left: 2px solid var(--border);
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.post-list li:hover {
  border-color: var(--green);
}

.post-list .post-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.25rem;
}

.post-list .post-title {
  font-size: 1rem;
  color: var(--white);
}

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

/* Post page */
.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.post-header .post-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.post-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content ol,
.post-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 2px solid var(--green);
  padding-left: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.post-content code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Post navigation */
.post-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.post-nav .prev,
.post-nav .next {
  color: var(--text-muted);
}

.post-nav .prev:hover,
.post-nav .next:hover {
  color: var(--accent);
}

/* About page */
.about-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 1.25rem 1rem;
  }

  .post-header h1 {
    font-size: 1.25rem;
  }

  .post-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}
