/* 달솥 — 옻칠한 상처럼 깊은 갈색 바탕, 한지 빛 글자, 놋그릇 빛 선. 둥근 '달'(솥뚜껑) 모양이 반복 모티프. */
:root {
  --lacquer: #16100d;
  --panel: #211814;
  --panel-2: #2b201a;
  --hanji: #ece3d2;
  --hanji-dim: rgba(236, 227, 210, .66);
  --brass: #c29a5b;
  --brass-soft: rgba(194, 154, 91, .35);
  --chili: #a63a26;
  --f-display: "Song Myung", "Nanum Myeongjo", serif;
  --f-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --head: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lacquer); color: var(--hanji); font: 400 16px/1.75 var(--f-body); letter-spacing: -0.005em; word-break: keep-all; overflow-x: hidden; padding-bottom: 60px; }
.ce-nav-open body { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--brass); color: var(--lacquer); padding: 10px 16px; }
.skip:focus { top: 48px; }

.h2 { font-family: var(--f-display); font-size: clamp(30px, 4.4vw, 58px); line-height: 1.3; letter-spacing: -0.02em; }
.link { display: inline-block; margin-top: 40px; color: var(--brass); text-decoration: none; border-bottom: 1px solid var(--brass-soft); padding-bottom: 4px; font-weight: 600; }
.link:hover { border-color: var(--brass); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; font-weight: 600; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; }
.btn-brass { background: var(--brass); color: var(--lacquer); }
.btn-brass:hover { background: var(--hanji); }
.btn-ghost { border: 1px solid var(--brass-soft); color: var(--hanji); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

/* 머리 */
.top { position: sticky; top: 0; z-index: 50; height: var(--head); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); transition: background-color .4s; }
.top.is-solid { background: rgba(22, 16, 13, .94); box-shadow: 0 1px 0 rgba(194, 154, 91, .18); }
.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 26px; text-decoration: none; }
.brand small { font-family: var(--f-body); font-size: 12px; color: var(--hanji-dim); margin-left: 2px; padding-top: 4px; }
.brand-moon { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--brass); background: radial-gradient(circle at 62% 40%, var(--brass) 0 45%, transparent 46%); }
.top-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; }
.top-book { display: none; height: 40px; padding: 0 18px; align-items: center; background: var(--brass); color: var(--lacquer); font-weight: 700; text-decoration: none; font-size: 14px; }
.menu-btn { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px 0 12px; background: none; border: 0; color: var(--hanji); font: 600 15px var(--f-body); cursor: pointer; }
.menu-word::before { content: "메뉴"; }
[aria-expanded="true"] .menu-word::before { content: "닫기"; }
.menu-x { position: relative; width: 26px; height: 10px; }
.menu-x::before, .menu-x::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--brass); transition: transform .35s, top .35s; }
.menu-x::before { top: 0; }
.menu-x::after { top: 8px; }
[aria-expanded="true"] .menu-x::before { top: 4px; transform: rotate(20deg); }
[aria-expanded="true"] .menu-x::after { top: 4px; transform: rotate(-20deg); }
@media (min-width: 720px) { .top-book { display: inline-flex; } }

