@charset "utf-8";
/* ============================================================
   199번가의 여름 — Summer on 199th Street
   Design System / v2
   ------------------------------------------------------------
   00. Tokens          디자인 토큰(색·타이포·간격·모션)
   01. Reset & Base    리셋과 기본 타이포그래피
   02. Layout          페이지·섹션 골격
   03. Header / Nav    헤더, 햄버거, 전체화면 메뉴
   04. Hero            메인 비주얼
   05. Marquee         무한 흐름 슬라이더
   06. News            소식 목록
   07. Card Grid       영상·음원 카드
   08. Detail          상세 페이지(본문·플레이어·공유)
   09. About / Contact 소개·연락
   10. Footer
   11. Modal & Form    로그인·글쓰기 모달
   12. States          로딩·빈 상태·404
   13. Motion          스크롤 리빌·페이지 전환
   14. Responsive
   ============================================================ */

/* ── 00. Tokens ───────────────────────────────────────────── */
:root {
  /* 브랜드 */
  --brand:        #94deef;
  --brand-soft:   #c7edf6;
  --brand-deep:   #4aa9c2;
  --brand-ink:    #13606f;

  /* 잉크 & 페이퍼 */
  --ink:          #14171a;
  --ink-2:        #575e64;
  --ink-3:        #949ba1;
  --paper:        #fbfaf7;
  --paper-2:      #f3f1ec;
  --line:         rgba(20, 23, 26, .11);
  --line-strong:  rgba(20, 23, 26, .28);

  /* 타이포 */
  --font-serif: "Shippori Mincho", "Noto Serif KR", "Nanum Myeongjo", serif;
  --font-sans:  "Noto Sans KR", "Zen Kaku Gothic New", -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "Shippori Mincho", "Noto Sans KR", ui-monospace, monospace;

  --fs-hero:    clamp(2.6rem, 8vw, 5.5rem);
  --fs-title:   clamp(1.7rem, 3.4vw, 2.6rem);
  --fs-lead:    clamp(1rem, 1.6vw, 1.15rem);
  --fs-body:    .95rem;
  --fs-small:   .8rem;
  --fs-micro:   .68rem;

  --track-wide: .34em;   /* 영문 라벨용 자간 */
  --track-mid:  .14em;

  /* 간격 */
  --gutter:     clamp(1.25rem, 5vw, 4rem);
  --section-y:  clamp(5rem, 11vw, 9.5rem);
  --measure:    1180px;   /* 최대 콘텐츠 폭 */
  --measure-n:  920px;    /* 좁은 콘텐츠 폭(글) */
  --header-h:   72px;

  /* 모션 */
  --ease:       cubic-bezier(.22, .61, .36, 1);
  --ease-soft:  cubic-bezier(.4, 0, .2, 1);
  --dur:        .55s;
}

/* ── 01. Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; cursor: pointer; }

::selection { background: var(--brand); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--brand-deep);
  outline-offset: 4px;
}

/* 스크롤바 (Chromium/WebKit) */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* 본문 이외 화면에서 건너뛰기 */
.skip-link {
  position: fixed; top: -100px; left: var(--gutter); z-index: 3000;
  background: var(--ink); color: var(--paper);
  padding: .8rem 1.4rem; font-size: var(--fs-small);
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* 공통 텍스트 스타일 */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-3);
}
.serif { font-family: var(--font-serif); font-weight: 400; }

/* ── 02. Layout ───────────────────────────────────────────── */
.page { display: none; }
.page.is-active { display: block; }

.section {
  max-width: var(--measure);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
.section + .section { padding-top: 0; }
.section--narrow { max-width: var(--measure-n); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.4rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
  border-bottom: 1px solid var(--line);
}
.section-head__titles { display: flex; flex-direction: column; gap: .35rem; }
.section-head__eyebrow {
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--brand-deep);
  line-height: 1;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-title);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .06em;
}
.section-head__aside { display: flex; align-items: center; gap: 1rem; }

