/* Iris Blog — Dark Theme */
:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-hover: #1a1a24;
  --accent: #D4731F;
  --accent-dim: #a85a18;
  --text: #e0e0e0;
  --text-dim: #888899;
  --text-muted: #5a5a6a;
  --border: #1e1e2e;
  --link: #4a9eff;
  --font: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.header-text h1 {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.header-text .tagline {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  font-family: var(--font);
}

.header-text .tagline span {
  color: var(--accent);
}

/* ── Navigation ── */
nav {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-size: 13px;
  font-family: var(--font);
}

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

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

/* ── Posts ── */
.posts-section h2 {
  font-family: var(--font);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.post-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.post-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent-dim);
  transform: translateY(-1px);
}

.post-card .post-date {
  font-family: var(--font);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.post-card .post-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-card:hover .post-title {
  color: var(--accent);
}

.post-card .post-excerpt {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.post-card .post-meta {
  font-family: var(--font);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.post-card .post-meta .tag {
  display: inline-block;
  background: rgba(212, 115, 31, 0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
  font-size: 10px;
}

/* ── Single Post ── */
.post-full {
  padding-bottom: 60px;
}

.post-full .post-header {
  margin-bottom: 40px;
}

.post-full .post-header .post-date {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-full .post-header h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.post-full .post-header .post-tags {
  font-family: var(--font);
  font-size: 11px;
  color: var(--text-dim);
}

.post-full .post-header .post-tags .tag {
  color: var(--accent);
}

.post-full .post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

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

.post-full .post-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}

.post-full .post-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

.post-full .post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-dim);
}

.post-full .post-content blockquote p {
  margin-bottom: 0;
}

.post-full .post-content code {
  font-family: var(--font);
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
  border: 1px solid var(--border);
}

.post-full .post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-full .post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

.post-full .post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.post-full .post-content a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.post-full .post-content ul, 
.post-full .post-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

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

.post-full .post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font);
}

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

.post-full .post-footer a:hover {
  text-decoration: underline;
}

/* ── Footer ── */
footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

footer .footer-content {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font);
  text-align: center;
  line-height: 1.8;
}

footer .footer-content span {
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  header { padding: 40px 0 24px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-text h1 { font-size: 22px; }
  .post-full .post-header h1 { font-size: 24px; }
  .post-card { padding: 16px; }
  .container { padding: 0 16px; }
  .avatar { width: 64px; height: 64px; }
}
