/* 촌놈 관악직영점 menu. Slate matches the store's own photo backdrop, brass is the 놋그릇 the dishes are served in. */
@font-face { font-family: "SungSans"; src: url("../fonts/SungSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SungSans"; src: url("../fonts/SungSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --slate: #28282d;     /* page, same as the photo backdrop */
  --slate-2: #313137;   /* option panels */
  --line: #46464e;
  --paper: #f1ece3;     /* text */
  --mute: #a9a39a;
  --brass: #c9a266;     /* prices, active tab */
  --chili: #d9452f;     /* 대표, 인기 */
  --pad: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 56px; }
body {
  margin: 0;
  background: var(--slate);
  color: var(--paper);
  font-family: "SungSans", system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body > * { max-width: 560px; margin-left: auto; margin-right: auto; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ------------------------------------------------------------ masthead */
.masthead { padding-bottom: 28px; }
.hero { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sign { padding: 26px var(--pad) 0; }
.kind { font-size: 17px; font-weight: 700; color: var(--brass); letter-spacing: 0.02em; }
.name {
  font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  margin: 4px 0 8px -4px;
}
.branch { font-size: 19px; color: var(--paper); }
.facts { margin: 22px var(--pad) 0; border-top: 1px solid var(--line); }
.facts div { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { flex: 0 0 64px; color: var(--mute); }

/* ------------------------------------------------------------ tabs */
.tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--pad);
  background: var(--slate);
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 15px 0 13px; text-decoration: none;
  font-size: 16px; font-weight: 700; color: var(--mute);
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.tab.on { color: var(--paper); border-bottom-color: var(--brass); }

/* ------------------------------------------------------------ sections */
.cat { padding: 40px 0 8px; }
.cat-head { display: flex; align-items: baseline; gap: 12px; padding: 0 var(--pad) 18px; }
.cat-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.cat-note { font-size: 15px; color: var(--brass); }

/* photo dishes */
.dish { padding-bottom: 34px; }
.dish + .dish { border-top: 1px solid var(--line); padding-top: 26px; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-body { padding: 16px var(--pad) 0; }
.no-photo .dish-body { padding-top: 0; }
.flags { display: flex; gap: 6px; margin-bottom: 8px; }
.flag { font-size: 13px; font-weight: 700; line-height: 1; padding: 5px 7px 4px; border-radius: 3px; }
.flag-rep { background: var(--chili); color: #fff; }
.flag-sold { background: var(--line); color: var(--paper); }
.dish-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dish-head h3 { font-size: 23px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.kicker { display: block; font-size: 14px; font-weight: 400; color: var(--brass); margin-bottom: 2px; letter-spacing: 0; }
.price { flex: 0 0 auto; font-size: 21px; font-weight: 700; color: var(--brass); white-space: nowrap; padding-top: 1px; }
.dish-head h3:has(.kicker) + .price { padding-top: 21px; }
.from { font-size: 14px; font-weight: 400; color: var(--mute); margin-left: 3px; }
.desc { margin-top: 8px; font-size: 15px; color: var(--paper); opacity: 0.9; }
.ingr { margin-top: 6px; font-size: 14px; color: var(--mute); }

/* options */
.opt { margin-top: 16px; }
.opt h4 { font-size: 14px; font-weight: 700; color: var(--mute); margin-bottom: 4px; }
.o-hint { font-weight: 400; margin-left: 8px; }
.opt ul { border-top: 1px solid var(--line); }
.opt li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.o-name { min-width: 0; }
.o-price { flex: 0 0 auto; white-space: nowrap; color: var(--paper); font-variant-numeric: tabular-nums; }
.opt-size .o-price { color: var(--brass); font-weight: 700; }
.o-mark {
  display: inline-block; min-width: 22px; margin-right: 8px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--slate); background: var(--brass); border-radius: 3px; padding: 2px 4px 1px;
}
.o-tag { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--chili); }
.o-tag-new { color: var(--brass); }
.opt-inline { display: flex; align-items: baseline; gap: 12px; }
.opt-inline h4 { margin: 0; flex: 0 0 auto; }
.o-line { font-size: 15px; }
.o-note { font-size: 14px; color: var(--mute); padding: 12px 0 2px; }

.addons { margin-top: 18px; background: var(--slate-2); border: 1px solid var(--line); border-radius: 6px; }
.addons summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 14px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700;
}
.addons summary::-webkit-details-marker { display: none; }
.addons summary::after {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-left: 4px;
  border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
  transform: rotate(45deg) translateY(-3px); transition: transform 150ms ease;
}
.addons[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.s-label { flex: 1 1 auto; }
.s-count { font-weight: 400; color: var(--mute); font-size: 14px; }
.addons-body { padding: 0 14px 14px; }
.addons-body .opt:first-child { margin-top: 4px; }

/* list sections (곁들임, 음료) */
.rows { border-top: 1px solid var(--line); margin: 0 var(--pad); padding: 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.thumb { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--slate-2); }
.thumb-gap { flex: 0 0 64px; height: 1px; }
.row-plain { padding: 14px 0; }
.row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.row-name { font-size: 17px; font-weight: 700; }
.row-desc { font-size: 14px; color: var(--mute); }
.row-price { flex: 0 0 auto; font-size: 17px; font-weight: 700; color: var(--brass); white-space: nowrap; }
.sold-out .row-price, .sold-out .price { text-decoration: line-through; color: var(--mute); }
.sold-out .photo, .sold-out .thumb { filter: grayscale(1); opacity: 0.6; }

/* ------------------------------------------------------------ footer */
.foot { padding: 36px var(--pad) calc(40px + env(safe-area-inset-bottom)); margin-top: 28px; border-top: 1px solid var(--line); }
.origin h2 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.origin p { font-size: 13px; color: var(--mute); line-height: 1.7; }
.note { margin-top: 22px; font-size: 15px; }
.biz { margin-top: 6px; font-size: 13px; color: var(--mute); }

@media (min-width: 600px) {
  .name { font-size: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
