@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #0a0e17;
  --surface: #111827;
  --surface2: #1a2235;
  --accent: #00e5a0;
  --accent2: #0099ff;
  --gold: #f0c040;
  --text: #e8edf5;
  --muted: #8896b0;
  --border: #1e2d45;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Lora', serif;
  --font-mono: 'DM Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
  padding: 120px 2rem 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-bio {
  max-width: 660px;
  font-size: 1.05rem;
  color: #b0bccc;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  letter-spacing: 0.05em;
}

.pill.active { border-color: var(--accent); color: var(--accent); background: rgba(0,229,160,0.06); }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: #0a0e17;
}
.btn-primary:hover { background: #00ffb3; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── DIVIDER ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── POSTS GRID ── */
.posts-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.post-card {
  background: var(--bg);
  padding: 2rem;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.post-card:hover { background: var(--surface); }
.post-card:hover .post-arrow { transform: translate(4px, -4px); color: var(--accent); }

.post-card-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--border);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.post-card-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.post-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.post-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.post-arrow {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1rem;
  color: var(--border);
  transition: all 0.2s;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: center;
}

.post-read-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #4a5a72;
}

/* ── FEATURED POST (first card big) ── */
.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem;
}

.post-card.featured h3 {
  font-size: 1.75rem;
  line-height: 1.15;
}

.post-card.featured p {
  font-size: 0.95rem;
}

.featured-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.featured-label::before { content: '★'; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

/* ── ARTICLE PAGE ── */
.article-hero {
  padding: 100px 2rem 60px;
  max-width: 760px;
  margin: 0 auto;
}

.article-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.byline-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
}
.byline-date, .byline-read {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  color: var(--text);
}

.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.article-body p { margin-bottom: 1.5rem; color: #c0ccdc; }

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15em 0.45em;
  border-radius: 3px;
  color: var(--accent);
}

.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 2rem 0;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  color: #8ecfb0;
  line-height: 1.7;
}

.article-body ul, .article-body ol {
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
  color: #c0ccdc;
}
.article-body li { margin-bottom: 0.5rem; }

.article-body blockquote {
  border-left: 3px solid var(--accent2);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #a0b0c8;
}

.article-nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-link {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag  { animation: fadeUp 0.6s ease both; }
.hero h1   { animation: fadeUp 0.6s 0.1s ease both; }
.hero-bio  { animation: fadeUp 0.6s 0.2s ease both; }
.hero-pills { animation: fadeUp 0.6s 0.3s ease both; }
.hero-cta  { animation: fadeUp 0.6s 0.4s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .post-card.featured { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  footer { flex-direction: column; }
}