/* 텍스트 링크 (밑줄이 자라는) */
.link-line {
  position: relative;
  font-size: var(--fs-small);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  padding-bottom: 2px;
  white-space: nowrap;
}
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* 화살표 버튼 (BACK 등) */
.arrow-link {
  display: inline-flex; align-items: center; gap: 1rem;
  font-size: var(--fs-small); letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--ink-2);
  transition: color .3s var(--ease);
}
.arrow-link::before {
  content: ""; width: 42px; height: 1px; background: currentColor;
  transition: width .45s var(--ease);
}
.arrow-link:hover { color: var(--ink); }
.arrow-link:hover::before { width: 66px; }

/* ── 03. Header / Nav ─────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  background: transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(251, 250, 247, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
/* 히어로 위에 있을 때는 흰색으로 반전 */
.site-header.is-over-hero { color: #fff; }

.site-header__left,
.site-header__right { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }

.brand { display: flex; align-items: center; gap: .8rem; }
.brand__mark { height: 26px; width: auto; transition: opacity .3s var(--ease); }
.brand:hover .brand__mark { opacity: .6; }
.brand__mark--ink { display: block; }
.brand__mark--white { display: none; }
.is-over-hero .brand__mark--ink { display: none; }
.is-over-hero .brand__mark--white { display: block; }

/* 햄버거 */
.menu-toggle {
  position: relative; width: 26px; height: 13px;
  display: flex; flex-direction: column; justify-content: space-between;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 100%; height: 1px; background: currentColor;
  transition: transform .45s var(--ease), opacity .25s var(--ease), width .45s var(--ease);
}
.menu-toggle:hover span:nth-child(2) { width: 65%; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 데스크톱 인라인 메뉴 */
.nav-inline { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2rem); }
.nav-inline a {
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  position: relative; padding-bottom: 4px;
  opacity: .78; transition: opacity .3s var(--ease);
}
.nav-inline a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-inline a:hover { opacity: 1; }
.nav-inline a:hover::after,
.nav-inline a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-inline a.is-current { opacity: 1; }

/* 언어 전환 */
.lang-switch { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-micro); }
.lang-switch button {
  letter-spacing: .1em; opacity: .5;
  transition: opacity .3s var(--ease);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.lang-switch button:hover { opacity: .85; }
.lang-switch button.is-active { opacity: 1; border-bottom-color: currentColor; }
.lang-switch__sep { opacity: .3; }

.btn-ghost {
  border: 1px solid currentColor;
  padding: .48rem 1.05rem;
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn-ghost:hover { background: currentColor; }
.btn-ghost:hover > span { color: var(--paper); }
.is-over-hero .btn-ghost:hover > span { color: var(--brand-ink); }

/* 전체화면 메뉴 */
.overlay-menu {
  position: fixed; inset: 0; z-index: 950;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.overlay-menu.is-open { opacity: 1; visibility: visible; }

/* 닫기 버튼 — 메뉴가 헤더를 덮기 때문에 오버레이 안에 따로 둡니다 */
.overlay-menu__close {
  position: absolute;
  top: calc((var(--header-h) - 26px) / 2);
  right: var(--gutter);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.overlay-menu__close span {
  position: absolute;
  width: 100%; height: 1px; background: var(--ink);
}
.overlay-menu__close span:nth-child(1) { transform: rotate(45deg); }
.overlay-menu__close span:nth-child(2) { transform: rotate(-45deg); }
.overlay-menu__close:hover { transform: rotate(90deg); opacity: .55; }

.overlay-menu__list {
  display: flex; flex-direction: column;
  gap: clamp(.4rem, 1.4vh, 1rem);
  max-width: var(--measure); margin-inline: auto; width: 100%;
}
.overlay-menu__item {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.overlay-menu.is-open .overlay-menu__item { opacity: 1; transform: none; }
.overlay-menu.is-open .overlay-menu__item:nth-child(1) { transition-delay: .10s; }
.overlay-menu.is-open .overlay-menu__item:nth-child(2) { transition-delay: .16s; }
.overlay-menu.is-open .overlay-menu__item:nth-child(3) { transition-delay: .22s; }
.overlay-menu.is-open .overlay-menu__item:nth-child(4) { transition-delay: .28s; }
.overlay-menu.is-open .overlay-menu__item:nth-child(5) { transition-delay: .34s; }
.overlay-menu.is-open .overlay-menu__item:nth-child(6) { transition-delay: .40s; }
.overlay-menu.is-open .overlay-menu__item:nth-child(7) { transition-delay: .46s; }

.overlay-menu__link {
  display: flex; align-items: baseline; gap: clamp(1rem, 3vw, 2.4rem);
  padding: .5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), padding-left .4s var(--ease);
}
.overlay-menu__link:hover { border-bottom-color: var(--line); padding-left: .8rem; }
.overlay-menu__num {
  font-size: var(--fs-micro); letter-spacing: .18em;
  color: var(--brand-deep); flex-shrink: 0; width: 2.2em;
}
.overlay-menu__en {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4.6vw, 3rem);
  font-weight: 400; letter-spacing: .1em; line-height: 1.2;
  transition: color .4s var(--ease);
}
.overlay-menu__link:hover .overlay-menu__en { color: var(--brand-deep); }
.overlay-menu__ko { font-size: var(--fs-small); color: var(--ink-3); letter-spacing: var(--track-mid); }

.overlay-menu__foot {
  max-width: var(--measure); margin: clamp(2rem, 6vh, 4rem) auto 0; width: 100%;
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem;
  align-items: center; justify-content: space-between;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: var(--fs-micro); letter-spacing: var(--track-mid); color: var(--ink-3);
}
.overlay-menu__links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
/* 좁은 화면에서는 헤더 대신 메뉴 안에서 로그인 */
.overlay-menu__foot .btn-ghost { display: none; color: var(--ink-2); }

/* ── 04. Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  background:
    radial-gradient(120% 90% at 50% 0%, #b3e8f5 0%, var(--brand) 46%, #7ccfe4 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* 아주 옅은 그레인 — 평평한 색면에 종이 질감 */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: .5; pointer-events: none;
}
.hero__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(1.6rem, 4vh, 2.8rem); text-align: center;
  animation: heroIn 1.4s var(--ease) both;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero__mark {
  width: clamp(150px, 26vw, 300px);
  height: auto;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero__tagline {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: clamp(.8rem, 3vw, 2.2rem);
  font-family: var(--font-serif);
  font-size: clamp(.95rem, 2.2vw, 1.5rem);
  letter-spacing: var(--track-mid);
  font-weight: 400;
}
.hero__tagline .rule { display: inline-block; width: clamp(24px, 6vw, 64px); height: 1px; background: rgba(255,255,255,.6); }

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  letter-spacing: .22em;
  opacity: .92;
}
.hero__sub { font-size: var(--fs-micro); letter-spacing: var(--track-wide); opacity: .78; text-transform: uppercase; }

.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(1.5rem, 4vh, 2.6rem);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: var(--fs-micro); letter-spacing: var(--track-wide); opacity: .8;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 54px;
  background: linear-gradient(to bottom, rgba(255,255,255,.9), rgba(255,255,255,0));
  animation: scrollCue 2.4s var(--ease-soft) infinite;
  transform-origin: top;
}
@keyframes scrollCue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── 05. Marquee ──────────────────────────────────────────── */
.marquee {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;   mask-size: 100% 100%;
}
.marquee__track {
  display: flex; width: max-content; gap: 1.1rem;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - .55rem)); } }

