/*
 * 달빛 Café Dalbit — 공통 스타일 (2026-11-15 세 번째: "작품집처럼")
 *
 * 건축 작품집처럼 비우고 다듬었다. 흰 종이에 가까운 바탕, 따뜻한 먹색 글자,
 * 모서리 없는 큰 사진, 작은 글씨로 단정하게 적은 정보(위치 · 면적 · 영업).
 * 제목은 부드러운 고운바탕 보통 굵기, 본문은 또렷한 Pretendard 17–18px.
 * 색은 사진과 재료가 맡고, 화면 장식 색은 오늘 밤의 달 꿀빛 하나뿐이다.
 *
 *  1. 변수          2. 기본          3. 헤더 · 영업 상태
 *  4. 버튼 · 링크 · 정보 목록         5. 홈            6. 푸터
 *  7. 하위 페이지 공통                8. 메뉴 페이지 · 상세 창
 *  9. 소개 · 찾아오시는 길 · 소식      10. 맨 위로 · 나타나기 · 동작 줄이기
 * 11. 공간 페이지(도면)
 */

/* ---------- 1. 변수 ---------- */
:root {
  --bg: #f6f5f2;        /* 종이 바탕 */
  --surface: #ecebe6;   /* 한 단계 짙은 바탕 — 메뉴판 띠, 도면 자리 */
  --surface-2: #e1dfd8; /* 두 단계 — 눌린 것 */
  --ink: #221d19;       /* 먹색 글자 */
  --muted: #645c54;     /* 보조 글자 */
  --brand: #221d19;     /* 버튼 · 고른 것 */
  --brand-dark: #000;
  --honey: #efc75e;     /* 오늘 밤의 달 */
  --warm: #f1eadc;      /* 오늘 · 고른 소식 */
  --star: #D9A21B;      /* 찜한 별 */

  /* 재료 색 — 도면에서 쓴다 */
  --plaster: #e9e1d3;
  --oak: #c99a68;
  --burl: #7e5236;
  --brick: #a65d44;
  --velvet: #2e3856;
  --hanji: #f3e9d2;

  --font-head: "Gowun Batang", "Nanum Myeongjo", serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* 글자 크기 다섯 단계 */
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.1875rem, 1.07rem + 0.45vw, 1.375rem);
  --step-head: clamp(1.875rem, 1.4rem + 1.7vw, 2.75rem);
  --step-display: clamp(2.625rem, 1.5rem + 4.4vw, 5rem);

  --margin: clamp(20px, 4vw, 64px);
  --max: 1320px;
  --gap-section: clamp(72px, 8vw, 120px);
  --radius: 0;
  --radius-sm: 0;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 900px) {
  :root {
    --header-h: 76px;
  }
}

/* ---------- 2. 기본 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

img[hidden] {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--margin);
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  top: 12px;
}

.pending {
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--margin) * 2);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.head {
  font-size: var(--step-head);
}

.intro-text {
  max-width: 32em;
  color: var(--ink);
}

/* ---------- 3. 헤더 · 영업 상태 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--max) + var(--margin) * 2);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--margin) 32px;
  background: var(--bg);
}

.site-nav.is-open {
  display: block;
}

.site-nav a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-head);
  font-size: var(--step-head);
  line-height: 1.3;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.open-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: var(--step-small);
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.open-status[hidden] {
  display: none;
}

.open-status-label {
  font-weight: 600;
  color: var(--ink);
}

.open-status .open-status-detail {
  display: none;
}

@media (min-width: 560px) {
  .open-status .open-status-detail {
    display: inline;
  }
}

.nav-toggle {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle-bar--top {
  top: 18px;
}

.nav-toggle-bar--bottom {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar--top {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar--bottom {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    margin-left: auto;
    padding: 0;
    background: none;
  }

  .site-nav ul {
    display: flex;
    gap: 32px;
  }

  .site-nav a {
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: var(--step-small);
    font-weight: 500;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
    transition: text-decoration-color 0.3s var(--ease), text-underline-offset 0.3s var(--ease);
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    text-decoration-color: currentColor;
    text-underline-offset: 6px;
  }

  .open-status {
    margin-left: 16px;
  }
}

/* 작은 달: 문을 열면 꿀빛으로 켜진다 */
.moon {
  --moon-size: 10px;
  flex: none;
  width: var(--moon-size);
  height: var(--moon-size);
  border-radius: 50%;
  background: var(--surface-2);
  transition: background-color 1.2s var(--ease);
}

.moon.is-lit {
  background: var(--honey);
}

/* ---------- 4. 버튼 · 링크 · 정보 목록 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  border: 1px solid var(--ink); /* taste-skill-ignore: 채운 버튼, 마우스를 올리면 바탕과 글자색이 뒤바뀐다 */
  background: var(--ink);
  color: var(--bg);
  font-size: var(--step-body);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn:active {
  transform: scale(0.97);
}

.btn--soft {
  background: transparent;
  color: var(--ink);
}

.btn--soft:hover {
  background: var(--ink);
  color: var(--bg);
}

.text-link {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-underline-offset 0.3s var(--ease);
}

.text-link:hover {
  text-underline-offset: 3px;
}

/* 작품집의 정보 목록: 작은 글씨, 이름은 흐리게 값은 진하게 */
.meta {
  display: grid;
  gap: 8px;
  font-size: var(--step-small);
  line-height: 1.6;
}

.meta div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 16px;
}

.meta dt {
  color: var(--muted);
}

.meta dd {
  color: var(--ink);
}

