@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

/* =============================================
   CSS 自定义属性
   ============================================= */
:root {
  --c-green: #87ff71;
  --c-blue: #01cdfe;
  --c-dark: #192617;
  --c-dark2: #1e2f1c;
  --c-dark3: #0f1a0e;
  --c-green-dim: rgba(135,255,113,0.15);
  --c-blue-dim: rgba(1,205,254,0.15);
  --c-green-glow: 0 0 12px #87ff71, 0 0 28px rgba(135,255,113,0.5);
  --c-blue-glow: 0 0 12px #01cdfe, 0 0 28px rgba(1,205,254,0.5);
  --c-text: #d4ffd0;
  --c-text-muted: #7ab87a;
  --c-border: rgba(135,255,113,0.2);
  --radius-card: 28px;
  --font: 'Noto Sans Thai', 'Noto Sans', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --header-h: 100px;
  --transition: 0.25s ease;
}

/* =============================================
   重置与基础
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  background: var(--c-dark3);
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-blue); }

h1,h2,h3,h4 {
  font-weight: 700;
  line-height: 1.25;
}

/* =============================================
   扫描线装饰（VHS 效果）
   ============================================= */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  animation: scanMove 8s linear infinite;
  will-change: background-position;
}

@keyframes scanMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* =============================================
   Retro Grid 背景
   ============================================= */
.site-wrapper {
  position: relative;
  min-height: 100vh;
}

.site-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, var(--c-dark3) 0%, var(--c-dark) 40%, var(--c-dark2) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(135,255,113,0.04) 60px,
      rgba(135,255,113,0.04) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(1,205,254,0.04) 60px,
      rgba(1,205,254,0.04) 61px
    );
  pointer-events: none;
}

.site-wrapper > * { position: relative; z-index: 1; }

/* =============================================
   导航 / Header
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,26,14,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 20px rgba(135,255,113,0.1);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid rgba(135,255,113,0.1);
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-green);
  text-shadow: var(--c-green-glow);
  letter-spacing: 0.05em;
}

.main-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-nav ol {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
}

.main-nav ol li a {
  display: block;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), text-shadow var(--transition);
  min-height: 44px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.main-nav ol li a:hover,
.main-nav ol li a[aria-current="page"] {
  color: var(--c-green);
  border-bottom-color: var(--c-green);
  text-shadow: 0 0 8px rgba(135,255,113,0.6);
}

/* =============================================
   CTA 按钮
   ============================================= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--c-green) 0%, var(--c-blue) 100%);
  color: var(--c-dark3);
  border-radius: 6px;
  text-shadow: none;
  letter-spacing: 0.04em;
  box-shadow: 0 0 14px rgba(135,255,113,0.4);
  transition: box-shadow var(--transition), transform var(--transition), filter var(--transition);
  white-space: nowrap;
}

.cta-btn:hover {
  color: var(--c-dark3);
  box-shadow: 0 0 24px rgba(135,255,113,0.7), 0 0 40px rgba(1,205,254,0.4);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* =============================================
   Hero — 首页
   ============================================= */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-dark3) 0%, #0d2b0c 50%, var(--c-dark) 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 1.5rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

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

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-cta {
  font-size: 1rem;
  padding: 0.7rem 2rem;
}

.hero-deco {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.hero-illus {
  width: clamp(120px, 20vw, 240px);
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(135,255,113,0.3), 0 0 60px rgba(1,205,254,0.2);
  animation: floatImg 4s ease-in-out infinite;
}

@keyframes floatImg {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pixel-deco {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.px-block {
  display: block;
  border-radius: 4px;
}
.px1 { width: 16px; height: 16px; background: var(--c-green); box-shadow: var(--c-green-glow); }
.px2 { width: 10px; height: 10px; background: var(--c-blue); box-shadow: var(--c-blue-glow); margin-left: 6px; }
.px3 { width: 8px; height: 8px; background: var(--c-green); opacity: 0.6; }

/* 斜切色带分割线 */
.hero-slash {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-dark);
  clip-path: polygon(0 60px, 100% 0, 100% 60px);
}

/* =============================================
   内容区 — 侧边栏 + 主内容
   ============================================= */
.content-section {
  display: flex;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  align-items: flex-start;
}

.sidebar {
  flex-shrink: 0;
  width: 220px;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.sidebar-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-green);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--c-border);
}

.sidebar-title span,
.sidebar-sub span {
  display: inline;
}

