/* =========================================================
   개천용 — Gaecheonyong (龍)
   Ink wash × gold × modern editorial
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700;900&family=Nanum+Myeongjo:wght@400;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  /* Ink palette (배경) */
  --ink-0: #050506;         /* 가장 진한 먹 */
  --ink-1: #0A0A0C;         /* 페이지 배경 */
  --ink-2: #14141A;         /* 카드 */
  --ink-3: #1C1D24;         /* 라이즈드 */
  --ink-4: #262832;         /* 보더 */

  /* Gold palette (액센트) */
  --gold-0: #F4D488;        /* 밝은 금박 */
  --gold-1: #C9A960;        /* 메인 골드 */
  --gold-2: #A88848;        /* 딥 골드 */
  --gold-3: #6B5527;        /* 브론즈 */
  --gold-line: rgba(201, 169, 96, 0.2);

  /* Text */
  --fg-0: #F5F0E4;          /* 밝은 미색 */
  --fg-1: #C8C3B4;
  --fg-2: #85806F;
  --fg-3: #4A463C;

  /* Signal */
  --red: #B84B3E;
  --red-light: rgba(184, 75, 62, 0.15);
  --up: #7FBF9D;
  --down: #D97C6F;

  /* Fonts */
  --f-serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Times New Roman', serif;
  --f-hanja: 'Nanum Myeongjo', 'Noto Serif KR', serif;
  --f-sans: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1240px;
  --container-narrow: 780px;
  --easing: cubic-bezier(.4,.2,.2,1);
}

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

html {
  background: var(--ink-1);
  color: var(--fg-1);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
}
body { min-height: 100vh; overflow-x: hidden; word-break: keep-all; background: var(--ink-1); }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--fg-0); text-decoration: none; transition: color .2s var(--easing); }
a:hover { color: var(--gold-0); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold-1); color: var(--ink-0); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ==========================================================
   TICKER — 얇은 골드 라인 위 티커
   ========================================================== */
.ticker-bar {
  background: var(--ink-0);
  color: var(--fg-1);
  font-family: var(--f-mono);
  font-size: 12px;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gold-line);
}
.ticker-track {
  display: inline-flex;
  gap: 28px;
  padding-left: 32px;
  white-space: nowrap;
  animation: tickerScroll 55s linear infinite;
}
.ticker-item { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.01em; }
.ticker-item .sym { color: var(--gold-1); font-weight: 600; font-size: 12px; }
.ticker-item .price { color: var(--fg-0); font-weight: 500; }
.ticker-item .chg.up { color: var(--up); font-weight: 600; }
.ticker-item .chg.down { color: var(--down); font-weight: 600; }
.ticker-item .divider { color: var(--gold-line); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================
   HEADER — 상단 얇은 골드 라인 + 심플 좌우 배치
   ========================================================== */
.site-header {
  background: var(--ink-1);
  color: var(--fg-0);
  position: relative;
  border-bottom: 1px solid var(--ink-4);
}
.site-header::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-2) 20%, var(--gold-0) 50%, var(--gold-2) 80%, transparent 100%);
}
.site-header .container {
  display: flex; align-items: center; gap: 32px;
  height: 76px;
}

.site-logo {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.site-logo .seal {
  width: 44px; height: 44px;
  background: var(--ink-2);
  color: var(--gold-0);
  border: 1px solid var(--gold-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-hanja);
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}
.site-logo .brand-block { display: flex; flex-direction: column; line-height: 1; }
.site-logo .brand-ko {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-0);
  letter-spacing: -0.02em;
}
.site-logo .brand-en {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--gold-1);
  margin-top: 6px;
  text-transform: uppercase;
}
.site-logo:hover .brand-ko { color: var(--gold-0); }

.header-right {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.16em;
}
.header-right .today-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--fg-1);
  text-transform: none;
  letter-spacing: 0;
}

