/* ============================================================
   TRV-MAG-030 · 캠프로그 · ILL 일러스트 중심 (캠핑/글램핑 매거진)
   종이색 지면 · 더스크 블루 + 모닥불 오렌지 · 인라인 SVG 일러스트가 주인공
   ── 사진은 배경으로 깔고, 구조와 정보는 직접 그린 SVG로 전달한다.
   ============================================================ */

:root {
  --brand:       #2f5fa8;
  --brand-ink:   #fdfaf3;
  --accent:      #d97b28;
  --accent-ink:  #1b1408;
  --surface:     #fbf7ef;
  --surface-alt: #f1e9d9;
  --font-display: var(--font-sans);
  --r: var(--r-md);
}

body { background: var(--surface); }

/* ── 공통 타입 ─────────────────────────────────────────────── */

.kicker, .label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--brand);
}
.h2 { font-size: var(--fs-3xl); letter-spacing: var(--ls-tighter); line-height: 1.08; color: var(--brand); }
.h3 { font-size: var(--fs-xl); letter-spacing: var(--ls-tight); }
.body-lg { font-size: var(--fs-md); color: var(--ink-2); max-width: 46ch; line-height: var(--lh-loose); }

/* ── 버튼 ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  border-radius: var(--r-full);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-xs); }

.btn--solid { background: var(--brand); color: var(--brand-ink); }
.btn--solid:hover { background: var(--accent); color: var(--accent-ink); }
.btn--fire { background: var(--accent); color: var(--accent-ink); }
.btn--fire:hover { background: var(--brand); color: var(--brand-ink); }
.btn--line { border: 1px solid color-mix(in oklab, var(--brand) 36%, transparent); color: var(--brand); }
.btn--line:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn--ghost { border: 1px solid color-mix(in oklab, var(--brand-ink) 44%, transparent); color: var(--brand-ink); }
.btn--ghost:hover { background: var(--brand-ink); color: var(--brand); }

/* ── 헤더 ──────────────────────────────────────────────────── */
/* 히어로는 어두운 블루아워 사진이다. 종이색 판을 항상 깔아 로고가 읽히게 한다. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.nav.is-stuck { border-bottom-color: color-mix(in oklab, var(--brand) 22%, transparent); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  padding-inline: max(var(--gutter), calc((100vw - var(--container-wide)) / 2));
}
.nav__logo { display: inline-flex; align-items: center; gap: var(--sp-3); }
.nav__logo svg { width: 30px; height: 30px; flex: none; }
.nav__logo b { font-size: var(--fs-md); font-weight: var(--fw-black); letter-spacing: var(--ls-tight); color: var(--brand); }
.nav__menu { display: none; gap: var(--sp-6); }
.nav__menu a { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink-2); transition: color var(--dur) var(--ease); }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--accent); }

@media (min-width: 1024px) { .nav__menu { display: flex; } }

/* ── 일러스트 공통 ─────────────────────────────────────────── */

.ill { display: block; width: 100%; height: auto; }
.ill-sky   { fill: var(--brand); }
.ill-deep  { fill: color-mix(in oklab, var(--brand) 72%, black); }
.ill-mid   { fill: color-mix(in oklab, var(--brand) 62%, var(--surface)); }
.ill-pale  { fill: color-mix(in oklab, var(--brand) 22%, var(--surface)); }
.ill-fire  { fill: var(--accent); }
.ill-glow  { fill: color-mix(in oklab, var(--accent) 52%, var(--surface)); }
.ill-paper { fill: var(--surface); }
.ill-line  { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-line-f { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── 히어로 ────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100svh;
  padding-top: var(--sp-9);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-5);
  padding-inline: var(--gutter);
  padding-block: var(--sp-6) var(--sp-7);
}
.hero__issue {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  align-self: start;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--accent) 20%, var(--surface));
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--accent-ink);
}
.hero__title { font-size: var(--fs-4xl); font-weight: var(--fw-semibold); line-height: 0.98; letter-spacing: var(--ls-tighter); color: var(--brand); }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 33ch; line-height: var(--lh-loose); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.hero__media { position: relative; }
.hero__media .img-slot { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }

/* 사진 위에 얹는 SVG 일러스트 레이어 — ILL 무드의 핵심 장치 */
.hero__ill {
  position: absolute;
  z-index: 4;
  inset: auto 0 0 0;
  pointer-events: none;
}
.hero__ill svg { display: block; width: 100%; height: auto; }


