/* ============================================================
   九日 Blog — Editorial Magazine Redesign
   纸墨质感 · 沉浸阅读 · 大胆排版
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --accent: #07C160;
  --accent-dark: #048C48;
  --accent-light: #E8F8EE;
  --accent-glow: rgba(7,193,96,0.10);

  /* Paper + Ink palette */
  --bg: #FCFAF7;
  --bg-warm: #F5F0E8;
  --surface: #FFFFFF;
  --text: #1B1816;
  --text-secondary: #544F49;
  --text-muted: #8A8278;
  --ink: #3A342E;
  --ink-light: #6B635A;

  --border: #E6E0D6;
  --border-light: #F0EBE3;
  --border-strong: #D5CEC2;

  /* Shadow system — real depth */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 4px 8px rgba(0,0,0,0.03);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.07), 0 16px 40px rgba(0,0,0,0.05);
  --shadow-accent: 0 2px 12px rgba(7,193,96,0.18), 0 0 0 1px rgba(7,193,96,0.08);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   VISIBLE TEXTURE — SVG noise overlay (NOT subtle this time)
   ═══════════════════════════════════════════════════════════ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' 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)'/%3E%3C/svg%3E");
}

main { flex: 1; position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════
   HEADER — clean, minimal, stays out of the way
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(252,250,247,0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-light);
  transition: transform 0.6s ease;
}
.site-header.header-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}
.header-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-title {
  font-size: 18px; font-weight: 750; color: var(--text);
  text-decoration: none; letter-spacing: -0.4px;
  transition: color 0.25s var(--ease-out);
}
.site-title:hover { color: var(--accent); }

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  font-size: 14px; font-weight: 520; color: var(--text-secondary);
  text-decoration: none; padding: 7px 16px; border-radius: 8px;
  transition: all 0.25s var(--ease-out);
}
.site-nav a:hover { color: var(--accent); background: var(--accent-light); }

/* --- Nav dropdown --- */
.nav-dropdown { position: relative; display: flex; }
.nav-dropdown-trigger {
  font-size: 14px; font-weight: 520; color: var(--text-secondary);
  padding: 7px 16px; border-radius: 8px;
  transition: all 0.25s var(--ease-out);
  cursor: pointer; user-select: none;
}
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--accent); background: var(--accent-light); }
.nav-dropdown-menu {
  opacity: 0;
  pointer-events: none;
  position: absolute; top: 100%; right: 0;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  padding: 8px;
  z-index: 200;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  transform: translateY(-6px);
}
/* 透明桥接 — 填补 trigger 和 menu 之间的空隙，防止 hover 断开 */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

.dropdown-project {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: background 0.2s;
}
.dropdown-project:hover { background: var(--accent-light); }
.dropdown-project-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(7,193,96,0.12), rgba(7,193,96,0.04));
  color: var(--accent);
}
.dropdown-project-info { flex: 1; min-width: 0; }
.dropdown-project-name {
  font-size: 14px; font-weight: 650; line-height: 1.3;
}
.dropdown-project-desc {
  font-size: 12px; color: var(--text-muted); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dropdown-project-arrow {
  flex-shrink: 0; font-size: 14px; color: var(--text-muted);
  opacity: 0.5; transition: opacity 0.2s;
}
.dropdown-project:hover .dropdown-project-arrow { opacity: 1; color: var(--accent); }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); padding: 4px 8px; }

.mobile-nav {
  display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
  background: rgba(252,250,247,0.98); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light); padding: 6px 14px 14px;
  transform: translateY(-120%); opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.mobile-nav.active { transform: translateY(0); opacity: 1; }
