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

/* ===== 自定义属性 ===== */
:root {
  --cream: #f5e6c8;
  --amber: #d4a574;
  --ink: #262117;
  --ink-soft: #3d3425;
  --ink-mid: #524838;
  --amber-dark: #b8824a;
  --amber-light: #e8c49a;
  --cream-dark: #e8d0a8;
  --film-red: #8b1a1a;
  --scan-line: rgba(0,0,0,0.08);
  --card-shadow: 0 4px 20px rgba(38,33,23,0.35), 0 1px 4px rgba(38,33,23,0.2);
  --radius: 4px;
  --font-display: 'Orbitron', 'Arial Black', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'JetBrains Mono', Georgia, serif;
  --max-w: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber-dark); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
ul, ol { list-style: none; }

/* ===== FILM GRAIN OVERLAY ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ===== VHS SCANLINES ===== */
.vhs-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scan-line) 2px,
    var(--scan-line) 4px
  );
  animation: vhs-drift 8s linear infinite;
}

@keyframes vhs-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* ===== HEADER ===== */
.site-header {
  background: var(--ink);
  border-bottom: 2px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-row {
  border-bottom: 1px solid var(--ink-soft);
  padding: 0.75rem var(--gutter);
}

.brand-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-wrap img,
.brand-logo {
  height: 32px;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--amber);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-name:hover { color: var(--cream); text-decoration: none; }

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber-light);
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.main-nav {
  padding: 0 var(--gutter);
  background: var(--ink-soft);
}

.main-nav > p {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
}

.main-nav > p > a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream-dark);
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(212,165,116,0.15);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav > p > a:hover,
.main-nav > p > a[aria-current="page"] {
  background: var(--amber);
  color: var(--ink);
  text-decoration: none;
}

/* ===== EYEBROW / SMALL ===== */
small.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

/* ===== FILM CARD ===== */
.film-card {
  background: var(--cream-dark);
  border: 1px solid var(--amber-light);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.film-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,230,200,0.15) 0%, transparent 60%, rgba(212,165,116,0.08) 100%);
  pointer-events: none;
}

.film-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(38,33,23,0.45), 0 2px 8px rgba(38,33,23,0.25);
}

.card-num {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--amber);
  opacity: 0.6;
  letter-spacing: 0.1em;
}

/* ===== HOME ===== */
.home-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Hero */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 45vh;
  padding: 3rem 0 2rem;
  position: relative;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  background: var(--ink-soft);
  border: 1px solid var(--amber);
}

.hero-figure img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.3) contrast(1.1) saturate(0.8);
}

.hero-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink-mid) 50%, var(--ink-soft) 100%);
}

.hero-bg-text {
  position: absolute;
  bottom: -0.5rem;
  left: -0.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--amber);
  opacity: 0.08;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.cta-btn {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--amber-dark);
  text-decoration: none;
  min-height: 44px;
  transition: background 0.2s, color 0.2s;
}

.cta-btn:hover {
  background: var(--ink);
  color: var(--amber);
  text-decoration: none;
}

/* Content sections */
.content-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(212,165,116,0.25);
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}

/* Cat list */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.cat-card {
  padding: 1.2rem;
}

.cat-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.cat-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.cat-card h3 a:hover { color: var(--amber-dark); }

.cat-card p {
  font-size: 0.78rem;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* Entry list */
.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.entry-card {
  padding: 1rem;
}

.entry-card h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.entry-card h3 a { color: var(--ink); text-decoration: none; }
.entry-card h3 a:hover { color: var(--amber-dark); }
.entry-card p { font-size: 0.76rem; color: var(--ink-mid); }

.entry-date, .pub-date, .mod-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber);
  margin-top: 0.4rem;
  letter-spacing: 0.06em;
}