/* ── ★SPEC v1.2 8절 · 모바일 히어로 ──────────────────────────
   375px 에서 헤드라인+리드+CTA+이미지를 세로로 쌓으면 100svh 를 넘긴다.
   이미지를 배경으로 깔고 텍스트를 그 위에 겹친다.
   어두운 스크림+흰 글자(v1.3 에서 금지)가 아니라, 작품 자신의 --surface 로
   밝은 스크림을 만들어 본문 색을 그대로 쓴다. 사진 밝기와 무관하게
   상단 합성 밝기가 고정되므로 대비비가 구조적으로 보장된다.
   기울기는 SPEC 예시보다 중간 구간을 길게 잡았다 — CTA 가 높이의 70%
   근처에 오는데 예시대로면 그 지점 스크림이 60%까지 내려가기 때문이다. */
.hero__media { position: absolute; inset: 0; z-index: 0; min-height: 0; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--surface) 95%, transparent) 0%,
    color-mix(in oklab, var(--surface) 91%, transparent) 46%,
    color-mix(in oklab, var(--surface) 78%, transparent) 74%,
    color-mix(in oklab, var(--surface) 28%, transparent) 100%);
}
.hero__text { position: relative; z-index: 6; }
/* 아웃라인 버튼은 테두리만 있어 스크림이 옅어지는 하단에서 글자 대비가
   4.5:1 아래로 떨어진다(측정: 3.7~3.8:1). 지면색을 채워 사진과 분리한다. */
.hero__actions .btn--line { background: var(--surface); }

@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 50%); padding-top: 0; }
  .hero__text {
    padding-block: var(--sp-10) var(--sp-8);
    padding-left: max(var(--gutter), calc((100vw - var(--container-wide)) / 2));
    padding-right: var(--sp-8);
  }
  /* 5xl로 올리면 "밤이 길어지는" 이 3줄로 늘어나 CTA가 첫 화면 밖으로 밀린다. */
  .hero__title { font-size: var(--fs-4xl); }
  .hero__media { min-height: 100svh; }
  /* 데스크탑은 2단 분할로 되돌린다 */
  .hero__media { position: relative; z-index: auto; }
  .hero__media::after { display: none; }
}

/* ── 서브 페이지 헤드 ──────────────────────────────────────── */

.phead { padding-top: calc(var(--sp-9) + var(--sp-5)); padding-bottom: var(--sp-6); }
.phead__inner { display: grid; gap: var(--sp-4); }
.phead h1 { font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tighter); line-height: 1.06; color: var(--brand); }
.phead p { font-size: var(--fs-md); color: var(--ink-2); max-width: 52ch; line-height: var(--lh-loose); }

@media (min-width: 1024px) {
  .phead__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--sp-8); align-items: end; }
}

/* ── 티커 ──────────────────────────────────────────────────── */

.ticker { overflow: hidden; background: var(--brand); color: var(--brand-ink); padding-block: var(--sp-3); }
.ticker__track { display: flex; align-items: center; gap: var(--sp-5); width: max-content; animation: ticker 40s linear infinite; }
.ticker__track span { font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; }
.ticker__track i { width: 6px; height: 6px; flex: none; border-radius: var(--r-full); background: var(--accent); }
@keyframes ticker { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ── 큰 숫자 ───────────────────────────────────────────────── */

.stats { padding-block: var(--sp-8); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.stat dd { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tighter); line-height: 1; color: var(--accent); }
.stat dd span { font-size: var(--fs-base); color: var(--ink-2); margin-left: 2px; font-weight: var(--fw-normal); }
.stat dt { margin-top: var(--sp-3); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--ink-3); }

@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-7); } }

/* ── 매거진 그리드 (비대칭 2단 + 스티키 사이드바) ──────────── */

.mag { display: grid; gap: var(--sp-8); }
.mag__side { display: grid; gap: var(--sp-6); align-content: start; }

@media (min-width: 1024px) {
  .mag { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: var(--sp-9); }
  .mag__side { position: sticky; top: var(--sp-9); }
}

