/*
Theme Name: 식탁너머
Theme URI: https://beyondtable.kr
Author: 문상윤
Description: 웹진 『식탁너머』 테마 — 다녀온 맛집과 외식산업 읽기. 밥상에서 산업과 정책까지.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: beyondtable
*/

/* ─────────────────────────────────────────────
   식탁너머 · BEYOND TABLE
   색은 맨 위 :root 에서 한 번에 바꿀 수 있습니다.
   ───────────────────────────────────────────── */

:root {
  --bg: #F5F2EA;
  --surface: #FBF9F4;
  --surface-2: #EEEAE0;
  --ink: #1B1A17;
  --ink-2: #3B3934;
  --muted: #736E64;
  --line: #E1DACC;
  --line-2: #CDC4B2;
  --accent: #2C4A3A;
  --accent-hover: #213B2D;
  --on-accent: #F5F2EA;
  --clay: #B4532C;
  --tone-0: #E6DAC2;
  --tone-1: #D3DFCC;
  --tone-2: #EED2C0;
  --tone-3: #D1DBE1;
  --tone-4: #DCDFC2;
  --tone-5: #E2D2DC;
  --tone-ink: #2A2824;
  --shadow: 0 1px 2px rgba(27, 26, 23, .04), 0 12px 32px -16px rgba(27, 26, 23, .18);

  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1180px;
  --narrow: 720px;
  --r: 16px;
  --r-sm: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121412;
    --surface: #191C19;
    --surface-2: #222622;
    --ink: #ECE8DF;
    --ink-2: #CFCAC0;
    --muted: #9C978C;
    --line: #2A2E29;
    --line-2: #3B403A;
    --accent: #9CC2A8;
    --accent-hover: #B5D4BF;
    --on-accent: #0F1A13;
    --clay: #E3855C;
    --tone-0: #2B2721;
    --tone-1: #222B23;
    --tone-2: #2F251F;
    --tone-3: #21282C;
    --tone-4: #2B291A;
    --tone-5: #29232B;
    --tone-ink: #E9E4D9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121412;
  --surface: #191C19;
  --surface-2: #222622;
  --ink: #ECE8DF;
  --ink-2: #CFCAC0;
  --muted: #9C978C;
  --line: #2A2E29;
  --line-2: #3B403A;
  --accent: #9CC2A8;
  --accent-hover: #B5D4BF;
  --on-accent: #0F1A13;
  --clay: #E3855C;
  --tone-0: #2B2721;
  --tone-1: #222B23;
  --tone-2: #2F251F;
  --tone-3: #21282C;
  --tone-4: #2B291A;
  --tone-5: #29232B;
  --tone-ink: #E9E4D9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* ── 기본 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.011em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(var(--narrow), calc(100% - 40px)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 12px; z-index: 100; }
.skip:focus { left: 16px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }

.arrow { display: inline-block; transition: transform .25s ease; }
a:hover .arrow { transform: translateX(4px); }

/* ── 머리 ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 10px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-mark .mark-dot { fill: var(--clay); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-ko { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand-en { font-size: 9.5px; letter-spacing: .34em; color: var(--muted); margin-top: 6px; font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--surface-2); }
.site-nav .nav-cta { background: var(--accent); color: var(--on-accent); margin-left: 8px; font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--accent-hover); color: var(--on-accent); }

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  border-radius: 999px; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle { margin-left: 6px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }
.menu-toggle path { transition: transform .25s ease; transform-origin: center; }
.nav-open .menu-toggle .l1 { transform: translateY(4px) rotate(45deg); }
.nav-open .menu-toggle .l2 { transform: translateY(-4px) rotate(-45deg); }

/* ── 첫 화면 ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  padding: clamp(56px, 9vw, 128px) 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  background: var(--surface); border: 1px solid var(--line);
  padding: 7px 15px 7px 13px; border-radius: 999px;
  margin: 0 0 30px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--clay);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(180, 83, 44, .45); }
  70% { box-shadow: 0 0 0 10px rgba(180, 83, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(180, 83, 44, 0); }
}
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  line-height: 1.12; letter-spacing: -0.04em;
  margin: 0 0 30px;
}
.hero-title em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(transparent 90%, color-mix(in srgb, var(--clay) 55%, transparent) 90%, color-mix(in srgb, var(--clay) 55%, transparent) 96%, transparent 96%);
  padding: 0 .02em;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.55vw, 1.2rem); line-height: 1.85;
  color: var(--ink-2); max-width: 33em; margin: 0 0 38px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-light { background: var(--on-accent); color: var(--accent); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; border-color: var(--line-2); }
.btn-small:hover { border-color: var(--ink); }

.value-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px 32px 30px; box-shadow: var(--shadow);
}
.value-plate { position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border: 1.5px solid var(--accent); border-radius: 50%; opacity: .12; pointer-events: none; }
.value-plate::after { content: ""; position: absolute; left: -80px; right: -60px; top: 50%; border-top: 1.5px solid var(--accent); }
.value-label { margin: 0 0 14px; font-size: 11.5px; letter-spacing: .24em; font-weight: 700; color: var(--clay); }
.value-title { position: relative; margin: 0 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.42rem; line-height: 1.45; font-weight: 700; letter-spacing: -0.035em; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.values li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.v-num { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--clay); }
.values strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 3px; }
.values p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.hero-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.text-link { font-weight: 600; font-size: 15px; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ── 구역 ── */
.section { padding-top: clamp(72px, 9vw, 112px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.kicker { font-size: 12px; letter-spacing: .26em; font-weight: 700; color: var(--clay); margin: 0 0 12px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.25; letter-spacing: -0.035em; margin: 0; }
.section-intro { color: var(--muted); margin: 12px 0 0; max-width: 36em; font-size: 16px; line-height: 1.75; }
.more { flex: none; font-size: 15px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; padding-bottom: 4px; }
.more:hover { color: var(--accent); }

/* ── 맛집 카드 ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 48px 30px; }
.card { display: flex; flex-direction: column; gap: 20px; }
.card[hidden] { display: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--tone, var(--tone-0)); isolation: isolate; }
.tone-0 { --tone: var(--tone-0); } .tone-1 { --tone: var(--tone-1); } .tone-2 { --tone: var(--tone-2); }
.tone-3 { --tone: var(--tone-3); } .tone-4 { --tone: var(--tone-4); } .tone-5 { --tone: var(--tone-5); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px 26px; color: var(--tone-ink);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .32), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(0, 0, 0, .06), transparent 70%);
}
.ph-area { font-size: 12px; letter-spacing: .14em; font-weight: 600; opacity: .72; }
.ph-menu { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.2; max-width: 80%; }
.ph-plate { position: absolute; right: -44px; bottom: -44px; width: 190px; height: 190px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .16; }
.ph-plate::after { content: ""; position: absolute; left: -60px; right: -40px; top: 50%; border-top: 1.5px solid currentColor; }
.card:hover .card-media img, .card:hover .ph { transform: scale(1.04); }
.badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--ink); color: var(--bg);
  padding: 3px 10px; border-radius: 999px;
}
.badge-draft { background: var(--clay); color: #fff; }
.row .badge { position: static; display: inline-block; vertical-align: middle; margin-left: 6px; font-family: var(--sans); font-size: 11.5px; }
.card-kicker { font-size: 13.5px; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.card h3 { font-family: var(--serif); font-size: 1.32rem; line-height: 1.42; letter-spacing: -0.03em; margin: 0 0 8px; font-weight: 700; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.card-sum {
  margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin: 12px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── 글 목록(외식산업) ── */
.rows { border-top: 1.5px solid var(--ink); }
.row a {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 32px; align-items: baseline;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.row-date { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row h3 { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.62rem); line-height: 1.42; letter-spacing: -0.035em; margin: 0 0 8px; font-weight: 700; transition: color .2s; }
.row p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.75; max-width: 42em; }
.row-time { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.row a:hover h3 { color: var(--accent); }

/* ── 다룰 이야기 ── */
.topics {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.topics li { padding: 34px 30px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s; }
.topics li:hover { background: var(--surface); }
.topics .num { display: block; font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--clay); margin-bottom: 30px; }
.topics h3 { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.03em; margin: 0 0 8px; }
.topics p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ── 창간 띠 ── */
.launch { margin-top: clamp(80px, 10vw, 128px); background: var(--accent); color: var(--on-accent); }
.launch-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding: clamp(60px, 8vw, 100px) 0; }
.launch .kicker { color: currentColor; opacity: .7; }
.launch h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.25; letter-spacing: -0.04em; margin: 0 0 18px; }
.launch p { margin: 0; opacity: .86; max-width: 34em; line-height: 1.8; }
.launch .btn { flex: none; }

/* ── 바닥 ── */
.site-footer { padding: 60px 0 52px; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); }
.is-home .site-footer { border-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 40px; }
.footer-brand .brand { color: var(--ink); }
.footer-brand p { margin: 16px 0 0; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-nav a:hover, .footer-meta a:hover { color: var(--ink); }
.footer-nav a[aria-current] { color: var(--ink); }
.footer-meta p { margin: 0 0 6px; line-height: 1.65; }
.footer-meta .copy { margin-top: 14px; font-size: 13px; }
.footer-meta .sign { font-size: 11px; letter-spacing: .03em; opacity: .75; }
.footer-meta .sign::before { content: "·"; margin: 0 8px; }

/* ── 목록 페이지 머리 ── */
.page-head { padding: clamp(56px, 8vw, 112px) 0 44px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 3.7rem); letter-spacing: -0.04em; line-height: 1.15; margin: 0 0 20px; }
.page-intro { font-size: 1.12rem; line-height: 1.8; color: var(--ink-2); max-width: 38em; margin: 0; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.pills li { font-size: 13.5px; font-weight: 600; color: var(--accent); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.pills li::before { content: "✓"; margin-right: 6px; color: var(--clay); }
.list-wrap { padding-bottom: 24px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 22px 0 40px; border-top: 1px solid var(--line); }
.filters-rule { border-top: 1px solid var(--line); margin-bottom: 40px; }
.chip {
  font-size: 14.5px; font-weight: 500; padding: 8px 17px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); margin: 0; }
.card-grid > .empty { grid-column: 1 / -1; }
.filter-empty { margin-top: 24px; }

/* ── 글 ── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--clay); }
.post { padding: clamp(48px, 7vw, 92px) 0 8px; }
.post-head { margin-bottom: 40px; }
.kicker-link { font-size: 13px; letter-spacing: .14em; font-weight: 700; color: var(--clay); }
.kicker-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-head h1 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.15rem); line-height: 1.28; letter-spacing: -0.04em; margin: 18px 0 20px; }
.dek { font-size: 1.2rem; line-height: 1.75; color: var(--ink-2); margin: 0 0 26px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.byline span:not(:first-child)::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); margin: 0 14px; vertical-align: middle; }
.notice { margin: 0 0 32px; padding: 14px 18px; background: var(--surface-2); border-left: 3px solid var(--clay); border-radius: var(--r-sm); font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.notice code { font-size: .92em; background: var(--surface); padding: .1em .4em; border-radius: 5px; }
.post-cover { width: min(1000px, calc(100vw - 40px)); margin: 0 0 44px 50%; transform: translateX(-50%); }
.post-cover img { width: 100%; border-radius: var(--r); }
.post-cover figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }

.factbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 28px 26px; margin: 0 0 48px; }
.factbox-title { font-size: 12px; letter-spacing: .22em; font-weight: 700; color: var(--clay); margin: 0 0 16px; }
.factbox dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.factbox dt { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.factbox dd { margin: 0; font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.factbox .wide { grid-column: 1 / -1; }
.factbox .btn-small { margin-top: 20px; }

.prose { font-size: 18px; line-height: 1.92; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.45em; }
.prose h2 { font-family: var(--serif); font-size: 1.58rem; line-height: 1.42; letter-spacing: -0.035em; margin: 2.3em 0 .8em; }
.prose h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; margin: 2em 0 .6em; }
.prose h4 { font-size: 1.05rem; font-weight: 700; margin: 1.8em 0 .5em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 2.2em 0; padding: 2px 0 2px 26px; border-left: 3px solid var(--clay); font-family: var(--serif); font-size: 1.12em; line-height: 1.85; color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.45em; padding-left: 1.3em; }
.prose li { margin: .45em 0; padding-left: .2em; }
.prose li::marker { color: var(--clay); }
.prose hr { border: 0; margin: 3em 0; text-align: center; }
.prose hr::before { content: "· · ·"; color: var(--muted); letter-spacing: .6em; }
.prose figure { margin: 2.4em 0; }
.prose figure img, .prose p img { width: 100%; border-radius: var(--r-sm); }
.prose figcaption { font-size: 14px; line-height: 1.6; color: var(--muted); text-align: center; margin-top: 12px; }
.prose code { font-size: .88em; background: var(--surface-2); padding: .15em .42em; border-radius: 6px; }
.prose img, .post-cover img { cursor: zoom-in; }

/* 사진 여러 장을 나란히 */
.prose .gallery { display: grid; gap: 10px; margin: 2.4em 0; }
.prose .gallery.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .gallery.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .gallery figure { margin: 0; }
.prose .gallery img { aspect-ratio: 1 / 1; object-fit: cover; height: auto; }
.prose .gallery figcaption { font-size: 13px; margin-top: 8px; }
@media (min-width: 900px) {
  .prose > figure, .prose > .gallery { width: calc(100% + 96px); margin-left: -48px; }
}

/* 사진 크게 보기 */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 28px;
  background: rgba(12, 12, 11, .94);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #d8d4cb; font-size: 14px; padding: 0 24px; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.no-scroll { overflow: hidden; }

.note { display: flex; gap: 14px; align-items: flex-start; margin: 52px 0 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.note-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; margin-top: 1px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; }
.tags li { font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.post-nav a { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, background-color .2s; }
.post-nav a:hover { border-color: var(--ink); background: var(--surface); }
.post-nav small { display: block; font-size: 12.5px; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.post-nav strong { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; font-weight: 700; letter-spacing: -0.02em; }
.post-nav .next { grid-column: 2; text-align: right; }
.back { padding: 40px 0 96px; }
.notfound { min-height: 50vh; }

/* ── 나타나는 효과 (자바스크립트가 켜졌을 때만) ── */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── 화면 크기별 ── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .value-card, .hero-photo { max-width: 560px; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .site-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { font-size: 17px; padding: 14px 12px; border-radius: 12px; }
  .site-nav .nav-cta { margin: 10px 0 0; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .site-nav { top: 64px; }
  .brand-ko { font-size: 19px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
  .card-grid { gap: 40px; }
  .row a { grid-template-columns: 1fr; gap: 4px; padding: 26px 0; }
  .row-time { display: none; }
  .topics { grid-template-columns: 1fr; }
  .topics li { padding: 28px 24px 30px; }
  .topics .num { margin-bottom: 16px; }
  .launch-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .prose { font-size: 17px; }
  .factbox { padding: 22px 22px 24px; }
  .factbox dl { grid-template-columns: 1fr; }
  .prose .gallery { gap: 6px; }
  .prose .gallery.g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}


/* ─────────────────────────────────────────────
   워드프레스용 추가
   ───────────────────────────────────────────── */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* 관리자 막대가 있을 때 머리 위치 */
.admin-bar .site-header { top: 32px; }
.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .progress { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header, .admin-bar .progress { top: 0; } }

/* 쪽 번호 */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; color: var(--ink-2); }
.pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .page-numbers.dots { border: 0; }

/* 글 속 블록(사진·갤러리·인용 등) */
.prose .wp-block-image { margin: 2.4em 0; }
.prose .wp-block-image img { border-radius: var(--r-sm); height: auto; }
.prose .wp-element-caption, .prose .wp-caption-text { font-size: 14px; line-height: 1.6; color: var(--muted); text-align: center; margin-top: 12px; }
.prose > figure.wp-block-image:not(.size-large):not(.size-full):not(.alignwide):not(.alignfull) { width: auto; margin-left: 0; }
.prose > figure.wp-block-image:not(.size-large):not(.size-full) img { width: auto; max-width: 100%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .aligncenter img { margin: 0 auto; }
.prose .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.prose .wp-block-gallery { margin: 2.4em 0; }
.prose .wp-block-gallery.has-nested-images { --wp--style--unstable-gallery-gap: 10px; gap: 10px; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--r-sm); }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { border-radius: 0 0 var(--r-sm) var(--r-sm); font-size: 13px; }
.prose .wp-block-quote { margin: 2.2em 0; }
.prose .wp-block-pullquote { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 1.6em 0; margin: 2.6em 0; font-family: var(--serif); text-align: center; }
.prose .wp-block-separator { border: 0; height: auto; margin: 3em 0; text-align: center; opacity: 1; }
.prose .wp-block-separator::before { content: "· · ·"; color: var(--muted); letter-spacing: .6em; }
.prose .wp-block-embed { margin: 2.4em 0; }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose .wp-block-table th, .prose .wp-block-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose .wp-block-table th { color: var(--muted); font-weight: 600; }
.prose::after { content: ""; display: block; clear: both; }
@media (min-width: 900px) {
  .prose > .alignwide { width: calc(100% + 96px); margin-left: -48px; max-width: none; }
  .prose > .alignfull { width: min(1100px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); max-width: none; }
}
.tags li { padding: 0; }
.tags a { display: inline-block; padding: 4px 12px; }
.tags a:hover { color: var(--ink); }
