@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syncopate:wght@400;700&display=swap');

/* ============================================================
   CSS 变量 & 重置
   ============================================================ */
:root {
  --red: #ff0000;
  --pink: #ff1493;
  --dark: #261717;
  --dark2: #1a0e0e;
  --dark3: #321f1f;
  --text: #f0e0e0;
  --text-muted: #c09090;
  --border: rgba(255, 20, 147, 0.35);
  --border-red: rgba(255, 0, 0, 0.4);
  --sidenav-w: 240px;
  --font-head: 'Syncopate', 'Space Mono', monospace;
  --font-body: 'Space Mono', 'Courier New', monospace;
  --transition: 0.25s ease;
  --aurora-1: #ff0000;
  --aurora-2: #ff1493;
  --aurora-3: #7b00ff;
  --aurora-4: #ff6a00;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--dark2);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--dark2);
  overflow-x: hidden;
}

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

a {
  color: var(--pink);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus {
  color: var(--red);
  outline: 1px dashed var(--red);
  outline-offset: 2px;
}

ul, menu {
  list-style: none;
}

/* ============================================================
   极光背景动画
   ============================================================ */
@keyframes aurora-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes aurora-mesh {
  0%   { opacity: 0.5; transform: scale(1) rotate(0deg); }
  33%  { opacity: 0.8; transform: scale(1.05) rotate(1deg); }
  66%  { opacity: 0.6; transform: scale(0.97) rotate(-1deg); }
  100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--red), 0 0 20px rgba(255,0,0,0.3); }
  50%       { box-shadow: 0 0 16px var(--pink), 0 0 40px rgba(255,20,147,0.5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   极光网格底层
   ============================================================ */
.page-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,0,0,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(255,20,147,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 10%, rgba(123,0,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(255,106,0,0.1) 0%, transparent 45%),
    var(--dark2);
  background-size: 200% 200%;
  animation: aurora-shift 12s ease infinite;
  pointer-events: none;
}

/* ============================================================
   页面骨架：左侧固定导航 + 右侧内容
   ============================================================ */
.page-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   左侧固定竖排导航 (details > summary + menu > li > a)
   ============================================================ */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidenav-w);
  height: 100vh;
  z-index: 100;
  background: var(--dark);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidenav[open] {
  display: flex;
}

.sidenav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  cursor: default;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  list-style: none;
  min-height: 64px;
}

.sidenav-brand::-webkit-details-marker { display: none; }

.site-logo-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  word-break: break-all;
}

.sidenav-menu {
  flex: 1;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.sidenav-menu li {
  width: 100%;
}

.sidenav-menu li a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.sidenav-menu li a:hover,
.sidenav-menu li a:focus {
  color: var(--text);
  border-left-color: var(--pink);
  background: rgba(255, 20, 147, 0.08);
  outline: none;
}

.sidenav-menu li a[aria-current="page"] {
  color: var(--red);
  border-left-color: var(--red);
  background: rgba(255, 0, 0, 0.1);
}

/* ============================================================
   右侧主内容区
   ============================================================ */
.page-content {
  margin-left: var(--sidenav-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.main-layout {
  flex: 1;
  width: 100%;
}

/* ============================================================
   通用 section + figure/aside 结构
   ============================================================ */
.content-section,
.about-header-section,
.about-content-section,
.privacy-header-section,
.privacy-content-section,
.entry-header-section,
.entry-body-section,
.cat-header-section,
.cat-content-section,
.cat-entries-section,
.home-intro-section,
.home-cats-section,
.hero-section {
  position: relative;
}

.content-figure,
.intro-figure,
.about-figure,
.privacy-figure,
.entry-hero-figure,
.entry-content-figure,
.cat-hero-figure {
  display: block;
}

/* ============================================================
   首页 Hero (双图错位 + 斜切色带)
   ============================================================ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  min-height: 70vh;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-figure {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,0,0,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(255,20,147,0.2) 0%, transparent 55%),
    var(--dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.4) hue-rotate(340deg);
}

.hero-img-a {
  transform: translateY(-20px);
}

.hero-img-b {
  transform: translateY(20px);
}

.hero-slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 42%,
    rgba(255,0,0,0.7) 42%,
    rgba(255,20,147,0.6) 58%,
    transparent 58%,
    transparent 100%
  );
  z-index: 1;
  animation: aurora-mesh 10s ease-in-out infinite;
}

.hero-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 40px;
  max-width: 640px;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.3;
  animation: slide-up 0.8s ease both;
  text-shadow: 0 0 20px rgba(255,0,0,0.8), 0 0 40px rgba(255,20,147,0.4);
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
  animation: slide-up 0.8s 0.15s ease both;
}

.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(90deg, var(--red), var(--pink));
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  animation: slide-up 0.8s 0.3s ease both, glow-pulse 4s ease-in-out infinite;
  min-height: 48px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.hero-cta:hover, .hero-cta:focus {
  transform: translateX(4px);
  color: #fff;
  outline: 1px solid var(--red);
}

.hero-aside {
  background: var(--dark3);
  border-left: 1px solid var(--border);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
}

.hero-aside small {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.quick-links {
  flex: 1;
}

.quick-links li {
  border-bottom: 1px solid rgba(255,20,147,0.15);
}

.quick-links li a {
  display: block;
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.quick-links li a:hover {
  color: var(--red);
  padding-left: 8px;
  outline: none;
}

/* ============================================================
   首页：简介 & 分类区
   ============================================================ */
.home-intro-section {
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
}

.home-intro-section .intro-figure {
  max-width: 800px;
}

.home-cats-section {
  padding: 48px 48px 56px;
}

.home-cats-section > small {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-red);
  padding-bottom: 12px;
}

.cat-card {
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 16px;
  background: rgba(38, 23, 23, 0.6);
  transition: border-color var(--transition), background var(--transition);
  border-radius: 0;
}

.cat-card:hover {
  border-color: var(--pink);
  background: rgba(255, 20, 147, 0.06);
}

.cat-card-title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.cat-card-title a {
  color: var(--red);
}

.cat-card-title a:hover {
  color: var(--pink);
}

.cat-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.cat-card-children {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-child-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  transition: all var(--transition);
}

.cat-child-link:hover {
  color: var(--pink);
  border-color: var(--pink);
  outline: none;
}

/* ============================================================
   栏目页
   ============================================================ */
.cat-header-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 220px;
  border-bottom: 1px solid var(--border);
}

.cat-hero-figure {
  padding: 40px 40px;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(255,0,0,0.15) 0%, transparent 60%),
    var(--dark);
}