/* 기사 카드 */
.posts { display: grid; gap: var(--sp-6); }
.post { display: grid; gap: var(--sp-4); align-content: start; }
.post__media { aspect-ratio: 4 / 3; border-radius: var(--r); }
.post:nth-child(2) .post__media { filter: hue-rotate(-8deg) saturate(1.06); }
.post:nth-child(3) .post__media { filter: hue-rotate(10deg) saturate(.94); }
.post__cat {
  display: inline-flex; align-self: start; align-items: center; gap: var(--sp-2);
  padding: 3px var(--sp-3);
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--brand) 14%, var(--surface));
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--brand);
}
.post__cat svg { width: 14px; height: 14px; }
.post__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1.24; }
.post__title a:hover { color: var(--accent); }
.post p { font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose); }
.post__meta { font-size: var(--fs-xs); color: var(--ink-3); }

@media (min-width: 768px) { .posts { grid-template-columns: repeat(2, 1fr); gap: var(--sp-7); } }

/* 커버 기사 — 풀블리드 이미지 + 겹침 카드 */
.cover { position: relative; }
.cover__media { aspect-ratio: 4 / 3; border-radius: 0; }
.cover__card {
  position: relative;
  margin-top: calc(var(--sp-8) * -1);
  margin-inline: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--r);
  display: grid;
  gap: var(--sp-3);
}
.cover__card h2 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tighter); line-height: 1.06; color: var(--brand); }
.cover__card p { font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose); }

@media (min-width: 768px) {
  .cover__media { aspect-ratio: 21 / 9; }
  .cover__card { margin-top: calc(var(--sp-9) * -1); margin-inline: var(--sp-8) auto; max-width: 620px; padding: var(--sp-7); }
}

/* 사이드바 위젯 */
.widget { padding: var(--sp-5); background: var(--surface-alt); border-radius: var(--r); display: grid; gap: var(--sp-4); }
.widget h3 { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--brand); }
.widget ol { display: grid; gap: 0; counter-reset: rank; }
.widget ol li {
  display: flex; gap: var(--sp-4); align-items: baseline;
  padding-block: var(--sp-3);
  border-top: 1px solid color-mix(in oklab, var(--brand) 20%, transparent);
  font-size: var(--fs-sm);
}
.widget ol li::before {
  counter-increment: rank; content: counter(rank);
  font-weight: var(--fw-black); color: var(--accent); min-width: 1.2em;
}
.widget ol li a:hover { color: var(--accent); }
.widget__ill { padding: var(--sp-3) 0 0; }

/* 태그 */
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tags a {
  padding: 4px var(--sp-3);
  border-radius: var(--r-full);
  border: 1px solid color-mix(in oklab, var(--brand) 26%, transparent);
  font-size: var(--fs-xs);
  color: var(--brand);
}
.tags a:hover { background: var(--brand); color: var(--brand-ink); }

/* ── 카테고리(일러스트 아이콘) 그리드 ──────────────────────── */

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.cat {
  display: grid; gap: var(--sp-3); justify-items: center; text-align: center;
  padding: var(--sp-5) var(--sp-4);
  background: var(--surface-alt);
  border-radius: var(--r);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cat:hover { background: color-mix(in oklab, var(--accent) 18%, var(--surface)); transform: translateY(-3px); }
.cat svg { width: 56px; height: 56px; }
.cat b { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--brand); }
.cat span { font-size: var(--fs-xs); color: var(--ink-3); }

@media (min-width: 768px) { .cats { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }

/* ── 일러스트 밴드 (섹션 구분) ─────────────────────────────── */

.band { background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; }
.band__inner { position: relative; z-index: 2; padding-block: var(--section-y); display: grid; gap: var(--sp-5); }
.band h2 { color: var(--brand-ink); font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tighter); line-height: 1.08; }
.band p { font-size: var(--fs-md); color: color-mix(in oklab, var(--brand-ink) 82%, transparent); max-width: 46ch; line-height: var(--lh-loose); }
.band__ill { position: absolute; z-index: 1; inset: auto 0 0 0; opacity: .5; }
.band__ill svg { display: block; width: 100%; height: auto; }

/* ── 기사 본문 ─────────────────────────────────────────────── */