.header-search {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  transition: border-color .2s var(--easing);
  min-width: 220px;
}
.header-search:focus-within { border-color: var(--gold-2); }
.header-search svg {
  width: 15px; height: 15px;
  color: var(--gold-1);
  flex-shrink: 0;
}
.header-search input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: var(--fg-0);
  font-family: var(--f-serif);
  font-size: 13.5px;
  padding: 0;
  min-width: 0;
  letter-spacing: -0.005em;
}
.header-search input::placeholder { color: var(--fg-3); font-family: var(--f-serif); }

/* ==========================================================
   HERO — 시네마 배너 (로고 전체 이미지 + 하단 텍스트)
   ========================================================== */
.hero-scroll {
  position: relative;
  background: var(--ink-0);
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
}
.hero-scroll .hero-visual {
  aspect-ratio: 21 / 8;
  min-height: 380px;
  max-height: 620px;
  background: url('./images/logo_hero.jpg') center/cover no-repeat;
  position: relative;
}
.hero-scroll .hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,6,0.3) 0%, transparent 30%, transparent 60%, rgba(5,5,6,0.85) 100%),
    radial-gradient(ellipse 800px 400px at 50% 50%, transparent 30%, rgba(5,5,6,0.4) 100%);
}
.hero-scroll .hero-visual::after {
  /* 필름 그레인 느낌 얇은 골드 코너 */
  content: "";
  position: absolute;
  bottom: 24px; left: 32px; right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-2) 20%, var(--gold-0) 50%, var(--gold-2) 80%, transparent 100%);
  opacity: 0.5;
}

.hero-caption {
  background: var(--ink-1);
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--ink-4);
  position: relative;
}
.hero-caption .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.hero-caption .caption-left {
  font-family: var(--f-hanja);
  font-size: 54px;
  font-weight: 700;
  color: var(--gold-1);
  line-height: 1;
  padding-right: 32px;
  border-right: 1px solid var(--gold-line);
}
.hero-caption .caption-center h1 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--fg-0);
  margin: 0 0 10px;
  text-wrap: balance;
}
.hero-caption .caption-center p {
  font-family: var(--f-serif);
  font-size: 15.5px;
  font-style: italic;
  color: var(--fg-2);
  margin: 0;
  letter-spacing: -0.005em;
}
.hero-caption .caption-right {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--gold-1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.6;
  padding-left: 32px;
  border-left: 1px solid var(--gold-line);
}
.hero-caption .caption-right strong {
  display: block;
  font-family: var(--f-serif);
  font-size: 22px;
  color: var(--fg-0);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 4px;
}

/* ==========================================================
   MAIN — 비대칭 매거진 그리드
   ========================================================== */
.page-wrap { padding: 80px 0 100px; }

/* 섹션 헤더 */
.section-header {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-line);
}
.section-header .sh-hanja {
  font-family: var(--f-hanja);
  font-size: 38px;
  font-weight: 700;
  color: var(--gold-1);
  line-height: 1;
  padding-right: 20px;
  border-right: 1px solid var(--gold-line);
}
.section-header h2 {
  font-family: var(--f-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--fg-0);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.section-header h2 .sub {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--gold-1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 4px;
}
.section-header .sh-link {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-header .sh-link:hover { color: var(--gold-0); }

/* 그리드: 첫 카드는 크게 (2컬럼) + 나머지는 1컬럼씩 세로 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}

/* 각 카드 — 흑색 배경 + 골드 얇은 테두리 */
.article-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  overflow: hidden;
  transition: all .3s var(--easing);
  display: flex;
  flex-direction: column;
  position: relative;
}
.article-card:hover {
  border-color: var(--gold-2);
  transform: translateY(-2px);
}
.article-card:hover .ac-thumb img { transform: scale(1.03); }
.article-card:hover .ac-title { color: var(--gold-0); }

/* 카드 번호 (壹貳參肆伍陸柒捌玖拾) */
.article-card .ac-hanja-num {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--f-hanja);
  font-size: 46px;
  font-weight: 700;
  color: var(--gold-2);
  opacity: 0.4;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
  transition: opacity .3s var(--easing);
}
.article-card:hover .ac-hanja-num { opacity: 0.7; color: var(--gold-0); }

