@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --midnight: #1A1A1A;
  --deep: #1A2E23;
  --indigo: #1E3328;
  --gold: #7CB68A;
  --steel: #F5F0E8;
  --white: #F5F0E8;
  --dim: #A8A49B;
  --body: #D4C5A9;
  --card: rgba(30, 51, 40, 0.85);
  --border: rgba(45, 90, 61, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--midnight);
  color: var(--body);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-icon { font-size: 1.4em; }

.nav-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(124, 182, 138, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === HERO === */
.hero {
  padding: 120px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(600px circle at 50% 30%, rgba(30, 58, 40, 0.4), transparent),
    radial-gradient(400px circle at 80% 60%, rgba(58, 125, 68, 0.05), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--indigo), rgba(45, 90, 61, 0.15));
  border: 2px solid var(--border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75em;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 2.4em;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-title span { color: var(--gold); }

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto;
  opacity: 0.5;
}

.hero-subtitle {
  font-size: 1.05em;
  color: var(--steel);
  margin-bottom: 32px;
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.stat {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.8em;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6em;
  color: var(--steel);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* === CONTAINER === */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === POST LIST === */
.posts-section {
  padding: 48px 0 80px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-left: 4px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.post-card:hover {
  border-color: rgba(58, 125, 68, 0.4);
  transform: translateY(-2px);
}

.post-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.post-card-category {
  color: var(--gold);
  border: 1px solid rgba(58, 125, 68, 0.3);
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 0.9em;
}

.post-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.post-card p {
  color: var(--steel);
  font-size: 0.9em;
  line-height: 1.6;
}

/* === SINGLE POST === */
.post-page {
  padding: 80px 0 80px;
}

.post-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post-header .post-card-meta {
  justify-content: center;
  margin-bottom: 16px;
}

.post-header h1 {
  font-family: 'Cinzel', serif;
  font-size: 2em;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-header .subtitle {
  font-size: 1em;
  color: var(--steel);
  font-style: italic;
}

.post-content {
  color: var(--body);
  font-size: 1.05em;
  line-height: 1.8;
}

.post-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.35em;
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 16px;
}

.post-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--gold);
  margin: 28px 0 12px;
}

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

.post-content ul, .post-content ol {
  margin: 16px 0 20px 20px;
}

.post-content li {
  margin-bottom: 6px;
  color: var(--body);
}

.post-content strong { color: var(--white); font-weight: 600; }

.post-content em { color: var(--gold); }

.post-content blockquote {
  border-left: 3px solid var(--gold);
  background: rgba(30, 58, 40, 0.4);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  color: var(--steel);
}

.post-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: rgba(30, 58, 40, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold);
}

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

/* Forward vector */
.forward-vector {
  background: rgba(30, 58, 40, 0.3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 48px;
  font-size: 0.95em;
  color: var(--steel);
}

.forward-vector strong { color: var(--gold); }

/* Closing */
.closing {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8em;
  color: var(--dim);
  letter-spacing: 0.05em;
}

/* === PAGES === */
.page-content {
  padding: 80px 0 80px;
  color: var(--body);
  font-size: 1.05em;
  line-height: 1.8;
}

.page-content h1 {
  font-family: 'Cinzel', serif;
  font-size: 2em;
  font-weight: 900;
  color: var(--white);
  text-align: center;
  margin-bottom: 32px;
}

.page-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.3em;
  color: var(--white);
  margin: 36px 0 16px;
}

.page-content p { margin-bottom: 18px; }
.page-content ul { margin: 16px 0 20px 20px; }
.page-content li { margin-bottom: 6px; }
.page-content strong { color: var(--white); font-weight: 600; }
.page-content em { color: var(--gold); }

/* === FOOTER === */
.site-footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-quote {
  font-family: 'Cinzel', serif;
  font-size: 0.85em;
  color: var(--dim);
  font-style: italic;
  margin-bottom: 8px;
}

.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6em;
  color: rgba(168, 164, 155, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === MOBILE === */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .navbar { padding: 0 12px; height: 48px; }
  .nav-brand { gap: 6px; }
  .nav-icon { font-size: 1.2em; }
  .nav-title { font-size: 0.7em; letter-spacing: 0.05em; }
  .nav-links { gap: 10px; }
  .nav-links a { display: none; }
  .nav-links a:first-child { display: inline; font-size: 0.6em; }
  .status-badge { font-size: 0.6em; }
  .hero { padding: 70px 12px 28px; }
  .hero-avatar { width: 80px; height: 80px; font-size: 2.2em; border-radius: 16px; margin-bottom: 16px; }
  .hero-kicker { font-size: 0.55em; letter-spacing: 0.15em; margin-bottom: 8px; }
  .hero-title { font-size: 1.5em; }
  .hero-subtitle { font-size: 0.85em; margin-bottom: 20px; }
  .hero-divider { margin: 10px auto; }
  .stats-bar { max-width: 100%; border-radius: 10px; }
  .stat { padding: 12px 6px; }
  .stat-value { font-size: 1.2em; }
  .stat-label { font-size: 0.5em; letter-spacing: 0.08em; }
  .container { padding: 0 12px; max-width: 100vw; }
  .posts-section { padding: 28px 0 60px; }
  .section-label { font-size: 0.6em; }
  .post-card { padding: 14px; margin-bottom: 10px; border-radius: 8px; }
  .post-card-meta { font-size: 0.6em; gap: 6px; flex-wrap: wrap; }
  .post-card h2 { font-size: 1em; }
  .post-card p { font-size: 0.82em; line-height: 1.5; }
  .post-header { margin-bottom: 28px; padding-bottom: 20px; }
  .post-header h1 { font-size: 1.3em; }
  .post-content { font-size: 0.9em; line-height: 1.7; }
  .post-content h2 { font-size: 1.15em; margin: 28px 0 12px; }
  .post-content h3 { font-size: 0.95em; }
  .post-content blockquote { padding: 10px 14px; margin: 16px 0; }
  .post-content code { font-size: 0.8em; word-break: break-all; }
  .post-content pre { overflow-x: auto; max-width: 100%; }
  .post-content img { max-width: 100%; height: auto; }
  .forward-vector { padding: 12px 14px; font-size: 0.85em; }
  .page-content h1 { font-size: 1.4em; }
  .page-content { font-size: 0.9em; }
  .site-footer { padding: 24px 12px; }
  .footer-quote { font-size: 0.75em; }
  .footer-meta { font-size: 0.5em; }
}

@media (max-width: 380px) {
  body { font-size: 13px; }
  .hero-title { font-size: 1.3em; }
  .hero-avatar { width: 64px; height: 64px; font-size: 1.8em; }
  .stat-value { font-size: 1em; }
  .nav-title { font-size: 0.65em; }
  .post-card h2 { font-size: 0.9em; }
}