.article { display: grid; gap: var(--sp-6); }
.article__body { display: grid; gap: var(--sp-5); }
.article__body p { font-size: var(--fs-md); color: var(--ink-2); line-height: var(--lh-loose); }
.article__body h2 { font-size: var(--fs-xl); letter-spacing: var(--ls-tight); color: var(--brand); margin-top: var(--sp-4); }
.article__body h3 { font-size: var(--fs-lg); letter-spacing: var(--ls-tight); margin-top: var(--sp-3); }
.article__body ul { display: grid; gap: var(--sp-3); }
.article__body ul li {
  display: flex; gap: var(--sp-3);
  font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose);
}
.article__body ul li::before { content: "▲"; color: var(--accent); font-size: var(--fs-xs); flex: none; padding-top: .45em; }
.article__lead { font-size: var(--fs-lg); color: var(--ink); line-height: 1.6; letter-spacing: var(--ls-snug); }
.article__fig { display: grid; gap: var(--sp-3); }
.article__fig figcaption { font-size: var(--fs-xs); color: var(--ink-3); }
.article__byline {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-block: 1px solid color-mix(in oklab, var(--brand) 20%, transparent);
  font-size: var(--fs-sm); color: var(--ink-3);
}
.article__byline b { color: var(--brand); }

/* 인용 */
.pull {
  display: grid; gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
}
.pull p { font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: 1.4; letter-spacing: var(--ls-tight); color: var(--brand); }
.pull footer { font-size: var(--fs-sm); color: var(--ink-3); }

/* ── 표 ────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl caption { text-align: left; font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--ink-3); padding-bottom: var(--sp-4); }
.tbl th, .tbl td { padding: var(--sp-4) var(--sp-3); border-bottom: 1px solid color-mix(in oklab, var(--brand) 18%, transparent); text-align: left; }
.tbl thead th { font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--ink-3); font-weight: var(--fw-bold); }
.tbl tbody th { font-weight: var(--fw-semibold); color: var(--brand); }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 뉴스레터 ──────────────────────────────────────────────── */

.news { background: var(--surface-alt); }
.news__inner { display: grid; gap: var(--sp-5); }
.news h2 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tighter); line-height: 1.08; color: var(--brand); }
.news p { font-size: var(--fs-md); color: var(--ink-2); max-width: 46ch; line-height: var(--lh-loose); }
.news form { display: flex; flex-wrap: wrap; gap: var(--sp-3); max-width: 520px; }
.news input {
  flex: 1 1 220px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--brand) 24%, transparent);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
}
.news small { font-size: var(--fs-xs); color: var(--ink-3); }

@media (min-width: 1024px) { .news__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: var(--sp-8); align-items: center; } }

/* ── 푸터 ──────────────────────────────────────────────────── */

.foot { padding-block: var(--sp-8) var(--sp-6); border-top: 2px solid color-mix(in oklab, var(--brand) 22%, transparent); }
.foot__inner { display: grid; gap: var(--sp-5); }
.foot__brand { display: inline-flex; align-items: center; gap: var(--sp-3); }
.foot__brand svg { width: 28px; height: 28px; }
.foot__brand b { font-size: var(--fs-sm); font-weight: var(--fw-black); color: var(--brand); }
.foot__addr { font-style: normal; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.9; }
.foot__nav { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.foot__nav a { font-size: var(--fs-sm); color: var(--ink-2); }
.foot__nav a:hover { color: var(--accent); }
.foot__copy {
  grid-column: 1 / -1; padding-top: var(--sp-5);
  border-top: 1px solid color-mix(in oklab, var(--brand) 18%, transparent);
  font-size: var(--fs-xs); color: var(--ink-3);
}

@media (min-width: 768px) { .foot__inner { grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-7); } }

/* ============================================================
   ★SPEC 4-C — 브랜드 마크 · 아이콘 스프라이트 · 인터랙션 보강
   ILL 무드. 종이 위에서 도장을 찍듯 툭툭 끊어지는 반응으로 간다.
   ============================================================ */

/* ── 브랜드 마크 — 모닥불(교차 장작 + 불꽃). 채움형 일러스트 언어와 달리
   마크만은 currentColor 획으로 그려 헤더·푸터·다크면에서 그대로 재사용한다. */
.nav__logo .nav__mark { width: 26px; height: 26px; }
.foot__brand .nav__mark { width: 22px; height: 22px; }
.nav__mark {
  flex: none;
  color: var(--brand);
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease);
}
.nav__logo:hover .nav__mark { transform: rotate(-10deg) scale(1.08); color: var(--accent); }
.foot__brand:hover .nav__mark { color: var(--accent); }