.overlay { position: fixed; inset: 0; z-index: 1; display: none; flex-direction: column; justify-content: center; gap: 48px; padding: calc(var(--head) + 24px) var(--gutter) 40px; background: var(--lacquer); }
.overlay.is-open { display: flex; }
.overlay-links a { display: block; padding: 6px 0; font-family: var(--f-display); font-size: clamp(36px, 7vw, 76px); line-height: 1.3; text-decoration: none; }
.overlay-links a:hover { color: var(--brass); }
.overlay.is-open .overlay-links li { animation: up .6s cubic-bezier(.2, .7, .2, 1) both; }
.overlay.is-open .overlay-links li:nth-child(2) { animation-delay: .06s; }
.overlay.is-open .overlay-links li:nth-child(3) { animation-delay: .12s; }
.overlay.is-open .overlay-links li:nth-child(4) { animation-delay: .18s; }
.overlay-info { display: flex; flex-wrap: wrap; gap: 16px 48px; color: var(--hanji-dim); font-size: 15px; border-top: 1px solid var(--brass-soft); padding-top: 24px; }
.overlay-info a { color: var(--brass); text-decoration: none; font-weight: 700; }
@keyframes up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* 첫 화면 — 대표 효과 1: 스크롤하면 달(원) 모양 창이 열리며 사진이 화면을 채운다 */
.hero { --p: 0; --r: 150vmax; --cx: 50%; --cy: 38%; position: relative; margin-top: calc(-1 * var(--head)); height: 100vh; height: 100svh; }
.hero.is-live { height: 240vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; clip-path: circle(var(--r) at var(--cx) var(--cy)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - var(--p) * .18)); filter: brightness(.82) saturate(.9); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 16, 13, .55) 0%, rgba(22, 16, 13, 0) 30%, rgba(22, 16, 13, 0) 55%, rgba(22, 16, 13, .85) 100%); opacity: calc(.4 + var(--p)); }
.hero-ring { position: absolute; left: var(--cx); top: var(--cy); width: calc(var(--r) * 2 + 28px); height: calc(var(--r) * 2 + 28px); transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--brass); opacity: calc(1 - var(--p) * 2.5); pointer-events: none; }
.hero:not(.is-live) .hero-ring { display: none; }
.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(64px + 7vh); opacity: calc(1 - var(--p) * 1.8); }
.hero-season { font-size: 14px; color: var(--brass); font-weight: 600; margin-bottom: 14px; }
.hero-title { font-family: var(--f-display); font-size: clamp(48px, 13vw, 128px); line-height: 1.1; letter-spacing: -0.02em; }
.hero-title span { display: block; }
.hero-after { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14vh; font-family: var(--f-display); font-size: clamp(26px, 4vw, 52px); line-height: 1.45; opacity: calc((var(--p) - .6) * 3); transform: translateY(calc((1 - var(--p)) * 40px)); }
.hero:not(.is-live) .hero-after { display: none; }
.hero-hint { display: none; position: absolute; right: var(--gutter); bottom: 5vh; font-size: 12px; color: var(--hanji-dim); writing-mode: vertical-rl; letter-spacing: .3em; opacity: calc(1 - var(--p) * 4); }
.hero-hint::after { content: ""; display: inline-block; width: 1px; height: 48px; margin-top: 12px; background: linear-gradient(var(--brass), transparent); }

@media (min-width: 960px) {
  .hero { --cy: 50%; }
  .hero-copy { left: auto; right: calc(var(--gutter) + 2vw); top: 50%; bottom: auto; transform: translateY(-50%); }
  .hero-season { position: absolute; right: 100%; top: 0; width: max-content; margin-right: 32px; writing-mode: vertical-rl; font-size: 13px; letter-spacing: .12em; }
  .hero-title { writing-mode: vertical-rl; font-size: clamp(64px, 7.6vw, 128px); line-height: 1.25; }
  .hero-after { left: auto; right: var(--gutter); max-width: 14em; text-align: right; }
  .hero-hint { display: block; left: var(--gutter); right: auto; }
}

/* 이번 절기 */
.season { position: relative; max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter); display: grid; gap: 36px; }
.season-term { font-family: var(--f-display); font-size: clamp(88px, 16vw, 200px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--brass-soft); margin-bottom: -0.35em; }
.season-body p { color: var(--hanji-dim); max-width: 32em; }
.season-body p + p { margin-top: 16px; }
.season-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.season-items li { padding: 6px 14px; border: 1px solid var(--brass-soft); border-radius: 999px; font-size: 14px; color: var(--hanji); }
.season-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 0 0; }
@media (min-width: 960px) {
  .season { grid-template-columns: 1.1fr 1fr .8fr; gap: 64px; align-items: end; padding: 180px var(--gutter) 160px; }
  .season-head { align-self: start; }
}

