/* 밀결 MILGYEOL BAKERY (자체 제작 시안)
   화면 상태는 <html data-scrolled data-nav data-batch data-mtab data-quote data-store>에 두고 CSS가 바꾼다. */

:root {
  --cream: rgb(247 240 215);        /* 바탕 */
  --cream-2: rgb(255 248 230);      /* 사진 위 제목, 입력칸 */
  --yellow: #FDE9A2;                /* 푸터, 메뉴판 */
  --brown: rgb(78 57 0);            /* 푸터 글자, 짙은 구획 */
  --mint: rgb(167 228 196);         /* 어두운 사진 위 제목 */
  --mint-2: rgb(221 242 226);       /* 민트를 크림에 섞은 옅은 바탕 */
  --ink: #111;
  --ink-2: #4a4234;                 /* 보조 글자 (크림 위 8.9:1) */
  --slot: #7a5836;                  /* 사진이 없을 때 자리 색 */
  --error: #a3200f;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --hand: "Nanum Pen Script", cursive;
  --hd: 147px;
  --hd-s: 80px;
  --gut: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-weight: 500; font-size: 17px; line-height: 1.6;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
p, dd, summary { text-wrap: pretty; }
h1, h2, h3, .intro-text, .sh p, .way p { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--cream-2); padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 16px; }
[id] { scroll-margin-top: calc(var(--hd-s) + 8px); }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.br-pc { display: inline; }

/* ───────── 사진 자리 ───────── */
.ph { position: relative; overflow: hidden; background: var(--slot); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
img.is-broken { display: none !important; }
[data-missing]::after {
  content: "사진 자리: " attr(data-missing);
  position: absolute; right: 16px; bottom: 12px; z-index: 1;
  font-size: 12px; letter-spacing: 0; color: rgb(255 248 230 / 0.72);
}

/* ───────── 1. 헤더 ───────── */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hd); background: var(--cream);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}
html[data-scrolled] .hd { height: var(--hd-s); box-shadow: 0 1px 0 rgb(17 17 17 / 0.12); }
.hd-in { height: 100%; display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; }
.gnb { display: contents; }
.gnb a, .logo { justify-self: center; }
.gnb a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
}
.gnb a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.logo {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 121px;
  font-family: var(--hand); font-size: 60px; line-height: 1; color: var(--ink);
  -webkit-text-stroke: 1.6px currentColor; letter-spacing: 0.02em;
  transition: font-size 0.3s ease;
}
.logo span { transform: translateY(2px); }
html[data-scrolled] .logo { font-size: 48px; }
.nav-btn { display: none; }
.nav-panel { display: none; }

/* ───────── 공용: 구획, 제목, 알약 버튼 ───────── */
main { padding-top: var(--hd); }
.sec { padding-block: 150px; }
.sec-mint { background: var(--mint-2); }
.sec-yellow { background: var(--yellow); color: var(--brown); }
.sec-brown { background: var(--brown); color: var(--cream-2); }
.sh { text-align: center; margin-bottom: 64px; }
.sh h2 { font-family: var(--serif); font-weight: 700; font-size: 48px; line-height: 1.25; letter-spacing: -1px; }
.sh p { margin-top: 18px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.sec-yellow .sh p { color: var(--brown); }
.sh-left { text-align: left; }
.sec-note { margin-top: 40px; text-align: center; font-size: 14px; color: var(--ink-2); }

.pill-row { display: flex; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 327px; height: 107px; padding-inline: 24px;
  border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0.04em;
  transition: background-color 0.2s, color 0.2s;
}
.pill:hover { background: var(--ink); color: var(--cream-2); }
.pill:focus-visible { outline-offset: 5px; border-radius: 999px; }

/* ───────── 2. 첫 화면 ───────── */
.hero { position: relative; height: clamp(460px, 55.56vw, 800px); }
.hero .ph { position: absolute; inset: 0; }
.hero .ph::before { /* 아래쪽 글자가 밝은 사진에서도 읽히게 하는 옅은 그늘 */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgb(30 20 4 / 0.55), rgb(30 20 4 / 0) 52%);
}
.hero-title {
  position: absolute; left: 32px; bottom: 44px; z-index: 2; max-width: calc(100% - 64px);
  font-family: var(--serif); font-weight: 700; font-size: 53px; line-height: 1.16; letter-spacing: -1px;
  color: var(--cream-2);
}
.hero-title span { display: block; }
.open-badge {
  position: absolute; right: 32px; bottom: 50px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px 10px 16px;
  border-radius: 999px; background: rgb(17 12 2 / 0.66); color: var(--cream-2);
  font-size: 15px; font-weight: 700; line-height: 1.3;
}
.open-badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); flex: none; }
html:not([data-store="open"]) .open-badge i { background: transparent; box-shadow: inset 0 0 0 2px var(--cream-2); }
.hero [data-missing]::after { bottom: auto; top: 14px; right: 18px; }