.marquee__item {
  position: relative; flex-shrink: 0;
  width: clamp(220px, 26vw, 340px); aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--paper-2);
}
.marquee__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.28); transform: scale(1.01);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.marquee__item:hover img { filter: none; transform: scale(1.06); }

/* ── 06. News ─────────────────────────────────────────────── */
/* 섹션 헤더가 이미 윗줄을 그리므로 목록에는 아랫줄만 둡니다 */
.news-list { margin-top: -.6rem; }
.news-item { border-bottom: 1px solid var(--line); }
.news-item__link {
  display: grid;
  grid-template-columns: 104px 84px 1fr auto;
  align-items: center; gap: 1.4rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem) .2rem;
  transition: background .4s var(--ease), padding-left .4s var(--ease);
}
.news-item__link:hover { background: var(--paper-2); padding-left: 1rem; }

.news-item__date {
  font-family: var(--font-mono);
  font-size: var(--fs-small); letter-spacing: .1em; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.news-item__tag {
  justify-self: start;
  font-size: var(--fs-micro); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand-soft);
  padding: .25rem .7rem; border-radius: 999px; white-space: nowrap;
}
.news-item__title {
  font-size: 1rem; font-weight: 400; line-height: 1.6;
  min-width: 0; overflow-wrap: anywhere; word-break: break-word;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.news-item__arrow {
  font-size: .9rem; color: var(--ink-3);
  transition: transform .4s var(--ease), color .4s var(--ease);
}
.news-item__link:hover .news-item__arrow { transform: translateX(6px); color: var(--ink); }

/* ── 07. Card Grid ────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 27vw, 320px), 1fr));
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
}
.card { position: relative; }
.card__link { display: block; }
.card__thumb {
  position: relative; overflow: hidden;
  background: var(--paper-2); aspect-ratio: 16 / 9;
}
.card--square .card__thumb { aspect-ratio: 1 / 1; }
.card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.card__link:hover .card__thumb img { transform: scale(1.07); filter: brightness(.82); }

.card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transition: opacity .45s var(--ease);
}
.card__play span {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  display: grid; place-items: center; color: #fff; font-size: .8rem;
  padding-left: 3px;
  backdrop-filter: blur(2px);
  transform: scale(.86); transition: transform .45s var(--ease);
}
.card__link:hover .card__play { opacity: 1; }
.card__link:hover .card__play span { transform: scale(1); }

.card__meta { padding-top: .9rem; display: flex; flex-direction: column; gap: .3rem; }
.card__date { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .1em; color: var(--ink-3); }
.card__title {
  font-size: .92rem; font-weight: 400; line-height: 1.6;
  min-width: 0; overflow-wrap: anywhere; word-break: break-word;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  transition: color .3s var(--ease);
}
.card__link:hover .card__title { color: var(--brand-deep); }

/* ── 08. Detail ───────────────────────────────────────────── */
.detail-head {
  padding-bottom: 1.6rem; margin-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .7rem;
}
.detail-head__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.detail-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 400; line-height: 1.45; letter-spacing: .03em;
}