.sidebar-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-blue);
  margin: 1.2rem 0 0.5rem;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li a {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.sidebar-nav li a:hover {
  color: var(--c-green);
  border-left-color: var(--c-green);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.tag-chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  background: var(--c-green-dim);
  color: var(--c-green);
  border: 1px solid rgba(135,255,113,0.3);
  border-radius: 20px;
  transition: background var(--transition), box-shadow var(--transition);
  min-height: 28px;
}

.tag-chip:hover {
  background: rgba(135,255,113,0.25);
  color: var(--c-green);
  box-shadow: 0 0 8px rgba(135,255,113,0.4);
}

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

/* =============================================
   正文内容体
   ============================================= */
.content-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}

.content-body h2 {
  font-size: 1.4rem;
  color: var(--c-green);
  margin: 2rem 0 0.75rem;
  text-shadow: 0 0 8px rgba(135,255,113,0.3);
}

.content-body h3 {
  font-size: 1.15rem;
  color: var(--c-blue);
  margin: 1.5rem 0 0.5rem;
}

.content-body p { margin-bottom: 1rem; }
.content-body ul, .content-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.content-body li { margin-bottom: 0.3rem; }
.content-body a { text-decoration: underline; text-underline-offset: 3px; }
.content-body img { border-radius: 12px; margin: 1.2rem 0; }
.content-body blockquote {
  border-left: 3px solid var(--c-green);
  padding-left: 1rem;
  color: var(--c-text-muted);
  font-style: italic;
  margin: 1.2rem 0;
}

/* =============================================
   分类卡片网格（首页 + 分类页子项）
   ============================================= */
.cats-section,
.entries-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem 2.5rem;
}

.section-heading {
  font-size: 1.1rem;
  color: var(--c-green);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.06em;
}

.section-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--c-green), var(--c-blue));
  border-radius: 2px;
}

.section-heading span { display: inline; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem;
  background: rgba(135,255,113,0.06);
  border: 1px solid rgba(135,255,113,0.15);
  border-radius: var(--radius-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: var(--c-text);
}

.cat-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-green);
  display: block;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(135,255,113,0.2), 0 0 0 1px rgba(135,255,113,0.3);
  border-color: rgba(135,255,113,0.4);
  color: var(--c-text);
}

.cat-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.cat-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* 子页列表 - 并列 a > strong 结构 */
.child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.child-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.3rem;
  background: rgba(1,205,254,0.06);
  border: 1px solid rgba(1,205,254,0.15);
  border-radius: var(--radius-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: var(--c-text);
}

.child-card strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-blue);
  display: block;
}

.child-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(1,205,254,0.2), 0 0 0 1px rgba(1,205,254,0.3);
  border-color: rgba(1,205,254,0.4);
  color: var(--c-text);
}

.card-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}

.card-excerpt {
  font-size: 0.83rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.card-date {
  font-size: 0.78rem;
  color: rgba(135,255,113,0.5);
}

/* 热门专区 entry 链接 */
.entries-figure {
  border: none;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.entry-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.3rem;
  background: rgba(135,255,113,0.04);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  color: var(--c-text);
  transition: background var(--transition), border-color var(--transition);
}

.entry-link strong {
  font-size: 0.92rem;
  color: var(--c-green);
  display: block;
}

.entry-link span {
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

.entry-link:hover {
  background: rgba(135,255,113,0.1);
  border-color: rgba(135,255,113,0.35);
  color: var(--c-text);
}

/* =============================================
   面包屑
   ============================================= */
.breadcrumb {
  margin-bottom: 0.8rem;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb ol li {
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

.breadcrumb ol li + li::before {
  content: '›';
  margin-right: 0.4rem;
  color: rgba(135,255,113,0.4);
}

.breadcrumb ol li a {
  color: var(--c-text-muted);
  font-size: 0.82rem;
}

.breadcrumb ol li a:hover { color: var(--c-green); }

/* =============================================
   分类 Hero
   ============================================= */
.cat-hero,
.tag-hero,
.about-hero,
.privacy-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-dark3) 0%, rgba(1,205,254,0.06) 100%);
  padding-bottom: 50px;
}

.cat-hero-inner,
.tag-hero-inner,
.about-hero-inner,
.privacy-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

.cat-h1,
.tag-h1,
.about-h1,
.privacy-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}

.cat-lead,
.tag-lead {
  font-size: 1rem;
  color: var(--c-text-muted);
  max-width: 600px;
}

/* =============================================
   Entry 页 Hero
   ============================================= */
.entry-head-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-dark3) 0%, rgba(135,255,113,0.04) 100%);
  padding-bottom: 50px;
}

.entry-head-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

.entry-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--c-green);
  text-shadow: 0 0 20px rgba(135,255,113,0.4);
  margin-bottom: 0.6rem;
}

