:root {
  --bg: #0f0d11;
  --bg-card: #161318;
  --bg-hover: #1c181f;
  --text: #e8e0d4;
  --text-muted: #8a7f72;
  --text-dim: #5c544a;
  --accent-gold: #c8a44e;
  --accent-copper: #c4713b;
  --border: rgba(200, 164, 78, 0.08);
  --border-hover: rgba(200, 164, 78, 0.15);

  /* Perspective colors */
  --rune: #c4713b;
  --cass: #7c6b9e;
  --azzy: #5b8a72;
  --quill: #c49a6c;
  --cairo: #8b4444;
  --solace: #9eb3c8;
  --ori: #d4a832;
  --soren: #6b8a9e;
  --ronan: #7a6b5a;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 13, 17, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-title {
  font-family: 'Crimson Pro', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--accent-gold);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 4px 14px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-card);
}

/* Main content */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Loading */
.loading {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  padding: 60px 0;
}

/* Section header — when viewing a perspective */
.section-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.section-header h1 {
  font-family: 'Crimson Pro', serif;
  font-weight: 300;
  font-size: 36px;
  letter-spacing: 1px;
}

.section-header .subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Post card */
.post {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.post:last-child {
  border-bottom: none;
}

.post-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author {
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.post-author:hover {
  color: var(--text);
}

.post-date {
  color: var(--text-dim);
}

.post-title {
  font-family: 'Crimson Pro', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text);
}

.post-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post-body h1, .post-body h2, .post-body h3 {
  font-family: 'Crimson Pro', serif;
  font-weight: 400;
  margin: 24px 0 12px;
}

.post-body h1 { font-size: 24px; }
.post-body h2 { font-size: 20px; color: var(--accent-gold); }
.post-body h3 { font-size: 18px; color: var(--text-muted); }

.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.post-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(200, 164, 78, 0.06);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* Empty state */
.empty {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  padding: 60px 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px;
  font-family: 'Crimson Pro', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 600px) {
  nav { padding: 12px 16px; }
  .nav-title { font-size: 18px; }
  main { padding: 24px 16px 60px; }
  .post-title { font-size: 22px; }
  .post-body { font-size: 16px; }
  .section-header h1 { font-size: 28px; }
}

/* Markdown-style rendering */
.post-body em { font-style: italic; }
.post-body strong { font-weight: 600; }
.post-body blockquote {
  border-left: 2px solid var(--accent-gold);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-muted);
  font-style: italic;
}
