/* 걸어가는 늑대들 — 페이지 껍데기 스타일. index.html(한국어)과
   en/index.html(영어)이 함께 읽는다. 엔진(scrub-engine.js)이 주입하는
   기본값 위에 얹히는 규칙만 여기 둔다. */

:root, .sw-root {
  --sw-bg: #F7F3EC;
  --sw-ink: #2B2B28;
  --sw-ink-soft: #6a6461;
  --sw-accent: #2F4BC8;
}
/* Unlayered on purpose — scrub-engine.js injects its own defaults inside
   @layer sw, so a plain (unlayered) rule here always wins regardless of
   injection order, same trick the engine's own header comment describes
   for the --sw-* theme tokens. */
/* Single pill showing the language you'd SWITCH TO (not a KO|EN segmented
   control) — a two-segment version measured ~90px and clipped off-screen
   next to the hamburger + CTA on a 390px viewport; this is ~40px.
   It is an <a> to the other language's URL, not a button: Korean lives at /
   and English at /en/, so switching is a navigation, and a real link is what
   lets a crawler discover the other page at all. */
.sw-langtoggle {
  font: inherit;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--sw-ink);
  border: 1px solid color-mix(in srgb, var(--sw-accent) 16%, transparent);
  background: color-mix(in srgb, #fff 55%, transparent);
  backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 999px;
  flex: none;
  margin-left: 8px;
  transition: background .25s;
}
.sw-langtoggle:hover { background: color-mix(in srgb, #fff 75%, transparent); }
@media (max-width: 860px) { .sw-langtoggle { padding: 8px 12px; font-size: .74rem; margin-left: 6px; } }
/* brand + hamburger + CTA already nearly fill a narrow phone's topbar (see
   AGENTS.md / the audit note on mobile crowding); let the toggle wrap to
   its own line there rather than clip off-screen. Additive only — the
   engine's own .sw-topbar rule never sets flex-wrap. */
@media (max-width: 420px) { .sw-topbar { flex-wrap: wrap; row-gap: 8px; } }

/* ---- 카페 메뉴 ------------------------------------------------------------
   site-menu.js가 이 섹션을 <dialog>로 옮긴다. 기본 상태(JS 없음)는 페이지
   아래에 그냥 놓인 읽을 수 있는 섹션이고, 팝업 스타일은 전부 .ww-menu-dialog
   안에서만 걸린다 — 스크립트가 실패해도 메뉴가 사라지지 않게 하려는 것. */

.ww-menu {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  color: var(--sw-ink);
  background: var(--sw-bg);
}
.ww-menu__head { margin-bottom: 28px; }
.ww-menu h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.ww-menu__note { margin: 0; font-size: .82rem; color: var(--sw-ink-soft); }
.ww-menu__group { margin-bottom: 32px; }
.ww-menu__group h3 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sw-accent);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--sw-ink) 12%, transparent);
}
.ww-menu ul { list-style: none; margin: 0; padding: 0; }
.ww-menu li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ww-menu li:last-child { margin-bottom: 0; }
/* 썸네일은 정사각 고정. width/height 속성이 붙어 있어 로드 전에도 자리를
   잡으므로 팝업이 열리는 순간 목록이 밀리지 않는다(CLS). */
.ww-menu__photo {
  flex: none;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sw-ink) 6%, transparent);
}
.ww-menu__text { flex: 1 1 auto; min-width: 0; }
/* 이름과 가격 사이를 점선으로 잇는 메뉴판 관용구. 가운데 칸이 남는 폭을
   전부 먹고, 그 안을 반복 점으로 채운다 — 이름이 길어도 가격은 오른쪽 끝에
   그대로 붙어 있다. */
.ww-menu__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 3px;
  font-size: .98rem;
}
.ww-menu__name { font-weight: 600; }
.ww-menu__dots {
  flex: 1 1 auto;
  min-width: 12px;
  align-self: center;
  border-bottom: 1px dotted color-mix(in srgb, var(--sw-ink) 28%, transparent);
  transform: translateY(-2px);
}
.ww-menu__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ww-menu__desc {
  margin: 0;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--sw-ink-soft);
}
.ww-menu__foot {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--sw-ink) 12%, transparent);
  font-size: .76rem;
  color: var(--sw-ink-soft);
}
/* 닫기 버튼은 JS가 만든다 — JS 없이는 닫을 것도 없다. */
.ww-menu__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sw-ink);
  background: color-mix(in srgb, #fff 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--sw-ink) 12%, transparent);
  border-radius: 999px;
  cursor: pointer;
}
.ww-menu__close:hover { background: #fff; }

.ww-menu-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(80vh, 780px);
  padding: 0;
  border: none;
  border-radius: 18px;
  background: var(--sw-bg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  overflow: auto;
  overscroll-behavior: contain;
}
.ww-menu-dialog::backdrop { background: rgba(20, 18, 16, .55); backdrop-filter: blur(3px); }
.ww-menu-dialog .ww-menu { position: relative; padding: 40px 28px 36px; }
/* 팝업이 열린 동안 뒤 페이지가 스크럽되지 않게. 닫을 때 site-menu.js가
   스크롤 위치를 되돌린다. */
.ww-menu-open, .ww-menu-open body { overflow: hidden; }

@media (max-width: 520px) {
  .ww-menu-dialog { width: 100vw; max-width: 100vw; max-height: 88vh; border-radius: 18px 18px 0 0; margin: auto auto 0; }
  .ww-menu-dialog .ww-menu { padding: 36px 20px 32px; }
  .ww-menu__photo { width: 88px; height: 88px; border-radius: 10px; }
  .ww-menu li { gap: 12px; }
}

/* ---- 데스크톱 카피 세로 정렬 --------------------------------------------
   엔진의 CSS는 `.sw-copy{top:50%; transform:translateY(-50%)}`로 카피를 세로
   가운데 놓으려 하지만, 스크롤마다 인라인으로 `transform:translateY(Xvh)`
   (미세한 패럴랙스 드리프트)를 덮어쓰기 때문에 -50%가 지워진다. 그래서
   카피가 가운데 정렬이 아니라 화면 중앙선에 매달려 아래로 흐르고, 내용이
   긴 마지막 씬은 CTA 버튼('작가와 작품 보기'·'관람 예약')이 1280×800·
   1440×900 같은 흔한 창 크기에서 화면 밖으로 잘려 나갔다.

   `translate`는 `transform`과 별개 속성이라 인라인 transform에 지워지지
   않고 함께 합성된다 — 중앙 정렬은 여기서, 드리프트는 엔진에서.
   모바일(≤860px)은 엔진이 bottom 앵커로 다르게 배치하므로 건드리지 않는다. */
@media (min-width: 861px) {
  .sw-copy { translate: 0 -50%; }
}