/* 상차림 탭 — 대표 효과 2 */
.course { background: var(--panel); }
.course-inner { max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter); }
.tabs { position: relative; display: flex; gap: 4px; margin-top: 36px; border-bottom: 1px solid var(--brass-soft); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 14px 16px 16px; background: none; border: 0; color: var(--hanji-dim); font: 600 16px var(--f-body); cursor: pointer; transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--hanji); }
.tabs button:hover { color: var(--hanji); }
.tabs-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--brass); transition: transform .5s cubic-bezier(.6, 0, .2, 1), width .5s cubic-bezier(.6, 0, .2, 1); }
.panels { margin-top: 40px; }
.panel { display: grid; gap: 32px; }
.panel[hidden] { display: none; }
.panel-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panel.is-active .panel-img { animation: unveil 1s cubic-bezier(.6, 0, .2, 1) both; }
.panel-price { font-family: var(--f-display); font-size: 28px; color: var(--brass); }
.panel-price small { display: block; font-family: var(--f-body); font-size: 14px; color: var(--hanji-dim); margin-top: 4px; }
.dishes { counter-reset: d; margin-top: 24px; }
.dishes li { counter-increment: d; display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 16px 0; border-top: 1px solid rgba(194, 154, 91, .16); }
.dishes li::before { content: counter(d, cjk-decimal); grid-row: span 2; font-family: var(--f-display); font-size: 22px; color: var(--brass); line-height: 1.2; }
.dishes b { font-weight: 600; font-size: 17px; }
.dishes span { color: var(--hanji-dim); font-size: 15px; }
.panel.is-active .dishes li { animation: up .7s cubic-bezier(.2, .7, .2, 1) both; }
.panel.is-active .dishes li:nth-child(2) { animation-delay: .07s; }
.panel.is-active .dishes li:nth-child(3) { animation-delay: .14s; }
.panel.is-active .dishes li:nth-child(4) { animation-delay: .21s; }
.panel.is-active .dishes li:nth-child(5) { animation-delay: .28s; }
.panel.is-active .dishes li:nth-child(6) { animation-delay: .35s; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }
@media (min-width: 960px) {
  .course-inner { padding: 160px var(--gutter); }
  .tabs button { padding: 18px 28px 20px; font-size: 17px; }
  .panel { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .panel-img { aspect-ratio: 4 / 5; }
}

/* 방 */
.rooms { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter); }
.rooms-lead { margin-top: 16px; color: var(--hanji-dim); max-width: 30em; }
.rooms-grid { display: grid; gap: 28px; margin-top: 48px; }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room-a img { aspect-ratio: 3 / 4; }
.room figcaption { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--brass-soft); }
.room b { font-family: var(--f-display); font-weight: 400; font-size: 24px; color: var(--brass); }
.room span { font-size: 14px; color: var(--hanji-dim); }
@media (min-width: 960px) {
  .rooms { padding: 180px var(--gutter); }
  .rooms-grid { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 40px 64px; }
  .room-a { grid-row: span 2; }
  .room-b img { aspect-ratio: 16 / 10; }
  .room-c img { aspect-ratio: 16 / 10; }
}

/* 후기 */
.voices { max-width: 980px; margin: 0 auto; padding: 40px var(--gutter) 96px; }
.voice-list { margin-top: 40px; }
.voice-list li { padding: 32px 0; border-top: 1px solid var(--brass-soft); }
.voice-list blockquote { font-family: var(--f-display); font-size: clamp(21px, 2.6vw, 30px); line-height: 1.6; }
.voice-list p { margin-top: 14px; font-size: 14px; color: var(--brass); }
@media (min-width: 960px) {
  .voices { padding-bottom: 180px; }
  .voice-list li:nth-child(2) { padding-left: 18%; }
  .voice-list li:nth-child(3) { padding-left: 36%; }
}

/* 예약 */
.reserve { padding: 0 var(--gutter) 96px; }
.reserve-frame { max-width: var(--max); margin: 0 auto; padding: 40px 24px; border: 1px solid var(--brass-soft); display: grid; gap: 36px; background: radial-gradient(120% 80% at 100% 0%, rgba(194, 154, 91, .1), transparent 60%); }
.reserve-main p { margin-top: 18px; color: var(--hanji-dim); max-width: 30em; }
.reserve-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hours { border-collapse: collapse; width: 100%; }
.hours caption { text-align: left; font-family: var(--f-display); font-size: 22px; color: var(--brass); padding-bottom: 10px; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-top: 1px solid rgba(194, 154, 91, .18); vertical-align: top; }
.hours th { width: 84px; font-weight: 600; }
.hours small { display: block; color: var(--hanji-dim); font-size: 13px; }
.where h3 { font-family: var(--f-display); font-size: 22px; color: var(--brass); margin-bottom: 10px; }
.where p { color: var(--hanji-dim); }
.where p + p { margin-top: 8px; font-size: 14px; }
@media (min-width: 960px) {
  .reserve { padding-bottom: 160px; }
  .reserve-frame { grid-template-columns: 1.3fr 1fr; padding: 72px; gap: 56px 80px; }
  .where { grid-column: 2; }
  .reserve-main { grid-row: span 2; }
}

/* 바닥 */
.foot { border-top: 1px solid rgba(194, 154, 91, .18); padding: 48px var(--gutter); color: var(--hanji-dim); font-size: 14px; }
.foot-brand { font-family: var(--f-display); font-size: 30px; color: var(--hanji); margin-bottom: 12px; }
.foot-small { margin-top: 8px; font-size: 12px; opacity: .7; }

.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: center; height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--brass); color: var(--lacquer); font-weight: 700; text-decoration: none; font-size: 16px; }
@media (min-width: 960px) { body { padding-bottom: 0; } .call-bar { display: none; } }

/* ===== 서브 페이지 ===== */
.sub-head { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 64px; }
.crumb { font-size: 13px; color: var(--brass); }
.crumb a { text-decoration: none; }
.sub-title { margin-top: 18px; font-family: var(--f-display); font-size: clamp(42px, 9vw, 112px); line-height: 1.15; letter-spacing: -0.02em; }
.sub-lead { margin-top: 22px; max-width: 32em; color: var(--hanji-dim); font-size: 17px; }
@media (min-width: 960px) { .sub-head { padding: 120px var(--gutter) 96px; } }