/* ── 아이콘 ────────────────────────────────────────────────── */
.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.btn__arrow { font-size: 1.25em; margin-left: 1px; transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.post__meta { display: flex; align-items: center; gap: var(--sp-2); }
.post__meta .ico { font-size: var(--fs-base); color: var(--brand); transition: transform var(--dur) var(--ease-out); }
.post:hover .post__meta .ico { transform: rotate(24deg); }

.post__cat .ico { transition: transform var(--dur) var(--ease-out); }
.post:hover .post__cat .ico { transform: translateY(-2px) scale(1.1); }

.foot__addr { display: grid; gap: var(--sp-3); line-height: 1.5; }
.foot__addr span { display: flex; align-items: center; gap: var(--sp-3); }
.foot__addr .ico { font-size: var(--fs-lg); color: var(--brand); transition: transform var(--dur) var(--ease-out); }
.foot__addr span:hover .ico { transform: translateY(-2px); }

/* ── 내비 — 밑줄이 한쪽에서 그어진다 ───────────────────────── */
.nav__menu a { position: relative; padding-block: 3px; }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__menu a:hover::after, .nav__menu a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ── 버튼 ──────────────────────────────────────────────────── */
.btn { transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
                   border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease-out),
                   box-shadow var(--dur) var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--solid:hover, .btn--fire:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

/* ── 지표 ──────────────────────────────────────────────────── */
.stat { transition: transform var(--dur) var(--ease-out); }
.stat:hover { transform: translateY(-4px); }
.stat dd { transition: color var(--dur) var(--ease); }
.stat:hover dd { color: var(--brand); }
.stat dt { transition: color var(--dur) var(--ease); }
.stat:hover dt { color: var(--ink-2); }

/* ── 티커 — 올리면 멈춘다 ──────────────────────────────────── */
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track i { transition: transform var(--dur) var(--ease-out); }
.ticker:hover .ticker__track i { transform: scale(1.6); }

/* ── 기사 카드 — 사진이 당겨지고 제목이 밀린다 ─────────────── */
.post__media { overflow: hidden; }
.post__media img { transition: transform var(--dur-slow) var(--ease-out); }
.post:hover .post__media img { transform: scale(1.06); }
.post__title { transition: transform var(--dur) var(--ease-out); }
.post:hover .post__title { transform: translateX(3px); }
.post__cat { transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.post:hover .post__cat { background: var(--brand); color: var(--brand-ink); }

/* ── 커버 기사 ─────────────────────────────────────────────── */
.cover__card { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease); }
.cover__card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.cover__media img { transition: transform 900ms var(--ease-out); }
.cover:hover .cover__media img { transform: scale(1.04); }

/* ── 카테고리 타일 — 일러스트가 튀어오른다 ─────────────────── */
.cat svg { transition: transform var(--dur) var(--ease-out); }
.cat:hover svg { transform: translateY(-4px) rotate(-4deg); }
.cat b { transition: color var(--dur) var(--ease); }
.cat:hover b { color: var(--accent); }

/* ── 사이드 위젯 ───────────────────────────────────────────── */
.widget { transition: box-shadow var(--dur) var(--ease); }
.widget:hover { box-shadow: var(--sh-md); }
.widget ol li { transition: padding-left var(--dur) var(--ease-out); }
.widget ol li:hover { padding-left: var(--sp-2); }
.tags a { transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease-out); }
.tags a:hover { transform: translateY(-2px); }

/* ── 표 ────────────────────────────────────────────────────── */
.tbl tbody tr { transition: background var(--dur) var(--ease); }
.tbl tbody tr:hover { background: color-mix(in oklab, var(--brand) 8%, transparent); }

/* ── FAQ / details ─────────────────────────────────────────── */
@keyframes clOpen { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
.qa[open] p { animation: clOpen var(--dur) var(--ease-out) both; }
.qa summary { transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease-out); }
.qa summary:hover { padding-left: var(--sp-3); }

/* ── 폼 ────────────────────────────────────────────────────── */
.news input, .field input, .field select, .field textarea {
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.news input:hover, .field input:hover { border-color: color-mix(in oklab, var(--brand) 56%, transparent); }
.news input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 16%, transparent); }

/* ── 모닥불 — 배너 안 불씨가 아주 느리게 흔들린다 ──────────── */
@keyframes clEmber {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);    opacity: .5; }
  50%      { transform: translate3d(0, -6%, 0) scale(1.08); opacity: .85; }
}
.band { isolation: isolate; }
.band::after {
  content: ""; position: absolute; z-index: 0; inset: auto -6% -30% auto;
  width: 54%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 30%, transparent), transparent 70%);
  animation: clEmber 7s var(--ease) infinite;
}