.ac-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
  position: relative;
}
.ac-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--easing);
}
.ac-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,6,0.1) 0%, transparent 40%, rgba(5,5,6,0.6) 100%);
  pointer-events: none;
}
.ac-cat-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  padding: 4px 12px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-0);
  background: rgba(10,10,12,0.85);
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  z-index: 2;
  text-transform: uppercase;
}

.ac-body {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column;
  flex: 1;
}
.ac-title {
  font-family: var(--f-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg-0);
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  text-wrap: pretty;
  transition: color .2s var(--easing);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-title a { color: inherit; }
.ac-summary {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-1);
  margin: 0 0 20px;
  font-weight: 400;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
  padding-top: 16px;
  border-top: 1px dashed var(--ink-4);
  margin-top: auto;
}
.ac-meta .sep { color: var(--fg-3); }
.ac-meta .ac-arrow {
  margin-left: auto;
  color: var(--gold-1);
  font-family: var(--f-serif);
  font-size: 16px;
  transition: transform .2s var(--easing);
}
.article-card:hover .ac-arrow { transform: translateX(4px); color: var(--gold-0); }

/* 카드 사이즈 배분 (첫 번째는 크게, 나머지 3개는 반) */
.article-card.card-hero { grid-column: span 6; grid-row: span 2; }
.article-card.card-hero .ac-thumb { aspect-ratio: 21/9; }
.article-card.card-hero .ac-body { padding: 32px 40px 36px; }
.article-card.card-hero .ac-title { font-size: 30px; -webkit-line-clamp: 3; }
.article-card.card-hero .ac-summary { font-size: 16px; -webkit-line-clamp: 3; }
.article-card.card-hero .ac-hanja-num { font-size: 72px; top: 24px; right: 32px; }

.article-card.card-lg { grid-column: span 3; }
.article-card.card-sm { grid-column: span 2; }
.article-card.card-sm .ac-thumb { aspect-ratio: 1/1; }

/* ==========================================================
   ARTICLE PAGE (개별 글)
   ========================================================== */
.article-page {
  background: var(--ink-1);
}
.article-hero {
  background: var(--ink-0);
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--gold-line);
  position: relative;
}
.article-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('./images/thumb_calligraphy.jpg') center/cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.article-hero .container-narrow { position: relative; z-index: 1; }

.article-hero .ah-topline {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
}
.article-hero .ah-hanja {
  font-family: var(--f-hanja);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-1);
  line-height: 1;
}
.article-hero .ah-cat {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gold-0);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  padding-left: 16px;
  border-left: 1px solid var(--gold-line);
}
.article-hero .ah-cat a { color: inherit; }
.article-hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--fg-0);
  margin: 0 0 24px;
  text-wrap: balance;
}
.article-hero .ah-meta {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
}
.article-hero .ah-meta .sep { color: var(--fg-3); }
.article-hero .ah-meta strong { color: var(--gold-1); font-weight: 600; }

/* 본문 */
.article-body {
  max-width: 720px;
  margin: 56px auto 48px;
  padding: 0 24px;
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 1.9;
  color: var(--fg-1);
  letter-spacing: -0.005em;
  word-break: keep-all;
  font-weight: 400;
}
.article-body *:not(pre):not(code):not(mark) {
  background: transparent !important;
  background-color: transparent !important;
}
.article-body p, .article-body span, .article-body div, .article-body li,
.article-body td, .article-body th,
.article-body a[style], .article-body span[style], .article-body p[style],
.article-body div[style], .article-body font, .article-body font[color] {
  color: var(--fg-1) !important;
  opacity: 1 !important;
}
.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body h5, .article-body h6 {
  color: var(--fg-0) !important;
  opacity: 1 !important;
}
.article-body a:not([style]) {
  color: var(--gold-0) !important;
  border-bottom: 1px solid var(--gold-line);
}
.article-body a:not([style]):hover { border-bottom-color: var(--gold-0); }

