/* 용현수산 — 색은 로고(하늘색 바탕 · 검은 선 물고기)에서, 모양은 수산시장 전표에서 */
:root {
  --ink: #121417;
  --paper: #F6F4EF;
  --card: #FFFFFF;
  --sky: #BFE0F0;
  --sky-ink: #0E3A50;
  --sea: #1F4E66;
  --line: rgba(18, 20, 23, .14);
  --mute: #5F656B;
  --warn: #9A3B1E;
  --ok: #1D6B45;
  --r: 6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-feature-settings: 'tnum'; }
[hidden] { display: none !important; }

.demo { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 7px 16px; }

/* 칼럼은 섹션마다 건다 — 이야기 띠만 화면 끝까지 */
.top, .foot, main > section:not(.story), .story-in { max-width: 560px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.top { display: flex; align-items: center; gap: 10px; padding-top: 18px; }
.top img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.top b { display: block; font-size: 17px; letter-spacing: -.2px; line-height: 1.2; }
.top small { display: block; font-size: 12px; color: var(--mute); line-height: 1.3; }
.top .insta { margin-left: auto; font-size: 13px; color: var(--mute); text-decoration: none; padding: 8px 0 8px 8px; }

.lead { margin: 22px 0 14px; font-size: 15px; color: var(--mute); line-height: 1.55; }
.lead b { display: block; margin-bottom: 4px; font-size: 21px; line-height: 1.35; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }

/* ── 전표 ───────────────────────── */
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--mute); }
.t-head b { color: var(--ink); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; }
.pill.open { background: var(--sea); color: #fff; }
.pill.prep { background: var(--sky); color: var(--sky-ink); }
.pill.closed { background: var(--ink); color: #fff; }
.t-body { padding: 16px 16px 6px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.t-body .eyebrow { margin: 0 0 2px; }
.t-fish { margin: 0; font-size: 32px; line-height: 1.1; letter-spacing: -.6px; }
.t-sub { margin: 6px 0 0; font-size: 13px; color: var(--mute); }
.big { font: 600 64px/.9 'IBM Plex Mono', ui-monospace, monospace; color: var(--sea); letter-spacing: -2px; text-align: right; white-space: nowrap; }
.big span { font-size: 28px; }
.big small { display: block; font: 500 12px Pretendard, sans-serif; color: var(--mute); letter-spacing: 0; margin-top: 6px; }
.t-photo { margin: 12px 16px 14px; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; background: #E9E6DF; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-note { margin: 0 16px 14px; font-size: 14px; color: var(--ink); line-height: 1.55; }
.punch { position: relative; border-top: 1px dashed var(--line); }
.punch::before, .punch::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.punch::before { left: -10px; clip-path: inset(0 0 0 50%); }
.punch::after { right: -10px; clip-path: inset(0 50% 0 0); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > span:first-child { color: var(--mute); flex: none; }
.row > span:last-child { text-align: right; }
.row a { color: var(--sea); }
.seat { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 120px; }
.seat i { width: 7px; height: 12px; background: var(--sea); border-radius: 1px; }
.seat i.o { background: #D6DDE0; }
.left0 { color: var(--warn); font-weight: 600; }
.stamp { position: absolute; right: 14px; top: 62px; border: 2px solid var(--warn); color: var(--warn); font-weight: 800; font-size: 20px; padding: 2px 10px; border-radius: 4px; transform: rotate(-8deg); background: rgba(255,255,255,.85); }

.cta { display: flex; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 12px 16px; border-radius: 10px; border: 0; background: var(--ink); color: #fff; font: 700 16px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; text-align: center; }
.btn.sky { background: var(--sky); color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.cta .btn { flex: 1; font-size: 15px; padding: 12px 8px; }
.calm { margin: 10px 2px 0; font-size: 13px; color: var(--mute); line-height: 1.55; }

/* 내 예약 전표 */
.rcpt { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sea); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.rcpt h3 { margin: 0 0 4px; font-size: 17px; }
.rcpt .st { font-weight: 800; }
.rcpt .st.wait { color: var(--warn); }
.rcpt .st.ok { color: var(--ok); }
.rcpt .st.cancel { color: var(--mute); }
.rcpt dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 14px; }
.rcpt dt { color: var(--mute); }
.rcpt dd { margin: 0; }
.pay { margin-top: 12px; padding: 12px; background: #F2F7FA; border-radius: 8px; font-size: 14px; }
.pay b { font-size: 16px; }
.copy { margin-left: 6px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 8px; font: 600 12px inherit; font-family: inherit; cursor: pointer; }

/* ── 섹션 ───────────────────────── */
.sec { margin-top: 56px; }
.sec h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; letter-spacing: -.4px; }
.sec p { margin: 0 0 12px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--sea); margin: 0 0 6px; letter-spacing: .2px; }
.sub { font-size: 13px; color: var(--mute); }
.sub a { color: var(--mute); }
.wide { margin: 0 0 18px; border-radius: var(--r); overflow: hidden; }
.wide img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.wide figcaption { font-size: 12px; color: var(--mute); padding: 6px 2px 0; }

.menu { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); counter-reset: m; }
.menu li { counter-increment: m; padding: 12px 16px 12px 48px; border-bottom: 1px solid var(--line); position: relative; }
.menu li:last-child { border-bottom: 0; }
.menu li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 16px; top: 13px; font: 600 13px 'IBM Plex Mono', monospace; color: var(--sea); }

.arch { display: grid; gap: 10px; }
.a-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.a-item.nophoto { grid-template-columns: 1fr; padding: 12px 14px; }
.a-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 4px; }
.a-meta { font-size: 12px; color: var(--mute); }
.a-meta b { color: var(--ink); font-weight: 700; }
.a-item h3 { margin: 1px 0 2px; font-size: 16px; line-height: 1.35; }
.a-item p { margin: 0; font-size: 14px; line-height: 1.5; }
.a-item .fact { font-size: 13px; color: var(--sea); margin-top: 3px; }
.a-item a { font-size: 12px; color: var(--mute); }
.more { margin-top: 10px; width: 100%; min-height: 48px; background: transparent; border: 1px solid var(--line); border-radius: 10px; font: 600 15px inherit; font-family: inherit; color: var(--ink); cursor: pointer; }

.recovery blockquote { margin: 16px 0; padding: 14px 16px; background: var(--card); border-left: 3px solid var(--sky); border-radius: 0 var(--r) var(--r) 0; font-size: 15px; line-height: 1.6; }
blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--mute); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 5px 11px; font-size: 13px; }
.sec > .btn { width: 100%; }

.promise { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.promise li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 14px; line-height: 1.55; }
.promise b { display: block; font-size: 15px; }

.small h2 { font-size: 19px; }

/* ── 자주 묻는 것 ───────────────────────── */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative; font-size: 16px; font-weight: 700; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font: 400 22px/1 'IBM Plex Mono', ui-monospace, monospace; color: var(--sea); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: #33383d; }
.faq details .btn { width: 100%; margin-bottom: 18px; }

/* ── 단골 명부 띠 ───────────────────────── */
.band-in { background: var(--sky); border-radius: 12px; padding: 26px 20px 20px; }
.band-in h2 { font-size: 22px; }
.band-in p { color: var(--sky-ink); font-size: 14px; }
.band-in .btn { width: 100%; }
.band-wait, .wait { font-size: 14px; font-weight: 600; color: var(--sea); }
.band-in .band-wait { color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.wait { margin: 8px 2px 0; }

/* ── 이야기 띠: 노량진 새벽 — 검은 바탕, 장마다 날짜 ───────── */
.story { margin-top: 64px; background: var(--ink); color: #EDEBE6; padding: 60px 0 68px; }
.story a { color: inherit; }
.story .eyebrow { color: var(--sky); }
.story h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.25; letter-spacing: -.7px; color: #fff; }
.s-src { margin: 0 0 22px; font-size: 13px; line-height: 1.5; color: rgba(237,235,230,.66); }
.s-who { margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: rgba(237,235,230,.88); }
.facts { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid rgba(237,235,230,.18); }
.facts li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(237,235,230,.18); }
.facts .mono { font: 600 13px/1.7 'IBM Plex Mono', ui-monospace, monospace; color: var(--sky); }
.facts p { margin: 0; font-size: 16px; line-height: 1.65; color: rgba(237,235,230,.9); }
.facts a { font-size: 12px; color: rgba(237,235,230,.6); }
.ch-photo { margin: 0 0 22px; }
.ch-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.ch-photo figcaption { margin-top: 6px; font-size: 13px; color: rgba(237,235,230,.66); }
.story .btn { width: 100%; }
.story :focus-visible { outline-color: var(--sky); }
@media (min-width: 560px) {
  .story { padding: 80px 0 88px; }
  .story h2 { font-size: 36px; }
  .pair { grid-template-columns: 1fr 1fr; }
}

/* ── 신청 칸 ───────────────────────── */
.form { display: grid; gap: 12px; margin-top: 14px; }
.form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; font: 16px/1.4 inherit; font-family: inherit; padding: 12px; border: 1px solid rgba(18,20,23,.28); border-radius: 8px; background: #fff; color: var(--ink); }
.form textarea { resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--mute); line-height: 1.5; }
.form .agree input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--sea); }
.form .help { font-size: 12px; font-weight: 400; color: var(--mute); }
.slots { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.slots legend { font-size: 14px; font-weight: 600; margin-bottom: 5px; padding: 0; }
.slot { display: flex !important; align-items: center; gap: 10px; border: 1px solid rgba(18,20,23,.28); border-radius: 8px; padding: 12px; font-weight: 500 !important; cursor: pointer; }
.slot input { width: 20px; height: 20px; accent-color: var(--sea); margin: 0; }
.slot span:last-child { margin-left: auto; font-size: 13px; color: var(--mute); }
.slot:has(input:checked) { border-color: var(--sea); background: #F2F7FA; }
.slot:has(input:disabled) { opacity: .5; cursor: default; }
.err { color: var(--warn); font-size: 14px; margin: 0; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done { background: #F2F7FA; border-radius: 8px; padding: 14px; font-size: 15px; }

.sheet { width: min(560px, 100%); max-height: 92dvh; margin: auto auto 0; border: 0; border-radius: 16px 16px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); }
.sheet::backdrop { background: rgba(18,20,23,.45); }
.sheet h2 { margin: 0 34px 4px 0; font-size: 21px; line-height: 1.3; }
.sheet .sub { margin: 0 0 4px; }
.sheet-x { position: absolute; right: 10px; top: 10px; margin: 0; }
.sheet-x button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink); }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 16px; } }

.foot { margin-top: 64px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.foot p { margin: 0 0 6px; }
.foot b { color: var(--ink); }

@media (max-width: 360px) {
  .t-fish { font-size: 27px; }
  .big { font-size: 52px; }
  .cta { flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
  .ticket { animation: rise .5s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