.prose { font-size: 1rem; line-height: 2.05; color: #24282c; }
.prose p { margin-bottom: 1.4em; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-serif); font-weight: 400;
  margin: 2.2em 0 .8em; letter-spacing: .04em; line-height: 1.4;
}
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose img { margin: 2em auto; }
.prose blockquote {
  margin: 2em 0; padding: .3em 0 .3em 1.4em;
  border-left: 2px solid var(--brand); color: var(--ink-2);
}
.prose ul, .prose ol { margin: 0 0 1.4em 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; margin: 2em 0; }

.player { width: 100%; background: #000; aspect-ratio: 16 / 9; }
.player iframe { width: 100%; height: 100%; border: 0; }

.share {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
}
.share__label { font-size: var(--fs-micro); letter-spacing: var(--track-wide); color: var(--ink-3); text-transform: uppercase; }
.share__list { display: flex; align-items: center; gap: 1.1rem; }
.share__list a {
  width: 34px; height: 34px; border: 1px solid var(--line);
  border-radius: 50%; display: grid; place-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.share__list a:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.share__list svg { width: 15px; height: 15px; fill: var(--ink); transition: fill .35s var(--ease); }
.share__list a:hover svg { fill: var(--paper); }

.detail-nav { margin-top: clamp(2.4rem, 5vw, 3.5rem); }

/* ── 09. About / Contact ──────────────────────────────────── */
.about-lead {
  font-family: var(--font-serif);
  font-size: var(--fs-lead);
  line-height: 2.3; letter-spacing: .04em;
  max-width: 42em;
}
.about-lead em { font-style: normal; color: var(--brand-deep); }

/* 마스코트(구여름) — 가장자리 페이드는 이미지 파일 자체에 구워 두었습니다.
   그래서 배경(--paper) 위에 놓으면 경계 없이 녹아듭니다.
   이미지 위아래에 투명한 여백이 이미 들어 있으므로 margin 은 최소로 둡니다. */
.portrait {
  width: 100%;
  margin: clamp(-2.5rem, -3vw, -1rem) 0 0;   /* 이미지 위쪽 투명 여백만큼 당겨 올림 */
  display: flex; flex-direction: column;
}
.portrait img { width: 100%; height: auto; }
.portrait__cap {
  margin-top: -.8rem;                        /* 아래쪽 투명 여백 보정 */
  text-align: center;
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--brand-deep);
}
.about-lead { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.def-list { margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.def-list__row {
  display: grid; grid-template-columns: 190px 1fr; gap: 1.5rem;
  padding: 1.35rem .2rem; border-bottom: 1px solid var(--line);
}
.def-list__key {
  font-size: var(--fs-micro); letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--ink-3); padding-top: .35rem;
}
.def-list__val { font-size: .95rem; line-height: 1.9; }
.def-list__val a { border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color .3s var(--ease); }
.def-list__val a:hover { border-bottom-color: var(--brand-deep); color: var(--brand-deep); }

.contact-mail {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.2vw, 2rem);
  letter-spacing: .05em;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--line-strong);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.contact-mail:hover { color: var(--brand-deep); border-bottom-color: var(--brand-deep); }

/* ── 10. Footer ───────────────────────────────────────────── */
.site-footer {
  position: relative;
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}
.site-footer__inner {
  max-width: var(--measure); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 2.5rem 3rem;
  align-items: flex-start; justify-content: space-between;
  position: relative; z-index: 1;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
/* align-self 를 빼면 세로 flex 안에서 이미지가 가로로 늘어나 찌그러집니다 */
.site-footer__mark { height: 34px; width: auto; align-self: flex-start; opacity: .9; }
.site-footer__tag { font-family: var(--font-serif); font-size: .9rem; letter-spacing: .12em; color: var(--ink-2); }

.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; }
.footer-nav a { font-size: var(--fs-micro); letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--ink-2); }
.footer-nav a:hover { color: var(--ink); }