/* ---------- 5. 홈 ---------- */
/* 5-1. 첫 화면: 왼쪽 글 · 오른쪽 사진을 한 줄에, 그 아래 정보 네 칸 */
.hero-head {
  display: grid;
  gap: 40px;
  max-width: calc(var(--max) + var(--margin) * 2);
  margin-inline: auto;
  padding: clamp(32px, 6vw, 88px) var(--margin) 0;
}

.hero-text {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.hero-title {
  font-size: var(--step-display);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 25em;
  font-size: var(--step-lead);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 4px;
}

/* 오늘 밤의 달: 날짜로 계산한 달 모양과 영업 남은 시간 */
.tonight dd {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
}

.tonight-moon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
}

.tonight-moon-svg {
  width: 100%;
  height: 100%;
  animation: moon-rise 1.6s var(--ease) both;
}

.tonight-moon-lit {
  fill: var(--honey);
  transition: fill 1.2s var(--ease);
}

.tonight-moon-shadow {
  fill: #ddd5c8;
}

.tonight-moon[data-state="preparing"] .tonight-moon-lit {
  fill: #e6cf93;
}

.tonight-moon[data-state="closed"] .tonight-moon-lit {
  fill: #d6ccbb;
}

@keyframes moon-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.tonight-phase {
  font-weight: 600;
}

.tonight-count {
  color: var(--muted);
}

.hero-photo {
  display: grid;
  gap: 14px;
  margin: 0;
}

.hero-photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-photo img.is-current {
  animation: photo-settle 2.6s var(--ease) both;
}

/* 첫 사진 뒤에 붙는 사진들: 같은 칸에 겹쳐 두고, 차례가 오면 서서히 나타난다 */
.hero-photo img + img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-photo-frame img {
  transition: opacity 0.9s var(--ease);
}

.hero-photo img:not(.is-current) {
  opacity: 0;
}

/* 사진 왼쪽 반, 오른쪽 반을 누르면 이전 · 다음 사진 */
.hero-photo-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 50%;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.hero-photo-nav--prev {
  left: 0;
  justify-content: flex-start;
}

.hero-photo-nav--next {
  right: 0;
  justify-content: flex-end;
}

.hero-photo-nav span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-photo-frame:hover .hero-photo-nav span,
.hero-photo-nav:focus-visible span {
  opacity: 1;
  transform: scale(1);
}

.hero-photo-nav:active span {
  transform: scale(0.92);
}

.hero-photo-nav:focus-visible {
  outline: none;
}

.hero-photo-nav:focus-visible span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (hover: none) {
  .hero-photo-nav span {
    opacity: 0.9;
    transform: scale(1);
  }
}

.hero-photo figcaption {
  display: flex;
  gap: 12px;
  font-size: var(--step-small);
  color: var(--muted);
}

.hero-photo-count {
  flex: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* 정보: 좁은 화면은 목록, 넓은 화면은 네 칸 한 줄 */
.hero-meta {
  max-width: calc(var(--max) + var(--margin) * 2);
  margin: clamp(40px, 5vw, 72px) auto 0;
  padding-inline: var(--margin);
}

@media (min-width: 700px) {
  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
  }

  .hero-meta div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (min-width: 1100px) {
  .hero-meta {
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  }
}

@keyframes photo-settle {
  from {
    transform: scale(1.06);
  }
}

@media (min-width: 900px) {
  .hero-head {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: center;
  }
}

/* 공통: 홈 구역 사이 간격과 머리말 */
.signature,
.story,
.beans,
.visit {
  max-width: calc(var(--max) + var(--margin) * 2);
  margin: var(--gap-section) auto 0;
  padding-inline: var(--margin);
}

.section-intro {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 900px) {
  .section-intro {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: end;
  }
}

/* 5-2. 시그니처: 음료 색 칩 */
.sig-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 16px;
}

.sig-card a {
  display: grid;
  gap: 4px;
}

.sig-chip {
  display: block;
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--chip);
  transition: transform 0.6s var(--ease);
}

.sig-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sig-card a:hover .sig-chip {
  transform: translateY(-6px);
}

.sig-card a:focus-visible {
  outline: none;
}

.sig-card a:focus-visible .sig-chip {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sig-name {
  font-family: var(--font-head);
  font-size: var(--step-lead);
  line-height: 1.35;
}

.sig-desc {
  font-size: var(--step-small);
  color: var(--muted);
}

.sig-price {
  margin-top: 4px;
  font-size: var(--step-small);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 700px) {
  .sig-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 20px;
  }
}

