body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen;
background: #0f172a;
color: #e2e8f0;
}

/* Layout */
.page {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.08), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(45,212,191,0.06), transparent 20%),
              #0f172a;
}

.sidebar {
  width: 240px;
  padding: 32px 24px;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav a:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  transform: translateX(2px);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: #64748b;
}

.content {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 32px;
}

.container {
  width: min(900px, 100%);
}

/* Typography */
h1 {
font-size: 3rem;
margin-bottom: 10px;
color: #f8fafc;
}

h2 {
font-weight: normal;
font-size: 1.2rem;
color: #94a3b8;
margin-bottom: 30px;
}

p {
line-height: 1.6;
margin-bottom: 30px;
}

/* Links / Buttons */
.links a {
display: inline-block;
margin: 10px;
padding: 12px 20px;
border-radius: 8px;
text-decoration: none;
background: #1e293b;
color: #e2e8f0;
transition: 0.2s;
}

.links a:hover {
background: #334155;
}

/* Footer */
.footer {
  margin-top: 60px;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Posts */
.posts-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0 0 6px;
}

.lead {
  color: #cbd5e1;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.button, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.button {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  color: #0b1222;
  border: none;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.32);
}

.ghost {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.08);
}

.ghost:hover {
  border-color: rgba(148, 163, 184, 0.5);
  transform: translateY(-1px);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  color: #94a3b8;
  font-size: 0.9rem;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.pill:hover {
  background: rgba(148, 163, 184, 0.18);
  transform: translateY(-1px);
}

.pill.active {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.post-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #94a3b8;
}

.card-meta .tag {
  background: rgba(56, 189, 248, 0.15);
  color: #e0f2fe;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.post-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #f8fafc;
}

.post-card p {
  margin: 0;
  color: #cbd5e1;
}

.read-more {
  margin-top: auto;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .posts-hero {
    margin-top: 10px;
  }
}

/* Home additions */
.latest-post {
  margin: 50px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-hero h3 {
  margin: 4px 0 6px;
}

.posts-grid.single {
  grid-template-columns: 1fr;
}

.quotes {
  margin: 40px 0 20px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

blockquote {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

blockquote p {
  margin: 0 0 8px;
  color: #e2e8f0;
  font-style: italic;
}

blockquote span {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: unset;
    position: relative;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav a {
    padding: 10px 12px;
  }

  .sidebar-footer {
    margin-top: 0;
    margin-left: auto;
  }

  .content {
    padding: 28px 20px 40px;
  }
}