/* Aside */
.section-aside,
.entries-aside,
.content-aside,
.cat-sidebar,
.tag-sidebar,
.about-sidebar,
.privacy-sidebar,
.entries-figure + aside,
.cat-content-aside,
.tag-content-aside,
.entry-sidebar,
.cat-hero-aside,
.tag-hero-aside,
.about-intro-aside,
.privacy-hero-aside {
  position: relative;
}

.aside-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--amber-light);
  padding-bottom: 0.4rem;
}

.aside-note {
  font-size: 0.78rem;
  color: var(--ink-mid);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.aside-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-dark);
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(212,165,116,0.3);
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-link:hover { color: var(--ink); text-decoration: none; }

/* Sidebar nav */
.section-aside nav > p,
.entries-aside nav > p,
.cat-sidebar nav > p,
.tag-sidebar nav > p,
.about-sidebar nav > p,
.privacy-sidebar nav > p,
.content-aside nav > p,
.cat-content-aside nav > p,
.tag-content-aside nav > p {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.section-aside nav > p > a,
.entries-aside nav > p > a,
.cat-sidebar nav > p > a,
.tag-sidebar nav > p > a,
.about-sidebar nav > p > a,
.privacy-sidebar nav > p > a,
.content-aside nav > p > a,
.cat-content-aside nav > p > a,
.tag-content-aside nav > p > a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-dark);
  padding: 0.4rem 0.5rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.section-aside nav > p > a:hover,
.entries-aside nav > p > a:hover,
.cat-sidebar nav > p > a:hover,
.tag-sidebar nav > p > a:hover,
.about-sidebar nav > p > a:hover,
.privacy-sidebar nav > p > a:hover,
.content-aside nav > p > a:hover,
.cat-content-aside nav > p > a:hover,
.tag-content-aside nav > p > a:hover {
  border-left-color: var(--amber);
  color: var(--ink);
  text-decoration: none;
}

/* Step list */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-mid);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  min-width: 24px;
}

/* Tag pills */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.tag-list.vertical {
  flex-direction: column;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--amber);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  border: 1px solid var(--amber);
  text-decoration: none;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.tag-pill:hover {
  background: var(--amber);
  color: var(--ink);
  text-decoration: none;
}

/* Prose */
.prose-wrap {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink);
}

.prose-wrap h2, .prose-wrap h3, .prose-wrap h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
  letter-spacing: 0.03em;
}

.prose-wrap p { margin-bottom: 1rem; }
.prose-wrap a { color: var(--amber-dark); }
.prose-wrap a:hover { color: var(--ink); }

.prose-wrap ul, .prose-wrap ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.prose-wrap ul { list-style: disc; }
.prose-wrap ol { list-style: decimal; }
.prose-wrap li { margin-bottom: 0.3rem; }

/* Page content section */
.page-content-section,
.cats-section,
.entries-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(212,165,116,0.25);
}

.page-content-figure,
.cats-figure,
.entries-figure {
  min-width: 0;
}

/* ===== CATEGORY ===== */
.cat-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.cat-hero-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 40vh;
  padding: 2.5rem 0 2rem;
}

.cat-hero-figure {
  position: relative;
  min-height: 200px;
  background: var(--ink-soft);
  border-radius: var(--radius);
  border: 1px solid var(--amber);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.cat-bg-text,
.tag-bg-text,
.about-bg-text,
.privacy-bg-text,
.entry-bg-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--amber);
  opacity: 0.12;
  letter-spacing: -0.05em;
  padding: 1rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.cat-hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-h1, .tag-h1, .about-h1, .privacy-h1, .entry-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}

.cat-desc, .tag-desc, .privacy-lead, .about-lead, .entry-lead {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  max-width: 520px;
}

.cat-body-section,
.cat-content-section,
.tag-body-section,
.tag-content-section,
.about-body-section,
.privacy-body-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(212,165,116,0.25);
}

.cat-children-figure,
.tag-entries-figure,
.cat-prose-figure,
.tag-prose-figure,
.about-prose-figure,
.privacy-prose-figure,
.entry-prose-figure {
  min-width: 0;
}