@media (min-width: 1100px) {
  .sig-list {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

/* 5-4. 이야기 */
.story {
  display: grid;
  gap: 48px;
}

.story-photo {
  justify-self: center;
  width: 100%;
  max-width: 480px;
}

.story-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-photo figcaption {
  margin-top: 10px;
  font-size: var(--step-small);
  color: var(--muted);
}

.story-text {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 24px;
}

.story-lead {
  max-width: 28em;
  font-size: var(--step-lead);
  line-height: 1.65;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 40px;
  margin-block: 8px;
}

.facts div {
  display: grid;
  gap: 2px;
}

.facts dt {
  font-family: var(--font-head);
  font-size: var(--step-head);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.facts dd {
  font-size: var(--step-small);
  color: var(--muted);
}

@media (max-width: 899px) {
  .story-text {
    order: -1;
  }
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: 6fr 6fr;
    gap: 64px;
    align-items: center;
  }
}

/* 5-6. 원두 */
.beans {
  display: grid;
  gap: 48px;
}

.beans-photo {
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

.beans-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.beans-text {
  display: grid;
  align-content: center;
  gap: 24px;
}

.beans-list {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

.beans-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
}

.beans-name {
  font-family: var(--font-head);
  font-size: var(--step-lead);
}

.beans-taste {
  grid-column: 1;
  color: var(--muted);
}

.beans-extra {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: var(--step-small);
  font-weight: 500;
}

@media (min-width: 900px) {
  .beans {
    grid-template-columns: 5fr 6fr;
    gap: 96px;
  }
}

/* 5-7. 찾아오시는 길 */
.visit {
  display: grid;
  gap: 48px;
}

.visit-text {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 28px;
}

.visit-address {
  font-size: var(--step-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.visit-lead {
  max-width: 24em;
  font-size: var(--step-lead);
  line-height: 1.65;
}

.visit-info {
  width: 100%;
  max-width: 30em;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.visit-photo {
  background: var(--surface);
}

.visit-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 900px) {
  .visit {
    grid-template-columns: 7fr 5fr;
    gap: 96px;
  }
}

/* ---------- 6. 푸터 ---------- */
.site-footer {
  display: grid;
  gap: 40px;
  max-width: calc(var(--max) + var(--margin) * 2);
  margin: var(--gap-section) auto 0;
  padding: 0 var(--margin) 48px;
}

.footer-top {
  display: grid;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: var(--step-display);
  line-height: 1;
  letter-spacing: -0.03em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-weight: 500;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.3s var(--ease);
}

.footer-links a:hover {
  text-decoration-color: currentColor;
}

.footer-contact {
  font-size: var(--step-small);
}

.footer-legal {
  display: grid;
  gap: 8px;
  max-width: 44em;
  font-size: var(--step-small);
  color: var(--ink);
}

.credits summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}

.credits p,
.credits ul {
  margin-top: 10px;
}

.credits li + li {
  margin-top: 4px;
}

.credits a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr auto auto;
    align-items: end;
    gap: 64px;
  }
}

/* ---------- 7. 하위 페이지 공통 ---------- */
.page-head {
  padding-block: clamp(40px, 6vw, 96px) clamp(32px, 4vw, 56px);
}

.title-xl {
  font-size: var(--step-display);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.page-head .lead {
  margin-top: 20px;
}

/* 소개 · 찾아오시는 길 · 소식은 제목 옆에 작은 사진 한 장 */
.page-photo {
  max-width: 560px;
  margin-top: 40px;
  overflow: hidden;
  background: var(--surface);
}

.page-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  animation: photo-settle 2.6s var(--ease) both;
}

@media (min-width: 900px) {
  .page-head .container:has(.page-photo) {
    display: grid;
    grid-template-columns: 7fr 5fr;
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 64px;
  }

  .page-head .container:has(.page-photo) > :not(.page-photo) {
    grid-column: 1;
  }

  /* 제목과 소개는 사진 높이의 가운데에 */
  .page-head .container:has(.page-photo) > .title-xl {
    grid-row: 2;
  }

  .page-head .container:has(.page-photo) > .lead {
    grid-row: 3;
  }

  .page-photo {
    grid-column: 2;
    grid-row: 1 / -1;
    max-width: none;
    margin-top: 0;
  }

  .page-photo img {
    aspect-ratio: 16 / 10;
  }
}

.lead {
  max-width: 28em;
  font-size: var(--step-lead);
  line-height: 1.65;
  color: var(--ink);
}

.section {
  padding-block: calc(var(--gap-section) / 2);
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.split {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }

  .split .section-head {
    margin-bottom: 0;
  }

  /* 왼쪽에 제목과 사진이 함께 있으면, 오른쪽 글을 사진과 같은 줄에 두고 사진 높이의 가운데에 맞춘다 */
  .split:has(.head-shot) {
    grid-template-rows: auto auto;
    row-gap: 0;
  }

  .split:has(.head-shot) > .section-head {
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: subgrid;
  }

  .split:has(.head-shot) > .section-head + * {
    grid-row: 2;
    grid-column: 2;
    align-self: center;
  }
}

.title-lg {
  font-size: var(--step-head);
}

.title-md {
  font-size: var(--step-lead);
}

.body-text {
  max-width: 34em;
}

.body-text + .body-text {
  margin-top: 1em;
}

.label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 16px;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  font-weight: 500;
}

/* ---------- 8. 메뉴 페이지 ---------- */
.menu-tabs-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--bg);
}

.menu-tabs {
  margin-inline: calc(var(--margin) * -1);
  padding-inline: var(--margin);
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-tabs-list {
  display: flex;
  gap: 8px;
  padding-block: 12px;
  white-space: nowrap;
}

.menu-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.menu-tab:hover {
  background: var(--surface-2);
}

.menu-tab[aria-current="true"] {
  background: var(--brand);
  color: #fff;
}

.menu-tab .star {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.menu-tab-count {
  font-variant-numeric: tabular-nums;
}

.menu-board {
  padding-block: 24px var(--gap-section);
}

.menu-board-head {
  display: grid;
  gap: 12px;
}

.menu-search {
  position: relative;
}

.menu-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.menu-search-input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 46px;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step-body);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s var(--ease);
}

.menu-search-input::placeholder {
  color: var(--muted);
}

.menu-search-input:focus {
  outline: none;
  border-color: var(--brand);
}

.menu-count {
  color: var(--muted);
}