.article-body h2 {
  font-family: var(--f-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 60px 0 20px;
  line-height: 1.3;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-line);
  position: relative;
}
.article-body h2::before {
  content: "壹";
  font-family: var(--f-hanja);
  font-size: 14px;
  color: var(--gold-1);
  margin-right: 12px;
  vertical-align: 4px;
  font-weight: 700;
}
.article-body h2:nth-of-type(2)::before { content: "貳"; }
.article-body h2:nth-of-type(3)::before { content: "參"; }
.article-body h2:nth-of-type(4)::before { content: "肆"; }
.article-body h2:nth-of-type(5)::before { content: "伍"; }

.article-body h3 {
  font-family: var(--f-serif);
  font-size: 21px;
  font-weight: 600;
  margin: 40px 0 14px;
  line-height: 1.4;
  color: var(--fg-0) !important;
  letter-spacing: -0.02em;
}
.article-body p { margin: 0 0 20px; text-wrap: pretty; }
.article-body p:empty { margin: 0; height: 6px; }
.article-body strong, .article-body b {
  color: var(--gold-0) !important;
  font-weight: 700;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: var(--ink-2) !important;
  border-left: 3px solid var(--gold-1);
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--fg-0) !important;
  line-height: 1.7;
  font-style: italic;
  letter-spacing: -0.015em;
}
.article-body blockquote * { color: var(--fg-0) !important; background: transparent !important; }

.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 8px; list-style: none; }
.article-body ul li, .article-body ol li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  line-height: 1.8;
  color: var(--fg-1) !important;
}
.article-body ul li::before {
  content: "·";
  position: absolute;
  left: 12px; top: -2px;
  color: var(--gold-1);
  font-size: 24px;
  font-weight: 700;
}
.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; }
.article-body ol li::before {
  content: counter(item);
  position: absolute;
  left: 0; top: 8px;
  width: 20px; height: 20px;
  border: 1px solid var(--gold-1);
  color: var(--gold-0);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.article-body img {
  border-radius: 2px;
  margin: 32px auto;
  border: 1px solid var(--ink-4);
}
.article-body figure { margin: 32px 0; }
.article-body figcaption {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--fg-2) !important;
  text-align: center;
  margin-top: 12px;
}
.article-body code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  padding: 2px 7px;
  background: var(--ink-3) !important;
  color: var(--gold-0) !important;
  border: 1px solid var(--ink-4);
  border-radius: 2px;
}
.article-body pre {
  background: var(--ink-0) !important;
  color: var(--fg-0) !important;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 28px 0;
  border-left: 3px solid var(--gold-1);
}
.article-body pre code { padding: 0; background: none !important; color: var(--fg-0) !important; border: 0; }
.article-body hr {
  border: 0;
  margin: 48px auto;
  text-align: center;
  height: 20px;
  position: relative;
}
.article-body hr::before {
  content: "◈";
  color: var(--gold-1);
  font-size: 18px;
  letter-spacing: 0.4em;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 14.5px; }
.article-body th, .article-body td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ink-4); }
.article-body th {
  font-family: var(--f-mono);
  font-weight: 600; color: var(--gold-0);
  background: var(--ink-2) !important;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Disclaimer (제거되었지만 혹시 남아있다면 스타일) */
.disclaimer { display: none; }

/* Related */
.related-section {
  max-width: var(--container);
  margin: 80px auto;
  padding: 0 32px;
}
.related-section .article-grid {
  grid-template-columns: repeat(3, 1fr);
}
.related-section .article-card { grid-column: span 1; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 4px;
  margin: 64px 0 20px;
  font-family: var(--f-mono);
}
.pagination a, .pagination span {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  padding: 0 14px;
  transition: all .2s var(--easing);
  letter-spacing: 0.04em;
}
.pagination a:hover { color: var(--gold-0); border-color: var(--gold-2); }
.pagination .current {
  color: var(--ink-0); background: var(--gold-1); border-color: var(--gold-1); font-weight: 700;
}

/* Empty */
.empty-state {
  padding: 100px 24px;
  text-align: center;
  color: var(--fg-2);
  font-family: var(--f-serif);
  font-size: 18px;
  font-style: italic;
}
.empty-state .es-hanja {
  font-family: var(--f-hanja);
  font-size: 60px;
  color: var(--gold-3);
  margin-bottom: 20px;
  display: block;
}

/* ==========================================================
   FLOATING SEARCH (우측 하단)
   ========================================================== */
.search-fab {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 56px; height: 56px;
  background: var(--ink-1);
  color: var(--gold-0);
  border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-2);
  box-shadow: 0 10px 30px -6px rgba(0,0,0,0.5);
  cursor: pointer;
  z-index: 200;
  transition: all .2s var(--easing);
}
.search-fab::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}
.search-fab:hover {
  background: var(--gold-1);
  color: var(--ink-0);
  border-color: var(--gold-0);
}