/* ── 배너 밑단 능선 일러스트가 아주 느리게 오르내린다 ──────── */
@keyframes clRidge {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -5px, 0); }
}
.band__ill { animation: clRidge 9s var(--ease) infinite; }

/* ── 푸터 링크 ─────────────────────────────────────────────── */
.foot__nav a { position: relative; }
.foot__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.foot__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── 형제 계단식 지연 ──────────────────────────────────────── */
html.js .posts .reveal:nth-child(2)      { transition-delay: 90ms; }
html.js .posts .reveal:nth-child(3)      { transition-delay: 180ms; }
html.js .posts .reveal:nth-child(4)      { transition-delay: 270ms; }
html.js .cats .reveal:nth-child(2)       { transition-delay: 70ms; }
html.js .cats .reveal:nth-child(3)       { transition-delay: 140ms; }
html.js .cats .reveal:nth-child(4)       { transition-delay: 210ms; }
html.js .stats__grid .reveal:nth-child(2){ transition-delay: 60ms; }
html.js .stats__grid .reveal:nth-child(3){ transition-delay: 120ms; }
html.js .stats__grid .reveal:nth-child(4){ transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { transition-delay: 0s !important; }
  .nav__logo:hover .nav__mark, .stat:hover, .post:hover .post__media img,
  .post:hover .post__title, .post:hover .post__meta .ico, .post:hover .post__cat .ico,
  .cover__card:hover, .cover:hover .cover__media img, .cat:hover svg,
  .tags a:hover, .btn:hover .btn__arrow, .btn:active,
  .btn--solid:hover, .btn--fire:hover, .foot__addr span:hover .ico,
  .ticker:hover .ticker__track i { transform: none; }
  .band::after, .hero__issue b { animation: none; }
}


/* ===== 획일성 제거 — ILL 무드 어휘 =====================================
   160작품이 레퍼런스의 밑줄 draw·카드 리프트·대문자 킥커를 그대로 복사해
   같은 사이트 리스킨으로 보였다. 반응 방식을 무드에 맞게 갈아끼운다.
   ==================================================================== */
/* 세로 카덴스를 작품마다 다르게 — 전부 같은 --section-y 를 쓰는 게 구조적 tell 이었다 */
:root { --section-y: clamp(4.12rem, 2.5608rem + 6.6804vw, 8.24rem); }

/* 일러스트 — 통통 튄다. */
@keyframes navBounce { 0%{transform:translateY(0)} 45%{transform:translateY(-4px)} 100%{transform:translateY(0)} }
.nav__menu a::after, .foot__nav a::after { display: none !important; }
.foot__nav a, .nav__menu a { display: inline-block; }
.foot__nav a, .nav__menu a:hover { animation: navBounce var(--dur-slow) var(--ease-out); }
.cat:hover, .post:hover .post__cat .ico, .foot__addr span:hover .ico, .btn--solid:hover, .btn--fire:hover, .stat:hover, .cover__card:hover, .cat:hover svg, .tags a:hover { transform: none; }
.cat:hover, .post:hover .post__cat .ico, .foot__addr span:hover .ico, .btn--solid:hover, .btn--fire:hover, .stat:hover, .cover__card:hover, .cat:hover svg, .tags a:hover { transform: translateY(-4px) rotate(-.6deg); }


/* ===== 티커 걷어내기 — ILL 무드에 마퀴는 어울리지 않는다 ==========
   내용(실적·목록·인증)은 실제 정보라 유지하고 장치만 바꾼다.
   ================================================================ */
/* 티커 → 살짝 기울어진 스티커. */
.ticker { overflow: visible; }
.ticker__track { animation: none !important; width: auto; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); }
.ticker__track > span {
  padding: var(--sp-2) var(--sp-4);
  background: color-mix(in oklab, var(--brand) 13%, transparent);
  border-radius: var(--r);
  transition: transform var(--dur) var(--ease-out);
}
.ticker__track > span:nth-child(odd)  { transform: rotate(-1.4deg); }
.ticker__track > span:nth-child(even) { transform: rotate(1.1deg); }
.ticker__track > span:hover { transform: none; }
.ticker__track > i { display: none; }

/* webit-touch */
@media (max-width: 767px) {
  .nav__inner { flex-wrap: wrap; overflow: visible; }
  .hero__actions, .hero__acts { flex-wrap: wrap; }
}
html.tier-premium .hero__title em { font-style: italic; }
html.tier-premium .img-slot { border-radius: var(--r-lg); }