/* ───────── 3. 반반 타일 ───────── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; }
.tile { position: relative; display: block; height: clamp(163px, 34.72vw, 500px); overflow: hidden; }
.tile .ph { position: absolute; inset: 0; }
.tile .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(30 20 4 / 0.34); transition: background-color 0.25s; }
.tile:hover .ph::before { background: rgb(30 20 4 / 0.5); }
.tile-title {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--cream-2);
}
.tile:focus-visible { outline-offset: -6px; outline-color: var(--cream-2); border-radius: 0; }

/* ───────── 4. 소개 문장 ───────── */
.intro { padding-block: 170px 160px; text-align: center; }
.intro-text {
  max-width: 1040px; margin-inline: auto;
  font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1.6; letter-spacing: -1px;
}
.intro .pill-row { margin-top: 88px; }

/* ───────── 5. 오늘의 빵 ───────── */
.batches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin-inline: auto; }
.batch-opt { position: relative; display: block; cursor: pointer; }
.batch-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.batch-opt > span {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 96px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 999px;
  text-align: center; transition: background-color 0.2s, color 0.2s;
}
.batch-opt b { font-size: 20px; font-weight: 800; line-height: 1.3; }
.batch-opt small { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.batch-opt:hover > span { background: rgb(17 17 17 / 0.06); }
.batch-opt input:checked + span { background: var(--ink); color: var(--cream-2); }
.batch-opt input:checked + span small { color: rgb(255 248 230 / 0.82); }
.batch-opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 4px; }
.now-tag {
  display: none; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 3px 12px; border-radius: 999px; background: var(--brown); color: var(--cream-2);
  font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.5;
}
.batch-opt[data-now] .now-tag { display: block; }
.next-line { margin-top: 36px; text-align: center; font-size: 18px; font-weight: 700; }
.next-line b { font-weight: 800; }

.batch { display: none; margin-top: 48px; }
html[data-batch="8"] .batch[data-b="8"],
html[data-batch="11"] .batch[data-b="11"],
html[data-batch="14"] .batch[data-b="14"] { display: block; }
.bread-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bread-list li {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: start; gap: 8px 16px;
  padding: 30px 32px 32px; border-radius: 28px; background: var(--cream-2);
}
.bread-list b { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.35; }
.bread-list em { font-style: normal; font-size: 17px; font-weight: 800; white-space: nowrap; line-height: 1.35; padding-top: 4px; }
.bread-list b { grid-column: 1; grid-row: 1; }
.bread-list em { grid-column: 2; grid-row: 1; }
.bread-list span { grid-column: 1 / -1; grid-row: 2; font-size: 16px; color: var(--ink-2); line-height: 1.6; }

/* ───────── 6. 대표 메뉴 ───────── */
.items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.item-ph { aspect-ratio: 1; border-radius: 4px; }
.item-ph img { transition: transform 0.45s ease; }
.item:hover .item-ph img { transform: scale(1.045); }
.item h3 { margin-top: 24px; font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.35; }
.item p { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.item .price { margin-top: 14px; font-size: 18px; font-weight: 800; color: var(--ink); }
.signature .pill-row { margin-top: 100px; }

/* ───────── 7. 사진 띠 ───────── */
.band { position: relative; height: clamp(360px, 44.44vw, 640px); display: flex; align-items: center; justify-content: center; }
.band .ph { position: absolute; inset: 0; }
.band .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(24 16 2 / 0.5); }
.band-title {
  position: relative; z-index: 2; padding-inline: 24px; text-align: center;
  font-family: var(--serif); font-weight: 700; font-size: 53px; line-height: 1.3; letter-spacing: -1px;
  color: var(--mint);
}

