@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500;700&display=swap');

/* ============================================================
   CSS 变量 & 重置
   ============================================================ */
:root {
  --red: #ff0000;
  --pink: #ff006e;
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --navy-mid: #0f3460;
  --cyan: #00ffff;
  --white: #f0f0f0;
  --grey: #8888aa;
  --card-bg: rgba(255,255,255,0.03);
  --border: rgba(255,0,110,0.3);
  --border-red: rgba(255,0,0,0.4);
  --glow-red: 0 0 8px #ff0000, 0 0 20px rgba(255,0,0,0.4);
  --glow-pink: 0 0 8px #ff006e, 0 0 20px rgba(255,0,110,0.4);
  --glow-cyan: 0 0 8px #00ffff, 0 0 16px rgba(0,255,255,0.3);
  --font-body: 'Exo', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
  --max-w: 1200px;
  --radius: 4px;
  --header-h: 100px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   CRT 纹理 & 扫描线
   ============================================================ */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.06) 0px,
    rgba(0,0,0,0.06) 1px,
    transparent 1px,
    transparent 3px
  );
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,255,255,0.015) 2px,
    rgba(0,255,255,0.015) 4px
  );
  animation: scanMove 8s linear infinite;
}

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

/* ============================================================
   网格几何背景
   ============================================================ */
.grid-deco {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255,0,110,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,110,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: var(--radius);
}

.geo-circle {
  width: 200px;
  height: 200px;
  border: 2px solid var(--pink);
  border-radius: 50%;
  box-shadow: var(--glow-pink);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateSlow 20s linear infinite;
}

.geo-circle.small {
  width: 100px;
  height: 100px;
}

.geo-line {
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--pink), transparent);
  box-shadow: var(--glow-red);
  margin: 20px auto;
}

@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   HEADER & 导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,46,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-announce {
  background: linear-gradient(90deg, var(--red), var(--pink));
  padding: 4px 16px;
  text-align: center;
}

.announce-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.05em;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--glow-red);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* details/summary 导航 */
.nav-details {
  position: relative;
}

.nav-toggle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--pink);
  cursor: pointer;
  list-style: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  user-select: none;
  display: none;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-menu li a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--white);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  min-height: 40px;
  line-height: 20px;
}

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

/* ============================================================
   픽셀 배지 & 공통 배지
   ============================================================ */
.pixel-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: var(--glow-red);
  box-shadow: 0 0 6px rgba(255,0,0,0.3);
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 2px 8px;
  border-radius: 2px;
  margin-right: 6px;
  text-shadow: var(--glow-cyan);
  box-shadow: 0 0 6px rgba(0,255,255,0.2);
}

.eyebrow-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-shadow: var(--glow-pink);
}

/* ============================================================
   글리치 효과
   ============================================================ */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.glitch::before {
  color: var(--cyan);
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  left: 2px;
}

.glitch::after {
  color: var(--pink);
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  left: -2px;
}

@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  92% { transform: translateX(-3px) skewX(-2deg); opacity: 0.8; }
  94% { transform: translateX(3px) skewX(2deg); opacity: 0.8; }
  96% { transform: translateX(0); opacity: 0; }
}

@keyframes glitch2 {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  90% { transform: translateX(3px) skewX(1deg); opacity: 0.7; }
  92% { transform: translateX(-2px); opacity: 0.7; }
  94% { transform: translateX(0); opacity: 0; }
}

/* ============================================================
   HOME — 히어로
   ============================================================ */
.home-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 70vh;
  padding: 60px 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-h1 {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--glow-red);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 16px;
  color: var(--grey);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  height: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
}

/* ============================================================
   버튼
   ============================================================ */
.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--red);
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  text-shadow: none;
  box-shadow: var(--glow-red);
  transition: background 0.2s, box-shadow 0.2s;
  min-height: 44px;
  line-height: 20px;
}

.btn-primary:hover {
  background: #cc0000;
  box-shadow: 0 0 16px #ff0000, 0 0 32px rgba(255,0,0,0.5);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
  background: transparent;
  border: 1px solid var(--pink);
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--glow-pink);
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
  line-height: 20px;
}

.btn-secondary:hover {
  background: var(--pink);
  color: var(--navy);
}

.btn-primary.small,
.btn-secondary.small {
  font-size: 13px;
  padding: 8px 16px;
  min-height: 36px;
  display: block;
  text-align: center;
  margin-bottom: 8px;
}

/* ============================================================
   HOME — 카테고리 섹션
   ============================================================ */
.categories-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.section-aside {
  display: flex;
  flex-direction: column;
}

.section-h2 {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.3;
}

.cat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.cat-item a {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  gap: 4px;
  min-height: 80px;
}

.cat-item a:hover {
  border-color: var(--pink);
  box-shadow: var(--glow-pink);
}

.cat-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--pink);
}

.cat-item small {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.5;
}

.cat-hero-fig,
.geo-deco {
  position: relative;
  min-height: 200px;
}

/* ============================================================
   HOME — 콘텐츠 섹션 (2열)
   ============================================================ */