.mobile-nav a { display: block; padding: 12px 18px; font-size: 16px; font-weight: 520; color: var(--text); text-decoration: none; border-radius: 8px; }
.mobile-nav a:hover { background: var(--accent-light); color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   HERO — asymmetric, bold typography
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 90vh;
  display: flex; align-items: center;
  padding: 96px 32px 64px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 75% 20%, rgba(7,193,96,0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

/* Hero floating over video background */
.hero-float {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 32px 64px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  transition: opacity 0.6s ease;
}
.hero-float .hero-text { max-width: 560px; }
.hero-float .hero-text,
.hero-float .hero-title,
.hero-float .hero-sub,
.hero-float .hero-badge,
.hero-float .hero-glyph {
  transition: color 0.8s ease, background 0.8s ease, border-color 0.8s ease, text-shadow 0.8s ease;
}

/* Inverted outline buttons for video background */
.btn-outline-inv {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}
.btn-outline-inv:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-float {
    padding: 70px 20px 40px;
    align-items: flex-end;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-float .hero-visual { display: none; }
}

.hero-inner {
  max-width: 1300px; margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text { max-width: 560px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 620; color: var(--accent-dark);
  background: var(--accent-light); padding: 6px 16px;
  border-radius: 20px; margin-bottom: 32px; letter-spacing: 0.2px;
  border: 1px solid rgba(7,193,96,0.14);
}
.hero-badge-dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity:1; transform:scale(1) } 50% { opacity:0.3; transform:scale(0.8) } }

.hero-title {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 850; line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 24px; color: var(--text);
}
.hero-title em {
  font-style: normal; color: var(--accent);
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute; bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(7,193,96,0.2));
  border-radius: 3px;
}

.hero-sub {
  font-size: 18px; color: var(--text-secondary);
  margin-bottom: 40px; line-height: 1.75; max-width: 440px;
}

.hero-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual — right side decorative */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-glyph {
  font-size: clamp(180px, 24vw, 340px);
  font-weight: 900; line-height: 0.8;
  color: var(--border);
  user-select: none; pointer-events: none;
  letter-spacing: -0.05em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 620;
  border-radius: 10px; text-decoration: none; cursor: pointer;
  border: none;
  transition:
    transform 0.2s var(--ease-spring),
    box-shadow 0.3s var(--ease-out),
    background 0.25s var(--ease-out);
}
.btn:active {
  transform: scale(0.96);
  transition: transform 0.06s var(--ease-out);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(7,193,96,0.22);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(7,193,96,0.30);
}
.btn-outline {
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-accent {
  background: var(--surface); color: var(--accent-dark);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 0 rgba(7,193,96,0.25);
  font-weight: 680;
  animation: accent-pulse 2.4s ease-in-out infinite;
}
.btn-accent:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(7,193,96,0.35);
}
@keyframes accent-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(7,193,96,0.25); }
  50% { box-shadow: 0 0 0 10px rgba(7,193,96,0); }
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS — generous spacing, alternating backgrounds
   ═══════════════════════════════════════════════════════════ */
.section { padding: 112px 32px; }
.section-dark { background: var(--bg-warm); }
.section-accent { background: linear-gradient(135deg, rgba(7,193,96,0.025) 0%, transparent 100%); }

.section-inner { max-width: 1300px; margin: 0 auto; }

/* Max 1 eyebrow per 3 sections — used sparingly */
.section-label {
  font-size: 12px; font-weight: 650;
  letter-spacing: 0.10em;
  color: var(--accent-dark);
  margin-bottom: 8px;
  opacity: 0.7;
  text-transform: uppercase;
}
.section-title {
  font-size: 40px; font-weight: 780; letter-spacing: -1.2px;
  margin-bottom: 56px; color: var(--text);
  line-height: 1.1;
}
.section-title-sm {
  font-size: 30px; font-weight: 720; letter-spacing: -0.8px;
  margin-bottom: 36px; color: var(--text);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — split layout with stats
   ═══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  align-items: start;
}
.about-text p {
  font-size: 17px; color: var(--text-secondary);
  margin-bottom: 20px; line-height: 1.9; max-width: 580px;
}
.about-text strong { color: var(--accent-dark); font-weight: 650; }

.about-stats { display: flex; flex-direction: column; gap: 14px; }