.search-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 5, 6, 0.94);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--easing), visibility .25s var(--easing);
  backdrop-filter: blur(6px);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  transform: translateY(24px);
  transition: transform .3s var(--easing);
}
.search-overlay.open .search-overlay-inner { transform: translateY(0); }
.search-overlay-label {
  font-family: var(--f-hanja);
  font-size: 48px;
  color: var(--gold-0);
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1;
}
.search-overlay-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gold-1);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-align: center;
  font-weight: 600;
}
.search-overlay form {
  background: transparent;
  border-bottom: 2px solid var(--gold-1);
  padding: 0 4px;
  display: flex; align-items: center; gap: 16px;
}
.search-overlay form svg {
  width: 20px; height: 20px;
  color: var(--gold-1);
  flex-shrink: 0;
}
.search-overlay form input {
  flex: 1;
  background: none; border: 0; outline: 0;
  color: var(--fg-0);
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 500;
  padding: 14px 0;
  letter-spacing: -0.02em;
}
.search-overlay form input::placeholder { color: var(--fg-3); }
.search-overlay form button {
  padding: 8px 20px;
  background: var(--gold-1);
  color: var(--ink-0);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .15s var(--easing);
  cursor: pointer;
  flex-shrink: 0;
}
.search-overlay form button:hover { background: var(--gold-0); }
.search-overlay-hint {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 20px;
  text-align: center;
}

/* ==========================================================
   FOOTER — 가로 두루마리
   ========================================================== */
.site-footer {
  background: var(--ink-0);
  color: var(--fg-1);
  margin-top: 80px;
  position: relative;
  border-top: 1px solid var(--ink-4);
  overflow: hidden;
}
.site-footer::before {
  /* 상단 골드 라인 */
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-2) 20%, var(--gold-0) 50%, var(--gold-2) 80%, transparent 100%);
}
.site-footer::after {
  /* 배경 이미지 앰비언트 */
  content: "";
  position: absolute; inset: 0;
  background: url('./images/thumb_dragon.jpg') right center/cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }

.footer-scroll {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 32px 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}

/* 좌측: 세로 인장 도장 */
.fs-seal {
  width: 120px; height: 160px;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
  position: relative;
  font-family: var(--f-hanja);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 8px 24px -6px rgba(184,75,62,0.3);
}
.fs-seal::before {
  content: "";
  position: absolute; inset: 6px;
  border: 2px solid rgba(255,255,255,0.35);
  pointer-events: none;
}
.fs-seal .seal-char {
  font-size: 40px;
  line-height: 1;
  padding: 4px 0;
}
.fs-seal .seal-sub {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin-top: 6px;
}

/* 중앙: 텍스트 */
.fs-body {
  min-width: 0;
}
.fs-body .fs-title-han {
  font-family: var(--f-hanja);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-1);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}
.fs-body .fs-title {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--fg-0);
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-wrap: balance;
}
.fs-body .fs-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--fg-1);
  line-height: 1.7;
  margin: 0;
  max-width: 50ch;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.fs-body .fs-quote::before {
  content: "\201C";
  color: var(--gold-1);
  font-family: var(--f-serif);
  font-size: 24px;
  vertical-align: -4px;
  margin-right: 4px;
  opacity: 0.7;
}
.fs-body .fs-quote::after {
  content: "\201D";
  color: var(--gold-1);
  font-family: var(--f-serif);
  font-size: 24px;
  vertical-align: -4px;
  margin-left: 2px;
  opacity: 0.7;
}

