/* 늦잎 다실 — 찻집·다원 디자인 샘플 (디코랩)
   전시실 벽 구성: 흰 벽에 사진을 한 줄에 한 점씩 걸고, 옆에 박물관 작품 라벨(번호·제목·재료·물 온도).
   색은 흰 벽 + 아주 연한 회녹 종이 + 청자 하나. 모서리 0, 그림자 없음, 1px 선만. */
:root {
  --c-wall: #FFFFFF;        /* 바탕 — 전시실 흰 벽 */
  --c-paper: #F5F6F2;       /* 보조 면 — 라벨 종이·폼 바탕 */
  --c-ink: #1F2523;         /* 본문 글자 — 먹 */
  --c-label: #5B6460;       /* 캡션·라벨 보조 글자 */
  --c-celadon: #5E8C7E;     /* 청자 — 가는 선·번호 (theme-color) */
  --c-celadon-d: #46705F;   /* 청자 깊은색 — 주 버튼·활성 메뉴 */
  --c-celadon-l: #E6EFEB;   /* 청자 옅은 물 — 우림 선 바탕·선택 표시 */
  --c-rule: #E1E4E0;        /* 가는 선 */
  --c-night: #1C2220;       /* 푸터 */

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "Song Myung", "Noto Serif KR", "Nanum Myeongjo", serif;

  --fs-h1: clamp(2.3rem, 1.3rem + 3.6vw, 4.3rem);
  --fs-h2: clamp(1.8rem, 1.25rem + 2.1vw, 2.8rem);
  --fs-body: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --gutter: clamp(20px, 4vw, 56px);
  --sec: clamp(96px, 8vw + 56px, 180px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-wall); color: var(--c-ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.75;
  word-break: keep-all; overflow-wrap: anywhere; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.3; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--c-ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--c-celadon-d); outline-offset: 3px; }

