:root {
  --bg: #0d1117;
  --bg-secondary: #161b22;
  --text: #e6edf3;
  --text-muted: #7d8590;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --border: #30363d;
  --code-bg: #1c2128;
  --max-width: 44rem;
}

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

html {
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--text);
}

.site-title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.site-title::before {
  content: "~/";
  color: var(--accent);
}

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

a:hover {
  color: var(--accent-hover);
}

main {
  flex: 1;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

article header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

article header h1 {
  margin-bottom: 0.75rem;
}

article header time {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.post-list {
  list-style: none;
  margin-top: 1.5rem;
}

.post-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:first-child {
  padding-top: 0;
}

.post-list a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.post-list a:hover {
  color: var(--accent);
}

.post-list time {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

pre[class*="language-"] {
  background: var(--code-bg);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.6;
}

code[class*="language-"],
pre[class*="language-"] {
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
  text-shadow: none;
}

:not(pre) > code {
  background: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  border: 1px solid var(--border);
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6e7681;
  font-style: italic;
}

.token.punctuation {
  color: #e6edf3;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #79c0ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #a5d6ff;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #ff7b72;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #ff7b72;
}

.token.function,
.token.class-name {
  color: #d2a8ff;
}

.token.regex,
.token.important,
.token.variable {
  color: #ffa657;
}

.token.namespace {
  color: #7ee787;
}

ul, ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

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

strong {
  font-weight: 600;
  color: var(--text);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-list li {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.project-list li:first-child {
  padding-top: 0;
}

.project-image {
  flex-shrink: 0;
}

.project-image img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.project-content {
  flex: 1;
  min-width: 0;
}

.project-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.project-list h3 a {
  color: var(--text);
}

.project-list h3 a:hover {
  color: var(--accent);
}

.project-list p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-list .tech {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.75rem;
  color: var(--accent);
}

.status-retired {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  body {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  header nav ul {
    gap: 1rem;
  }

  pre[class*="language-"] {
    padding: 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  .project-list li {
    flex-direction: column;
    gap: 1rem;
  }

  .project-image img {
    width: 64px;
    height: 64px;
  }
}