@media (min-width: 768px) {
  .menu-board-head {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .menu-search {
    width: 360px;
  }
}

.menu-group {
  padding-top: 56px;
}

.menu-group-head {
  padding-bottom: 16px;
}

.menu-group-head .title-md {
  font-size: var(--step-head);
}

.menu-list {
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .menu-list {
    grid-template-columns: 1fr 1fr;
  }
}

.menu-item {
  position: relative;
}

.menu-item-open {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  align-items: start;
  width: 100%;
  min-height: 100%;
  padding: 20px 0 24px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

/* 사진이 아직 없으면 글자만 */
.menu-item.no-photo .menu-item-open {
  grid-template-columns: 1fr auto;
}

.menu-item.no-photo .menu-thumb {
  display: none;
}

.menu-item-open .menu-item-name {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.3s var(--ease);
}

.menu-item-open:hover .menu-item-name {
  text-decoration-color: currentColor;
}

.menu-item-open:active {
  transform: scale(0.99);
}

.menu-thumb {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 0;
  background: var(--surface-2);
}

.menu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-right: 8px;
}

.menu-item-name {
  font-family: var(--font-head);
  font-size: var(--step-lead);
  font-weight: 400;
  line-height: 1.4;
}

.menu-item-en,
.menu-meta {
  font-size: var(--step-small);
  color: var(--muted);
}

.menu-item-desc {
  margin-top: 6px;
  text-wrap: pretty;
}

.menu-meta {
  margin-top: 8px;
}

.menu-item-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fav-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.2s var(--ease);
}

.fav-btn:hover {
  color: var(--ink);
  background: var(--bg);
}

.fav-btn:active {
  transform: scale(0.9);
}

.fav-btn .star {
  flex: none;
  width: 20px;
  height: 20px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: fill 0.3s var(--ease), stroke 0.3s var(--ease);
}

.fav-btn[aria-pressed="true"] .star {
  fill: var(--star);
  stroke: var(--star);
}

.menu-item .fav-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.fav-btn--text {
  display: inline-flex;
  gap: 8px;
  width: auto;
  padding-inline: 14px;
  border-radius: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 500;
}

.menu-empty {
  padding-block: 64px;
  color: var(--muted);
}

/* 상세 창 */
html:has(.menu-dialog[open]) {
  overflow: hidden;
}