/* 안내 띠 */
.sample-banner { background: var(--c-ink); color: #E3E8E5; font-size: .82rem; line-height: 1.55; }
.sample-banner__inner { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.sample-banner__tag { flex: none; background: var(--c-celadon-l); color: var(--c-celadon-d); font-weight: 700; padding: 1px 8px; font-size: .76rem; margin-top: 1px; }
.sample-banner a { color: #fff; font-weight: 600; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--celadon { background: var(--c-celadon-d); color: #fff; }
.btn--celadon:hover { background: #36594B; }
.btn--line { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }
.btn--line:hover { background: var(--c-ink); color: #fff; }

/* 머리글 */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--c-rule); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__mark { width: 26px; height: 26px; flex: none; }
.logo b { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; letter-spacing: -.01em; }
.logo span { font-size: .8rem; color: var(--c-label); }
.gnb ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.gnb a { text-decoration: none; font-size: .95rem; position: relative; padding: 6px 0; }
.gnb ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-celadon-d); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.gnb ul a:hover::after, .gnb ul a.is-active::after { transform: scaleX(1); }
.gnb ul a.is-active { color: var(--c-celadon-d); }
.gnb__tel { display: none; }
.header-cta { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .site-header__inner { gap: 12px; }
  .header-cta { display: none; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px;
    background: none; border: 0; padding: 0 10px; cursor: pointer;
  }
  .menu-btn span { display: block; height: 1.5px; background: var(--c-ink); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .gnb {
    position: fixed; left: 0; right: 0; top: var(--menu-top, 100px); bottom: 0; z-index: 39;
    background: var(--c-wall); padding: 20px var(--gutter) 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s;
  }
  .gnb.is-open { visibility: visible; opacity: 1; transition: opacity .3s; }
  .gnb ul { flex-direction: column; gap: 0; }
  .gnb ul a { display: block; font-family: var(--serif); font-size: 1.55rem; padding: 14px 0; border-bottom: 1px solid var(--c-rule); }
  .gnb ul a::after { display: none; }
  .gnb__tel { display: flex; margin-top: 28px; min-height: 52px; align-items: center; justify-content: center; border: 1px solid var(--c-ink); text-decoration: none; font-weight: 600; }
  body.nav-open .quickbar, body.nav-open .guide { visibility: hidden; }
}

/* 공통 머리 */
.kicker { font-size: .9rem; color: var(--c-celadon-d); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; letter-spacing: .02em; }
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--c-celadon); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head p:not(.kicker) { margin-top: 18px; max-width: 32em; color: #3B4340; }

/* 등장 — 흰 벽에 한 점씩 */
.has-motion .rise { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.has-motion .rise.is-in { opacity: 1; transform: none; }
.has-motion .work .work__frame { opacity: 0; transform: translateY(18px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.has-motion .work .work__frame img { transform: scale(1.045); transition: transform 3.2s var(--ease); }
.has-motion .work .label { opacity: 0; transition: opacity 1s .55s; }
.has-motion .work.is-in .work__frame { opacity: 1; transform: none; }
.has-motion .work.is-in .work__frame img { transform: scale(1); }
.has-motion .work.is-in .label { opacity: 1; }

/* 작품(사진) + 라벨 */
.work { margin: 0; position: relative; }
.work__frame { overflow: hidden; background: var(--c-paper); aspect-ratio: var(--ar, 3/2); }
.work__frame img { width: 100%; height: 100%; object-fit: cover; }
.label { margin-top: 16px; max-width: 19em; border-top: 1px solid var(--c-celadon); padding-top: 12px; font-size: .88rem; line-height: 1.6; color: var(--c-label); }
.label__no { display: block; font-variant-numeric: tabular-nums; font-size: .78rem; letter-spacing: .08em; color: var(--c-celadon-d); }
.label__title { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.4; color: var(--c-ink); margin-top: 4px; }
.label__meta { display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.label__text { margin-top: 10px; color: #3B4340; }

/* 히어로 */
.hero { padding: clamp(36px, 5vw, 80px) 0 var(--sec); }
.hero__grid { display: grid; gap: 40px; }
.hero__room { font-size: .9rem; color: var(--c-label); padding-bottom: 14px; border-bottom: 1px solid var(--c-rule); margin-bottom: 24px; }
.hero__room b { color: var(--c-celadon-d); font-weight: 600; margin-right: 6px; }
.hero__title { font-size: var(--fs-h1); line-height: 1.24; letter-spacing: -.03em; }
.hero__lead { margin-top: 20px; max-width: 25em; color: #3B4340; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__note { margin-top: 16px; font-size: .9rem; color: var(--c-label); }
.hero .work { --ar: 4/3; }
@media (min-width: 961px) {
  .hero__grid { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
  .hero__copy { grid-column: 1 / 6; padding-bottom: 120px; }
  .hero .work { grid-column: 7 / 13; --ar: 4/5; display: grid; grid-template-columns: 1fr; }
  .hero .work .work__frame { aspect-ratio: auto; height: clamp(440px, 100vh - 380px, 760px); }
}

/* 전시실 */
.exhibit { background: var(--c-paper); padding: var(--sec) 0; }
.exhibit__head { max-width: 34em; }
.rooms { list-style: none; margin: 0; padding: 0; }
.room { padding-top: clamp(72px, 9vw, 168px); }
.room:first-child { padding-top: clamp(56px, 7vw, 120px); }
.exhibit .work__frame { background: #E9ECE7; }
/* 모바일: 위치를 조금씩 달리 — 왼쪽·오른쪽·가운데 */
.room--l .work { margin-right: 8%; }
.room--r .work { margin-left: 8%; }
.room--tall .work { width: 78%; margin-inline: auto; }
.room--tall .work .label { margin-left: 0; }
@media (min-width: 961px) {
  .room .work { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; margin: 0; width: auto; }
  .room .work__frame { grid-row: 1; }
  .room .label { grid-row: 1; margin: 0 0 4px; }
  .room--c .work__frame { grid-column: 2 / 10; }
  .room--c .label { grid-column: 10 / 13; }
  .room--l .work__frame { grid-column: 1 / 8; }
  .room--l .label { grid-column: 8 / 11; }
  .room--r .work__frame { grid-column: 6 / 13; }
  .room--r .label { grid-column: 3 / 6; text-align: right; justify-self: end; }
  .room--r .label__no { text-align: right; }
  .room--tall .work__frame { grid-column: 4 / 8; }
  .room--tall .label { grid-column: 8 / 11; }
  .room--wide .work__frame { grid-column: 1 / 12; }
  .room--wide .label { grid-column: 1 / 4; grid-row: 2; margin-top: 16px; }
}

/* 지금 보는 작품 번호 — 데스크톱 전시실 안내 */
.guide { display: none; }
@media (min-width: 1100px) {
  .guide {
    display: block; position: fixed; left: max(16px, calc((100vw - 1240px) / 2 - 92px)); bottom: 40px; z-index: 20;
    font-size: .78rem; color: var(--c-label); line-height: 1.3; text-align: center; width: 64px;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s;
  }
  .guide.is-on { opacity: 1; visibility: visible; transition: opacity .4s; }
  .guide b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--c-celadon-d); font-variant-numeric: tabular-nums; }
  .guide span { display: block; border-top: 1px solid var(--c-celadon); margin-top: 6px; padding-top: 6px; }
}

/* 차 목록 */
.tea-list { padding: var(--sec) 0; }
.tea-cols { display: grid; gap: 56px; margin-top: 52px; }
.tea-group h3 { font-size: 1.35rem; padding-bottom: 12px; border-bottom: 1px solid var(--c-ink); display: flex; align-items: baseline; gap: 12px; }
.tea-group h3 small { font-family: var(--font); font-size: .82rem; color: var(--c-label); }
.teas { list-style: none; margin: 0; padding: 0; }
.tea {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main main" "spec act"; gap: 6px 12px;
  padding: 18px 0 16px; border-bottom: 1px solid var(--c-rule); position: relative;
}
.tea__main { grid-area: main; }
.tea__main b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.tea__main span { display: block; font-size: .92rem; color: var(--c-label); margin-top: 2px; }
.tea__spec { grid-area: spec; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .92rem; font-variant-numeric: tabular-nums; align-items: center; }
.tea__spec div { display: flex; gap: 6px; }
.tea__spec dt { color: var(--c-label); }
.tea__spec dd { margin: 0; font-weight: 600; }
.tea__act { grid-area: act; display: flex; align-items: center; gap: 12px; }
.tea__price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.steep-btn {
  font: inherit; font-size: .85rem; min-height: 36px; padding: 0 12px; background: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--c-celadon); color: var(--c-celadon-d); transition: background-color .25s, color .25s;
}
.steep-btn:hover, .steep-btn[aria-pressed="true"] { background: var(--c-celadon-d); border-color: var(--c-celadon-d); color: #fff; }
.tea__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; pointer-events: none; }
.tea__bar::after { content: ""; position: absolute; inset: 0; background: var(--c-celadon); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .3s linear; }
.tea.is-steeping, .tea.is-done { background: linear-gradient(90deg, var(--c-celadon-l), transparent 70%); padding-left: 12px; }
.tea__left { grid-column: 1 / -1; font-size: .88rem; color: var(--c-celadon-d); min-height: 0; }
.tea__left:empty { display: none; }
.tea-note { margin-top: 28px; font-size: .9rem; color: var(--c-label); max-width: 40em; }
@media (min-width: 961px) {
  .tea-cols { grid-template-columns: 1fr 1fr; gap: 64px 72px; }
  .tea { grid-template-columns: 1fr auto auto; grid-template-areas: "main spec act"; align-items: center; gap: 4px 24px; }
}

/* 차 클래스 */
.class { padding: var(--sec) 0; border-top: 1px solid var(--c-rule); }
.class__grid { display: grid; gap: 48px; }
.classes { list-style: none; margin: 32px 0 0; padding: 0; }
.cls { padding: 22px 0; border-top: 1px solid var(--c-rule); }
.cls:last-child { border-bottom: 1px solid var(--c-rule); }
.cls h3 { font-size: 1.3rem; }
.cls p { margin-top: 6px; color: #3B4340; font-size: .97rem; }
.cls dl { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cls dl div { display: flex; gap: 6px; }
.cls dt { color: var(--c-label); }
.cls dd { margin: 0; font-weight: 600; }
.cls__pick { margin-top: 12px; display: inline-block; font-size: .9rem; color: var(--c-celadon-d); text-underline-offset: 4px; }
.class .work { margin-top: 40px; --ar: 3/2; }
.form { background: var(--c-paper); padding: clamp(24px, 4vw, 48px); }
.form h3 { font-size: 1.5rem; }
.form > p { margin-top: 8px; font-size: .92rem; color: var(--c-label); }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label, .field legend { font-size: .92rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C9CFCB; background: #fff; color: var(--c-ink); border-radius: 0;
}
.field input, .field select { height: 52px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-celadon); outline-offset: 0; border-color: var(--c-celadon); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.consent { margin-top: 22px; font-size: .9rem; }
.consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-celadon-d); flex: none; }
.consent details { margin: 8px 0 0 30px; color: var(--c-label); font-size: .86rem; }
.consent summary { cursor: pointer; }
.form .btn { width: 100%; margin-top: 22px; }
.form-msg { margin-top: 16px; padding: 14px 16px; background: #fff; border-left: 3px solid var(--c-celadon-d); font-size: .94rem; }
@media (min-width: 961px) {
  .class__grid { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
  .class__info { grid-column: 1 / 7; }
  .form { grid-column: 8 / 13; position: sticky; top: calc(var(--header-h) + var(--sample-banner-h, 0px) + 24px); }
}

/* 묻고 답하기 */
.faq { padding: 0 0 var(--sec); }
.faq__grid { display: grid; gap: 32px; border-top: 1px solid var(--c-ink); padding-top: 48px; }
.qa { border-bottom: 1px solid var(--c-rule); }
.qa h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.qa button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  font: inherit; color: inherit; background: none; border: 0; padding: 20px 0; cursor: pointer;
}
.qa button::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 1.5px solid var(--c-celadon-d); border-bottom: 1.5px solid var(--c-celadon-d); transform: translateY(-3px) rotate(45deg); transition: transform .3s; }
.qa button[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s; }
.qa__panel > div { overflow: hidden; min-height: 0; }
.qa__panel p { padding: 0 0 20px; color: #3B4340; max-width: 40em; }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }
html:not(.js) .qa__panel { grid-template-rows: 1fr; }
@media (min-width: 961px) { .faq__grid { grid-template-columns: 5fr 7fr; gap: 0 64px; } }

/* 오시는 길 */
.visit { padding: var(--sec) 0; background: var(--c-paper); }
.visit__grid { display: grid; gap: 40px; }
.visit .work { --ar: 4/3; }
.hours { width: 100%; border-collapse: collapse; margin-top: 26px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--c-rule); font-weight: 400; vertical-align: baseline; }
.hours th { width: 7em; white-space: nowrap; font-family: var(--serif); }
.hours small { color: var(--c-label); margin-left: 8px; font-size: .85rem; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--c-celadon-d); font-weight: 600; }
.hours tr.is-today th::after { content: "오늘"; font-family: var(--font); font-size: .72rem; color: #fff; background: var(--c-celadon-d); padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.facts { margin: 22px 0 0; }
.facts div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dotted #C9CFCB; font-size: .97rem; }
.facts dt { color: var(--c-label); }
.facts dd { margin: 0; }
.map-ph { margin-top: 22px; aspect-ratio: 16/7; display: grid; place-items: center; border: 1.5px dashed var(--c-label); color: var(--c-label); font-size: .95rem; background: #fff; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (min-width: 961px) {
  .visit__grid { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
  .visit .work { grid-column: 1 / 7; position: sticky; top: calc(var(--header-h) + var(--sample-banner-h, 0px) + 32px); }
  .visit__info { grid-column: 8 / 13; }
}

/* 자리표시 */
.ph-box { display: inline-block; border: 1px dashed var(--c-label); padding: 0 6px; font-size: .92em; color: var(--c-label); line-height: 1.6; }
.ph-box--dark { border-color: #84908B; color: #C9D1CD; }

/* 푸터 */
.site-footer { background: var(--c-night); color: #C9D1CD; padding: 56px 0 48px; font-size: .9rem; }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__logo { font-family: var(--serif); font-size: 1.45rem; color: #fff; margin-bottom: 12px; }
.site-footer__logo span { font-family: var(--font); font-size: .85rem; color: #9DAAA4; margin-left: 6px; }
.site-footer a { color: #fff; }
.site-footer__links { margin-top: 14px; display: flex; gap: 18px; }
.site-footer__links .strong { font-weight: 700; }
.site-footer__credit { color: #9DAAA4; font-size: .85rem; }
@media (min-width: 961px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr; align-items: end; } .site-footer__credit { text-align: right; } }

/* 하단 고정 바 (모바일) */
.quickbar { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .quickbar {
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--c-ink); padding-bottom: env(safe-area-inset-bottom);
  }
  .quickbar a { display: flex; align-items: center; justify-content: center; min-height: 58px; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .quickbar a + a { border-left: 1px solid var(--c-rule); }
  .quickbar__main { background: var(--c-celadon-d); color: #fff; }
}

@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 auto; padding: 0 16px; }
  .facts div { grid-template-columns: 5em 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* 동작 줄이기 — 떠오르기·확대는 끄고(처음부터 보임), 색·투명도 피드백은 둔다 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn, .steep-btn, .qa__panel, .gnb, .guide { transition-duration: .2s !important; }
}