.stat {
  padding: 26px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.4s var(--ease-out),
    transform 0.3s var(--ease-spring);
  border: 1px solid var(--border-light);
  position: relative; overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
  border-radius: 2px 0 0 2px;
}
.stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.stat-num { font-size: 38px; font-weight: 820; color: var(--accent); line-height: 1; }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 5px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   LIVE PROJECTS — curated deployed projects
   ═══════════════════════════════════════════════════════════ */
.live-projects-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.live-project-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.3s var(--ease-out),
    transform 0.25s var(--ease-spring),
    border-color 0.3s var(--ease-out);
}
.live-project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.live-project-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(7,193,96,0.12), rgba(7,193,96,0.04));
  color: var(--accent);
}
.live-project-body { flex: 1; min-width: 0; }
.live-project-body h3 {
  font-size: 17px; font-weight: 650;
  margin: 0 0 4px 0;
}
.live-project-body p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.65; margin: 0 0 10px 0;
}
.live-project-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.live-project-tags span {
  font-size: 11.5px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.2px;
}
.live-project-arrow {
  flex-shrink: 0;
  font-size: 20px; color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}
.live-project-card:hover .live-project-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .live-project-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
  }
  .live-project-arrow {
    align-self: flex-end;
    margin-top: -8px;
  }
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS — card grid with depth
   ═══════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}
.project-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition:
    box-shadow 0.4s var(--ease-out),
    transform 0.35s var(--ease-spring);
  position: relative; overflow: hidden;
}
.project-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(7,193,96,0.35));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.project-card:hover::after { transform: scaleX(1); }
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.project-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.project-lang {
  font-size: 11.5px; font-weight: 700; padding: 4px 12px;
  border-radius: 10px; background: var(--accent); color: #fff;
  letter-spacing: 0.3px;
}
.project-card h3 { font-size: 19px; font-weight: 650; margin-bottom: 10px; line-height: 1.3; }
.project-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 18px; }
.project-meta {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
  padding-top: 16px; border-top: 1px solid var(--border-light);
}

/* Skeleton loading */
.projects-loading, .projects-error, .projects-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 56px 0;
  color: var(--text-muted); font-size: 14px;
}
.projects-loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px; padding: 0; text-align: left;
}
.projects-loading::before,
.projects-loading::after {
  content: "";
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  height: 200px;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
  0% { opacity: 1; }
  50% { opacity: 0.55; }
  100% { opacity: 1; }
}
.projects-loading::after { display: none; }
@media (min-width: 769px) { .projects-loading::after { display: block; } }

.section-more { margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════
   BLOG POSTS — editorial list
   ═══════════════════════════════════════════════════════════ */
.post-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.post-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px; align-items: start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 30px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  transition:
    box-shadow 0.4s var(--ease-out),
    transform 0.35s var(--ease-spring),
    border-color 0.3s var(--ease-out);
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border);
}
.post-card:nth-child(1) {
  border-left: 3px solid var(--accent);
}

.post-card-date {
  font-size: 13.5px; font-weight: 620;
  color: var(--text-muted); padding-top: 5px;
  text-align: right; letter-spacing: 0.2px; white-space: nowrap;
}
.post-card-body h2 { font-size: 19px; font-weight: 660; margin-bottom: 8px; line-height: 1.35; }
.post-card-body h2 a { color: var(--text); text-decoration: none; transition: color 0.2s var(--ease-out); }
.post-card-body h2 a:hover { color: var(--accent); }
.post-card-body p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; }