/* ───────── 8. 메뉴판 ───────── */
.tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tab {
  min-height: 56px; min-width: 150px; padding: 0 28px;
  border: 2px solid var(--brown); border-radius: 999px; color: var(--brown);
  font-size: 17px; font-weight: 800; transition: background-color 0.2s, color 0.2s;
}
.tab:hover { background: rgb(78 57 0 / 0.08); }
.tab[aria-selected="true"] { background: var(--brown); color: var(--yellow); }
.tab:focus-visible { outline-color: var(--brown); border-radius: 999px; }
.board-panel { display: none; margin-top: 64px; }
.board-panel:focus-visible { outline-color: var(--brown); outline-offset: 12px; }
html[data-mtab="bread"] [data-panel="bread"],
html[data-mtab="dessert"] [data-panel="dessert"],
html[data-mtab="drink"] [data-panel="drink"] { display: block; }
.price-list {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(6, auto);
  column-gap: 96px; max-width: 1160px; margin-inline: auto;
}
.price-list li { display: flex; align-items: baseline; gap: 14px; min-height: 68px; padding-block: 18px; border-bottom: 1px solid rgb(78 57 0 / 0.18); }
.nm { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 19px; font-weight: 700; line-height: 1.4; }
.als { display: inline-flex; gap: 4px; transform: translateY(-2px); }
.al {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border: 1.5px solid currentColor; border-radius: 50%;
  font-style: normal; font-size: 11.5px; font-weight: 800; line-height: 1;
}
.dots { flex: 1; min-width: 24px; border-bottom: 2px dotted rgb(78 57 0 / 0.6); transform: translateY(-5px); }
.pr { font-size: 19px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.board-extra { max-width: 1160px; margin: 24px auto 0; font-size: 15px; }
.legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px;
  max-width: 1160px; margin: 56px auto 0; padding: 24px 32px; border: 2px solid var(--brown); border-radius: 28px;
}
.legend-h { font-weight: 800; font-size: 16px; }
.legend ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.legend-note { flex-basis: 100%; font-size: 14px; line-height: 1.6; }

/* ───────── 9. 만드는 방식 ───────── */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: way; }
.way { text-align: center; padding-inline: 20px; }
.draw { width: 160px; height: 160px; margin-inline: auto; color: var(--brown); }
.way h3 { margin-top: 32px; font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.35; }
.way h3::before { counter-increment: way; content: "0" counter(way); display: block; margin-bottom: 10px; font-family: var(--sans); font-size: 14px; font-weight: 800; letter-spacing: 0.12em; color: var(--brown); }
.way p { margin-top: 16px; max-width: 340px; margin-inline: auto; font-size: 17px; line-height: 1.75; color: var(--ink-2); }