/* 우측: 카테고리 미니 리스트 */
.fs-index {
  min-width: 180px;
}
.fs-index .fs-index-label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--gold-1);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-line);
  text-align: right;
}
/* 티스토리 카테고리 재정의 (우측정렬) */
.fs-index * {
  background: transparent !important;
  border: 0 !important;
  text-decoration: none !important;
  text-align: right !important;
  font-family: var(--f-serif) !important;
}
.fs-index ul, .fs-index ol { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.fs-index li { margin: 0 !important; padding: 0 !important; }
.fs-index a, .fs-index .link_item {
  display: block !important;
  padding: 7px 0 !important;
  font-family: var(--f-serif) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--fg-1) !important;
  transition: color .15s var(--easing);
  letter-spacing: -0.01em;
}
.fs-index a:hover, .fs-index .link_item:hover { color: var(--gold-0) !important; }
.fs-index .selected > a, .fs-index a.selected { color: var(--gold-0) !important; }
.fs-index .c_cnt, .fs-index .cnt, .fs-index .num {
  font-family: var(--f-mono) !important;
  font-size: 10.5px !important;
  color: var(--gold-1) !important;
  margin-left: 6px !important;
  font-weight: 500 !important;
}
.fs-index img, .fs-index [class*="ico_"] { display: none !important; }

/* 하단 크레딧 */
.footer-strip {
  border-top: 1px solid var(--ink-4);
  padding: 24px 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
}
.footer-strip .gold { color: var(--gold-1); font-weight: 600; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .hero-caption .container { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .hero-caption .caption-left { padding-right: 0; border-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--gold-line); }
  .hero-caption .caption-right { padding-left: 0; border-left: 0; text-align: left; padding-top: 16px; border-top: 1px solid var(--gold-line); }

  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card.card-hero { grid-column: span 2; grid-row: auto; }
  .article-card.card-lg { grid-column: span 1; }
  .article-card.card-sm { grid-column: span 1; }
  .article-card.card-sm .ac-thumb { aspect-ratio: 4/3; }

  .related-section .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-scroll { grid-template-columns: 1fr; gap: 40px; text-align: center; padding: 56px 32px 32px; }
  .fs-seal { margin: 0 auto; }
  .fs-index { min-width: auto; }
  .fs-index .fs-index-label { text-align: center; }
  .fs-index * { text-align: center !important; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .site-header .container { height: 60px; gap: 12px; }
  .site-logo .brand-en { display: none; }
  .header-right .today-quote { display: none; }
  .header-right { gap: 12px; }
  .header-search { min-width: 0; padding: 6px 12px; }
  .header-search input { font-size: 13px; width: 120px; }

  .hero-scroll .hero-visual { min-height: 260px; }
  .hero-caption { padding: 32px 0 40px; }
  .hero-caption .caption-left { font-size: 42px; }

  .section-header { flex-wrap: wrap; gap: 12px; }
  .section-header .sh-hanja { font-size: 32px; padding-right: 16px; }
  .section-header h2 { font-size: 20px; }

  .article-grid { grid-template-columns: 1fr; }
  .article-card.card-hero { grid-column: span 1; }
  .article-card.card-lg, .article-card.card-sm { grid-column: span 1; }
  .article-card.card-hero .ac-body { padding: 24px 24px 28px; }
  .article-card.card-hero .ac-title { font-size: 24px; }
  .related-section .article-grid { grid-template-columns: 1fr; }

  .article-hero { padding: 48px 0 32px; }
  .article-body { padding: 0 24px; font-size: 16.5px; }

  .search-fab { bottom: 20px; right: 20px; width: 48px; height: 48px; }
  .footer-strip { flex-direction: column; text-align: center; }
}
