:root {
  --bg: #000000;
  --bg2: #090909;
  --bg3: #111111;
  --bg4: #1a1a1a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface2: rgba(255, 255, 255, 0.055);
  --surface3: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.15);
  --border3: rgba(255, 255, 255, 0.22);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.58);
  --text-tertiary: rgba(255, 255, 255, 0.34);
  --text-muted: rgba(255, 255, 255, 0.18);
  --accent: #ffffff;
  --accent-inv: #000000;
  --grid-line: rgba(255, 255, 255, 0.038);
  --nav-bg: rgba(0, 0, 0, 0.78);
  --card-bg: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 255, 255, 0.048);
  --indigo: #818cf8;
  --indigo-bg: rgba(99, 102, 241, 0.1);
  --indigo-border: rgba(99, 102, 241, 0.22);
  --green: #34d399;
  --green-bg: rgba(52, 211, 153, 0.09);
  --green-border: rgba(52, 211, 153, 0.2);
  --tag-bg: rgba(255, 255, 255, 0.06);
  --tag-border: rgba(255, 255, 255, 0.1);
  --tag-text: rgba(255, 255, 255, 0.55);
  --hero-grad: radial-gradient(
    ellipse 80% 50% at 50% -5%,
    rgba(99, 102, 241, 0.11) 0%,
    transparent 60%
  );
  --featured-grad: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(0, 0, 0, 0.88) 100%
  );
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);
  --progress-bg: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg2: #f2f2f3;
  --bg3: #eaeaeb;
  --bg4: #e0e0e2;
  --surface: rgba(255, 255, 255, 0.8);
  --surface2: rgba(255, 255, 255, 0.95);
  --surface3: rgba(0, 0, 0, 0.055);
  --border: rgba(0, 0, 0, 0.085);
  --border2: rgba(0, 0, 0, 0.14);
  --border3: rgba(0, 0, 0, 0.2);
  --text-primary: #09090b;
  --text-secondary: rgba(9, 9, 11, 0.58);
  --text-tertiary: rgba(9, 9, 11, 0.38);
  --text-muted: rgba(9, 9, 11, 0.22);
  --accent: #09090b;
  --accent-inv: #ffffff;
  --grid-line: rgba(0, 0, 0, 0.045);
  --nav-bg: rgba(250, 250, 250, 0.88);
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-hover: rgba(255, 255, 255, 1);
  --indigo: #6366f1;
  --indigo-bg: rgba(99, 102, 241, 0.07);
  --indigo-border: rgba(99, 102, 241, 0.18);
  --green: #059669;
  --green-bg: rgba(5, 150, 105, 0.07);
  --green-border: rgba(5, 150, 105, 0.18);
  --tag-bg: rgba(0, 0, 0, 0.045);
  --tag-border: rgba(0, 0, 0, 0.09);
  --tag-text: rgba(9, 9, 11, 0.55);
  --hero-grad: radial-gradient(
    ellipse 80% 50% at 50% -5%,
    rgba(99, 102, 241, 0.06) 0%,
    transparent 60%
  );
  --featured-grad: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(255, 255, 255, 0.92) 100%
  );
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
  --progress-bg: rgba(0, 0, 0, 0.08);
}

/* ════ RESET ════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background 0.3s,
    color 0.3s;
}

/* NOISE */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.55;
}

/* GRID BG */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Theme toggle */
.tt {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.tt:hover {
  border-color: var(--border2);
  color: var(--text-primary);
  background: var(--surface2);
}

.tt .is,
.tt .im {
  position: absolute;
  transition: all 0.3s;
}

[data-theme="dark"] .is {
  opacity: 1;
  transform: scale(1);
}

[data-theme="dark"] .im {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

[data-theme="light"] .is {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

[data-theme="light"] .im {
  opacity: 1;
  transform: scale(1);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: var(--accent);
  color: var(--accent-inv);
  text-decoration: none;
  transition: opacity 0.15s;
  border: none;
  cursor: pointer;
}

.btn-nav:hover {
  opacity: 0.85;
}

/* ════ READING PROGRESS BAR ════ */
#readProgress {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 499;
  height: 2px;
  background: var(--progress-bg);
  display: none;
}

#readProgressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: width 0.1s linear;
}

/* ════ ANIMATIONS ════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fu {
  animation: fadeUp 0.55s ease both;
}

.d1 {
  animation-delay: 0.07s;
}

.d2 {
  animation-delay: 0.14s;
}

.d3 {
  animation-delay: 0.21s;
}

.d4 {
  animation-delay: 0.28s;
}

@keyframes sp {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.sp {
  animation: sp 2s ease-in-out infinite;
}

/* scroll reveal */
.rev {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.rev.in {
  opacity: 1;
  transform: translateY(0);
}

/* ════ PAGE VIEWS ════ */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* ════════════════════
BLOG LIST VIEW
════════════════════ */

/* HERO section */
.blog-hero {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--hero-grad);
}

.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: "Geist Mono", monospace;
  margin-bottom: 20px;
}

.blog-hero h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: -4px;
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.blog-hero h1 em {
  font-style: normal;
  color: var(--text-tertiary);
}

.blog-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 300;
}

/* FEATURED POST */
.featured-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
  position: relative;
  z-index: 1;
}

.featured-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--card-bg);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition:
    border-color 0.25s,
    transform 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
}

.featured-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.featured-visual {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: var(--bg3);
  display: flex;
  align-items: flex-end;
}

.featured-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: var(--featured-grad);
}