.content-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.content-body {
  min-width: 0;
}

.content-aside {
  min-width: 0;
}

/* ============================================================
   카드 리스트
   ============================================================ */
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card-item:hover {
  border-color: var(--red);
  box-shadow: 0 0 8px rgba(255,0,0,0.2);
}

.card-link {
  display: flex;
  flex-direction: column;
  padding: 14px;
  text-decoration: none;
  gap: 4px;
}

.card-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.card-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
}

.card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey);
}

/* ============================================================
   사이드바 공통
   ============================================================ */
.aside-h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.sidebar-list li a {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey);
  text-decoration: none;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  min-height: 40px;
  line-height: 24px;
}

.sidebar-list li a:hover {
  color: var(--pink);
  border-left-color: var(--pink);
}

.sidebar-deco {
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink), transparent);
  box-shadow: var(--glow-red);
  margin: 16px 0;
}

.sidebar-cta {
  padding: 16px;
  border: 1px solid var(--border-red);
  border-radius: var(--radius);
  background: rgba(255,0,0,0.04);
}

/* ============================================================
   프로즈 콘텐츠
   ============================================================ */
.prose-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--white);
  margin-bottom: 32px;
}

.prose-content h2 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--glow-red);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.prose-content h3 {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--pink);
  margin: 24px 0 10px;
  line-height: 1.4;
}

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

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

.prose-content a:hover {
  color: var(--red);
  text-shadow: var(--glow-red);
}

.prose-content ul, .prose-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose-content li {
  margin-bottom: 6px;
}

.prose-content strong {
  color: var(--white);
  font-weight: 600;
}

.prose-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(255,0,110,0.1);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--cyan);
}

.prose-content blockquote {
  border-left: 3px solid var(--red);
  padding-left: 16px;
  color: var(--grey);
  margin: 16px 0;
  font-style: italic;
}

/* ============================================================
   CATEGORY 페이지
   ============================================================ */
.cat-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.cat-hero-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

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

.cat-h1 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--glow-red);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cat-desc {
  font-size: 16px;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.7;
}

.cat-hero-fig {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.cat-content-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

.cat-body {
  min-width: 0;
}

.cat-sidebar {
  position: relative;
  min-width: 0;
}

.cat-article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: article-counter;
}

.cat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  counter-increment: article-counter;
}

.cat-card::before {
  content: counter(article-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pink);
  display: block;
  padding: 8px 16px 0;
  opacity: 0.6;
}

.cat-card:hover {
  border-color: var(--pink);
  box-shadow: var(--glow-pink);
}

.cat-card a {
  display: flex;
  flex-direction: column;
  padding: 6px 16px 14px;
  text-decoration: none;
  gap: 4px;
}

.cat-card a strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.cat-card a small {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
}

.item-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey);
  padding: 0 16px 10px;
  display: block;
}

.empty-tip {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey);
  padding: 20px;
}

/* ============================================================
   ARTICLE 페이지
   ============================================================ */
.article-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.article-header-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.article-meta-aside {
  display: flex;
  flex-direction: column;
}

.breadcrumb-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
  text-decoration: none;
  margin-bottom: 12px;
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
}

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

.article-h1 {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--glow-red);
  margin-bottom: 16px;
  line-height: 1.25;
}

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

.meta-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
}

.meta-item time {
  color: var(--pink);
}

.article-hero-fig {
  position: relative;
  height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
}

.article-hero-fig.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

.article-content {
  min-width: 0;
}

.article-sidebar {
  min-width: 0;
}

/* ============================================================
   TAG 페이지
   ============================================================ */
.tag-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.tag-hero-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.tag-hero-fig {
  position: relative;
  height: 160px;
  overflow: hidden;
}

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

.tag-h1 {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  color: var(--pink);
  text-shadow: var(--glow-pink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.tag-content-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 0;
}

.tag-body {
  min-width: 0;
}

.tag-sidebar {
  min-width: 0;
}

.tag-article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: tag-counter;
}

.tag-article-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color 0.2s;
  counter-increment: tag-counter;
}

.tag-article-item::before {
  content: counter(tag-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  display: block;
  padding: 8px 14px 0;
  opacity: 0.6;
}

.tag-article-item:hover {
  border-color: var(--red);
}

.tag-article-item a {
  display: flex;
  flex-direction: column;
  padding: 4px 14px 10px;
  text-decoration: none;
  gap: 4px;
}

.tag-article-item a strong {
  font-size: 14px;
  color: var(--white);
  font-weight: 600;
}

.tag-article-item a small {
  font-size: 12px;
  color: var(--grey);
}

.tag-article-item .item-date {
  padding: 0 14px 8px;
}

.tag-cloud li a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: 4px;
  min-height: 32px;
  line-height: 18px;
}

.tag-cloud li a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* ============================================================
   ABOUT 페이지
   ============================================================ */
.about-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.about-intro-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

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

.about-h1 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--glow-red);
  margin-bottom: 16px;
  line-height: 1.2;
}

.about-lead {
  font-size: 16px;
  color: var(--grey);
  line-height: 1.7;
}

