:root {
  --bg: #111113;
  --panel: rgba(255, 255, 255, 0.06);
  --text: #f2eee8;
  --muted: #bfb8ac;
  --line: rgba(226, 210, 181, 0.22);
  --accent: #d0b27c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Vazirmatn", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 8% 0%, rgba(208, 178, 124, 0.16), transparent 35%), var(--bg);
}

a { color: inherit; text-decoration: none; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem min(4vw, 2rem);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg), transparent 25%);
}

.nav nav { display: flex; gap: 1rem; }
.logo { font-weight: 700; font-size: 1.1rem; }

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #f7e3bf);
  z-index: 30;
}

main {
  width: min(860px, 92vw);
  margin: 2.2rem auto 4rem;
}

.hero h1 {
  font-family: "Vazirmatn", "Manrope", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  margin: 0.3rem 0 0;
  max-width: 18ch;
}

.kicker {
  letter-spacing: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.post-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  background: var(--panel);
  transform: translateY(0);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

h2, h1 { font-family: "Vazirmatn", "Manrope", system-ui, sans-serif; font-weight: 700; }

.meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.chips span,
.chips a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
}

.article {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--panel);
}

.article .lead {
  color: var(--muted);
  font-size: 1.06rem;
}

.article :global(p) {
  line-height: 1.9;
  color: #e6e0d5;
}

.tag-listing h1 { margin-bottom: 0.8rem; }

@media (max-width: 720px) {
  .nav { flex-direction: column; gap: 0.6rem; }
}