.menu-dialog {
  width: min(920px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}

.menu-dialog.no-photo {
  width: min(560px, calc(100% - 24px));
}

.menu-dialog[open] {
  animation: dialog-in 0.4s var(--ease);
}

.menu-dialog::backdrop {
  background: rgba(43, 35, 29, 0.45);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.menu-dialog-inner {
  display: grid;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}

.dialog-close::before,
.dialog-close::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

.dialog-close:hover {
  background: var(--surface-2);
}

.menu-dialog-photo {
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.menu-dialog.no-photo .menu-dialog-photo {
  display: none;
}

.menu-dialog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-dialog-body {
  display: flex;
  flex-direction: column;
  padding: 32px 24px 28px;
}

.menu-dialog-body .title-lg {
  margin-top: 6px;
  padding-right: 40px;
}

.menu-dialog-en {
  color: var(--muted);
}

.menu-dialog-body .menu-meta {
  margin-top: 12px;
}

.menu-dialog-detail {
  margin-top: 16px;
  text-wrap: pretty;
}

.menu-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.menu-dialog-price {
  font-family: var(--font-head);
  font-size: var(--step-head);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}

@media (min-width: 768px) {
  .menu-dialog:not(.no-photo) .menu-dialog-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .menu-dialog-photo {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .menu-dialog-body {
    padding: 44px 40px 36px;
  }
}

/* 원두 고르기 */
.bean-picker {
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.bean-legend {
  padding: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

.bean-options {
  display: grid;
  gap: 8px;
}

.bean-option {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.bean-option:hover {
  background: var(--surface-2);
}

.bean-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--bg);
}

.bean-option input {
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  border: 2px solid var(--muted);
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.bean-option input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.bean-option input:checked {
  border-color: var(--brand);
}

.bean-option input:checked::before {
  opacity: 1;
  transform: scale(1);
}

.bean-text {
  display: grid;
  gap: 1px;
}

.bean-name {
  font-weight: 600;
}

.bean-en,
.bean-taste,
.bean-extra,
.bean-note {
  font-size: var(--step-small);
  color: var(--muted);
}

.bean-extra {
  white-space: nowrap;
}

.bean-note {
  margin-top: 12px;
}

/* ---------- 9. 소개 · 찾아오시는 길 · 소식 ---------- */
.quote {
  margin-bottom: 24px;
}

.quote p {
  font-family: var(--font-head);
  font-size: var(--step-lead);
  font-weight: 400;
  line-height: 1.6;
  color: var(--brand);
}

.space-grid {
  display: grid;
  gap: 32px;
}

.space-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.space-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-item:has(.no-photo) {
  display: none;
}

.space-photo.no-photo::after {
  content: "사진 준비 중";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: var(--step-small);
  color: var(--muted);
}

.space-item figcaption {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  color: var(--muted);
}

.space-name {
  font-family: var(--font-head);
  font-size: var(--step-lead);
  font-weight: 400;
  color: var(--ink);
}

@media (min-width: 768px) {
  .space-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.bean-list {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.bean-card {
  display: grid;
  gap: 4px;
  padding: 28px 24px 30px;
  border-radius: var(--radius);
  background: var(--surface);
}

.bean-card-en,
.bean-card-note {
  font-size: var(--step-small);
  color: var(--muted);
}

.bean-card-taste {
  margin-top: 12px;
}

.bean-card-extra {
  margin-top: 12px;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--brand);
}

@media (min-width: 768px) {
  .bean-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 영업시간 */
.status-large {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-bottom: 24px;
  padding: 12px 22px 12px 14px;
  border-radius: 0;
  background: var(--surface);
  font-weight: 600;
}

.status-large[hidden] {
  display: none;
}

.status-large .moon {
  --moon-size: 28px;
}

.status-large .open-status-detail {
  font-weight: 400;
  color: var(--muted);
}

.hours-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.hours-table th,
.hours-table td {
  padding: 12px 18px;
  background: var(--surface);
  text-align: left;
  font-weight: 400;
}

.hours-table th {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.hours-table td {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours-table tr.is-today th,
.hours-table tr.is-today td {
  background: var(--warm);
  font-weight: 600;
}

.today-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 0;
  background: var(--brand);
  color: #fff;
  font-size: var(--step-small);
  font-weight: 600;
}

.hours-note {
  max-width: 36em;
  margin-top: 16px;
  color: var(--ink);
}

/* 찾아오시는 길: 영업시간은 일주일을 한 줄로, 약도 옆에 오시는 방법과 주소 */
.visit-pair {
  display: grid;
  gap: 56px;
}

.visit-col {
  display: grid;
  gap: 24px;
  align-content: start;
}

.visit-col--stack {
  row-gap: 24px;
}

.visit-stack-body,
.visit-contact {
  display: grid;
  row-gap: 24px;
  align-content: start;
}

.visit-contact {
  margin-top: 32px;
}

/* 녹사평역에서 걸어오는 순서: 약도의 점선을 글로 따라간다 */
.route-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
}

.route-steps li {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 16px;
  counter-increment: route;
  color: var(--muted);
}

.route-steps li::before {
  content: "걷기 " counter(route);
  color: var(--muted);
}

.visit-col .status-large {
  margin-bottom: 0;
}

@media (min-width: 1100px) {
  /* 두 제목은 첫 줄, 약도와 오른쪽 글은 둘째 줄: 오른쪽 글이 약도 위쪽에서 시작해 약도 아래쪽에서 끝난다 */
  .visit-pair {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 24px;
  }

  .visit-pair > .visit-col {
    grid-row: 1 / 3;
    grid-template-rows: subgrid;
  }

  .visit-stack-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .visit-contact {
    margin-top: auto;
  }
}

.visit-hours {
  display: grid;
  gap: 24px;
}

.visit-hours .status-large {
  margin-bottom: 0;
}

.visit-hours .hours-note {
  margin-top: 0;
}

/* 넓은 화면: 월요일부터 일요일까지 일곱 칸을 한 줄로 */
@media (min-width: 900px) {
  .visit-hours .hours-table tbody {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
  }

  .visit-hours .hours-table tr {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--surface);
    border-radius: var(--radius-sm);
  }

  .visit-hours .hours-table th,
  .visit-hours .hours-table td {
    display: block;
    border-radius: 0;
    background: none;
    text-align: left;
  }

  .visit-hours .hours-table th {
    padding: 18px 18px 6px;
  }

  .visit-hours .hours-table td {
    padding: 0 18px 20px;
    font-size: var(--step-lead);
  }

  .visit-hours .hours-table tr.is-today {
    background: var(--warm);
  }

  .visit-hours .hours-table tr.is-today th,
  .visit-hours .hours-table tr.is-today td {
    background: none;
  }

  .visit-hours .today-tag {
    margin-left: 6px;
  }
}

/* 소개: 이어지는 두 글(카페 이야기 · 달빛이라는 이름)은 사이를 좁게 */
.about-story:has(+ .about-story) {
  padding-bottom: 0;
}

.about-story + .about-story {
  padding-top: clamp(48px, 6vw, 88px);
}

/* 제목 아래 작은 그림: 왼쪽 제목 칸이 비지 않게 */
.head-shot {
  display: grid;
  gap: 10px;
  max-width: 28rem;
  margin: 16px 0 0;
}

.head-shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--surface);
}

.head-shot img[src*="facade"] {
  object-position: 50% 62%;
}

.head-shot figcaption {
  font-size: var(--step-small);
  color: var(--muted);
}

/* 약도 */
.map-figure {
  margin: 0;
}

.map {
  width: 100%;
  max-width: 820px;
  height: auto;
  border-radius: var(--radius);
}

.map-bg { fill: var(--surface); }
.map-block rect { fill: var(--surface-2); }
.map-road path { fill: none; stroke: #cfc6b8; stroke-width: 2; }
.map-street path { fill: none; stroke: var(--bg); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.map-contour path { fill: none; stroke: var(--surface-2); stroke-width: 1.5; }
.map-road-name { font-size: 12px; fill: var(--muted); }
.map-route { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.map-exit circle { fill: var(--bg); stroke: var(--brand); stroke-width: 1.5; }
.map-exit text { font-size: 12px; font-weight: 600; fill: var(--brand); }
.map-bus { fill: var(--brand); }
.map-label { font-size: 13px; fill: var(--ink); }
.map-cafe { fill: var(--honey); stroke: var(--brand); stroke-width: 2; }
.map-cafe-name { font-family: var(--font-head); font-size: 17px; font-weight: 400; fill: var(--brand); }
.map-north path { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.map-north text { font-size: 13px; fill: var(--muted); }

@media (max-width: 600px) {
  .map-label { font-size: 17px; }
  .map-cafe-name { font-size: 22px; }
  .map-road-name,
  .map-north text { font-size: 15px; }
  .map-exit text { font-size: 14px; }
}

.map-caption {
  max-width: 36em;
  margin-top: 14px;
  color: var(--ink);
}

/* 소식 */
.news-board {
  padding-block: 16px var(--gap-section);
}

.news-page-list {
  display: grid;
  gap: 12px;
}

.news-article {
  display: grid;
  gap: 10px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: background-color 0.6s var(--ease);
}

.news-article:focus {
  outline: none;
}

.news-article.is-target {
  background: var(--warm);
}

.news-meta {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: var(--step-small);
  color: var(--muted);
}

.news-meta time {
  font-variant-numeric: tabular-nums;
}

.news-tag {
  font-weight: 600;
  color: var(--brand);
}

.news-article-title {
  font-size: var(--step-lead);
}

.news-article-summary {
  max-width: 38em;
  margin-top: 8px;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .news-article {
    grid-template-columns: 11em 1fr;
    gap: 24px;
    padding: 36px 32px;
  }

  .news-article .news-meta {
    flex-direction: column;
    gap: 4px;
    padding-top: 6px;
  }
}

/* ---------- 10. 맨 위로 · 나타나기 · 동작 줄이기 ---------- */
.to-top {
  position: fixed;
  right: var(--margin);
  bottom: var(--margin);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s, background-color 0.3s var(--ease);
}

.to-top svg {
  width: 16px;
  height: 16px;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--brand-dark);
}

/* 휴대폰에서는 가격을 가리지 않도록 숨긴다(엄지로 올리면 충분하다) */
@media (max-width: 699px) {
  .to-top {
    display: none;
  }
}

/* 스크립트가 .reveal을 붙였을 때만 숨겼다가 보여 준다(스크립트가 없으면 처음부터 보인다) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    transform: none;
  }
}

/* ---------- 11. 공간 페이지(도면) ---------- */
/* 11-1. 머리: 제목 옆에 작품집처럼 정보 목록 */
.project-head {
  padding-block: clamp(40px, 6vw, 96px) clamp(40px, 5vw, 72px);
}

.project-head .container {
  display: grid;
  gap: 40px;
}

.project-title {
  display: grid;
  gap: 20px;
}

.project-meta {
  max-width: 34em;
}

@media (min-width: 900px) {
  .project-head .container {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: end;
  }
}

/* 11-2. 입체 도면: 화면 가득, 한 겹씩 놓인다 */
.axon-figure {
  padding-block: 0 clamp(32px, 5vw, 80px);
  background: var(--surface);
}

.axon-wrap {
  max-width: calc(var(--max) + var(--margin) * 2);
  margin-inline: auto;
  padding: 0 var(--margin);
}

.drawing--axon {
  width: 100%;
  max-height: calc(100svh - var(--header-h) - 120px);
  margin-inline: auto;
  overflow: visible;
}

.axon-figure figcaption {
  padding-block: 24px clamp(24px, 4vw, 56px);
  font-size: var(--step-small);
  color: var(--muted);
}

.ax-floor { fill: #ddd5c8; }
.ax-grid { fill: none; stroke: var(--ink); stroke-opacity: 0.1; stroke-width: 0.6; }
.drawing--axon polygon { stroke: var(--ink); stroke-opacity: 0.4; stroke-width: 0.5; stroke-linejoin: round; }

.ax-wall.ax-t { fill: #fbf9f5; }
.ax-wall.ax-s { fill: #ece5da; }
.ax-wall.ax-e { fill: #ddd4c6; }
.ax-fix.ax-t { fill: #f4f0ea; }
.ax-fix.ax-s { fill: #e3dcd1; }
.ax-fix.ax-e { fill: #d3cabb; }
.ax-oak.ax-t { fill: #d4a877; }
.ax-oak.ax-s { fill: #bf9262; }
.ax-oak.ax-e { fill: #a77b4f; }
.ax-burl.ax-t { fill: #8e5f40; }
.ax-burl.ax-s { fill: #774d32; }
.ax-burl.ax-e { fill: #643f28; }
.ax-brick.ax-t { fill: #b86d52; }
.ax-brick.ax-s { fill: #a65d44; }
.ax-brick.ax-e { fill: #8d4c37; }
.ax-velvet.ax-t { fill: #3d4a6e; }
.ax-velvet.ax-s { fill: #2e3856; }
.ax-velvet.ax-e { fill: #242c45; }
.ax-steel.ax-t { fill: #57504a; }
.ax-steel.ax-s { fill: #47413c; }
.ax-steel.ax-e { fill: #3a3531; }
.ax-cord { fill: none; stroke: var(--ink); stroke-width: 0.7; }
.ax-lamp { fill: var(--hanji); stroke: var(--ink); stroke-opacity: 0.5; stroke-width: 0.6; }

.drawing--axon.is-waiting .ax-layer {
  opacity: 0;
  transform: translateY(-18px);
}

.drawing--axon.is-built .ax-layer {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i) * 35ms);
}

/* 11-3. 사진: 모서리 없이 크게. 아직 없으면 칸째 숨긴다 */
.shot {
  margin-block: calc(var(--gap-section) / 2);
}

.shot img {
  width: 100%;
  object-fit: cover;
  background: var(--surface);
}

.shot figcaption {
  margin-top: 12px;
  font-size: var(--step-small);
  color: var(--muted);
}

.shot.no-photo {
  display: none;
}

/* 큰 그림도 화면 가득 채우지 않고 오른쪽 8칸만, 설명은 왼쪽 아래 */
.shot--bleed {
  display: grid;
  gap: 12px;
  max-width: calc(var(--max) + var(--margin) * 2);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.shot--bleed figcaption.container {
  margin: 0;
  padding: 0;
}

.shot--bleed img {
  aspect-ratio: 4 / 3;
}

@media (min-width: 700px) {
  .shot--bleed img {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 900px) {
  .shot--bleed {
    grid-template-columns: 4fr 8fr;
    gap: 64px;
    align-items: end;
  }

  .shot--bleed img {
    grid-column: 2;
  }

  .shot--bleed figcaption.container {
    grid-column: 1;
    grid-row: 1;
  }
}

.shot--tall img {
  aspect-ratio: 4 / 5;
}

.shot--square img {
  aspect-ratio: 1;
}

.shot-pair {
  display: grid;
  gap: 0 16px;
  max-width: calc(1040px + var(--margin) * 2);
}

.shot-pair .shot {
  margin-block: 0 40px;
}

@media (min-width: 700px) {
  .shot-pair {
    grid-template-columns: 1fr 1fr;
    margin-block: calc(var(--gap-section) / 2);
  }

  .shot-pair .shot {
    margin-block: 0;
  }

  /* 두 쌍이 이어지면 한 장의 2×2 사진 모음처럼 같은 간격으로 */
  .shot-pair:has(+ .shot-pair) {
    margin-bottom: 0;
  }

  .shot-pair + .shot-pair {
    margin-top: 40px;
  }
}

/* 11-4. 도면 공통: 좁은 화면에서는 옆으로 밀어 본다 */
.drawing-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.drawing {
  width: 100%;
  height: auto;
}

.drawing text {
  font-family: var(--font-body);
  fill: var(--ink);
}

.scroll-hint {
  display: none;
}

@media (max-width: 699px) {
  .drawing-scroll[data-plan] .drawing {
    width: 720px;
    max-width: none;
  }

  .scroll-hint {
    display: inline;
  }
}

/* 평면도 */
.pl-tile { fill: url(#pl-tile-grid); }
.pl-grid { stroke: var(--ink); stroke-opacity: 0.12; stroke-width: 0.8; }
.pl-hatch-line { stroke: var(--ink); stroke-width: 1; }
.pl-wall { fill: var(--ink); }
.pl-fix { fill: var(--bg); stroke: var(--ink); stroke-width: 1; }
.pl-wood { fill: #ddc19c; stroke: var(--ink); stroke-width: 1; }
.pl-seat { fill: var(--velvet); }
.pl-brick { fill: var(--brick); }
.pl-glass path { fill: none; stroke: var(--ink); stroke-width: 1; }
.pl-door { fill: none; stroke: var(--ink); stroke-width: 0.8; stroke-dasharray: 3 3; }
.pl-cut path { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.pl-cut text { font-size: 14px; font-weight: 600; }
.pl-mark path { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.pl-mark text { font-size: 13px; }
.pl-bar-a { fill: var(--ink); }
.pl-bar-b { fill: none; stroke: var(--ink); stroke-width: 1; }
.pl-street { font-size: 14px; letter-spacing: 0.4em; fill: var(--muted) !important; }

.pl-num g {
  cursor: pointer;
}

.pl-num circle {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 1.2;
  transition: fill 0.3s var(--ease), r 0.3s var(--ease);
}

.pl-num text {
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  transition: fill 0.3s var(--ease);
}

.pl-num .is-active circle {
  fill: var(--ink);
  r: 16px;
}

.pl-num .is-active text {
  fill: var(--bg);
}

.has-active .pl-num g:not(.is-active) {
  opacity: 0.35;
}

.plan-layout {
  display: grid;
  gap: 40px;
}

.zone-list {
  display: grid;
  gap: 4px 32px;
  counter-reset: none;
}

.zone {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 12px;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.zone-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink); /* taste-skill-ignore: 평면도의 동그란 번호와 같은 모양 */
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.zone-name {
  font-weight: 600;
  line-height: 1.75;
}

.zone-note {
  font-size: var(--step-small);
  color: var(--muted);
}

.zone:hover .zone-num,
.zone[aria-pressed="true"] .zone-num {
  background: var(--ink);
  color: var(--bg);
}

@media (min-width: 700px) {
  .zone-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .plan-layout {
    grid-template-columns: 8fr 4fr;
    gap: 56px;
    align-items: center;
  }

  .zone-list {
    grid-template-columns: 1fr;
  }
}

/* 단면도 */
.drawing-scroll--section {
  margin-top: 48px;
}

.se-poche { fill: var(--ink); }
.se-soffit { fill: var(--plaster); stroke: var(--ink); stroke-width: 0.8; }
.se-brick { fill: var(--brick); }
.se-fix { fill: #e6dfd4; stroke: var(--ink); stroke-width: 0.6; }
.se-line { fill: var(--ink); }
.se-cup { fill: var(--bg); stroke: var(--ink); stroke-width: 0.5; }
.se-wood { fill: #ddc19c; stroke: var(--ink); stroke-width: 0.7; }
.se-seat { fill: var(--velvet); }
.se-lamps path { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.se-lamps circle { fill: var(--hanji); stroke: var(--ink); stroke-width: 0.7; }
.se-glass { fill: none; stroke: var(--ink); stroke-width: 1; }
.se-dim path { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.se-dim text { font-size: 13px; fill: var(--muted); }

/* 11-5. 재료 */
.materials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
  margin-top: 48px;
}

.materials li {
  display: grid;
  gap: 2px;
}

.swatch {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 12px;
  background: var(--sw);
}

.material-name {
  font-family: var(--font-head);
  font-size: var(--step-lead);
  line-height: 1.35;
}

.material-use {
  font-size: var(--step-small);
  color: var(--muted);
}

@media (min-width: 700px) {
  .materials {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .materials {
    grid-template-columns: repeat(7, 1fr);
  }
}

.space-end-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

/* 11-6. 만월창 입면도 */
.moon-window-layout {
  display: grid;
  gap: 48px;
}

.moon-window-text {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
}

.elevation-figure {
  padding: clamp(24px, 4vw, 56px);
  background: var(--surface);
}

.elevation-figure figcaption {
  margin-top: 16px;
  font-size: var(--step-small);
  color: var(--muted);
}

.drawing--elevation {
  max-height: 560px;
  margin-inline: auto;
}

.el-wall { fill: var(--plaster); }
.el-night { fill: var(--velvet); }
.el-moon { fill: var(--honey); }
.el-frame { fill: none; stroke: var(--oak); stroke-width: 7; }
.el-oak { fill: #a77b4f; }
.el-line { fill: var(--ink); }
.el-velvet { fill: var(--velvet); }
.el-brick { fill: var(--brick); opacity: 0.85; }
.el-poche { fill: var(--ink); }
.el-glass { fill: none; stroke: var(--ink); stroke-width: 1; }
.el-dim path { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.el-dim text { font-size: 13px; }

@media (min-width: 900px) {
  .moon-window-layout {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawing--axon .ax-layer {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================
   휴대폰 전용 (699px 이하)
   넓은 화면의 배치를 세로로 쌓기만 하지 않고, 휴대폰에서 쓰기 좋게 바꾼다.
   - 아래쪽 고정 버튼 줄: 메뉴판 · 길찾기 · 전화
   - 시그니처 · 소개의 공간 사진: 옆으로 밀어 넘기기
   - 메뉴판: 작은 사진 + 이름 · 가격 한 줄 + 설명 두 줄
   - 공간: 사진 두 장 나란히, 재료는 색 동그라미 목록
   ========================================================== */
.phone-bar {
  display: none;
}

/* 주소#제목으로 넘어왔을 때 제목이 붙박이 머리글에 가리지 않게 */
h2[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

@media (max-width: 699px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  /* 아래쪽 고정 버튼 줄 */
  .phone-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--ink);
  }

  .phone-bar a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-height: 54px;
    color: color-mix(in srgb, var(--bg) 72%, transparent);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s var(--ease), transform 0.15s var(--ease);
  }

  .phone-bar a[aria-current="page"] {
    color: var(--bg);
  }

  .phone-bar a:active {
    transform: scale(0.92);
  }

  .phone-bar a:focus-visible {
    outline: 2px solid var(--bg);
    outline-offset: -4px;
  }

  .phone-bar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* 옆으로 밀어 넘기는 줄: 다음 카드가 조금 보여서 더 있다는 걸 알 수 있다 */
  .sig-list,
  .space-grid,
  .bean-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 14px;
    margin: -8px calc(var(--margin) * -1) 0;
    padding: 8px var(--margin) 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--margin);
    scrollbar-width: none;
  }

  .sig-list::-webkit-scrollbar,
  .space-grid::-webkit-scrollbar,
  .bean-list::-webkit-scrollbar {
    display: none;
  }

  .sig-list {
    grid-auto-columns: 62%;
  }

  .space-grid {
    grid-auto-columns: 74%;
  }

  .bean-list {
    grid-auto-columns: 82%;
    margin-top: 32px;
  }

  .sig-card,
  .space-item,
  .bean-list > li {
    scroll-snap-align: start;
  }

  /* 메뉴판: 한 줄에 사진 · 이름 · 가격, 아래에 설명 두 줄 */
  .menu-list {
    gap: 0;
  }

  .menu-item-open {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name price"
      "thumb desc desc"
      "thumb meta meta";
    gap: 2px 14px;
    padding: 14px 0 16px;
  }

  .menu-item.no-photo .menu-item-open {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name price"
      "desc desc"
      "meta meta";
  }

  .menu-thumb {
    grid-area: thumb;
    width: 64px;
    height: 64px;
  }

  .menu-item-text {
    display: contents;
  }

  .menu-item-name {
    grid-area: name;
    font-size: 1.12rem;
  }

  .menu-item-en {
    display: none;
  }

  .menu-item-desc {
    grid-area: desc;
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .menu-meta {
    grid-area: meta;
    margin-top: 4px;
    padding-right: 44px;
  }

  .menu-item-price {
    grid-area: price;
    padding-top: 2px;
  }

  .menu-item .fav-btn {
    right: -10px;
    bottom: 4px;
  }

  /* 공간: 사진 두 장을 나란히 */
  .shot-pair {
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }

  .shot-pair .shot {
    margin-block: 0 28px;
  }

  .shot-pair .shot img {
    aspect-ratio: 4 / 5;
  }

  /* 재료: 색 동그라미 + 이름 두 줄 목록 */
  .materials {
    gap: 18px 12px;
    margin-top: 32px;
  }

  .materials li {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
  }

  .materials .swatch {
    grid-row: span 2;
    width: 40px;
    margin: 0;
    border-radius: 50%;
  }

  .materials .material-name,
  .materials .material-use {
    grid-column: 2;
  }

  .materials .material-name {
    font-size: 1.05rem;
  }
}