.site-footer__bottom {
  max-width: var(--measure); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: var(--fs-micro); letter-spacing: .1em; color: var(--ink-3);
  position: relative; z-index: 1;
}
/* 워터마크 */
.site-footer__watermark {
  position: absolute; right: -2%; bottom: -22%;
  width: min(46%, 460px); opacity: .05; pointer-events: none; z-index: 0;
}

/* ── 11. Modal & Form ─────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center;
  padding: var(--gutter);
  background: rgba(20, 23, 26, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  position: relative;
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
  background: var(--paper);
  padding: clamp(2rem, 5vw, 3rem);
  transform: translateY(16px); transition: transform .45s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 34px; height: 34px; font-size: 1.4rem; line-height: 1;
  color: var(--ink-3); transition: color .3s var(--ease), transform .3s var(--ease);
}
.modal__close:hover { color: var(--ink); transform: rotate(90deg); }
.modal__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.25rem; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; margin-bottom: 2rem;
}

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field__label { font-size: var(--fs-micro); letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--ink-3); }
.field input[type="text"],
.field input[type="date"],
.field input[type="url"] {
  width: 100%; padding: .8rem .9rem;
  background: #fff; border: 1px solid var(--line-strong);
  font-size: .9rem; outline: none;
  transition: border-color .3s var(--ease);
}
.field input:focus { border-color: var(--brand-deep); }
.field__hint { font-size: var(--fs-micro); color: var(--ink-3); }

.checkbox { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-small); cursor: pointer; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--brand-deep); cursor: pointer; }

.btn-solid {
  background: var(--ink); color: var(--paper);
  padding: .95rem 1.4rem;
  font-size: var(--fs-small); letter-spacing: var(--track-mid); text-transform: uppercase;
  transition: background .35s var(--ease);
}
.btn-solid:hover { background: var(--brand-ink); }
.btn-solid[disabled] { opacity: .5; cursor: not-allowed; }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  width: 100%; padding: .95rem 1.2rem;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: .88rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.btn-google:hover { border-color: var(--ink); background: var(--paper-2); }

.editor-shell { border: 1px solid var(--line-strong); background: #fff; }
.editor-shell .ql-toolbar { border: 0 !important; border-bottom: 1px solid var(--line) !important; }
.editor-shell .ql-container { border: 0 !important; font-family: var(--font-sans); font-size: .95rem; }
.editor-shell .ql-editor { min-height: 260px; line-height: 1.9; }

/* 관리자 전용 UI — 기본 숨김 */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: inline-flex !important; }
body.is-admin .card .admin-only { display: flex !important; }

