@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');

/* ============================================================
   CSS 变量 & 全局重置
   ============================================================ */
:root {
  --c-bg: #0d0d0d;
  --c-primary: #8000ff;
  --c-accent: #ff00ff;
  --c-green: #00ff9f;
  --c-text: #e0e0e0;
  --c-text-dim: #888;
  --c-border: rgba(128, 0, 255, 0.35);
  --c-card-bg: #111118;
  --c-nav-bg: rgba(13, 13, 13, 0.96);
  --font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  --nav-h: 56px;
  --radius: 10px;
  --glow-primary: 0 0 8px #8000ff, 0 0 20px rgba(128, 0, 255, 0.4);
  --glow-accent: 0 0 8px #ff00ff, 0 0 20px rgba(255, 0, 255, 0.4);
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
  color: var(--c-accent);
  text-shadow: var(--glow-accent);
}

ul, ol {
  list-style: none;
}

/* ============================================================
   扫描线覆盖层
   ============================================================ */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* ============================================================
   导航 details/summary 结构
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-nav-bg);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
}

.site-nav summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--nav-h);
  padding: 0 20px;
  cursor: pointer;
  user-select: none;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-shadow: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.brand-icon-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  box-shadow: var(--glow-primary);
}

.nav-toggle-label {
  flex: 1;
  font-size: 0.75rem;
  color: var(--c-text-dim);
  letter-spacing: 0.1em;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-shadow: var(--glow-accent);
  box-shadow: 0 0 8px rgba(255, 0, 255, 0.2);
  transition: background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background: rgba(255, 0, 255, 0.12);
  box-shadow: var(--glow-accent);
  color: var(--c-accent);
}

.site-nav[open] .nav-toggle-label {
  color: var(--c-primary);
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 20px 14px;
  border-top: 1px solid var(--c-border);
  background: rgba(13, 13, 13, 0.98);
}

.nav-menu li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--c-text-dim);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all var(--transition);
  min-height: 40px;
  line-height: 24px;
}

.nav-menu li a:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
  text-shadow: var(--glow-primary);
  background: rgba(128, 0, 255, 0.08);
}

/* ============================================================
   Glitch 效果
   ============================================================ */
@keyframes glitch-skew {
  0%, 100% { transform: skewX(0deg); }
  20%       { transform: skewX(-1.5deg); }
  40%       { transform: skewX(1deg); }
  60%       { transform: skewX(-0.5deg); }
  80%       { transform: skewX(0.5deg); }
}

@keyframes glitch-offset-r {
  0%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  10%      { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 1px); }
  30%      { clip-path: inset(50% 0 30% 0); transform: translate(3px, -1px); }
  50%      { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 0); }
  70%      { clip-path: inset(10% 0 75% 0); transform: translate(2px, 1px); }
  90%      { clip-path: inset(40% 0 45% 0); transform: translate(0); }
}

@keyframes glitch-offset-b {
  0%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  15%      { clip-path: inset(30% 0 50% 0); transform: translate(3px, -1px); }
  45%      { clip-path: inset(60% 0 20% 0); transform: translate(-3px, 1px); }
  75%      { clip-path: inset(5% 0 80% 0); transform: translate(2px, 0); }
}

.glitch {
  position: relative;
  animation: glitch-skew 4s infinite linear;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font: inherit;
  white-space: inherit;
}

.glitch::before {
  color: var(--c-primary);
  animation: glitch-offset-r 3.5s infinite;
  opacity: 0.7;
}

.glitch::after {
  color: var(--c-accent);
  animation: glitch-offset-b 4.5s infinite;
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .glitch, .glitch::before, .glitch::after {
    animation: none;
  }
  .glitch::before, .glitch::after {
    display: none;
  }
}

/* ============================================================
   首页 Hero
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 40px 80px;
  position: relative;
  z-index: 2;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--c-green);
  text-shadow: 0 0 8px var(--c-green);
  text-transform: uppercase;
}

.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
  text-shadow: var(--glow-primary);
}

.hero-desc {
  font-size: 1rem;
  color: var(--c-text-dim);
  line-height: 1.7;
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  box-shadow: var(--glow-primary);
  align-self: flex-start;
  transition: box-shadow var(--transition), filter var(--transition);
}

.btn-primary:hover {
  box-shadow: var(--glow-accent);
  filter: brightness(1.15);
  color: #fff;
  text-shadow: none;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--glow-primary);
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(128,0,255,0.15), rgba(255,0,255,0.08));
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--c-bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

/* Section grid (homepage) */
.section-grid-wrap {
  margin-top: 48px;
}

.section-grid-title {
  font-size: 1.1rem;
  color: var(--c-primary);
  text-shadow: var(--glow-primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
  letter-spacing: 0.05em;
}

.section-grid-title span {
  display: inline;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.nav-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid var(--c-primary);
}

.nav-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--glow-primary);
}

