@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
  /* ── BACKGROUND ── */
  --bg:            #16171b;
  --bg-card:       #1b1d23;
  --bg-card-hover: #20232a;
  --bg-overlay:    rgba(0, 0, 0, 0.45);
  --bg-subtle:     rgba(80, 90, 110, 0.12);
  
  /* ── BORDERS & SEPARATORS ── */
  --border:        #2a2f38;
  --border-soft:   rgba(70, 80, 95, 0.35);
  --border-glow:   #3a4150;
  
  /* ── PRIMARY ACCENT (neutral desaturated blue) ── */
  --accent:        #7a88a8;
  --accent-dim:    #5f6c85;
  --accent-hover:  #8f9fc0;
  --accent-glow:   rgba(122, 136, 168, 0.12);
  
  /* ── STATUS COLORS (less earthy, more neutral) ── */
  --buff:          #7fa38a;
  --buff-muted:    rgba(127, 163, 138, 0.18);
  
  --nerf:          #b07a84;
  --nerf-muted:    rgba(176, 122, 132, 0.18);
  
  --fix:           #b59a63;
  --fix-muted:     rgba(181, 154, 99, 0.18);

  /* ── TEXT (balanced, slightly cooler) ── */
  --text-primary:   #e8ecf2;
  --text-secondary: #b8c0cc;
  --text-dim:       #8c96a6;
  --text-muted:     rgba(232, 236, 242, 0.78);

  /* ── TYPOGRAPHY ── */
  --font-serif:  'Merriweather', serif;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'Menlo', 'Consolas', monospace;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.2px;
}

/* ── SCANLINE OVERLAY ── */
.scanline-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  /* background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  ); */
}

/* ── HEADER ── */
.site-header {
  background: rgba(24, 26, 32, 0.96); /* warmer, less blue */
  backdrop-filter: blur(6px);         /* softer, less "frosted glass" */
  border-bottom: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 245, 220, 0.04); /* warm subtle highlight */
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.8;
  letter-spacing: 0;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-primary);
  font-style: italic;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0;
  display: none;
  font-weight: 400;
}

@media (min-width: 600px) {
  .logo-sub { display: inline; }
}

.site-nav {
  display: flex;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  border-radius: 2px;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--border-soft);
}

.header-bar {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dim) 0%, transparent 60%);
  opacity: 0.4;
}

/* ── MAIN ── */
.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 52px 32px 80px;
}

/* ── HERO ── */
.hero {
  margin-bottom: 68px;
  animation: fadeUp 0.5s ease both;
}

.hero-version {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--accent-dim);
  margin-bottom: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text-primary);
  text-transform: none;
  margin-bottom: 16px;
}

.hero-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-line {
  width: 60px;
  height: 1px;
  background: var(--accent-dim);
  opacity: 0.6;
}

/* ── POSTS GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .post-card.featured {
    grid-column: 1 / -1;
  }
}

/* ── POST CARD ── */
.post-card {
  background: transparent;
  border: none;
  border-left: 2px solid var(--border);
  padding: 24px 0 24px 20px;
  position: relative;
  transition: all 0.2s ease;
}

/* subtle divider between posts */
.post-card:not(:last-child) {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 28px;
  margin-bottom: 8px;
}

/* left accent on hover */
.post-card:hover {
  border-left-color: var(--accent-dim);
  background: rgba(120, 130, 150, 0.04);
}

/* remove old pseudo bar */
.post-card::before {
  display: none;
}

.post-card.featured {
  border-left-color: var(--accent-dim);
  background: rgba(120, 130, 150, 0.06);
}

.post-card.featured::before {
  background: var(--accent-dim);
}

/* ── POST META ── */
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: 0.85;
}

.post-version {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--accent-dim);
  letter-spacing: 0;
  font-weight: 500;
  text-transform: uppercase;
}

.post-date {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.post-tag {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 2px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag-update { 
  color: var(--fix); 
  border-color: var(--fix-muted);
  background: var(--fix-muted);
}

.tag-feature { 
  color: var(--buff); 
  border-color: var(--buff-muted);
  background: var(--buff-muted);
}

.tag-hotfix  { 
  color: var(--nerf); 
  border-color: var(--nerf-muted);
  background: var(--nerf-muted);
}

/* ── POST TITLE ── */
.post-title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.post-card.featured .post-title {
  font-size: 32px;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: var(--accent);
}

/* ── POST EXCERPT ── */
.post-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
  font-weight: 400;
}

/* ── CHANGE BADGES ── */
.post-changes {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.change {
  font-family: var(--font-body);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.change.buff { background: var(--buff-muted);  color: var(--buff); }
.change.nerf { background: var(--nerf-muted);  color: var(--nerf); }
.change.fix  { background: var(--fix-muted);   color: var(--fix); }

/* ── READ MORE ── */
.read-more {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 245, 220, 0.03);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer-logo {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.footer-info {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.posts-grid .post-card:nth-child(1) { animation-delay: 0.05s; }
.posts-grid .post-card:nth-child(2) { animation-delay: 0.1s; }
.posts-grid .post-card:nth-child(3) { animation-delay: 0.15s; }
.posts-grid .post-card:nth-child(4) { animation-delay: 0.2s; }
.posts-grid .post-card:nth-child(5) { animation-delay: 0.25s; }

/* ── SELECTION COLOR ── */
::selection {
  background: var(--accent-dim);
  color: var(--bg);
}