.cat-hero-figure small {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cat-h1 {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.cat-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

.cat-sidebar {
  background: var(--dark3);
  border-left: 1px solid var(--border);
  padding: 28px 20px;
}

.cat-sidebar small,
.about-sidebar small,
.privacy-sidebar small,
.entry-sidebar small,
.hero-aside small,
.sidebar-related small {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cat-sidebar h3,
.about-sidebar h3,
.privacy-sidebar h3,
.entry-sidebar h3,
.sidebar-related h3 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.sidebar-cats li,
.related-list li {
  border-bottom: 1px solid rgba(255,20,147,0.1);
}

.sidebar-cats li a,
.related-list li a {
  display: block;
  padding: 10px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: all var(--transition);
}

.sidebar-cats li a:hover,
.related-list li a:hover {
  color: var(--red);
  padding-left: 6px;
  outline: none;
}

.cat-content-section {
  padding: 36px 40px;
  border-bottom: 1px solid var(--border);
}

.cat-entries-section {
  padding: 40px 40px 56px;
}

.cat-entries-section > small {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* entry cards in category (section > div×n) */
.cat-entries-section div.entry-card {
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 12px;
  background: rgba(38,23,23,0.5);
  transition: border-color var(--transition);
  border-radius: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: start;
}

.cat-entries-section div.entry-card:hover {
  border-color: var(--red);
}

.entry-card-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  grid-column: 1;
}

.entry-card-title a {
  color: var(--text);
}

.entry-card-title a:hover {
  color: var(--pink);
}

.entry-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  grid-column: 1;
  line-height: 1.6;
}

.card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
  opacity: 0.7;
  font-family: var(--font-body);
}

/* ============================================================
   条目页 (entry)
   ============================================================ */
.entry-header-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 200px;
  border-bottom: 1px solid var(--border);
}

.entry-hero-figure {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.entry-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.entry-hero-caption {
  position: relative;
  z-index: 1;
  padding: 32px 40px 28px;
}

.breadcrumb {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--pink);
}

.breadcrumb span {
  color: var(--text-muted);
}

.entry-hero-caption > small {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.entry-h1 {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.entry-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.pub-date::before { content: '发布 '; }
.mod-date::before { content: '更新 '; }

.entry-sidebar {
  background: var(--dark3);
  border-left: 1px solid var(--border);
  padding: 28px 20px;
}

.sidebar-back {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.back-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  transition: color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.back-link:hover {
  color: var(--red);
}

.entry-body-section {
  display: grid;
  grid-template-columns: 1fr;
  padding: 40px 40px 56px;
}

/* ============================================================
   关于页 & 隐私页
   ============================================================ */
.about-header-section,
.privacy-header-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 180px;
  border-bottom: 1px solid var(--border);
}

.about-figure,
.privacy-figure {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255,20,147,0.12) 0%, transparent 60%),
    var(--dark);
}