.nav-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-shadow: none;
}

.nav-card-media img {
  width: 100%;
  height: auto;
  display: block;
}

.nav-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-primary);
}

.nav-card-title span { display: inline; }

.nav-card-desc {
  font-size: 0.82rem;
  color: var(--c-text-dim);
  line-height: 1.5;
  flex: 1;
}

.nav-card-cta {
  font-size: 0.78rem;
  color: var(--c-accent);
  align-self: flex-start;
  margin-top: auto;
}

/* ============================================================
   页面横幅（article/about/privacy/tag）
   ============================================================ */
.page-banner {
  position: relative;
  padding: calc(var(--nav-h) + 40px) 40px 60px;
  background: linear-gradient(120deg, rgba(128,0,255,0.12) 0%, rgba(255,0,255,0.06) 100%);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}

.page-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-banner-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--c-accent);
  text-shadow: var(--glow-accent);
  border: 1px solid var(--c-accent);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.page-banner-h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 500;
  color: #fff;
  text-shadow: var(--glow-primary);
  line-height: 1.3;
  margin-bottom: 10px;
}

.page-banner-desc {
  font-size: 0.9rem;
  color: var(--c-text-dim);
  max-width: 600px;
}

.banner-slash {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--c-bg);
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

/* ============================================================
   主内容区布局（两栏：aside左 + 正文右）
   ============================================================ */
.content-section {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 60px;
}

.sidebar-left {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 16px;
}

.sidebar-heading {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--c-primary);
  text-shadow: var(--glow-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.sidebar-heading span { display: inline; }

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-links li a {
  display: block;
  padding: 6px 8px;
  font-size: 0.82rem;
  color: var(--c-text-dim);
  border-radius: 4px;
  min-height: 40px;
  line-height: 28px;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}

.sidebar-links li a:hover {
  color: var(--c-primary);
  border-left-color: var(--c-primary);
  background: rgba(128,0,255,0.06);
  text-shadow: none;
}

.sidebar-links .story-item {
  border-bottom: 1px solid rgba(128,0,255,0.1);
}

.sidebar-links .story-date {
  display: block;
  font-size: 0.7rem;
  color: var(--c-text-dim);
  opacity: 0.6;
  padding-left: 8px;
}

.content-main {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   正文排版
   ============================================================ */
.prose {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}

.prose h2, .prose h3 {
  color: var(--c-primary);
  text-shadow: var(--glow-primary);
  margin: 32px 0 14px;
  line-height: 1.3;
}

.prose h2 { font-size: 1.2rem; }
.prose h3 { font-size: 1rem; }

.prose h2 span, .prose h3 span { display: inline; }

.prose p {
  margin-bottom: 16px;
}

.prose a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--c-primary);
}

.prose ul, .prose ol {
  padding-left: 20px;
  margin-bottom: 16px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: #fff;
  font-weight: 500;
}

.prose em {
  color: var(--c-accent);
  font-style: italic;
}

.prose code {
  background: rgba(128,0,255,0.15);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--c-green);
}

.prose pre {
  background: #0a0a14;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.prose blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(255,0,255,0.04);
  color: var(--c-text-dim);
  font-style: italic;
}

/* ============================================================
   栏目页子页列表
   ============================================================ */
.child-list-wrap {
  margin-top: 40px;
}

.child-list-title {
  font-size: 1rem;
  color: var(--c-primary);
  text-shadow: var(--glow-primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
  letter-spacing: 0.05em;
}

.child-list-title span { display: inline; }

.child-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: none;
}

.child-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--c-primary);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.child-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--glow-accent);
}

.child-card-link {
  display: flex;
  gap: 0;
  color: inherit;
  text-shadow: none;
}

.child-card-media {
  width: 160px;
  flex-shrink: 0;
  overflow: hidden;
}

.child-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.child-card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.child-card-index {
  font-size: 0.7rem;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.child-card-title {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.4;
}

.child-card-title span { display: inline; }

.child-card-desc {
  font-size: 0.83rem;
  color: var(--c-text-dim);
  line-height: 1.5;
  flex: 1;
}

.child-card-date {
  font-size: 0.75rem;
  color: var(--c-text-dim);
  opacity: 0.55;
}

/* ============================================================
   文章页
   ============================================================ */
.story-article > .story-header-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 32px) 40px 20px;
}

.story-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--c-text-dim);
  margin-bottom: 16px;
}

.breadcrumb-link {
  color: var(--c-primary);
}

.breadcrumb-sep {
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--c-text-dim);
  opacity: 0.7;
}

