/* 레이아웃 아이디어: 페이지마다 다른 색 세계를 쓰되 머리글, 글자 체계, 전환 커튼으로 한 브랜드로 묶는다. */
:root {
  --char: #0e0c0a;
  --soot: #181411;
  --ash: #2a2420;
  --smoke: #a79d92;
  --bone: #f5f1ea;
  --plaster: #eeeae3;
  --ember: #ee5a24;
  --ember-hi: #ff8a3c;
  --copper: #b87a4b;
  --kraft: #e3cfb0;
  --wine: #2a0e0b;

  --display: 'Hahmlet', 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
  --body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --radius: clamp(16px, 2vw, 28px);

  --bg: var(--char);
  --fg: var(--bone);
  --muted: var(--smoke);
  --line: rgba(245, 241, 234, .16);
  --accent: var(--ember);
  color-scheme: dark;
}

body[data-page='stores'],
body[data-page='reserve'],
body[data-page='notice'] {
  --fg: #181410;
  --muted: #6d655b;
  --line: rgba(24, 20, 16, .14);
  --accent: #d6461a;
  color-scheme: light;
}
body[data-page='stores'] { --bg: var(--plaster); }
body[data-page='reserve'] { --bg: #f7f6f3; }
body[data-page='notice'] { --bg: #fbfaf8; }
body[data-page='takeout'] {
  --bg: var(--kraft);
  --fg: #1f1710;
  --muted: #6b5a45;
  --line: rgba(31, 23, 16, .18);
  --accent: #c63f13;
  color-scheme: light;
}
body[data-page='menu'] { --bg: var(--wine); transition: none; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s linear;
}

main { display: block; outline: none; overflow-x: clip; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
#view:focus, #view:focus-visible { outline: none; }

/* 글자 체계 */
.d { font-family: var(--display); letter-spacing: -.035em; line-height: 1.08; }
.t-xxl { font-size: clamp(54px, 10.4vw, 188px); }
.t-xl { font-size: clamp(42px, 7vw, 124px); }
.t-l { font-size: clamp(32px, 4.4vw, 72px); }
.t-m { font-size: clamp(23px, 2.3vw, 36px); line-height: 1.3; letter-spacing: -.025em; }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.7; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: block; }
.wrap { padding-inline: var(--gutter); }
.bgv, .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 버튼 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), opacity .3s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn::after { content: '→'; transition: transform .45s var(--ease); }
.btn--plain::after { content: none; }
.btn:hover::before { transform: none; }
.btn:hover::after { transform: translateX(5px); }
.btn:hover { color: var(--bg); }
.btn--fill { background: var(--ember); color: #160b05; }
.btn--fill::before { background: var(--bone); }
.btn--fill:hover { color: #160b05; }
.btn--line { border: 1px solid currentColor; }
.btn--ink { background: var(--fg); color: var(--bg); }
.btn--ink::before { background: var(--accent); }
.btn--ink:hover { color: #fff; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex;
  gap: 8px;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .5s var(--ease);
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* 매장 선택 */
.seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.seg button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--muted);
  transition: background .3s, color .3s;
}
.seg button[aria-pressed='true'] { background: var(--fg); color: var(--bg); }

/* 머리글 */
.hd {
  --hd-fg: var(--bone);
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 76px;
  padding-inline: var(--gutter);
  color: var(--hd-fg);
  transition: transform .5s var(--ease), color .3s, background .3s, backdrop-filter .3s;
}
.hd[data-tone='light'] { --hd-fg: #181410; }
.hd.is-solid { backdrop-filter: blur(14px) saturate(1.3); }
.hd.is-solid[data-tone='dark'] { background: rgba(14, 12, 10, .55); }
.hd.is-solid[data-tone='light'] { background: rgba(247, 246, 243, .7); }
.hd.is-hidden { transform: translateY(-100%); }
.hd__logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.04em; justify-self: start; }
.hd__logo .flame { width: 18px; height: 22px; color: var(--ember); }
.hd__logo small { font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: 0; opacity: .66; padding: 2px 8px; border: 1px solid currentColor; border-radius: 99px; margin-left: 4px; }
.hd__nav { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.hd__nav a { position: relative; font-size: 15px; font-weight: 500; padding: 6px 0; }
.hd__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hd__nav a:hover::after, .hd__nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.hd__cta { display: flex; gap: 8px; justify-self: end; }
.pill { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.pill--line { border: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.pill--line:hover, .pill--line.is-current { border-color: currentColor; }
.pill--fill { background: var(--ember); color: #160b05; }
.pill--fill:hover { background: var(--ember-hi); }
.hd__burger { display: none; position: relative; width: 44px; height: 44px; justify-self: end; }
.hd__burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.hd__burger i:first-child { top: 17px; }
.hd__burger i:last-child { top: 26px; }
.hd__burger[aria-expanded='true'] i:first-child { top: 21px; transform: rotate(45deg); }
.hd__burger[aria-expanded='true'] i:last-child { top: 21px; transform: rotate(-45deg); }

/* 모바일 메뉴 */
.mm { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 90px var(--gutter) 40px; background: var(--char); color: var(--bone); }
.mm[hidden] { display: none; }
.mm nav { display: grid; gap: 6px; }
.mm a { display: block; font-family: var(--display); font-size: clamp(32px, 9vw, 54px); letter-spacing: -.03em; line-height: 1.3; }
.mm__note { color: var(--smoke); font-size: 13px; }
body.is-menu .hd { color: var(--bone); background: none; backdrop-filter: none; transform: none; }

/* 바닥글 */
.ft { background: var(--char); color: var(--bone); padding: clamp(48px, 5vw, 80px) var(--gutter) clamp(28px, 3vw, 40px); }
.ft__brand { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: clamp(24px, 3vw, 36px); margin-bottom: clamp(28px, 3vw, 40px); border-bottom: 1px solid rgba(245, 241, 234, .16); }
.ft .ft__logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: clamp(34px, 3.4vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; color: var(--bone); }
.ft__logo .flame { width: .72em; height: .86em; color: var(--ember); }
.ft__top { display: grid; grid-template-columns: minmax(110px, .5fr) minmax(130px, .6fr) minmax(320px, 1.5fr) minmax(240px, 1fr); gap: 36px clamp(24px, 3.4vw, 56px); }
.ft h2 { font-size: 13px; font-weight: 500; color: var(--smoke); margin-bottom: 14px; }
.ft ul { display: grid; gap: 8px; }
.ft a:hover { color: var(--ember-hi); }
.ft p { font-size: 14px; line-height: 1.75; color: #cfc7bb; }
.ft__origin { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; color: #cfc7bb; }
.ft__origin th, .ft__origin td { padding: 7px 14px 7px 0; text-align: left; font-weight: 400; vertical-align: top; border-bottom: 1px solid rgba(245, 241, 234, .1); }
.ft__origin tr:first-child th, .ft__origin tr:first-child td { padding-top: 0; }
.ft__origin th { color: var(--bone); font-weight: 500; white-space: nowrap; }
.ft__origin td:nth-child(2) { white-space: nowrap; }
.ft__origin td:last-child { padding-right: 0; color: var(--smoke); }
.ft__biz { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid rgba(245, 241, 234, .16); }
.ft__biz p { color: var(--smoke); font-size: 13px; }
body[data-page='admin'] .ft, body[data-page='admin'] .hd, body[data-page='admin'] .dock { display: none; }

/* 하단 고정 버튼 (휴대폰) */
.dock { display: none; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(14, 12, 10, .82); backdrop-filter: blur(14px); color: var(--bone); }
.dock a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 13px; font-weight: 600; font-size: 15px; }
.dock .is-main { background: var(--ember); color: #160b05; }
body[data-page='reserve'] .dock, body[data-page='takeout'] .dock { display: none !important; }

/* 페이지 전환 커튼 */
.curtain { position: fixed; inset: 0; z-index: 90; display: none; pointer-events: none; }
.curtain.is-on { display: block; pointer-events: auto; }
.curtain__lead, .curtain__panel { position: absolute; inset: 0; }
.curtain__lead { background: var(--ember); }
.curtain__panel { display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--char); color: var(--bone); }
.curtain__panel .flame { width: 34px; height: 40px; color: var(--ember); }
.curtain__panel p { font-family: var(--display); font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 96px; max-width: min(90vw, 480px); padding: 12px 20px; border-radius: 99px; background: #181410; color: #f5f1ea; font-size: 14px; font-weight: 500; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0; transform: translate(-50%, 16px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fail { display: grid; gap: 14px; align-content: center; min-height: 80svh; padding: var(--gutter); }
.noscript { position: fixed; inset: auto 0 0; padding: 16px; background: #181410; color: #f5f1ea; text-align: center; }

/* 입력 공통 */
.field { display: grid; gap: 8px; }
.field > label, .field > legend, .label { font-size: 14px; font-weight: 600; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .55); transition: border-color .25s, background .25s; }
textarea.input { padding: 14px 16px; min-height: 92px; resize: vertical; }
.input:focus { outline: none; border-color: var(--fg); background: #fff; }
.input.is-error { border-color: #c5281c; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.err { color: #b3261e; font-size: 14px; font-weight: 500; min-height: 1.4em; }

/* 알림톡 말풍선 */
.talk { width: 100%; max-width: 340px; padding: 16px; border-radius: 18px; background: #fff; color: #181410; box-shadow: 0 14px 40px rgba(0, 0, 0, .14); font-size: 14px; line-height: 1.5; }
.talk__head { display: flex; align-items: center; gap: 6px; padding: 6px 10px; margin: -6px -6px 12px; border-radius: 10px; background: #fee500; color: #3b1e1e; font-size: 12px; font-weight: 700; }
.talk h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.talk ul { display: grid; gap: 4px; }
.talk li { display: flex; justify-content: space-between; gap: 12px; }
.talk li span { color: #6d655b; }
.talk__note { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ece8e1; color: #6d655b; font-size: 13px; }

@media (max-width: 899px) {
  .hd { grid-template-columns: 1fr auto; height: 64px; }
  .hd__nav, .hd__cta { display: none; }
  .hd__burger { display: block; }
  .dock { display: grid; }
  .ft { padding-bottom: 92px; }
  .ft__top { grid-template-columns: repeat(2, 1fr); }
  .ft__col--origin, .ft__col--sample { grid-column: 1 / -1; }
  .btn { min-height: 52px; padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  /* 스크롤 연출 없이도 내용을 모두 볼 수 있게 한다 */
  .h-sear__caps { height: auto; }
  .cap { position: relative; top: auto; transform: none; }
  .cap:not(:last-child) { display: none; }
  .h-plates__stick, .st-gallery__stick { height: auto; overflow-x: auto; padding-block: 60px; }
  .h-stores__stick { height: auto; display: grid; }
  .h-store { position: relative; inset: auto; height: 80svh; clip-path: none !important; }
}