/* ───────── 10. 홀케이크 예약 ───────── */
.cake { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream-2); }
.cake-side { display: flex; flex-direction: column; background: var(--brown); color: var(--cream-2); }
.cake-ph { aspect-ratio: 1 / 1; } /* 케이크 사진은 가로형 원본이라 정사각으로 잘라 쓴다 */
.cake-ph img { position: absolute; inset: 0; }
.cake-note { flex: 1; padding: 72px var(--gut) 80px; background: var(--brown); color: var(--cream-2); }
.cake-note h3 { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.35; }
.cake-note dl { margin-top: 32px; display: grid; gap: 0; max-width: 560px; }
.cake-note dl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid rgb(255 248 230 / 0.28); font-size: 17px; line-height: 1.65; }
.cake-note dl div:last-child { border-bottom: 1px solid rgb(255 248 230 / 0.28); }
.cake-note dt { font-weight: 800; color: var(--mint); }
.cake-body { padding: 130px var(--gut) 130px 88px; max-width: 760px; }
.cake .sh { margin-bottom: 56px; }
#cake-form { display: grid; gap: 36px; }
.field { display: grid; gap: 10px; align-content: start; }
.field > label, .field > legend { font-size: 16px; font-weight: 800; padding: 0; }
.field > legend { margin-bottom: 12px; }
.opt { font-weight: 500; color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.choices { display: grid; gap: 12px; }
.choices.c3 { grid-template-columns: repeat(3, 1fr); }
.choices.c2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice > span {
  display: flex; flex-direction: column; gap: 2px; min-height: 64px; height: 100%; padding: 14px 18px;
  border: 2px solid var(--ink); border-radius: 18px; background: var(--cream-2);
  transition: background-color 0.2s, color 0.2s;
}
.c2 .choice > span { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.choice b { font-size: 17px; font-weight: 800; line-height: 1.35; }
.choice small { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.choice em { font-style: normal; font-size: 15px; font-weight: 700; white-space: nowrap; }
.c3 .choice em { margin-top: 6px; }
.choice:hover > span { background: var(--cream); }
.choice input:checked + span { background: var(--ink); color: var(--cream-2); }
.choice input:checked + span small { color: rgb(255 248 230 / 0.82); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
fieldset[aria-invalid="true"] .choice > span { border-color: var(--error); border-style: dashed; }

input[type="text"], input[type="tel"], input[type="date"], input[type="number"], select {
  width: 100%; min-height: 56px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--cream-2);
  font-size: 17px; font-weight: 500;
}
select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
input::placeholder { color: #6e6555; }
input:focus-visible, select:focus-visible { outline-offset: 2px; }
[aria-invalid="true"]:not(fieldset) { border-color: var(--error); border-width: 3px; }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; border: 2px solid var(--ink); border-radius: 14px; background: var(--cream-2); overflow: hidden; }
.stepper button { display: flex; align-items: center; justify-content: center; min-height: 52px; }
.stepper button svg { width: 22px; height: 22px; }
.stepper button:hover { background: var(--cream); }
.stepper button:focus-visible { outline-offset: -4px; }
.stepper input { border: 0; border-inline: 2px solid var(--ink); border-radius: 0; min-height: 52px; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hint { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.hint b { font-weight: 800; color: var(--ink); white-space: nowrap; }
.error { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--error); }
.error::before { content: "! "; }

.summary { padding: 28px 30px; border-radius: 24px; background: var(--cream); }
.summary-h { font-family: var(--serif); font-size: 21px; font-weight: 700; }
.summary dl { margin-top: 14px; display: grid; gap: 8px; }
.summary dl div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font-size: 15.5px; line-height: 1.55; }
.summary dt { color: var(--ink-2); font-weight: 700; }
.summary dd { font-weight: 700; }
.summary dd.empty { color: var(--ink-2); font-weight: 500; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--ink); }
.total span { font-weight: 800; }
.total b { font-family: var(--serif); font-size: 32px; font-weight: 900; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.total b.empty { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--ink-2); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.pill-submit { width: 280px; height: 84px; font-size: 17px; }
.done { padding: 40px; border-radius: 28px; background: var(--cream); }
.done:focus-visible { outline-offset: 4px; }
.done h3 { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.done > p { margin-top: 14px; color: var(--ink-2); }
.done dl { margin-top: 24px; display: grid; grid-template-columns: 96px 1fr; gap: 10px 16px; padding-top: 20px; border-top: 2px solid var(--ink); font-size: 16px; }
.done dt { color: var(--ink-2); font-weight: 700; }
.done dd { font-weight: 700; }
.pill-sm { width: auto; height: 64px; padding-inline: 36px; margin-top: 32px; }

/* ───────── 11. 손님 한마디 ───────── */
.voices { padding-block: 140px 120px; text-align: center; }
.voices-h { font-family: var(--sans); font-size: 16px; font-weight: 800; letter-spacing: 0.08em; color: var(--mint); }
.quotes { display: grid; margin-top: 44px; }
.quote { grid-area: 1 / 1; display: none; }
html[data-quote="1"] .quote[data-q="1"],
html[data-quote="2"] .quote[data-q="2"],
html[data-quote="3"] .quote[data-q="3"] { display: block; }
.quote blockquote p {
  max-width: 980px; margin-inline: auto;
  font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1.5; letter-spacing: -1px;
  text-wrap: balance;
}
.quote blockquote p::before { content: "“"; display: block; font-size: 96px; line-height: 0.9; height: 56px; color: var(--mint); }
.quote figcaption { margin-top: 32px; font-size: 17px; font-weight: 700; color: rgb(255 248 230 / 0.86); }
.q-ctrl { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 56px; }
.q-arrow {
  display: flex; align-items: center; justify-content: center; width: 60px; height: 60px;
  border: 2px solid var(--cream-2); border-radius: 50%; color: var(--cream-2); transition: background-color 0.2s, color 0.2s;
}
.q-arrow svg { width: 24px; height: 24px; }
.q-arrow:hover { background: var(--cream-2); color: var(--brown); }
.sec-brown :focus-visible { outline-color: var(--cream-2); }
.q-dots { display: flex; }
.q-dots button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.q-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--cream-2); transition: background-color 0.2s; }
.q-dots button[aria-current="true"] i { background: var(--mint); border-color: var(--mint); }
.voices-note { margin-top: 40px; font-size: 13.5px; color: rgb(255 248 230 / 0.8); }

/* ───────── 12. 매장 안내 ───────── */
.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; }
.visit-h { font-family: var(--serif); font-weight: 700; font-size: 48px; line-height: 1.25; letter-spacing: -1px; }
.hours { width: 100%; margin-top: 48px; border-collapse: collapse; font-size: 18px; }
.hours caption { text-align: left; font-size: 16px; font-weight: 800; padding-bottom: 14px; }
.hours th, .hours td { padding: 15px 18px; text-align: left; border-top: 1px solid rgb(17 17 17 / 0.16); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid rgb(17 17 17 / 0.16); }
.hours th { font-weight: 700; width: 46%; }
.hours td { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.hours .off td { color: var(--ink-2); }
.hours tr[aria-current="date"] { background: var(--yellow); }
.hours tr[aria-current="date"] th, .hours tr[aria-current="date"] td { font-weight: 800; border-color: transparent; }
.hours tr[aria-current="date"] th::after {
  content: "오늘"; display: inline-block; margin-left: 10px; padding: 1px 10px; border-radius: 999px;
  background: var(--brown); color: var(--cream-2); font-size: 12.5px; font-weight: 700; vertical-align: 2px;
}
.hours tr[aria-current="date"] th { border-radius: 14px 0 0 14px; }
.hours tr[aria-current="date"] td { border-radius: 0 14px 14px 0; }
.visit-dl { margin-top: 44px; display: grid; gap: 20px; }
.visit-dl div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; font-size: 17px; line-height: 1.65; }
.visit-dl dt { font-weight: 800; }
.visit-dl a { display: inline-flex; min-height: 44px; align-items: center; margin-block: -10px; text-decoration: underline; text-underline-offset: 4px; }
.map { position: sticky; top: calc(var(--hd-s) + 32px); }
.map svg { width: 100%; height: auto; }
.map figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); text-align: right; }
.m-bg { fill: var(--cream-2); stroke: var(--ink); stroke-width: 2; }
.m-block rect { fill: var(--yellow); stroke: var(--brown); stroke-width: 1.5; stroke-opacity: 0.35; }
.m-park { fill: var(--mint-2); stroke: #5e9d7b; stroke-width: 1.5; }
.m-tree circle { fill: var(--mint); stroke: #4f8a6a; stroke-width: 1.5; }
.m-label { font-family: var(--sans); font-size: 17px; font-weight: 700; fill: var(--brown); }
.m-strong { font-weight: 800; fill: var(--ink); }
.m-park-t { fill: #2f5f45; }
.m-route { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 12; }
.m-exit rect { fill: var(--ink); }
.m-exit text { font-family: var(--sans); font-size: 24px; font-weight: 800; fill: var(--cream-2); }
.m-walk rect { fill: var(--ink); }
.m-walk text { font-family: var(--sans); font-size: 18px; font-weight: 800; fill: var(--cream-2); }
.m-pin path { fill: var(--brown); stroke: var(--ink); stroke-width: 2; }
.m-pin-dot { fill: var(--yellow); }
.m-pin-t { font-family: var(--hand); font-size: 46px; font-weight: 400; fill: var(--ink); stroke: var(--ink); stroke-width: 1.2; }
.m-north path { fill: var(--ink); }
.m-north text { font-family: var(--sans); font-size: 15px; font-weight: 800; fill: var(--ink); }

/* ───────── 13. 자주 묻는 질문 ───────── */
.faq-wrap { max-width: 1040px; }
.qa-list { border-bottom: 2px solid var(--ink); }
.qa { border-top: 2px solid var(--ink); }
.qa summary {
  position: relative; display: flex; align-items: center; min-height: 88px; padding: 22px 64px 22px 4px;
  font-size: 21px; font-weight: 800; line-height: 1.45; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 22px; height: 2.5px; margin-top: -1px;
  background: currentColor; border-radius: 2px; transition: transform 0.25s ease;
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa summary:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.qa summary:focus-visible { outline-offset: -3px; }
.qa p { padding: 0 64px 32px 4px; font-size: 17px; line-height: 1.8; color: var(--ink-2); }

/* ───────── 14. 마지막 알약 버튼 ───────── */
.last { padding-block: 170px 158px; }

/* ───────── 노란 푸터 ───────── */
.ft { background: var(--yellow); color: var(--brown); }
.ft-in { max-width: 1440px; margin-inline: auto; padding: 66px var(--gut) 28px; }
.ft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ft-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 82px; }
.ft-links ul { display: grid; gap: 14px; }
.ft-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.ft-links a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.ft :focus-visible { outline-color: var(--brown); }
.ft-side { display: grid; justify-items: center; gap: 30px; padding-top: 26px; margin-right: 46px; }
.ft-bread { width: 150px; height: 104px; color: var(--brown); }
.sns { display: flex; gap: 10px; }
.sns a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; color: var(--brown); }
.sns svg { width: 30px; height: 30px; }
.ft-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; margin-top: 70px; }
.copy { font-size: 16px; font-weight: 500; padding-bottom: 26px; }
.ft-logo {
  font-family: var(--hand); font-size: 236px; line-height: 0.74; letter-spacing: 0.02em;
  -webkit-text-stroke: 4px currentColor; padding-top: 16px;
}
.terms { justify-self: end; display: flex; align-items: center; gap: 8px; font-size: 16px; padding-bottom: 16px; }
.terms a { display: inline-flex; align-items: center; min-height: 44px; }
.terms a:hover { text-decoration: underline; text-underline-offset: 4px; }
.disclaimer { margin-top: 26px; padding-top: 22px; border-top: 1.5px solid rgb(78 57 0 / 0.25); text-align: center; font-size: 14px; line-height: 1.6; }

/* ───────── 1300 근처 ───────── */
@media (max-width: 1360px) {
  :root { --gut: 48px; }
  .intro-text { font-size: 38px; }
  .cake-body { padding-left: 64px; }
  .visit-grid { gap: 72px; }
}

/* ───────── 태블릿 ───────── */
@media (max-width: 1100px) {
  :root { --gut: 40px; }
  .sec { padding-block: 120px; }
  .bread-list { grid-template-columns: repeat(2, 1fr); }
  .items { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .ways { gap: 32px; }
  .way { padding-inline: 0; }
  .cake { grid-template-columns: 1fr; }
  .cake-side { display: contents; }
  .cake-ph { order: 0; aspect-ratio: 4 / 3; }
  .cake-body { order: 1; width: 100%; max-width: 760px; margin-inline: auto; padding: 100px var(--gut); }
  .cake-note { order: 2; padding: 64px var(--gut) 72px; }
  .cake-note h3, .cake-note dl { max-width: 680px; margin-inline: auto; }
  .cake-note dl { margin-top: 28px; }
  .visit-grid { grid-template-columns: 1fr; gap: 64px; }
  .map { position: static; }
  .price-list { column-gap: 56px; }
  .ft-links { column-gap: 48px; }
  .ft-logo { font-size: 160px; }
}

@media (max-width: 900px) {
  :root { --hd: 84px; --hd-s: 64px; --gut: 24px; }
  .hd-in { display: flex; justify-content: space-between; padding-inline: var(--gut); }
  .gnb { display: none; }
  .logo { justify-content: flex-start; min-width: 0; font-size: 46px; -webkit-text-stroke: 1.2px currentColor; }
  html[data-scrolled] .logo { font-size: 40px; }
  .nav-btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; border-radius: 50%; }
  .nav-btn svg { width: 28px; height: 28px; }
  .nav-btn .i-close { display: none; }
  html[data-nav="open"] .nav-btn .i-open { display: none; }
  html[data-nav="open"] .nav-btn .i-close { display: block; }
  .nav-panel {
    display: block; position: fixed; inset: var(--hd) 0 0; z-index: -1; overflow-y: auto;
    padding: 24px var(--gut) 40px; background: var(--cream);
    visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0s 0.2s;
  }
  html[data-scrolled] .nav-panel { top: var(--hd-s); }
  html[data-nav="open"] .nav-panel { visibility: visible; opacity: 1; transition: opacity 0.2s; }
  html[data-nav="open"] body { overflow: hidden; }
  .nav-panel nav { display: grid; border-top: 2px solid var(--ink); }
  .nav-panel a { display: flex; align-items: center; min-height: 68px; border-bottom: 2px solid var(--ink); font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
  .nav-panel-info { margin-top: 28px; font-size: 16px; color: var(--ink-2); }
}

/* ───────── 모바일 ───────── */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .br-pc { display: none; }
  .sec { padding-block: 88px; }
  .sh { margin-bottom: 40px; }
  .sh h2, .visit-h { font-size: 32px; }
  .sh p { font-size: 16px; margin-top: 14px; }
  .pill { width: 100%; height: 58px; font-size: 16px; }

  .hero { height: 460px; }
  .hero-title { left: 24px; right: 24px; bottom: 28px; font-size: 25px; line-height: 1.3; letter-spacing: -0.5px; max-width: none; }
  .open-badge { right: auto; left: 24px; bottom: auto; top: 20px; font-size: 13.5px; padding: 8px 16px 8px 13px; min-height: 40px; }
  .hero [data-missing]::after { top: 72px; bottom: auto; left: 24px; right: auto; font-size: 11px; }
  .tile-title { font-size: 19px; }
  .tile [data-missing]::after { right: 8px; bottom: 6px; font-size: 10px; }

  .intro { padding-block: 96px 88px; }
  .intro-text { font-size: 24px; line-height: 1.65; letter-spacing: -0.5px; text-wrap: balance; }
  .intro .pill-row { margin-top: 56px; }

  .batches { gap: 8px; }
  .batch-opt > span { min-height: 80px; padding: 12px 6px; border-radius: 26px; }
  .batch-opt b { font-size: 16px; }
  .batch-opt small { font-size: 12px; }
  .now-tag { top: -11px; font-size: 11px; padding: 2px 9px; }
  .next-line { font-size: 16px; margin-top: 28px; }
  .batch { margin-top: 32px; }
  .bread-list { grid-template-columns: 1fr; gap: 12px; }
  .bread-list li { min-height: 0; padding: 22px 24px; border-radius: 22px; }
  .bread-list b { font-size: 20px; }

  .items { gap: 36px 14px; }
  .item h3 { font-size: 18px; margin-top: 16px; }
  .item p { font-size: 14px; line-height: 1.6; }
  .item .price { font-size: 16px; margin-top: 10px; }
  .signature .pill-row { margin-top: 64px; }

  .band { height: 360px; }
  .band-title { font-size: 26px; line-height: 1.45; letter-spacing: -0.5px; }

  .tabs { gap: 8px; flex-wrap: nowrap; }
  .tab { flex: 1 1 auto; min-width: 0; padding: 0 10px; font-size: 14.5px; min-height: 52px; white-space: nowrap; letter-spacing: -0.02em; }
  .legend ul { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .board-panel { margin-top: 36px; }
  .price-list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .price-list li { min-height: 60px; padding-block: 15px; gap: 10px; }
  .nm, .pr { font-size: 16.5px; }
  .al { width: 22px; height: 22px; font-size: 11px; }
  .dots { min-width: 16px; }
  .legend { padding: 22px; border-radius: 22px; margin-top: 40px; }

  .ways { grid-template-columns: 1fr; gap: 64px; }
  .draw { width: 128px; height: 128px; }
  .way h3 { margin-top: 22px; font-size: 24px; }
  .way p { font-size: 16px; }

  .cake-ph { aspect-ratio: 4 / 3; width: 100%; }
  .cake-body { padding: 80px var(--gut); }
  .cake-note { padding: 56px var(--gut) 64px; }
  .cake-note h3 { font-size: 23px; }
  .cake-note dl div { grid-template-columns: 80px 1fr; gap: 12px; font-size: 15.5px; padding-block: 15px; }
  .cake .sh { margin-bottom: 40px; }
  #cake-form { gap: 30px; }
  .row2 { grid-template-columns: 1fr; gap: 30px; }
  .choices.c3 { grid-template-columns: 1fr; }
  .c3 .choice > span { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .c3 .choice em { margin: 0 0 0 auto; }
  .choices.c2 { grid-template-columns: 1fr; }
  .summary { padding: 22px; }
  .summary dl div { grid-template-columns: 64px 1fr; }
  .total b { font-size: 28px; }
  .pill-submit { width: 100%; height: 64px; }
  .form-foot .hint { width: 100%; text-align: center; }
  .done { padding: 28px 22px; }
  .done dl { grid-template-columns: 72px 1fr; }

  .voices { padding-block: 96px 84px; }
  .quote blockquote p { font-size: 25px; line-height: 1.6; letter-spacing: -0.5px; }
  .quote blockquote p::before { font-size: 72px; height: 42px; }
  .quote figcaption { font-size: 15px; margin-top: 24px; }
  .q-ctrl { gap: 10px; margin-top: 40px; }
  .q-arrow { width: 52px; height: 52px; }

  .m-label { font-size: 26px; }
  .m-alley { display: none; }
  .m-walk rect { width: 140px; height: 54px; x: -70px; y: -27px; rx: 27px; }
  .m-walk text { font-size: 25px; transform: translateY(2px); }
  .m-pin-t { font-size: 60px; }
  .hours { font-size: 16px; margin-top: 32px; }
  .hours th, .hours td { padding: 13px 12px; }
  .visit-dl div { grid-template-columns: 76px 1fr; gap: 12px; font-size: 16px; }

  .qa summary { min-height: 76px; font-size: 17.5px; padding: 18px 48px 18px 2px; }
  .qa summary::before, .qa summary::after { right: 6px; width: 18px; }
  .qa p { padding: 0 8px 26px 2px; font-size: 16px; }

  .last { padding-block: 72px 64px; }

  .ft-in { padding: 48px var(--gut) 28px; text-align: center; }
  .ft-top { flex-direction: column-reverse; align-items: center; gap: 36px; }
  .ft-side { display: flex; align-items: center; justify-content: center; gap: 64px; padding-top: 0; margin-right: 0; }
  .ft-bread { width: 96px; height: 67px; }
  .ft-links { grid-template-columns: 1fr 1fr; column-gap: 20px; width: 100%; justify-items: center; }
  .ft-links ul { display: contents; }
  .ft-links li { display: flex; justify-content: center; }
  .ft-links a { font-size: 19px; min-height: 48px; }
  .ft-bottom { grid-template-columns: 1fr; justify-items: center; gap: 4px; margin-top: 40px; }
  .ft-logo { order: 1; font-size: 150px; -webkit-text-stroke: 3px currentColor; padding-top: 0; }
  .terms { order: 2; justify-self: center; padding: 18px 0 0; font-size: 15px; }
  .copy { order: 3; padding-bottom: 0; font-size: 15px; }
  .disclaimer { font-size: 13px; text-align: center; }
}