.story-h1 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 500;
  color: #fff;
  text-shadow: var(--glow-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.story-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.story-date, .story-date-mod {
  font-size: 0.78rem;
  color: var(--c-text-dim);
  opacity: 0.7;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-chip {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  border: 1px solid var(--c-primary);
  border-radius: 3px;
  color: var(--c-primary);
  transition: all var(--transition);
  text-shadow: none;
}

.tag-chip:hover {
  background: var(--c-primary);
  color: #fff;
  text-shadow: none;
}

.story-hero-media {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.story-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   标签页
   ============================================================ */
.tag-stories-wrap {
  margin-top: 40px;
}

.tag-stories-title {
  font-size: 1rem;
  color: var(--c-primary);
  text-shadow: var(--glow-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

.tag-stories-title span { display: inline; }

.tag-stories-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag-story-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  border-left: 3px solid var(--c-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tag-story-item:hover {
  border-left-color: var(--c-accent);
  box-shadow: -3px 0 12px rgba(255,0,255,0.2);
}

.tag-story-item > a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text);
  text-shadow: none;
}

.tag-story-index {
  font-size: 0.7rem;
  color: var(--c-accent);
  opacity: 0.6;
  flex-shrink: 0;
}

.tag-story-title {
  font-size: 0.92rem;
  flex: 1;
}

.tag-story-desc {
  font-size: 0.8rem;
  color: var(--c-text-dim);
  padding-left: 34px;
  line-height: 1.5;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 20px 40px;
  text-align: center;
  background: rgba(13,13,13,0.98);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--c-text-dim);
  margin-bottom: 4px;
}

.footer-copy a {
  color: var(--c-primary);
}

.footer-legal {
  display: block;
  font-size: 0.75rem;
  color: var(--c-text-dim);
  opacity: 0.5;
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.9;
}

/* ============================================================
   Stagger 列表动画
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-grid .nav-card,
.child-list .child-card,
.tag-stories-list .tag-story-item {
  animation: fadeInUp 0.4s ease both;
}

.section-grid .nav-card:nth-child(1) { animation-delay: 0.05s; }
.section-grid .nav-card:nth-child(2) { animation-delay: 0.10s; }
.section-grid .nav-card:nth-child(3) { animation-delay: 0.15s; }
.section-grid .nav-card:nth-child(4) { animation-delay: 0.20s; }
.section-grid .nav-card:nth-child(5) { animation-delay: 0.25s; }
.section-grid .nav-card:nth-child(6) { animation-delay: 0.30s; }

.child-list .child-card:nth-child(1) { animation-delay: 0.05s; }
.child-list .child-card:nth-child(2) { animation-delay: 0.10s; }
.child-list .child-card:nth-child(3) { animation-delay: 0.15s; }
.child-list .child-card:nth-child(4) { animation-delay: 0.20s; }

.tag-stories-list .tag-story-item:nth-child(1) { animation-delay: 0.05s; }
.tag-stories-list .tag-story-item:nth-child(2) { animation-delay: 0.10s; }
.tag-stories-list .tag-story-item:nth-child(3) { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .section-grid .nav-card,
  .child-list .child-card,
  .tag-stories-list .tag-story-item,
  .hero-h1, .story-h1, .page-banner-h1 {
    animation: none;
  }
}

/* ============================================================
   响应式：平板 ≤ 900px
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + 20px) 20px 60px;
  }

  .hero-media {
    order: -1;
    max-width: 100%;
  }

  .content-section {
    flex-direction: column;
    padding: 24px 20px 40px;
    gap: 20px;
  }

  .sidebar-left {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .sidebar-block {
    flex: 1;
    min-width: 200px;
  }

  .child-card-media {
    width: 120px;
  }

  .page-banner {
    padding: calc(var(--nav-h) + 24px) 20px 40px;
  }

  .story-article > .story-header-section {
    padding: calc(var(--nav-h) + 20px) 20px 16px;
  }

  .site-footer {
    padding: 20px;
  }
}

/* ============================================================
   响应式：手机 ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  .nav-menu {
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px 12px;
  }

  .nav-menu li a {
    width: 100%;
    min-height: 44px;
    line-height: 30px;
    font-size: 0.85rem;
  }

  .nav-bar {
    padding: 0 12px;
  }

  .nav-cta-btn {
    padding: 0 12px;
    font-size: 0.75rem;
  }

  .hero-inner {
    padding: calc(var(--nav-h) + 16px) 16px 48px;
    gap: 24px;
  }

  .hero-h1 {
    font-size: 1.4rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .child-card-link {
    flex-direction: column;
  }

  .child-card-media {
    width: 100%;
    max-height: 160px;
    overflow: hidden;
  }

  .content-section {
    padding: 16px 16px 32px;
  }

  .sidebar-left {
    flex-direction: column;
  }

  .sidebar-block {
    min-width: unset;
  }

  .page-banner {
    padding: calc(var(--nav-h) + 16px) 16px 32px;
  }

  .story-article > .story-header-section {
    padding: calc(var(--nav-h) + 12px) 16px 12px;
  }

  .site-footer {
    padding: 16px;
  }

  .btn-primary {
    height: 44px;
    font-size: 0.85rem;
    padding: 0 20px;
  }
}
