/* 떠 있는 버튼 + 팝업 위젯형 — 잡지처럼 읽히는 소개(남색 잉크 · 따뜻한 흰 종이 · 황토색) 위에 언제든 뜨는 예약 창 */
@font-face { font-family: 'Pretendard Variable'; src: url('/fonts/PretendardVariable.woff2') format('woff2-variations'); font-weight: 45 920; font-display: swap; }

:root {
  --paper: #FBF8F2;
  --ink: #1E2A37;
  --soft: #5F6873;
  --line: #E1DBCF;
  --ochre: #B8862F;
  --ochre-soft: #F4E7CC;
  --navy-2: #2F4256;
  --serif: 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.75 var(--sans); letter-spacing: -0.2px; word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; }
body.is-locked { position: fixed; left: 0; right: 0; overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.6px; }
.in { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* 머리 */
.nav { border-bottom: 1px solid var(--ink); }
.nav__in { display: flex; align-items: center; gap: 28px; min-height: 62px; }
.nav__brand { font-family: var(--serif); font-weight: 700; font-size: 18px; text-decoration: none; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav__links a { text-decoration: none; color: var(--soft); }
.nav__links a:hover { color: var(--ink); }
.nav__owner { font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--ochre); }

/* 첫 화면 — 큰 문장 + 요일 띠 */
.mast { padding-top: 72px; padding-bottom: 64px; }
.mast__vol { margin: 0 0 22px; font-size: 13px; letter-spacing: .5px; color: var(--soft); }
.mast h1 { max-width: 880px; font-size: 58px; line-height: 1.22; font-weight: 600; }
.mast h1 em { font-style: normal; color: var(--ochre); }
.mast__lead { max-width: 560px; margin: 28px 0 40px; font-size: 17px; color: var(--soft); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.week__d { display: flex; flex-direction: column; padding: 12px 14px; border-left: 1px solid var(--line); }
.week__d:first-child { border-left: 0; }
.week__d b { font-family: var(--serif); font-size: 20px; }
.week__d span { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.week__d.is-off { background: repeating-linear-gradient(135deg, transparent 0 7px, #EFE9DD 7px 8px); color: #9AA0A7; }

/* 꼭지 — 왼쪽 이름표 + 오른쪽 본문 */
.way, .menu, .faq, .visit { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.lab { position: sticky; top: 24px; align-self: start; font-size: 15px; font-weight: 700; font-family: var(--sans); letter-spacing: 0; }
.lab::before { content: ''; display: block; width: 28px; height: 3px; margin-bottom: 12px; background: var(--ochre); }
.way__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.way__body span { font-family: var(--serif); font-size: 14px; color: var(--ochre); }
.way__body h3 { margin: 4px 0 10px; font-size: 21px; line-height: 1.4; }
.way__body p { margin: 0; font-size: 15px; color: var(--soft); }

.mt { width: 100%; border-collapse: collapse; }
.mt tr { border-bottom: 1px solid var(--line); }
.mt tr:first-child { border-top: 1px solid var(--ink); }
.mt th, .mt td { padding: 18px 0; text-align: left; vertical-align: top; font-weight: 400; }
.mt th b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.mt th span { display: block; max-width: 420px; font-size: 14px; color: var(--soft); }
.mt__d { width: 70px; color: var(--soft); font-size: 14.5px; padding-top: 22px !important; }
.mt__p { width: 140px; font-weight: 700; white-space: nowrap; padding-top: 21px !important; }
.mt__go { width: 72px; text-align: right !important; padding-top: 16px !important; }
.mt__go button { padding: 6px 14px; border: 1px solid var(--ink); border-radius: 99px; background: none; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.mt__go button:hover { background: var(--ink); color: var(--paper); }
.menu__pass { margin: 18px 0 0; font-size: 14px; color: var(--soft); }
.menu__pass b { color: var(--ink); margin-right: 6px; }

.faq__body details { border-bottom: 1px solid var(--line); }
.faq__body details:first-child { border-top: 1px solid var(--ink); }
.faq__body summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-family: var(--serif); font-size: 17.5px; cursor: pointer; list-style: none; }
.faq__body summary::-webkit-details-marker { display: none; }
.faq__body summary::after { content: '+'; font-family: var(--sans); color: var(--ochre); font-size: 20px; line-height: 1.3; }
.faq__body details[open] summary::after { content: '–'; }
.faq__body p { margin: 0 0 18px; max-width: 620px; color: var(--soft); font-size: 15px; }

.visit__body p { margin: 0 0 10px; max-width: 620px; color: var(--soft); }
.visit__addr { font-family: var(--serif); font-size: 24px; color: var(--ink) !important; }
.visit__tel { color: var(--ink) !important; font-weight: 600; }
.visit__tel span { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--soft); }

.maker p { margin: 0; padding: 18px 0; border-top: 1px solid var(--ink); font-size: 13.5px; color: var(--soft); }
.maker b { color: var(--ink); } .maker a { font-weight: 700; color: var(--ink); }
.ft { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 110px; font-size: 13px; color: var(--soft); }

/* 떠 있는 버튼 */
.fab { position: fixed; right: 28px; bottom: 28px; z-index: 900; display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 16px; border: 0; border-radius: 99px; background: var(--ink); color: var(--paper); text-align: left; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(30,42,55,.6); transition: transform .15s; }
.fab:hover { transform: translateY(-2px); background: var(--navy-2); }
.fab svg { width: 26px; height: 26px; color: var(--ochre); flex: none; }
.fab span { display: flex; flex-direction: column; line-height: 1.25; }
.fab b { font-size: 16px; }
.fab i { font-style: normal; font-size: 12px; color: #C7CDD4; }

/* 예약 창 */
.modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(20,28,38,.5); opacity: 0; transition: opacity .2s; }
.modal.is-on .modal__scrim { opacity: 1; }
.win { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 820px; max-height: calc(100vh - 48px); border-radius: 16px; background: #fff; box-shadow: 0 30px 80px -20px rgba(20,28,38,.5); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s, transform .2s; font-family: var(--sans); }
.modal.is-on .win { opacity: 1; transform: none; }
.modal[data-step="who"] .win, .modal[data-step="done"] .win { max-width: 720px; }
.win__hd { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.win__kicker { margin: 0; font-size: 12px; color: var(--soft); }
.win__hd h2 { font-size: 21px; }
.win__x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #F2EEE6; font-size: 22px; line-height: 1; cursor: pointer; }
.win__x:hover { background: var(--ochre-soft); }
.win__bd { overflow-y: auto; padding: 18px 22px 22px; }

.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; border: 1px solid var(--ink); border-radius: 10px; overflow: hidden; }
.seg__b { display: flex; flex-direction: column; align-items: flex-start; padding: 9px 14px; border: 0; border-left: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; line-height: 1.35; }
.seg__b:first-child { border-left: 0; }
.seg__b b { font-size: 14.5px; }
.seg__b i { font-style: normal; font-size: 12.5px; color: var(--soft); }
.seg__b.is-on { background: var(--ink); color: var(--paper); }
.seg__b.is-on i { color: #C7CDD4; }

.pick { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.cal__m { margin: 0 0 8px; font-weight: 700; font-size: 14.5px; }
.cal__w, .cal__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__w span { text-align: center; font-size: 12px; color: var(--soft); padding-bottom: 4px; }
.c { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.c--out { color: #CFCAC0; font-size: 13px; }
.c--ok { font-weight: 700; cursor: pointer; }
.c--ok::after { content: ''; position: absolute; bottom: 14%; width: 4px; height: 4px; border-radius: 50%; background: var(--ochre); }
.c--ok:hover { background: #F2EEE6; }
.c--full { color: #A6ABB1; text-decoration: line-through; }
.c--off { color: #C4C0B8; }
.c.is-on { background: var(--ink); color: #fff; }
.c.is-on::after { background: #fff; }
.cal__k { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 12px; color: var(--soft); }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; vertical-align: 1px; }
.dot--ok { background: var(--ochre); } .dot--full { background: #C9CDD2; } .dot--off { border: 1px solid #C4C0B8; }
.slots__hint { margin: 0; padding: 16px; border-radius: 10px; background: #F7F4EE; color: var(--soft); font-size: 14px; }
.slots__d { margin: 0 0 8px; font-weight: 700; font-size: 14.5px; }
.slots__l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sl { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 1px solid var(--ink); border-radius: 8px; background: #fff; cursor: pointer; font-variant-numeric: tabular-nums; }
.sl b { font-weight: 600; }
.sl i { font-style: normal; font-size: 12px; }
.sl--open:hover { background: var(--ochre-soft); }
.sl--taken { border-color: transparent; background: #EEF0F2; color: #8A9199; cursor: default; }
.sl--taken b { text-decoration: line-through; }
.sl--blocked { border: 1px dashed #B5BBC2; background: transparent; color: #7F8790; cursor: default; }
.sl--past { border-color: transparent; background: transparent; color: #B4B9BF; cursor: default; }
.sl.is-on { background: var(--ochre); border-color: var(--ochre); color: #fff; }

.win__ft { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.win__ft p { margin: 0; font-size: 14px; color: var(--soft); }
.win__ft b { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-2); }
.btn:disabled { border-color: #CFD3D8; background: #CFD3D8; cursor: default; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: #F2EEE6; }
.btn--wide { width: 100%; }
.link { border: 0; background: none; color: var(--soft); text-decoration: underline; font-size: 14px; cursor: pointer; }
.back { margin-bottom: 14px; padding: 0; border: 0; background: none; color: var(--soft); font-size: 14px; cursor: pointer; }

.who { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.who__sum { padding: 16px 18px; border-radius: 12px; background: #F7F4EE; }
.who__h { margin: 0 0 8px; font-weight: 700; }
.who__sum dl, .dn dl { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: 14.5px; }
.who__sum dt, .dn dt { color: var(--soft); font-size: 13px; padding-top: 1px; }
.who__sum dd, .dn dd { margin: 0; font-weight: 600; }
.who__sum small { display: block; font-weight: 400; font-size: 12.5px; color: var(--soft); }
.fld { display: block; margin-bottom: 12px; }
.fld span { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; }
.fld i { font-style: normal; font-weight: 400; color: var(--soft); }
.fld input, .fld textarea { width: 100%; padding: 11px 13px; border: 1px solid #C9C3B8; border-radius: 8px; font: inherit; font-size: 16px; color: inherit; background: #fff; }
.fld input:focus, .fld textarea:focus { outline: 2px solid var(--ochre); outline-offset: 0; border-color: var(--ochre); }
.err { min-height: 1.3em; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #A8402E; }
.err:empty { min-height: 0; }
.err--box { margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; background: #FBE5DF; }
.fine { margin: 8px 0 0; font-size: 12.5px; color: var(--soft); }

.dn__b { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 99px; background: var(--ochre-soft); color: #6A4C14; font-size: 13px; font-weight: 700; }
.dn h3 { margin-bottom: 14px; font-size: 24px; }
.dn dl { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dn > p { margin: 14px 0 18px; color: var(--soft); font-size: 14.5px; }
.dn__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }

@media (max-width: 900px) {
  .in { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__owner { margin-left: auto; }
  .mast { padding-top: 44px; padding-bottom: 44px; }
  .mast h1 { font-size: 36px; }
  .way, .menu, .faq, .visit { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 40px; padding-bottom: 40px; }
  .lab { position: static; }
  .way__body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .in { padding: 0 16px; }
  .mast h1 { font-size: 30px; }
  .mast__lead { font-size: 15.5px; }
  .week__d { padding: 8px 0; align-items: center; }
  .week__d b { font-size: 16px; }
  .week__d span { font-size: 11px; }
  .mt tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 14px 0; }
  .mt th { grid-column: 1 / -1; padding: 0 0 6px; }
  .mt td { padding: 0 !important; }
  .mt__d { display: none; }
  .mt__p { width: auto; align-self: center; }
  .mt__go { width: auto; }
  .fab { right: 16px; bottom: 16px; padding: 10px 18px 10px 14px; }
  /* 휴대폰 — 창이 전체 화면 */
  .modal { padding: 0; align-items: stretch; }
  .win, .modal[data-step="who"] .win, .modal[data-step="done"] .win { max-width: none; max-height: none; height: 100%; border-radius: 0; }
  .win__bd { flex: 1; padding: 16px; }
  .seg__b { padding: 8px 10px; }
  .seg__b b { font-size: 13.5px; }
  .seg__b i { font-size: 11.5px; }
  .pick, .who { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .slots__l { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sl { flex-direction: column; align-items: flex-start; padding: 8px 10px; }
  .win__ft { position: sticky; bottom: -16px; margin: 18px -16px -16px; padding: 12px 16px; background: #fff; }
  .dn__act .btn { width: 100%; }
}
.cal__m small { margin-left: 6px; font-weight: 400; font-size: 12.5px; color: var(--soft); }
.win__x:focus { outline: none; }
.win__x:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