.card__admin {
  position: absolute; top: .55rem; right: .55rem; z-index: 3;
  gap: .35rem;
}
.chip-btn {
  font-size: var(--fs-micro); letter-spacing: .08em;
  padding: .3rem .6rem; background: rgba(20,23,26,.82); color: #fff;
  transition: background .3s var(--ease);
}
.chip-btn:hover { background: var(--ink); }
.chip-btn--danger:hover { background: #b3261e; }

/* ── 12. States ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--paper-2) 25%, #e9e6e0 37%, var(--paper-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s var(--ease-soft) infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skeleton--thumb { aspect-ratio: 16/9; }
.skeleton--line { height: 12px; margin-top: .8rem; }
.skeleton--row { height: 62px; border-bottom: 1px solid var(--line); }

.empty {
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  text-align: center; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.empty__mark { font-family: var(--font-serif); font-size: 1.6rem; letter-spacing: .3em; opacity: .35; }
.empty p { font-size: var(--fs-small); }

.notfound {
  min-height: 62svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.4rem; text-align: center;
}
.notfound__code {
  font-family: var(--font-serif); font-size: clamp(3.5rem, 12vw, 7rem);
  line-height: 1; letter-spacing: .1em; color: var(--brand);
}

.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 20px);
  z-index: 1500; background: var(--ink); color: var(--paper);
  padding: .8rem 1.4rem; font-size: var(--fs-small); letter-spacing: .05em;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.toast.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ── 13. Motion ───────────────────────────────────────────── */
/* JS가 살아 있을 때만 숨깁니다 — 스크립트가 실패해도 글은 보이도록 */
.has-js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible[data-reveal-delay="1"] { transition-delay: .09s; }
.reveal.is-visible[data-reveal-delay="2"] { transition-delay: .18s; }
.reveal.is-visible[data-reveal-delay="3"] { transition-delay: .27s; }

.page.is-active { animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 첫 진입 커튼 */
.curtain {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--brand); display: grid; place-items: center;
  animation: curtainOut 1.1s var(--ease) .35s forwards;
  pointer-events: none;
}
.curtain img { width: 110px; opacity: .95; animation: curtainMark 1.2s var(--ease) both; }
@keyframes curtainMark { from { opacity: 0; transform: scale(.94); } 60% { opacity: 1; transform: none; } }
@keyframes curtainOut { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .curtain { display: none; }
}

/* ── 14. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-inline { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .site-header__left, .site-header__right { gap: .9rem; }
  .brand__mark { height: 22px; }
  .site-header > .site-header__right > .btn-ghost { display: none; }
  .overlay-menu__foot .btn-ghost { display: inline-flex; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .news-item__link {
    grid-template-columns: 1fr auto;
    grid-template-areas: "meta arrow" "title title";
    gap: .5rem 1rem; padding-block: 1.15rem;
  }
  .news-item__date { grid-area: meta; }
  .news-item__tag { display: none; }
  .news-item__title { grid-area: title; }
  .news-item__arrow { grid-area: arrow; }
  .news-item__link:hover { padding-left: .2rem; }

  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .card__title { font-size: .84rem; }

  .def-list__row { grid-template-columns: 1fr; gap: .3rem; }

  .overlay-menu { justify-content: flex-start; overflow-y: auto; }
  .overlay-menu__ko { display: none; }
  .overlay-menu__foot { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .site-footer__inner { flex-direction: column; gap: 2rem; }
}
@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
}