.cat-children-figure h2,
.tag-entries-figure h2,
.cat-prose-figure h2,
.tag-prose-figure h2,
.about-prose-figure h2,
.privacy-prose-figure h2,
.entry-prose-figure h2 {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}

/* Children list */
.children-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.child-card {
  padding: 1rem 1rem 1rem 0.8rem;
  display: flex;
  gap: 0.6rem;
}

.card-thumb-wrap {
  width: 80px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
}

.card-thumb-wrap img.card-thumb {
  width: 100%;
  height: 60px;
  object-fit: cover;
  filter: sepia(0.2) contrast(1.05);
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-body h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--amber-dark); }

.card-body p {
  font-size: 0.73rem;
  color: var(--ink-mid);
  line-height: 1.4;
}

.empty-note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-mid);
  padding: 1.5rem 0;
}

.sibling-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-dark);
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(212,165,116,0.3);
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.sibling-link:hover { color: var(--ink); text-decoration: none; }

/* ===== ENTRY ===== */
.entry-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.breadcrumb {
  padding: 1rem 0 0;
}

.breadcrumb > p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-mid);
}

.breadcrumb > p > a {
  color: var(--amber-dark);
  text-decoration: none;
}

.breadcrumb > p > a:hover { text-decoration: underline; }

.breadcrumb > p > a::after {
  content: ' ›';
  margin-left: 0.3rem;
  color: var(--ink-mid);
}

.entry-hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 40vh;
  padding: 2rem 0 1.5rem;
}

.entry-hero-figure {
  position: relative;
  min-height: 240px;
  background: var(--ink-soft);
  border-radius: var(--radius);
  border: 1px solid var(--amber);
  overflow: hidden;
}

.entry-hero-figure img.entry-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.25) contrast(1.1) saturate(0.85);
}

.entry-hero-placeholder {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 50%, var(--ink-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--amber);
  opacity: 0.4;
  letter-spacing: 0.1em;
}

.entry-hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.5rem;
}

.entry-body-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(212,165,116,0.25);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.related-card {
  padding: 0.6rem 0.8rem;
  background: var(--cream-dark);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.related-card h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.related-card h3 a { color: var(--ink); text-decoration: none; }
.related-card h3 a:hover { color: var(--amber-dark); }
.related-card p { font-size: 0.7rem; color: var(--ink-mid); }
.related-card time { font-size: 0.65rem; color: var(--amber); }

.entry-sidebar {
  position: relative;
}

/* ===== TAG ===== */
.tag-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tag-hero-section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 35vh;
  padding: 2.5rem 0 2rem;
}

.tag-hero-figure {
  position: relative;
  min-height: 160px;
  background: var(--ink);
  border-radius: var(--radius);
  border: 1px solid var(--amber);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== ABOUT ===== */
.about-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.about-intro-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 38vh;
  padding: 2.5rem 0 2rem;
}

.about-logo-figure {
  position: relative;
  min-height: 180px;
  background: var(--ink-soft);
  border-radius: var(--radius);
  border: 1px solid var(--amber);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-lg {
  max-height: 80px;
  width: auto;
}

.about-logo-placeholder {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: 0.05em;
}

.about-intro-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.stat-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem;
  background: var(--cream-dark);
  border: 1px solid var(--amber-light);
  border-radius: var(--radius);
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber-dark);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-mid);
  margin-top: 0.2rem;
  letter-spacing: 0.05em;
}

/* ===== PRIVACY ===== */
.privacy-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.privacy-hero-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 35vh;
  padding: 2.5rem 0 2rem;
}

.privacy-hero-figure {
  position: relative;
  min-height: 160px;
  background: var(--ink);
  border-radius: var(--radius);
  border: 1px solid var(--amber);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice-list {
  list-style: none;
  margin-bottom: 1.2rem;
}

.notice-list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-mid);
  padding: 0.5rem 0 0.5rem 1rem;
  border-bottom: 1px dashed rgba(212,165,116,0.25);
  position: relative;
}

