:root {
  --bg:        #0e0e0e;
  --surface:   #151515;
  --border:    #2a2a2a;
  --muted:     #555;
  --subdued:   #888;
  --text:      #d4cfca;
  --accent:    #c9a96e;
  --mono:      'IBM Plex Mono', monospace;
  --serif:     'Lora', Georgia, serif;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,169,110,0.04) 0%, transparent 60%),
    var(--bg);
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem 8rem;
}

/* ── Header ── */
.site-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.site-title:hover { opacity: 1; }

.site-desc {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Post List ── */
main { display: flex; flex-direction: column; gap: 0; }

.post-entry {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.4s ease both;
}

.post-entry:nth-child(1) { animation-delay: 0.05s; }
.post-entry:nth-child(2) { animation-delay: 0.1s; }
.post-entry:nth-child(3) { animation-delay: 0.15s; }
.post-entry:nth-child(4) { animation-delay: 0.2s; }
.post-entry:nth-child(5) { animation-delay: 0.25s; }

.post-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.post-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.post-title:hover { color: var(--accent); }

.draft-badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.1em 0.5em;
  border-radius: 2px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ── Single Post ── */
.post {
  animation: fadeUp 0.5s ease both;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.post-heading {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.post-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #bfbab4;
}

.post-content p { margin-bottom: 1.4em; }

.post-content p:last-child { margin-bottom: 0; }

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201,169,110,0.4);
  transition: text-decoration-color 0.2s;
}
.post-content a:hover { text-decoration-color: var(--accent); }

.post-content code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--accent);
}

.post-content blockquote {
  border-left: 2px solid var(--accent);
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.5em;
  color: var(--subdued);
  font-style: italic;
}

.post-content h2, .post-content h3 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subdued);
  margin: 2.5em 0 1em;
}

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

.post-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.back-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 500px) {
  .post-entry {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .post-date { font-size: 0.65rem; }
}
