/* 디자인 v2 — 매거진 B 정체성(대표 결정 2026-10-11 "가장 중요한건 매거진b").
   참고: 국제갤러리(왼쪽 큰 글·오른쪽 큰 그림), 실린더(여백 안 설치 전경), Pace(설치 전경 위 흰 글), PKM·김현희(절제).
   theme.css(v1.2) 위에 덮어쓴다. 형광(D-28)은 고른 상태에만 그대로. */
:root {
  --m-sky: #b9d2e8;     /* 전시 띠(매거진 B 의 하늘색 띠) */
  --m-stone: #efeeea;   /* 아트페어 띠 */
  --m-sage: #d6ddd0;    /* 작가 띠 */
  --m-paper: #f4f4f2;
  --m-ink: #161616;     /* 뷰잉룸 띠 */
  --m-faint: rgba(0, 0, 0, .14);
  --m-display: clamp(40px, 5.8vw, 84px);
  --m-head: clamp(30px, 3.4vw, 48px);
}

/* ---------- 머리: 첫 화면 위에 겹침 ---------- */
.site-head.is-over { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,0)); border-bottom: 0; color: #fff; }
.site-head.is-over a, .site-head.is-over .menu-btn { color: #fff; }
.site-head.is-over .nav a[aria-current] { color: #111; }
.site-head .nav { text-transform: none; letter-spacing: 0; font-size: 15px; gap: 22px; }
.site-head .logo span { font-size: 17px; letter-spacing: .02em; }

/* ---------- 첫 화면(넘김) ---------- */
.m-hero { position: relative; color: #fff; background: #222; }
.m-hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.m-hero-track::-webkit-scrollbar { display: none; }
.m-slide { position: relative; flex: 0 0 100%; height: min(calc(100svh - 61px), 980px); min-height: 560px; scroll-snap-align: start; overflow: hidden; }
.m-slide .um-fig { position: absolute; inset: 0; margin: 0; height: 100%; aspect-ratio: auto; }
.m-slide .um-fig img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
.m-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.08) 55%, rgba(0,0,0,0) 100%); pointer-events: none; }
.m-slide-text { position: absolute; z-index: 1; left: var(--gut); bottom: clamp(160px, 22vh, 240px); max-width: min(760px, 86vw); }
.m-slide-text a { color: #fff; }
.m-state { font-size: 15px; margin: 0 0 14px; opacity: .9; }
.m-slide-text h2 { font-family: var(--sans); font-weight: 500; font-size: var(--m-display); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; word-break: keep-all; overflow-wrap: anywhere; }
.m-slide-subtitle { display: block; font-size: .48em; line-height: 1.25; margin-top: .35em; }
.m-slide-text .who { font-size: clamp(17px, 1.6vw, 22px); margin: 0 0 4px; }
.m-slide-text .when { font-size: 15px; margin: 0 0 22px; opacity: .9; }
.m-link { display: inline-block; font-size: 14px; letter-spacing: .02em; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.m-num { position: absolute; z-index: 1; bottom: clamp(24px, 4vh, 48px); display: flex; align-items: center; min-width: 44px; min-height: 44px; font: inherit; line-height: 1; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.m-num.is-l { left: var(--gut); }
.m-num.is-r { right: var(--gut); align-items: flex-end; }
.m-num:disabled { cursor: default; }
.m-arr { font-size: clamp(22px, 2vw, 30px); letter-spacing: 0; opacity: .85; transition: transform .2s; }
.m-num:hover .m-arr, .m-num:focus-visible .m-arr { opacity: 1; }
.m-num.is-l:hover .m-arr { transform: translateX(-4px); }
.m-num.is-r:hover .m-arr { transform: translateX(4px); }
.m-num:disabled .m-arr { opacity: .3; transform: none; }
.m-hero:not(.has-nav) .m-arr { display: none; }
.m-hero:not(.has-nav) .m-num { cursor: default; }
.m-dots { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: clamp(24px, 4vh, 48px); display: flex; gap: 4px; }
.m-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.m-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; box-sizing: border-box; transition: background .2s; }
.m-dots button[aria-current="true"]::before { background: #fff; }
.m-dots button:hover::before, .m-dots button:focus-visible::before { background: rgba(255,255,255,.6); }

/* ---------- 띠(섹션) ---------- */
.m-band { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.m-band.is-sky { background: var(--m-sky); }
.m-band.is-sage { background: var(--m-sage); }
.m-band.is-stone { background: var(--m-stone); }
.m-band.is-paper { background: var(--m-paper); }
.m-band.is-white { background: #fff; }
.m-band.is-ink { background: var(--m-ink); color: #f2f2f2; }
.m-band.is-ink a { color: #f2f2f2; }
.m-label { font-size: 15px; color: rgba(0,0,0,.45); margin: 0 0 18px; }
.m-band.is-ink .m-label { color: rgba(255,255,255,.5); }
.m-heads { font-size: var(--m-head); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 clamp(28px, 3.4vw, 44px); }
.m-heads a, .m-heads span { color: inherit; text-decoration: none; }
.m-heads .is-on { box-shadow: inset 0 -3px 0 currentColor; }
.m-heads a:hover { box-shadow: inset 0 -3px 0 currentColor; }
.m-more { text-align: right; margin: clamp(48px, 7vw, 96px) 0 0; }
.m-more a { font-size: clamp(44px, 6vw, 88px); font-weight: 400; letter-spacing: -.02em; color: var(--m-faint); text-decoration: none; line-height: 1; transition: color .2s; }
.m-band.is-sky .m-more a, .m-band.is-sage .m-more a, .m-band.is-stone .m-more a, .m-band.is-paper .m-more a { color: rgba(255,255,255,.9); text-shadow: 0 0 1px rgba(0,0,0,.06); }
.m-band.is-white .m-more a { color: rgba(0,0,0,.12); }
.m-band.is-ink .m-more a { color: rgba(255,255,255,.22); }
.m-more a:hover { color: #111; }
.m-band.is-ink .m-more a:hover { color: #fff; }

/* 카드: 사진 비율 그대로, 위로 맞춤(매거진 B 목록) */
.m-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 32px); align-items: start; }
.m-tiles.is-works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-tile { display: block; color: inherit; text-decoration: none; }
.m-tile .um-fig { margin: 0 0 14px; }
.m-tile .um-fig img { max-height: 420px; width: 100%; object-fit: cover; }
.m-tile-blank { aspect-ratio: 4 / 3; background: rgba(0,0,0,.06); margin-bottom: 14px; }
.m-tile .k { display: flex; gap: 12px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(0,0,0,.6); margin-bottom: 6px; }
.m-band.is-ink .m-tile .k { color: rgba(255,255,255,.6); }
.m-tile h3 { font-size: 18px; font-weight: 400; line-height: 1.35; margin: 0; word-break: keep-all; }
.m-tile .who { font-size: 14px; margin: 4px 0 0; color: rgba(0,0,0,.6); }
.m-tile:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* 작가 색인 */
.m-index { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: clamp(24px, 3vw, 48px); }
.m-index li { break-inside: avoid; border-top: 1px solid rgba(0,0,0,.12); }
.m-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; font-size: clamp(20px, 1.9vw, 26px); color: inherit; text-decoration: none; }
.m-index small { font-size: 12px; color: rgba(0,0,0,.45); white-space: nowrap; }
.m-index a:hover { color: #000; }
.m-index a:hover small { color: #000; }

/* 날짜 + 소식 */
.m-today .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.m-date p { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.m-date-n { font-size: clamp(44px, 5.2vw, 76px); font-weight: 500; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.m-date-d { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(0,0,0,.55); }
.m-notes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(24px, 3vw, 48px); }
.m-notes a, .m-notes > li > div { display: block; color: inherit; text-decoration: none; }
.m-notes .k { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.m-notes .k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.m-notes h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; line-height: 1.3; margin: 8px 0 8px; word-break: keep-all; }
.m-notes p { font-size: 13px; color: rgba(0,0,0,.6); margin: 0; }
.m-notes a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 바닥: 큰 표식 ---------- */
.m-foot { border-top: 0; margin-top: 0; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); color: #111; background: #fff; }
.m-foot .wrap { display: grid; grid-template-columns: 3fr 9fr; gap: var(--s4); align-items: start; }

.m-foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); font-size: 16px; }
.m-foot-cols p { margin: 0 0 4px; }
.m-foot-cols .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(0,0,0,.42); margin-bottom: 10px; }
.m-foot-cols a { color: inherit; }
.m-foot-cols .mute { color: rgba(0,0,0,.42); margin-top: 10px; }
.m-rights { grid-column: 1 / -1; margin: clamp(40px, 5vw, 64px) 0 0; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.12); text-align: center; font-size: 13px; letter-spacing: .02em; color: rgba(0,0,0,.5); display: grid; gap: 4px; }
.m-rights p { margin: 0; }

@media (max-width: 1024px) {
  .m-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-index { columns: 2; }
  .m-foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .site-head.is-over.is-open { background: #fff; color: #111; }
  .site-head.is-over.is-open a, .site-head.is-over.is-open .menu-btn { color: #111; }
  .m-today .wrap { grid-template-columns: 1fr; }
  .m-foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .m-slide { height: 86svh; min-height: 520px; }
  .m-slide::after { background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 60%, rgba(0,0,0,0) 100%); }
  .m-slide-text { bottom: 150px; }
  .m-tiles, .m-tiles.is-works { grid-template-columns: 1fr; gap: 40px; }
  .m-tile .um-fig img { max-height: none; }
  .m-index { columns: 1; }
  .m-notes { grid-template-columns: 1fr; gap: 28px; }
  .m-more { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .m-hero-track { scroll-behavior: auto; } .m-more a { transition: none; } }

/* ---------- 목록 머리·연도 ---------- */
.m-page-head { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(24px, 3vw, 40px); }
.m-year { padding: clamp(48px, 6vw, 88px) 0 0; }
.m-year-no { font-size: clamp(56px, 7vw, 104px); font-weight: 400; letter-spacing: -.03em; line-height: 1; margin: 0 0 clamp(24px, 3vw, 40px); }

/* ---------- 행사 상세: 국제갤러리식 머리 ---------- */
.m-ev-top { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 72px); align-items: end; padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 72px); }
.m-ev-text { padding-bottom: 4px; }
.m-state-line { display: inline-flex; gap: 16px; font-size: 15px; font-weight: 500; padding-bottom: 6px; border-bottom: 2px solid #111; margin: 0 0 clamp(24px, 3vw, 40px); }
.m-now::before { content: "● "; font-size: .7em; vertical-align: .15em; }   /* 형광(D-28)은 선택 상태 전용이라 쓰지 않음 */
.m-ev-who { font-size: clamp(20px, 2vw, 28px); margin: 0 0 8px; }
.m-ev-text h1 { font-size: clamp(36px, 4.6vw, 68px); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 20px; word-break: keep-all; }
.m-ev-when { font-size: clamp(17px, 1.5vw, 21px); margin: 0 0 28px; }
.m-ev-pic .um-fig img { max-height: 82vh; width: auto; max-width: 100%; margin-left: auto; }
.m-ev-pic .um-fig figcaption { text-align: right; }
.m-ev-body { border-top: 1px solid var(--rule); padding-top: clamp(32px, 4vw, 56px); }
@media (max-width: 860px) { .m-ev-top { grid-template-columns: 1fr; } .m-ev-pic { order: -1; } .m-ev-pic .um-fig img { margin: 0; } }

/* 로고(components/logo.tsx) */
.site-head .logo { display: block; color: inherit; line-height: 0; }
.m-logo { height: 26px; width: auto; display: block; } /* 직원 피드백 2026-10-15: 20→26px */
.m-mark { display: block; width: clamp(96px, 11vw, 168px); color: #111; }
.m-mark svg { width: 100%; height: auto; display: block; }
@media (max-width: 599px) { .m-logo { height: 22px; } }

.m-band.is-sky .m-tile .k, .m-band.is-sage .m-tile .k { color: rgba(0,0,0,.66); }
.m-band.is-sky .m-tile .who, .m-band.is-sage .m-tile .who { color: rgba(0,0,0,.66); }
.m-band.is-sage .m-index li { border-top-color: rgba(0,0,0,.16); }
.m-band.is-sage .m-index small { color: rgba(0,0,0,.55); }

/* ---------- 방문: 약도 + 오시는 길 ---------- */
.m-visit { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 72px); align-items: start; padding-bottom: var(--s6); }
.m-map { margin: 0; }
.m-map svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.m-map .m-map-mark { width: 70px; height: 45px; }
.m-map figcaption { font-size: 12px; color: var(--mute); margin-top: 8px; }
.m-visit .prose h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; margin: 32px 0 8px; }
.m-visit .prose h2:first-of-type { margin-top: 24px; }
.m-visit .prose h3 { font-size: 17px; font-weight: 500; margin: 18px 0 6px; }
.m-visit .prose ul { padding-left: 1.1em; }
@media (max-width: 860px) { .m-visit { grid-template-columns: 1fr; } }

/* 소개 한 단락(매거진 B 의 큰 문장) */
.m-statement { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.45; letter-spacing: -.01em; max-width: 30em; margin: 0; word-break: keep-all; }
.m-about .m-more { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- 서체 규칙(대표 확정 2026-10-11) ----------
   고딕(Pretendard) = 찾고 누르는 것: 메뉴·섹션 제목·날짜·장소·꼬리표·버튼·카드의 작은 제목·바닥·본문.
   명조(Noto Serif KR) = 읽는 이름: 전시 제목·작가 이름·뷰잉룸·저널·기록 제목·소개 첫 문장. 큰 크기(24px 이상)에서만, 굵기는 500 하나. */
.m-slide-text h2, .m-ev-text h1, .m-statement, .t-name,
.journal-head h1, .chapter h2, .chapter .no, .rows h2, .rows h3, .b-journal .lead h3 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.015em;
}
.rows h2, .rows h3 { font-size: 24px; }
.t-name { font-size: var(--fs-xxl); line-height: 1.12; word-break: keep-all; }

/* ---------- 사진 모양에 맞춘 보이기(대표 2026-10-29 「세로 포스터가 잘려 쓸 수 없다」 → 추천안) ----------
   세로 사진(.is-tall)·포스터(.is-poster)는 꽉 채워 자르는 칸에서도 통째로 보인다. 남는 자리는 사진 가장자리 색(--edge). */
.um-fig.is-crop:is(.is-tall, .is-poster),
:is(.k-item, .m-arc, .m-tile, .acard, .ax-moments, .page-lead, .j-open-pic, .j-strip-row, .ev-pic) .um-fig:is(.is-tall, .is-poster) { background: var(--edge, var(--m-paper)); }
.um-fig.is-crop:is(.is-tall, .is-poster) img,
:is(.k-item, .m-arc, .m-tile, .acard, .ax-moments, .page-lead, .j-open-pic, .j-strip-row, .ev-pic) .um-fig:is(.is-tall, .is-poster) img { object-fit: contain !important; object-position: 50% 50% !important; }

/* 첫 화면 — 세로 사진: 왼쪽 글 | 오른쪽 사진 통째로(1안) */
.m-slide.is-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 100%; background: var(--edge, var(--m-paper)); color: #111; }
.m-slide.is-split::after, .m-slide.is-banner::after { display: none; }
.m-slide.is-split .um-fig { position: relative; inset: auto; grid-column: 2; grid-row: 1; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 64px) var(--gut) clamp(88px, 12vh, 120px) 0; background: none; }
.m-slide.is-split .um-fig img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 2px 24px rgba(0, 0, 0, .08); }
.m-slide.is-split .m-slide-text { position: relative; grid-column: 1; grid-row: 1; align-self: center; left: auto; bottom: auto; padding: clamp(24px, 4vw, 64px) var(--gut) clamp(88px, 12vh, 120px) max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); max-width: none; }
.m-slide:is(.is-split, .is-banner):not(.is-dark) .m-slide-text a { color: #111; }
.m-slide.is-split .m-slide-text h2 { font-size: clamp(36px, 4.4vw, 68px); }

/* 첫 화면 — 가로 포스터: 그림은 글 없이 통째로, 전시 정보는 아래 띠(3안) */
.m-slide.is-banner { display: flex; flex-direction: column; background: var(--edge, var(--m-paper)); color: #111; }
.m-slide.is-banner .um-fig { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; height: auto; display: flex; align-items: center; justify-content: center; background: none; }
.m-slide.is-banner .um-fig img { width: 100%; height: 100%; object-fit: contain; }
.m-slide.is-banner .m-slide-text { position: relative; left: auto; bottom: auto; max-width: none; background: #fff; padding: 20px var(--gut) clamp(76px, 10vh, 96px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; }
.m-slide.is-banner .m-slide-text > * { margin: 0; }
.m-slide.is-banner .m-state { flex-basis: 100%; }
.m-slide.is-banner .m-slide-text h2 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.2; }
/* 가장자리 색이 어두우면 글을 흰색으로 */
.m-slide.is-dark:is(.is-split, .is-banner), .m-slide.is-dark .m-slide-text a, .m-slide.is-dark .m-num { color: #fff; }
.m-slide.is-banner.is-dark .m-slide-text { background: #111; }
/* 밝은 바탕에서도 넘김 점·화살표가 보이게 */
.m-dots button::before { box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.m-slide:is(.is-split, .is-banner):not(.is-dark) .m-num { color: #111; }

@media (max-width: 799px) {
  /* 휴대폰 가로 포스터: 그림과 글을 한 덩어리로 가운데에(그림 위 빈 바탕이 거슬림 — 대표 2026-10-29) */
  .m-slide.is-banner { justify-content: center; }
  .m-slide.is-banner .um-fig { flex: 0 0 auto; padding: 0; }
  .m-slide.is-banner .um-fig img { height: auto; max-height: 60svh; }
  .m-slide.is-banner .m-slide-text, .m-slide.is-banner.is-dark .m-slide-text { background: none; padding: 20px var(--gut) 0; }
  .m-slide.is-split { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .m-slide.is-split .um-fig { grid-column: 1; grid-row: 1; padding: 24px var(--gut) 8px; }
  .m-slide.is-split .m-slide-text { grid-column: 1; grid-row: 2; align-self: end; padding: 8px var(--gut) 80px; }
  .m-slide.is-split .m-slide-text h2 { font-size: clamp(26px, 7vw, 40px); }
}