.notice-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--amber);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream-dark);
  margin-top: 3rem;
  border-top: 2px solid var(--amber);
}

.site-footer > section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
}

.footer-brand,
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid var(--ink-soft);
}

.footer-brand {
  grid-template-columns: 1fr;
  padding-bottom: 1rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.footer-brand-desc {
  font-size: 0.75rem;
  color: rgba(245,230,200,0.55);
  line-height: 1.5;
}

.footer-links nav > p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.footer-links nav > p > a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-light);
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-links nav > p > a:hover {
  color: var(--cream);
  text-decoration: none;
}

.footer-copy {
  text-align: center;
  border-bottom: none;
}

.footer-copy p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(245,230,200,0.4);
  letter-spacing: 0.04em;
}

/* ===== SCROLL REVEAL & STAGGER ===== */
.film-card,
.child-card,
.cat-card,
.entry-card,
.related-card {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.45s ease forwards;
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.children-list li:nth-child(1) .film-card,
.children-list li:nth-child(1) .child-card { animation-delay: 0.05s; }
.children-list li:nth-child(2) .film-card,
.children-list li:nth-child(2) .child-card { animation-delay: 0.10s; }
.children-list li:nth-child(3) .film-card,
.children-list li:nth-child(3) .child-card { animation-delay: 0.15s; }
.children-list li:nth-child(4) .film-card,
.children-list li:nth-child(4) .child-card { animation-delay: 0.20s; }
.children-list li:nth-child(5) .film-card,
.children-list li:nth-child(5) .child-card { animation-delay: 0.25s; }
.children-list li:nth-child(6) .film-card,
.children-list li:nth-child(6) .child-card { animation-delay: 0.30s; }

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

.entry-list li:nth-child(1) .film-card { animation-delay: 0.05s; }
.entry-list li:nth-child(2) .film-card { animation-delay: 0.10s; }
.entry-list li:nth-child(3) .film-card { animation-delay: 0.15s; }
.entry-list li:nth-child(4) .film-card { animation-delay: 0.20s; }
.entry-list li:nth-child(5) .film-card { animation-delay: 0.25s; }
.entry-list li:nth-child(6) .film-card { animation-delay: 0.30s; }

/* light leak animation */
.hero-figure::after,
.cat-hero-figure::after,
.entry-hero-figure::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,230,200,0.12), transparent);
  animation: light-leak 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes light-leak {
  0%, 100% { transform: translateX(-20%) skewX(-5deg); opacity: 0; }
  40% { opacity: 1; }
  50% { transform: translateX(160%) skewX(-5deg); opacity: 0.6; }
  51% { opacity: 0; }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section,
  .cat-hero-section,
  .entry-hero-section,
  .tag-hero-section,
  .about-intro-section,
  .privacy-hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.5rem 0;
  }

  .hero-figure,
  .cat-hero-figure,
  .entry-hero-figure,
  .tag-hero-figure,
  .about-logo-figure,
  .privacy-hero-figure {
    min-height: 160px;
    max-height: 200px;
  }

  .hero-text {
    order: -1;
    text-align: left;
    align-items: flex-start;
  }

  .content-section,
  .page-content-section,
  .cats-section,
  .entries-section,
  .cat-body-section,
  .cat-content-section,
  .tag-body-section,
  .tag-content-section,
  .about-body-section,
  .privacy-body-section,
  .entry-body-section {
    grid-template-columns: 1fr;
  }

  .cat-list {
    grid-template-columns: 1fr 1fr;
  }

  .entry-list {
    grid-template-columns: 1fr;
  }

  .children-list {
    grid-template-columns: 1fr;
  }

  .stat-list {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .main-nav > p {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav > p > a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .cat-list {
    grid-template-columns: 1fr;
  }

  .stat-list {
    grid-template-columns: 1fr 1fr;
  }

  .brand-tagline {
    display: none;
  }
}