.post-card-badge {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; padding: 3px 10px;
  background: var(--accent); color: #fff;
  border-radius: 8px; margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.post-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.post-tag {
  font-size: 12px; font-weight: 520; padding: 4px 12px;
  background: var(--accent-light); color: var(--accent-dark);
  border-radius: 10px;
}

.writing-more { color: var(--text-muted); font-size: 15px; margin-top: 28px; }

/* ═══════════════════════════════════════════════════════════
   CONTACT — warm footer
   ═══════════════════════════════════════════════════════════ */
.contact-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 15.5px; font-weight: 550;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition:
    box-shadow 0.3s var(--ease-out),
    transform 0.25s var(--ease-spring),
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}
.contact-link:hover {
  border-color: var(--accent); color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.contact-link svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  padding: 48px 32px;
  border-top: 1.5px solid var(--border);
  background: var(--surface);
  position: relative; z-index: 1;
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.site-footer p { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.footer-meta { font-size: 13px !important; color: var(--text-muted) !important; font-weight: 400 !important; margin-top: 5px; }

/* ═══════════════════════════════════════════════════════════
   ARTICLE PAGE — immersive reading, single column, NO SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.article-page {
  padding-top: 64px;
  background:
    radial-gradient(ellipse 50% 25% at 50% 0%, rgba(0,0,0,0.015) 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
}

/* Single-column centered, no sidebar */
.article-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}

/* Comic pages — wider reading area so panels render larger */
.article-layout.comic-layout {
  max-width: 1120px;
}
.article-layout.comic-layout .article-content > p:first-child {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.article-main { /* single column, full width */ }

.article-sidebar { display: none; } /* REMOVED TOC sidebar */

.article-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 520;
  color: var(--text-muted); text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s var(--ease-out);
}
.article-back:hover { color: var(--accent); }

.article-hero-image {
  margin: 0 0 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
}
.article-hero-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Article header — editorial chapter opener */
.article-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-strong);
  text-align: center;
}
.article-header h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 780; line-height: 1.2;
  letter-spacing: -0.8px; margin-bottom: 16px;
  color: var(--text);
}
.article-meta {
  font-size: 14.5px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.article-tags { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.article-tag {
  font-size: 12.5px; font-weight: 520; padding: 4px 12px;
  background: var(--accent-light); color: var(--accent-dark);
  border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE CONTENT — the reading experience
   ═══════════════════════════════════════════════════════════ */
.article-content {
  font-size: 18px; line-height: 1.82;
  color: var(--ink);
  letter-spacing: 0.01em;
  word-break: break-word;
}

.article-content h2 {
  font-size: 26px; font-weight: 720;
  margin: 56px 0 20px;
  padding-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.5px;
  border-bottom: 2px solid var(--border);
  scroll-margin-top: 84px;
}
.article-content h3 {
  font-size: 20px; font-weight: 660;
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  scroll-margin-top: 84px;
}
.article-content h4 {
  font-size: 18px; font-weight: 650;
  margin: 30px 0 10px;
  color: var(--text-secondary);
}

.article-content p { margin: 0 0 20px; }
.article-content strong { color: var(--text); font-weight: 680; }

.article-content a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(7,193,96,0.3);
  transition: border-color 0.2s var(--ease-out);
}
.article-content a:hover { border-bottom-color: var(--accent); }

/* Blockquote — editorial pull-quote style */
.article-content blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}
.article-content blockquote p { margin: 4px 0; }
.article-content blockquote strong { color: var(--accent-dark); }

/* Code */
.article-content code {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 14px;
  background: #F3F0E9;
  color: #C1123A;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 500;
}

.article-content pre,
.article-content pre.astro-code {
  background: #F9F7F2 !important;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
  overflow-x: auto;
  font-size: 14.5px;
  line-height: 1.75;
  box-shadow: var(--shadow-xs);
}
.article-content pre code,
.article-content pre.astro-code code,
.article-content pre span {
  background: transparent !important;
  color: var(--ink) !important;
  padding: 0;
  font-size: inherit;
}
.article-content pre.astro-code span {
  color: inherit !important;
}

.article-content ul,
.article-content ol {
  margin: 14px 0 28px;
  padding-left: 26px;
}
.article-content li { margin: 8px 0; }

.article-content img {
  max-width: 100%; height: auto; display: block;
  margin: 32px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border-strong);
  margin: 52px 0;
}

.article-content table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.article-content thead th {
  background: var(--accent-light);
  font-weight: 680; padding: 14px 18px;
  border-bottom: 2px solid var(--border-strong); text-align: left;
  font-size: 14px;
  color: var(--accent-dark);
}
.article-content tbody th {
  background: var(--accent-light);
  font-weight: 650; padding: 12px 18px;
  border: 1px solid var(--border-light); text-align: left;
}
.article-content td { padding: 12px 18px; border: 1px solid var(--border-light); }
.article-content tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }
.article-content tbody tr:hover { background: rgba(7,193,96,0.04); }