.entry-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.page-date {
  font-size: 0.82rem;
  color: rgba(135,255,113,0.6);
}

.page-date-mod {
  font-size: 0.82rem;
  color: rgba(1,205,254,0.6);
}

.entry-hero-fig {
  margin-top: 1.2rem;
  border: none;
}

.entry-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(135,255,113,0.2);
}

/* =============================================
   相关推荐
   ============================================= */
.related-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.related-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: rgba(135,255,113,0.05);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  color: var(--c-text);
  transition: background var(--transition), border-color var(--transition);
}

.related-link strong {
  font-size: 0.9rem;
  color: var(--c-green);
  display: block;
}

.related-link span {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

.related-link:hover {
  background: rgba(135,255,113,0.1);
  border-color: rgba(135,255,113,0.35);
  color: var(--c-text);
}

/* =============================================
   About 导航格
   ============================================= */
.about-fig,
.privacy-fig {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  border: none;
}

.about-deco,
.privacy-badge {
  display: flex;
  gap: 6px;
  align-items: center;
}

.about-links-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}

.about-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.about-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.2rem;
  background: rgba(1,205,254,0.06);
  border: 1px solid rgba(1,205,254,0.15);
  border-radius: var(--radius-card);
  color: var(--c-text);
  transition: background var(--transition), border-color var(--transition);
}

.about-nav-card strong {
  font-size: 0.9rem;
  color: var(--c-blue);
  display: block;
}

.about-nav-card span {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

.about-nav-card:hover {
  background: rgba(1,205,254,0.12);
  border-color: rgba(1,205,254,0.35);
  color: var(--c-text);
}

.sidebar-about-links,
.sidebar-util-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-util-link {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  min-height: 36px;
  line-height: 1.4;
}

.sidebar-util-link:hover {
  color: var(--c-blue);
  border-left-color: var(--c-blue);
}

/* =============================================
   隐私页正文
   ============================================= */
.privacy-body h2 {
  color: var(--c-blue);
  text-shadow: 0 0 8px rgba(1,205,254,0.3);
}

/* =============================================
   Tag 页 entries figure
   ============================================= */
.tag-entries-fig {
  border: none;
}

.empty-tip {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  padding: 2rem 0;
}

/* =============================================
   页脚
   ============================================= */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  border-top: 1px solid var(--c-border);
}

.footer-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(135,255,113,0.07) 0%, rgba(1,205,254,0.07) 100%);
  border-radius: 0;
  gap: 1rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-green);
  text-shadow: var(--c-green-glow);
}

.footer-cta {
  padding: 0.55rem 1.5rem;
}

.footer-util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-util ol {
  display: flex;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
}

.footer-util ol li a {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  min-height: 40px;
  transition: color var(--transition);
}

.footer-util ol li a:hover { color: var(--c-green); }

.copyright {
  font-size: 0.78rem;
  color: rgba(135,255,113,0.35);
}

/* =============================================
   Reveal 动效
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fast {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hover 微交互 — neon 脉冲 */
.cat-card:hover strong,
.child-card:hover strong {
  text-shadow: 0 0 10px currentColor;
}

/* =============================================
   响应式
   ============================================= */
@media (max-width: 900px) {
  .sidebar { width: 180px; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-deco { align-self: flex-end; }
}

@media (max-width: 680px) {
  .content-section {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .sidebar-nav li a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
    background: var(--c-green-dim);
    border-radius: 6px;
    min-height: 40px;
  }

  .sidebar-nav li a:hover {
    border-left: none;
    border-bottom-color: var(--c-green);
  }

  .brand-row { padding: 0.5rem 1rem; }
  .brand-name { font-size: 1rem; }
  .main-nav { padding: 0 0.5rem; }
  .main-nav ol li a { padding: 0.55rem 0.55rem; font-size: 0.8rem; min-height: 44px; }

  .hero-inner { padding: 2rem 1rem 3rem; }
  .hero-h1 { font-size: 1.6rem; }

  .cat-grid,
  .child-grid,
  .entry-grid,
  .related-grid,
  .about-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .footer-cta-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1rem;
  }

  .footer-util {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }

  .cats-section,
  .entries-section {
    padding: 1rem 1rem 2rem;
  }
}

@media (max-width: 420px) {
  .cat-grid,
  .child-grid,
  .entry-grid,
  .related-grid,
  .about-nav-grid {
    grid-template-columns: 1fr;
  }

  .hero-deco { display: none; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .scanlines { animation: none; }
  .hero-illus { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal-fast { animation: none; opacity: 1; }
  * { transition-duration: 0.01ms !important; }
}