.chef { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 96px; display: grid; gap: 40px; }
.chef img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.chef-text p { color: var(--hanji-dim); max-width: 32em; }
.chef-text p + p { margin-top: 16px; }
.chef-text .h2 { margin-bottom: 24px; }
.chef-sign { margin-top: 28px !important; font-family: var(--f-display); font-size: 22px; color: var(--brass) !important; }
@media (min-width: 960px) { .chef { grid-template-columns: 5fr 6fr; gap: 96px; align-items: center; padding-bottom: 180px; } }

.rules { background: var(--panel); padding: 88px var(--gutter); }
.rules-inner { max-width: var(--max); margin: 0 auto; }
.rule-list { display: grid; gap: 0; margin-top: 40px; }
.rule-list li { padding: 28px 0; border-top: 1px solid var(--brass-soft); display: grid; gap: 10px; }
.rule-list h3 { font-family: var(--f-display); font-size: 28px; color: var(--brass); }
.rule-list p { color: var(--hanji-dim); max-width: 36em; }
@media (min-width: 960px) { .rules { padding: 160px var(--gutter); } .rule-list { grid-template-columns: repeat(3, 1fr); gap: 56px; } }

.terms { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter); }
.terms-lead { margin-top: 16px; color: var(--hanji-dim); max-width: 32em; }
.term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: rgba(194, 154, 91, .16); border: 1px solid rgba(194, 154, 91, .16); }
.term-grid li { background: var(--lacquer); padding: 14px 10px 16px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; }
.term-grid b { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.term-grid span { font-size: 12px; color: var(--hanji-dim); }
.term-grid li.is-now { background: var(--brass); color: var(--lacquer); }
.term-grid li.is-now span { color: var(--lacquer); }
@media (min-width: 720px) { .term-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1100px) { .terms { padding: 160px var(--gutter); } .term-grid { grid-template-columns: repeat(12, 1fr); } .term-grid li { min-height: 132px; } }

.space-row { display: grid; gap: 12px; padding: 0 var(--gutter) 96px; max-width: var(--max); margin: 0 auto; }
.space-row img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .space-row { grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; padding-bottom: 160px; } .space-row img { aspect-ratio: 3 / 4; } }

/* 차림표 */
.carte { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 64px; display: grid; gap: 56px; }
.carte-sec h2 { font-family: var(--f-display); font-size: 32px; color: var(--brass); padding-bottom: 14px; border-bottom: 1px solid var(--brass); }
.carte-sec .note { margin-top: 12px; font-size: 14px; color: var(--hanji-dim); }
.carte-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid rgba(194, 154, 91, .16); }
.carte-list b { font-weight: 600; font-size: 17px; }
.carte-list .won { font-family: var(--f-display); font-size: 20px; color: var(--brass); white-space: nowrap; }
.carte-list small { grid-column: 1 / -1; font-size: 14px; color: var(--hanji-dim); }
.carte-list a { text-decoration: none; }
.carte-list a:hover b { color: var(--brass); }
.carte-list .mark { display: inline-block; margin-left: 8px; padding: 0 8px; border: 1px solid var(--chili); color: #e08a74; font-size: 11px; border-radius: 999px; vertical-align: 2px; }
@media (min-width: 960px) { .carte { grid-template-columns: 1fr 1fr; gap: 80px 96px; padding-bottom: 120px; } .carte-sec.wide { grid-column: 1 / -1; } }

.dish-detail { background: var(--panel); }
.dd-inner { max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter); display: grid; gap: 40px; }
.dd-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dd-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.dd-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.dd-kicker { color: var(--brass); font-size: 14px; font-weight: 600; }
.dd-text .h2 { margin-top: 10px; }
.dd-text > p { margin-top: 18px; color: var(--hanji-dim); max-width: 32em; }
.dd-spec { margin: 28px 0 0; }
.dd-spec div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(194, 154, 91, .18); }
.dd-spec dt { color: var(--brass); font-weight: 600; }
.dd-spec dd { margin: 0; }
.dd-price { margin-top: 28px; font-family: var(--f-display); font-size: 40px; color: var(--brass); }
.dd-price small { font-family: var(--f-body); font-size: 15px; color: var(--hanji-dim); margin-left: 10px; }
@media (min-width: 960px) { .dd-inner { grid-template-columns: 1fr 1fr; gap: 96px; padding: 160px var(--gutter); align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .overlay.is-open .overlay-links li, .panel.is-active .panel-img, .panel.is-active .dishes li { animation: none; }
  .tabs-bar { transition: none; }
}