.featured-content {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: "Geist Mono", monospace;
  border: 1px solid var(--tag-border);
  background: var(--tag-bg);
  color: var(--tag-text);
  margin-bottom: 16px;
  width: fit-content;
}

.post-tag.indigo {
  background: var(--indigo-bg);
  border-color: var(--indigo-border);
  color: var(--indigo);
}

.post-tag.green {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green);
}

.featured-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.featured-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: "Geist Mono", monospace;
  flex-wrap: wrap;
}

.meta-sep {
  color: var(--text-muted);
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* CATEGORY FILTERS */
.filters-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 0;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--border2);
  color: var(--text-primary);
  background: var(--surface2);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--accent-inv);
  border-color: var(--accent);
}

.post-count {
  margin-left: auto;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* POSTS GRID */
.posts-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 100px;
  position: relative;
  z-index: 1;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-bg);
  cursor: pointer;
  transition:
    border-color 0.22s,
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.post-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-card.hidden {
  display: none;
}

.post-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.post-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 16px;
  flex: 1;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: "Geist Mono", monospace;
}

.read-time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: "Geist Mono", monospace;
}

.read-link {
  font-size: 12px;
  color: var(--indigo);
  font-family: "Geist Mono", monospace;
  opacity: 0;
  transition: opacity 0.2s;
}

.post-card:hover .read-link {
  opacity: 1;
}

/* NEWSLETTER */
.newsletter-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 72px 24px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-section h2 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.05;
}

.newsletter-section p {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 28px;
}

.nl-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.nl-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.nl-input::placeholder {
  color: var(--text-muted);
}

.nl-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-bg);
}

.nl-btn {
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-inv);
  border: none;
  cursor: pointer;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.nl-btn:hover {
  opacity: 0.85;
}

.nl-note {
  font-size: 12px;
  color: var(--text-muted);
  font-family: "Geist Mono", monospace;
  margin-top: 12px;
}

/* ════════════════════
ARTICLE VIEW
════════════════════ */
.article-view {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: "Geist Mono", monospace;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.15s;
  margin: 32px 0 0 24px;
  position: relative;
  z-index: 1;
}

.back-btn:hover {
  color: var(--text-secondary);
}

/* Article layout: sidebar TOC + content */
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 100px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 48px;
  align-items: start;
}

/* Article TOC */
.article-toc {
  position: sticky;
  top: 88px;
}

.toc-title {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.toc-link {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 5px 0;
  border-left: 2px solid var(--border);
  padding-left: 12px;
  margin-bottom: 2px;
  transition:
    color 0.15s,
    border-color 0.15s;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--text-secondary);
  border-color: var(--border2);
}

.toc-link.active {
  color: var(--indigo);
  border-color: var(--indigo);
}

/* Article header */
.article-header {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -2.5px;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.article-excerpt {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 28px;
  font-family: "Lora", serif;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-info .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.author-info .role {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: "Geist Mono", monospace;
}

.article-meta-divider {
  color: var(--border2);
}

.article-meta-item {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: "Geist Mono", monospace;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Article hero image */
.article-hero-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
  background: var(--bg3);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Article prose */
.prose {
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 1.82;
  color: var(--text-secondary);
}

.prose h2 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  margin: 48px 0 16px;
  line-height: 1.2;
  scroll-margin-top: 88px;
}

.prose h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin: 32px 0 12px;
  scroll-margin-top: 88px;
}

.prose p {
  margin-bottom: 24px;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose a {
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid var(--indigo-border);
  transition: border-color 0.15s;
}

.prose a:hover {
  border-color: var(--indigo);
}

.prose ul,
.prose ol {
  margin: 0 0 24px 24px;
}

.prose li {
  margin-bottom: 10px;
}

.prose blockquote {
  border-left: 3px solid var(--indigo);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-tertiary);
  font-size: 17px;
}

.prose pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  overflow-x: auto;
  margin: 28px 0;
  font-family: "Geist Mono", monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.prose code {
  font-family: "Geist Mono", monospace;
  font-size: 0.88em;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--indigo);
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Article sidebar (right) */
.article-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--card-bg);
}

.aside-title {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.aside-post {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.aside-post:last-child {
  border-bottom: none;
}

.aside-post:hover .aside-post-title {
  color: var(--indigo);
}

.aside-post-tag {
  font-size: 10px;
  color: var(--text-muted);
  font-family: "Geist Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aside-post-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: color 0.15s;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 6px;
}

.share-btn:hover {
  border-color: var(--border2);
  color: var(--text-primary);
  background: var(--surface2);
}

.share-btn:last-child {
  margin-bottom: 0;
}

/* Article tags row */
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 56px;
}

.article-tag {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-family: "Geist Mono", monospace;
  border: 1px solid var(--tag-border);
  background: var(--tag-bg);
  color: var(--tag-text);
}

/* Related posts */
.related-section {
  border-top: 1px solid var(--border);
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.related-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ════ FOOTER ════ */

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: grid;
  place-items: center;
}

.fot-cpy-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  font-family: "Geist Mono";
}
.fot-ai-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  font-family: "Geist Mono";
}

[data-theme="light"] .fot-ai-text{

  color: rgba(0, 0, 0, 0.5);
}
[data-theme="light"] .fot-cpy-item {

  color: rgba(0, 0, 0, 0.5);
}

/* ════ RESPONSIVE ════ */
@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc,
  .article-sidebar {
    display: none;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    min-height: 240px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nl-form {
    flex-direction: column;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}
