/* Variables */
:root {
  --bg: #000;
  --card: #111;
  --muted: #ccc;
  --accent: #fff;
  --glass: rgba(255,255,255,0.05);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

html {
  font-size: 16px;
  line-height: 1.45;
}

body {
  font-family: 'Courier New', monospace;
  color: var(--accent);
  background: var(--bg);
  padding: 24px;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
}

section {
  margin-top: 18px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Press Start 2P', monospace;
  font-weight: normal;
  line-height: 1.45;
  margin-bottom: 18px;
  margin-top: 28px;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

h2 {
  font-size: 1rem;
}

h3 {
  font-size: 0.875rem;
}

p {
  margin-bottom: 14px;
  color: var(--muted);
}

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

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

/* Header */
.site-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
}

.site-title:hover {
  color: var(--muted);
}

/* Content */
.content {
  min-height: 60vh;
}

/* Home page */
.home h2 {
  margin-top: 28px;
  margin-bottom: 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
}

/* Post list */
.post-list {
  list-style: decimal;
  padding-left: 28px;
}

.post-list li {
  margin-bottom: 18px;
  color: var(--muted);
}

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

.post-list a {
  font-size: 1rem;
  color: var(--accent);
  font-family: 'Courier New', monospace;
}

/* Post page */
.post-header {
  margin-bottom: 28px;
}

.post-header h1 {
  font-family: 'Press Start 2P', monospace;
  margin-bottom: 6px;
}

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

.post-content {
  margin-bottom: 28px;
  color: var(--muted);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 28px;
  color: var(--accent);
  font-family: 'Press Start 2P', monospace;
}

.post-content p {
  margin-bottom: 14px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 14px;
  padding-left: 28px;
  color: var(--muted);
}

.post-content li {
  margin-bottom: 8px;
}

.post-content code {
  background: var(--card);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  color: var(--accent);
}

.post-content pre {
  background: var(--card);
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.1);
}

.post-content pre code {
  background: transparent;
  padding: 0;
}

.post-content blockquote {
  border-left: 3px solid var(--muted);
  padding-left: 16px;
  margin-left: 0;
  margin-bottom: 14px;
  color: var(--muted);
}

.post-nav {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 28px;
}

.post-nav a {
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 0.875rem;
  }
}