.about-fig {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.about-content-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 0;
}

.about-body {
  min-width: 0;
}

.about-sidebar {
  min-width: 0;
}

/* ============================================================
   PRIVACY 페이지
   ============================================================ */
.privacy-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-header-section {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.privacy-header-aside {
  display: flex;
  flex-direction: column;
}

.privacy-h1 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--glow-red);
  margin-bottom: 12px;
  line-height: 1.2;
}

.privacy-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
}

.privacy-date time {
  color: var(--pink);
}

.privacy-fig {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
}

.privacy-content-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding: 40px 0;
}

.privacy-body {
  min-width: 0;
}

.privacy-sidebar {
  min-width: 0;
}

/* ============================================================
   DEFAULT 페이지
   ============================================================ */
.default-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.default-header-section {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.default-header-aside {
  display: flex;
  flex-direction: column;
}

.default-h1 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--glow-red);
  line-height: 1.2;
}

.default-fig {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.default-content-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding: 40px 0;
}

.default-body {
  min-width: 0;
}

.default-sidebar {
  min-width: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-light);
  border-top: 2px solid var(--red);
  box-shadow: 0 -4px 20px rgba(255,0,0,0.15);
  margin-top: 80px;
}

.site-footer > div {
  max-width: none;
}

.site-footer {
  display: grid;
  grid-template-rows: auto auto;
}

.site-footer > .footer-bar {
  grid-column: 1 / -1;
}

/* 四栏 footer 内容区 */
.site-footer {
  padding: 0;
}

.site-footer > div.footer-brand,
.site-footer > div.footer-nav,
.site-footer > div.footer-links,
.site-footer > div.footer-tags {
  display: block;
}

/* 用 wrapper 实现四栏 */
.site-footer {
  display: block;
}

.site-footer > div {
  display: block;
}

/* 四栏网格容器 hack: 在 footer 内部用伪元素做不了，改用 CSS Grid on footer */
.site-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 0;
}

.site-footer > div.footer-brand { grid-column: 1; }
.site-footer > div.footer-nav { grid-column: 2; }
.site-footer > div.footer-links { grid-column: 3; }
.site-footer > div.footer-tags { grid-column: 4; }
.site-footer > .footer-bar { grid-column: 1 / -1; }

.site-footer > div {
  padding: 40px 24px;
  border-right: 1px solid rgba(255,0,110,0.1);
}

.site-footer > div:last-of-type {
  border-right: none;
}

.footer-logo {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--glow-red);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.6;
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-shadow: var(--glow-pink);
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.site-footer ul li a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
}

.site-footer ul li a:hover {
  color: var(--white);
}

.footer-bar {
  grid-column: 1 / -1;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,0,110,0.15);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
}

/* ============================================================
   스크롤 리빌 애니메이션
   ============================================================ */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease calc(var(--i, 0) * 0.07s),
              transform 0.4s ease calc(var(--i, 0) * 0.07s);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scanlines { animation: none; }
  .geo-circle { animation: none; }
  .glitch::before, .glitch::after { display: none; }
}

/* ============================================================
   미디어 쿼리 — 태블릿
   ============================================================ */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0;
  }

  .hero-figure {
    height: 260px;
  }

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

  .content-section,
  .cat-content-section,
  .article-body-section,
  .article-header-section,
  .tag-content-section,
  .tag-hero-section,
  .about-content-section,
  .about-intro-section,
  .privacy-content-section,
  .privacy-header-section,
  .default-content-section,
  .default-header-section {
    grid-template-columns: 1fr;
  }

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

  .article-hero-fig {
    display: none;
  }

  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer > div.footer-brand { grid-column: 1; }
  .site-footer > div.footer-nav { grid-column: 2; }
  .site-footer > div.footer-links { grid-column: 1; }
  .site-footer > div.footer-tags { grid-column: 2; }
  .site-footer > .footer-bar { grid-column: 1 / -1; }
}

/* ============================================================
   미디어 쿼리 — 모바일 375px
   ============================================================ */
@media (max-width: 600px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 13px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-details:not([open]) .nav-menu {
    display: none;
  }

  .nav-details[open] .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26,26,46,0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 240px;
    z-index: 200;
  }

  .nav-menu li a {
    min-height: 44px;
    line-height: 24px;
    padding: 10px 16px;
  }

  .home-main,
  .cat-main,
  .article-main,
  .tag-main,
  .about-main,
  .privacy-main,
  .default-main {
    padding: 0 16px;
  }

  .hero-h1 {
    font-size: 22px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-figure {
    height: 200px;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer > div.footer-brand,
  .site-footer > div.footer-nav,
  .site-footer > div.footer-links,
  .site-footer > div.footer-tags {
    grid-column: 1;
    border-right: none;
    border-bottom: 1px solid rgba(255,0,110,0.1);
    padding: 24px 16px;
  }

  .section-h2 {
    font-size: 20px;
  }

  .article-meta {
    flex-direction: column;
    gap: 6px;
  }

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

  .tag-hero-fig {
    display: none;
  }
}