.about-header-inner,
.privacy-header-inner {
  padding: 36px 40px;
}

.about-header-inner small,
.privacy-header-inner small {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-h1,
.privacy-h1 {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.about-sidebar,
.privacy-sidebar {
  background: var(--dark3);
  border-left: 1px solid var(--border);
  padding: 28px 20px;
}

.about-content-section,
.privacy-content-section {
  padding: 36px 40px 56px;
}

/* ============================================================
   正文默认页 (default layout)
   ============================================================ */
.content-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
  padding: 0;
}

.content-section .content-figure {
  padding: 40px 40px;
}

.sidebar-related {
  background: var(--dark3);
  border-left: 1px solid var(--border);
  padding: 28px 20px;
}

/* ============================================================
   Prose (正文)
   ============================================================ */
.prose {
  max-width: 780px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-head);
  color: var(--text);
  letter-spacing: 0.06em;
  margin: 1.8em 0 0.6em;
  text-transform: uppercase;
}

.prose h2 { font-size: 1rem; border-bottom: 1px solid var(--border-red); padding-bottom: 6px; }
.prose h3 { font-size: 0.9rem; color: var(--pink); }
.prose h4 { font-size: 0.85rem; }

.prose p {
  margin-bottom: 1.2em;
}

.prose a {
  color: var(--pink);
  border-bottom: 1px dashed rgba(255,20,147,0.4);
}

.prose a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.prose ul,
.prose ol {
  margin: 0.8em 0 1.2em 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
  list-style: disc;
}

.prose strong {
  color: var(--red);
  font-weight: 700;
}

.prose em {
  color: var(--pink);
}

.prose code {
  font-family: var(--font-body);
  background: rgba(255,0,0,0.1);
  border: 1px solid var(--border);
  padding: 2px 6px;
  font-size: 0.88em;
}

.prose blockquote {
  border-left: 3px solid var(--red);
  padding: 8px 16px;
  margin: 1.2em 0;
  color: var(--text-muted);
  background: rgba(255,0,0,0.05);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.88rem;
}

.prose th {
  background: rgba(255,0,0,0.15);
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.prose td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ============================================================
   small 眉题（h2/h3 前同级）
   ============================================================ */
small {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ============================================================
   页脚 (3 列 dl)
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--dark2);
  padding: 40px 48px 32px;
}

.footer-inner {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 160px;
}

.footer-col dt {
  font-family: var(--font-head);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-red);
  padding-bottom: 6px;
}

.footer-col dd {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-col dd a {
  color: var(--text-muted);
  transition: color var(--transition);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.footer-col dd a:hover {
  color: var(--pink);
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.72rem;
  color: rgba(192,144,144,0.5);
}

/* ============================================================
   Scroll Reveal 动效
   ============================================================ */
.cat-card,
.entry-card,
.cat-entries-section div {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition), background var(--transition);
}

.cat-card.revealed,
.entry-card.revealed,
.cat-entries-section div.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cat-card,
  .entry-card,
  .cat-entries-section div {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   移动端响应式
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --sidenav-w: 0px;
  }

  .sidenav {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
  }

  .sidenav-brand {
    cursor: pointer;
  }

  .sidenav[open] .sidenav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid var(--border);
  }

  .sidenav-menu li a {
    padding: 10px 14px;
    min-height: 44px;
    font-size: 0.75rem;
  }

  .page-wrapper {
    flex-direction: column;
  }

  .page-content {
    margin-left: 0;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-figure {
    min-height: 50vh;
  }

  .hero-aside {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .cat-header-section,
  .entry-header-section,
  .about-header-section,
  .privacy-header-section {
    grid-template-columns: 1fr;
  }

  .cat-sidebar,
  .entry-sidebar,
  .about-sidebar,
  .privacy-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
  }

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

  .sidebar-related {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .home-intro-section,
  .home-cats-section,
  .cat-content-section,
  .cat-entries-section,
  .entry-body-section,
  .about-content-section,
  .privacy-content-section {
    padding: 24px 20px 32px;
  }

  .hero-caption {
    padding: 28px 20px;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .cat-hero-figure {
    padding: 24px 20px;
  }

  .entry-hero-caption {
    padding: 20px 20px;
  }

  .about-header-inner,
  .privacy-header-inner {
    padding: 24px 20px;
  }

  .content-section .content-figure {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 1.1rem;
  }

  .prose {
    font-size: 16px;
  }

  .cat-entries-section div.entry-card {
    grid-template-columns: 1fr;
  }

  .card-date {
    grid-column: 1;
    grid-row: auto;
  }

  .sidenav-menu li a {
    min-height: 44px;
  }
}