/* Audio player */
.audio-player {
  display: flex; align-items: center; gap: 14px;
  margin: 24px auto 0;
  padding: 12px 20px;
  max-width: 420px;
  background: #F9F7F2;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.audio-player.playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(7,193,96,0.12);
}
.audio-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.2s;
}
.audio-btn:hover { transform: scale(1.08); }
.audio-btn:active { transform: scale(0.94); }
.audio-progress-track {
  flex: 1; height: 5px; background: var(--border);
  border-radius: 3px; cursor: pointer; overflow: hidden;
}
.audio-progress-fill {
  height: 100%; width: 0%; background: var(--accent);
  border-radius: 3px; transition: width 0.1s linear;
}
.audio-time { font-size: 13px; color: var(--text-secondary); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.audio-dur { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Chapter navigation */
.chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1.5px solid var(--border);
}
.chapter-nav-link {
  display: flex; flex-direction: column; gap: 5px;
  padding: 20px 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.chapter-nav-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.chapter-nav-next { text-align: right; }
.chapter-nav-label {
  font-size: 12.5px; font-weight: 650; color: var(--accent);
  letter-spacing: 0.3px;
}
.chapter-nav-title {
  font-size: 14.5px; font-weight: 520; color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   LISTING PAGES — article archives
   ═══════════════════════════════════════════════════════════ */
.listing-page {
  padding-top: 64px;
  min-height: calc(100vh - 120px);
}
.listing-hero { padding: 56px 32px 32px; }
.listing-hero-inner {
  max-width: 1300px; margin: 0 auto;
  padding-bottom: 28px;
  border-bottom: 1.5px solid var(--border);
}
.listing-hero h1 {
  font-size: 32px; font-weight: 750; letter-spacing: -0.8px;
  margin-bottom: 10px; color: var(--text);
}
.listing-hero p {
  font-size: 16px; color: var(--text-muted); max-width: 540px; line-height: 1.7;
}
.listing-stats { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.listing-stat { display: flex; flex-direction: row; align-items: baseline; gap: 6px; }
.listing-stat-num { font-size: 15px; font-weight: 720; color: var(--accent); }
.listing-stat-label { font-size: 14px; color: var(--text-muted); }

.listing-body { max-width: 1300px; margin: 0 auto; padding: 32px 32px 96px; }

.listing-grid { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 860px; margin: 0 auto; }
.listing-card {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 32px; align-items: start;
  background: var(--surface); border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition:
    box-shadow 0.35s var(--ease-out),
    transform 0.3s var(--ease-spring),
    border-color 0.3s var(--ease-out);
}
.listing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border);
}
.listing-card:nth-child(1) { border-left: 3px solid var(--accent); }

.listing-card-date {
  font-size: 13.5px; font-weight: 620; color: var(--text-muted);
  padding-top: 5px; text-align: right; white-space: nowrap;
}
.listing-card-body h3 { font-size: 18px; font-weight: 650; margin-bottom: 6px; line-height: 1.35; }
.listing-card-body h3 a { color: var(--text); text-decoration: none; transition: color 0.2s var(--ease-out); }
.listing-card-body h3 a:hover { color: var(--accent); }
.listing-card-body p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; }

.listing-empty { text-align: center; padding: 56px 0; color: var(--text-muted); }
.listing-empty p { font-size: 16px; }

/* ═══════════════════════════════════════════════════════════
   POETRY — manuscript aesthetic
   ═══════════════════════════════════════════════════════════ */
.article-page:has(.poem-content) {
  background:
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(180,160,120,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #F7F3EB 0%, #F2EDE2 100%);
}

.article-page:has(.poem-content) .article-layout {
  max-width: 800px;
  padding: 72px 28px 96px;
}

.article-page:has(.poem-content) .article-header {
  text-align: center; border-bottom: none;
  padding-bottom: 0; margin-bottom: 48px;
}

.article-page:has(.poem-content) .article-header h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 820; letter-spacing: -0.5px;
}
.article-page:has(.poem-content) .article-tags { justify-content: center; margin-top: 16px; }
.article-page:has(.poem-content) .article-back { margin-bottom: 48px; }

.article-content.poem-content {
  max-width: 720px; margin: 0 auto;
  background: #FDFBF5;
  border-radius: var(--radius-lg);
  padding: 52px 56px 48px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 4px 12px rgba(0,0,0,0.04),
    0 12px 32px rgba(0,0,0,0.05);
  border: 1.5px solid #E6DECC;
}

.article-content.poem-content h1 {
  font-size: 18px; font-weight: 520; margin-bottom: 12px;
  text-align: center; color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.poem-date {
  font-size: 15px; color: var(--text-muted); margin-bottom: 28px; text-align: center;
}

/* Divider */
.article-content.poem-content hr {
  border: none; margin: 56px auto 44px; width: 120px;
  border-top: 1px solid #d5cdb8; position: relative;
}
.article-content.poem-content hr::after {
  content: "❖";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #FDFBF5; padding: 0 18px;
  color: #c9a96e; font-size: 13px; line-height: 1;
}

/* Appreciation section */
.article-content.poem-content h2 {
  font-size: 17px; font-weight: 700; margin: 0 0 18px;
  padding-bottom: 12px; color: #5a4e3c;
  border-bottom: 1px solid #e8e0d0;
}
.article-content.poem-content h2 ~ p {
  text-align: left; font-size: 15.5px; line-height: 2.1;
  letter-spacing: 0.02em; margin: 0 0 16px;
  color: var(--text-secondary);
  background: #FFFFFF;
  border-radius: 10px; padding: 20px 26px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.04);
}

/* Verse body */
.verse-body { margin-bottom: 0; }
.verse-body .line {
  display: block;
  font-family: "PingFang SC", "Noto Serif SC", "STSong", "Songti SC", "KaiTi", "STKaiti", serif;
  font-size: 22px; line-height: 2.2;
  letter-spacing: 0.06em;
  color: #2a2218;
}

.verse-shi { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; }
.verse-shi .line { padding: 8px 0; text-align: center; }

.verse-ci { padding: 12px 0; }
.verse-ci .stanza { padding: 20px 14px; position: relative; }
.verse-ci .stanza-upper { padding-bottom: 10px; }
.verse-ci .stanza-lower { padding-top: 10px; }
.verse-ci .stanza-upper + .stanza-lower::before {
  content: ""; display: block;
  width: 70px; height: 1px;
  margin: -6px auto 16px;
  background: linear-gradient(90deg, transparent, #c9a96e, transparent);
}
.verse-ci .stanza-divider {
  width: 70px; height: 1px;
  margin: 8px auto 16px;
  background: linear-gradient(90deg, transparent, #c9a96e, transparent);
}
.verse-ci .line { font-size: 20px; line-height: 2.5; }
.verse-ci .stanza-lower .line:first-child { font-weight: 620; color: #4a3a20; }

.verse-guti { padding: 12px 0; }
.verse-guti .verse-line {
  padding: 8px 0;
  font-family: "PingFang SC", "Noto Serif SC", "STSong", "KaiTi", serif;
  font-size: 22px; line-height: 2.2;
  letter-spacing: 0.05em; color: #2a2218;
}

/* ═══════════════════════════════════════════════════════════
   ENHANCED ARTICLE COMPONENTS — diet-brain article
   ═══════════════════════════════════════════════════════════ */

/* ── Pathways Grid (9-card overview) ── */
.pathways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0 18px;
}
.pathway-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.25s var(--ease-out);
}
.pathway-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pathway-card .pathway-num {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 13px; font-weight: 700; color: #fff;
}
.pathway-card[data-color="red"] .pathway-num { background: #E8553D; }
.pathway-card[data-color="purple"] .pathway-num { background: #7C3AED; }
.pathway-card[data-color="blue"] .pathway-num { background: #2563EB; }
.pathway-card[data-color="green"] .pathway-num { background: #059669; }
.pathway-card[data-color="orange"] .pathway-num { background: #EA580C; }
.pathway-card[data-color="teal"] .pathway-num { background: #0D9488; }
.pathway-card[data-color="brown"] .pathway-num { background: #92400E; }
.pathway-card[data-color="pink"] .pathway-num { background: #DB2777; }
.pathway-card[data-color="indigo"] .pathway-num { background: #4F46E5; }
.pathway-card strong {
  font-size: 13.5px; font-weight: 650; color: var(--text);
  line-height: 1.3;
}
.pathway-card .pathway-desc {
  font-size: 11.5px; color: var(--text-muted); line-height: 1.4;
}
.pathway-center {
  text-align: center; font-size: 16px; font-weight: 700;
  color: var(--text); padding: 14px;
  background: linear-gradient(135deg, rgba(7,193,96,0.06), rgba(7,193,96,0.02));
  border-radius: var(--radius);
  border: 1.5px dashed rgba(7,193,96,0.2);
  margin-bottom: 36px;
}

/* ── Process Chain (glucose rollercoaster) ── */
.process-chain {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; justify-content: center;
  padding: 24px 16px; margin: 20px 0;
  background: linear-gradient(135deg, #FFF8F6, #FFF5F0);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232,85,61,0.12);
}
.process-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 14px;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); min-width: 90px;
  text-align: center; font-size: 13px; color: var(--text-secondary);
  line-height: 1.4;
}
.process-step .step-icon { font-size: 24px; }
.process-step strong { color: var(--text); font-size: 14px; }
.process-step.danger {
  background: #FEF2F2; border: 1px solid rgba(220,38,38,0.2);
}
.process-step.danger strong { color: #DC2626; }
.step-arrow {
  font-size: 20px; color: var(--text-muted); font-weight: 700;
}

/* ── Neurotransmitter Switch Demo ── */
.switch-demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 24px 0;
}
.switch-side {
  border-radius: var(--radius-lg); padding: 20px;
}
.switch-side.bad {
  background: linear-gradient(135deg, #FFF5F5, #FFF0F0);
  border: 1px solid rgba(220,38,38,0.1);
}
.switch-side.good {
  background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
  border: 1px solid rgba(7,193,96,0.15);
}
.switch-label {
  font-size: 16px; font-weight: 700; margin-bottom: 14px;
  text-align: center; padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.switch-path {
  display: flex; flex-direction: column; gap: 6px;
}
.switch-path span {
  font-size: 13px; color: var(--text-secondary);
  padding: 6px 10px; background: rgba(255,255,255,0.7);
  border-radius: 6px; text-align: center;
}
.switch-path .result {
  margin-top: 6px; font-size: 14px; line-height: 1.6;
  background: rgba(255,255,255,0.9); font-weight: 600;
  border: 1px solid rgba(0,0,0,0.06);
}

/* ── Gut-Brain Grid ── */
.gut-brain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 20px 0;
}
.gb-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent);
  transition: box-shadow 0.25s var(--ease-out);
}
.gb-card:hover { box-shadow: var(--shadow-sm); }
.gb-card h4 {
  font-size: 15px; font-weight: 700; margin-bottom: 8px;
  color: var(--text);
}
.gb-card p {
  font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); margin: 0;
}

/* ── Inflammation Chain ── */
.inflammation-chain {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 18px 16px; margin: 18px 0;
  background: linear-gradient(90deg, #FFF7ED, #FFF1F2, #FEF2F2);
  border-radius: var(--radius); font-size: 13.5px;
  justify-content: center;
}
.inflammation-chain span {
  padding: 6px 12px; background: var(--surface);
  border-radius: 6px; font-weight: 520; color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}
.inflammation-chain span.danger {
  background: #FEF2F2; color: #DC2626; font-weight: 700;
}

/* ── Omega Ratio Scale ── */
.ratio-scale {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 18px 0;
}
.ratio-scale > div {
  text-align: center; padding: 18px 14px; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ratio-good { background: #F0FDF4; border: 1px solid rgba(7,193,96,0.2); }
.ratio-warn { background: #FFFBEB; border: 1px solid rgba(234,179,8,0.2); }
.ratio-bad { background: #FEF2F2; border: 1px solid rgba(220,38,38,0.15); }
.ratio-scale span { font-size: 12px; color: var(--text-muted); }
.ratio-scale strong { font-size: 18px; }
.ratio-scale small { font-size: 11px; color: var(--text-muted); }

/* ── Persona Cards ── */
.persona-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 24px; margin: 18px 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}
.persona-card > p:first-of-type {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-light);
}
.persona-card table {
  font-size: 13.5px;
}
.persona-card table th {
  background: var(--bg-warm); font-size: 13px;
}

/* ── Timeline ── */
.timeline {
  position: relative; padding-left: 40px; margin: 24px 0;
}
.timeline::before {
  content: ""; position: absolute; left: 16px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--accent), rgba(7,193,96,0.15));
  border-radius: 1px;
}
.tl-item {
  position: relative; margin-bottom: 20px;
}
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.tl-time {
  font-size: 14px; font-weight: 700; color: var(--accent-dark);
  margin-bottom: 3px;
}
.tl-content {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.tl-content strong { color: var(--text); font-weight: 650; }
.tl-content small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 12.5px; }

/* ── Mantra Blockquote ── */
blockquote.mantra {
  background: linear-gradient(135deg, rgba(7,193,96,0.04), rgba(7,193,96,0.01));
  border-left: 4px solid var(--accent);
  font-size: 17px; font-weight: 620; font-style: normal;
  text-align: center; line-height: 2.2; letter-spacing: 0.02em;
  padding: 28px 24px; color: var(--text);
}

/* ── Table Wrapper (scrollable on mobile) ── */
.table-wrapper {
  overflow-x: auto; margin: 20px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.table-wrapper table { margin: 0; border: none; }

/* ── Reference list styling ── */
.article-content ol + p + ol {
  font-size: 14px; color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE (extended)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { display: none; }
  .hero-text { max-width: 100%; }
  .hero-title { font-size: clamp(40px, 8vw, 64px); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat { flex: 1; min-width: 110px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 12px 20px; }
  .site-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav { display: block; }

  .hero { padding: 80px 20px 56px; min-height: 80vh; }
  .hero-inner { gap: 16px; }
  .hero-title { font-size: 36px; letter-spacing: -1.2px; }
  .hero-sub { font-size: 16px; }

  .section { padding: 72px 20px; }
  .section-title { font-size: 30px; margin-bottom: 36px; }

  .projects-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; gap: 6px; }
  .post-card-date { text-align: left; }

  .article-layout { padding: 32px 18px 64px; max-width: 100%; }
  .article-header h1 { font-size: 26px; }
  .article-content { font-size: 16px; line-height: 1.9; }
  .article-content h2 { font-size: 22px; }

  /* Enhanced components — mobile */
  .pathways-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pathway-card { padding: 12px 8px; }
  .process-chain { flex-direction: column; gap: 4px; }
  .step-arrow { transform: rotate(90deg); }
  .switch-demo { grid-template-columns: 1fr; }
  .gut-brain-grid { grid-template-columns: 1fr; }
  .ratio-scale { grid-template-columns: 1fr; }
  .timeline { padding-left: 32px; }
  .tl-item::before { left: -24px; }

  .listing-card { grid-template-columns: 1fr; gap: 4px; }
  .listing-card-date { text-align: left; }

  .article-page:has(.poem-content) .article-layout { padding: 40px 12px 64px; }
  .article-content.poem-content { padding: 36px 20px 36px; margin: 0 8px; }
  .verse-shi .line, .verse-guti .verse-line { font-size: 19px; }
  .verse-ci .line { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .hero-links { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .skills-cloud { gap: 8px; }
  .skill-pill { font-size: 13.5px; padding: 9px 18px; }
  .section { padding: 56px 16px; }
  .article-content.poem-content { padding: 28px 14px 32px; }
}
