/* 결 GYEOL — all styles. Mobile first; one breakpoint at 768px (bottom of file).
   Display: Instrument Serif (self-hosted, OFL) with Noto Serif KR for Hangul (assets/fonts/noto-serif-kr.css, sliced).
   Text and UI: system sans. Public pages come in two tones (body.tone-dark / body.tone-light); the admin is scoped. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-regular.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --night: #0f0e0c;
  --night-2: #171513;
  --night-3: #1f1c19;
  --bone: #ece7de;
  --paper: #f3efe8;
  --ink: #171512;
  --ember: #c66a3d;
  --ember-ink: #9c4f28;
  --danger: #a3362a;
  --ok: #3d6146;
  --serif: "Instrument Serif", "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  --serif-ko: "Noto Serif KR", "Instrument Serif", "AppleMyungjo", "Batang", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --header-h: 84px;
  /* Light tone (default): a printed menu card. */
  --bg: var(--paper);
  --panel: #ebe6dd;
  --field: transparent;
  --fg: var(--ink);
  --fg-soft: #4a453e;
  --fg-muted: #7b746a;
  --line: rgba(23, 21, 18, 0.13);
  --line-strong: rgba(23, 21, 18, 0.32);
  --accent: var(--ember-ink);
}
.tone-dark, .site-header, .site-footer, .ticket, .nav-sheet, .hero, .page-hero, .auth-photo {
  --bg: var(--night);
  --panel: var(--night-2);
  --fg: var(--bone);
  --fg-soft: rgba(236, 231, 222, 0.74);
  --fg-muted: rgba(236, 231, 222, 0.5);
  --line: rgba(236, 231, 222, 0.13);
  --line-strong: rgba(236, 231, 222, 0.3);
  --accent: var(--ember);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 15.5px/1.85 var(--sans);
  color: var(--fg);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
small { font-size: 0.85em; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
::selection { background: rgba(198, 106, 61, 0.35); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--fg); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 56px; }
.hint { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--fg-muted); }
.meta { font-size: 13.5px; color: var(--fg-muted); }
.muted { color: var(--fg-muted); }
.optional { font-weight: 400; color: var(--fg-muted); }
.nowrap { white-space: nowrap; }
.hide-sm { display: none; }
.empty { padding: 20px 0; color: var(--fg-muted); font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */
.label.label-ko { letter-spacing: 0.08em; }
.label.season-line { margin-top: -14px; }
.label {
  margin-bottom: 22px;
  font: 500 11px/1.6 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.display-lg, .display, .display-sm, .step-title, .course-title, .course-name em, .cal-month strong, .wordmark-en {
  font-family: var(--serif);
  font-weight: 400;
}
.display-lg, .display, .display-sm, .title-ko, .statement-ko { text-wrap: balance; }
.display-lg { font-size: clamp(52px, 9vw, 148px); line-height: 0.94; letter-spacing: -0.02em; }
.display { font-size: clamp(38px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -0.012em; }
.display-sm { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.08; letter-spacing: -0.008em; }
.display-lg em, .display em, .display-sm em { font-style: italic; color: var(--fg-soft); }
.display[lang="ko"], .display-sm[lang="ko"] { font-family: var(--serif-ko); font-size: clamp(30px, 3.8vw, 56px); letter-spacing: -0.03em; line-height: 1.25; }
.title-ko { margin-top: 18px; font: 400 clamp(16px, 1.4vw, 19px)/1.6 var(--serif-ko); color: var(--fg-soft); letter-spacing: -0.01em; }
.body-text { max-width: 34em; color: var(--fg-soft); }
.body-text p + p { margin-top: 1em; }
.center .body-text { margin-inline: auto; }
.lead { margin-top: 12px; color: var(--fg-soft); }
.section-title { margin-bottom: 20px; font: 400 24px/1.3 var(--serif-ko); letter-spacing: -0.02em; }
.prose p { margin: 0 0 0.9em; }
.prose > :last-child { margin-bottom: 0; }
.prose.small { font-size: 13.5px; color: var(--fg-muted); }

.link-line {
  display: inline-block;
  margin-top: 36px;
  padding-bottom: 6px;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.link-line:hover { background-size: 30% 1px; }
.link-back { display: inline-block; margin-bottom: 26px; font-size: 13px; color: var(--fg-muted); text-decoration: none; letter-spacing: 0.04em; }
.link-back::before { content: "← "; }
.link-back:hover { color: var(--fg); }

/* ---------- Buttons: square, hairline, spaced capitals ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 32px;
  border: 1px solid var(--fg);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: 500 11.5px/1.2 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn [lang="ko"], .btn:lang(ko) .ko { letter-spacing: 0.04em; text-transform: none; }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn-solid, .btn-primary, .btn-accent { background: var(--fg); color: var(--bg); }
.btn-solid:hover, .btn-primary:hover, .btn-accent:hover { background: transparent; color: var(--fg); }
.btn-line, .btn-outline { background: transparent; }
.btn-danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; }
.btn-small { min-height: 40px; padding: 0 18px; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: 11px; letter-spacing: 0.06em; text-transform: none; }
.btn-quiet { border-color: var(--line-strong); color: var(--fg-soft); }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }

/* ---------- Demo bar ---------- */
.demo-bar { position: relative; z-index: 30; background: #0a0908; color: rgba(236, 231, 222, 0.58); font-size: 12px; line-height: 1.5; }
.demo-bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 34px; padding-block: 6px; }
.demo-bar p { flex: 1; }
.demo-tag { display: inline-block; margin-right: 12px; padding: 0 7px; border: 1px solid rgba(198, 106, 61, 0.7); color: var(--ember); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; }
.demo-bar a { color: var(--bone); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--night); color: var(--bone); }
/* Over a full-bleed first photograph: stays in the flow (body is a flex column) and the photo slides up beneath it. */
.site-header.is-overlay { margin-bottom: calc(-1 * var(--header-h)); background: linear-gradient(rgba(10, 9, 8, 0.6), rgba(10, 9, 8, 0)); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.wordmark-en { font-size: 25px; line-height: 1; letter-spacing: 0.3em; margin-right: -0.3em; }
.wordmark-kr { padding-left: 14px; border-left: 1px solid currentColor; font: 400 14px/1 var(--serif-ko); opacity: 0.75; }
.nav-links, .nav-account { display: none; }
.nav-links a, .nav-account a, .nav-account .link-button { font: 500 11px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none; }
.nav-reserve { margin-left: auto; min-height: 38px; padding: 0 16px; font-size: 10.5px; letter-spacing: 0.24em; }
.nav-reserve[aria-current] { background: var(--fg); color: var(--bg); }

.nav-menu summary { position: relative; z-index: 60; display: grid; place-items: center; width: 40px; height: 40px; list-style: none; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span, .nav-menu summary span::before { display: block; width: 24px; height: 1px; background: currentColor; transition: transform 0.35s var(--ease); }
.nav-menu summary span { position: relative; transform: translateY(-4px); }
.nav-menu summary span::before { content: ""; position: absolute; top: 8px; }
.nav-menu[open] summary { position: fixed; top: 50px; right: var(--gutter); color: var(--bone); }
.nav-menu[open] summary span { transform: rotate(45deg); }
.nav-menu[open] summary span::before { transform: translateY(-8px) rotate(-90deg); }
.nav-sheet { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: space-between; padding: 128px var(--gutter) 44px; background: var(--night); color: var(--bone); overflow-y: auto; }
.nav-sheet nav { display: grid; gap: 26px; }
.nav-sheet nav a { display: flex; align-items: baseline; gap: 16px; font: 400 48px/1 var(--serif); text-decoration: none; }
.nav-sheet nav a small { font: 400 14px var(--serif-ko); color: var(--fg-muted); }
.nav-sheet nav a[aria-current] { font-style: italic; }
.nav-account-sheet { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---------- Photographs and their placeholders ---------- */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--night-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-21x9 { aspect-ratio: 21 / 9; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-1x1 { aspect-ratio: 1; }
.r-9x16 { aspect-ratio: 9 / 16; }
.r-fill { position: absolute; inset: 0; }
.photo.is-placeholder {
  background:
    radial-gradient(110% 70% at 50% 108%, rgba(198, 106, 61, 0.2), transparent 60%),
    radial-gradient(70% 55% at 22% 18%, rgba(236, 231, 222, 0.06), transparent 65%),
    linear-gradient(180deg, #1d1a17 0%, #12100e 100%);
  box-shadow: inset 0 0 0 1px rgba(236, 231, 222, 0.06);
}
.photo-note { position: absolute; left: 22px; bottom: 20px; right: 22px; display: grid; gap: 4px; font: 500 10.5px/1.5 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: rgba(236, 231, 222, 0.5); }
.photo-note small { font-size: 12px; letter-spacing: 0.02em; text-transform: none; color: rgba(236, 231, 222, 0.36); }
.r-fill .photo-note { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; }
.page-hero-media .photo-note { left: auto; right: var(--gutter); transform: translateY(-50%); text-align: right; }

/* ---------- Home ---------- */
.hero { position: relative; height: calc(100svh - 34px); min-height: 560px; overflow: hidden; background: var(--night); color: var(--bone); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 8, 0.45) 0%, rgba(10, 9, 8, 0) 26%, rgba(10, 9, 8, 0) 58%, rgba(10, 9, 8, 0.72) 100%); pointer-events: none; }
.hero-media { position: absolute; inset: 0; }
.hero-wide { display: none; }
.hero-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(28px, 5vh, 52px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; }
.hero-caption .label { margin: 0; color: var(--bone); }
.hero-season { font: 400 18px/1.3 var(--serif); color: var(--fg-soft); }
.hero-season em { font-style: italic; }
.hero-season span { font-family: var(--serif-ko); font-size: 15px; }

.statement { padding-block: clamp(120px, 17vw, 260px); }
.statement-ko { margin-top: 30px; font: 400 clamp(16px, 1.5vw, 20px)/1.6 var(--serif-ko); color: var(--fg-soft); }
.statement .body-text { margin-top: 30px; max-width: 30em; }

.story { padding-bottom: clamp(110px, 14vw, 220px); }
.story-grid { display: grid; gap: 40px; }
.story-side { display: grid; gap: 40px; }
.story-small { width: 64%; margin-left: auto; }
.story-text .body-text { margin-top: 26px; }
.room-photo .photo-note { top: 28px; bottom: auto; }

.menus { padding-block: clamp(110px, 13vw, 200px); background: var(--night-2); }
.menus-grid { display: grid; gap: 48px; }
.menus-head .body-text { margin-top: 26px; }
.course-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.course-list li { border-top: 1px solid var(--line); }
.course-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 26px 0; text-decoration: none; transition: padding-left 0.5s var(--ease); }
.course-list a:hover { padding-left: 14px; }
.course-meta { grid-column: 1 / -1; font: 500 10.5px/1.6 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-muted); }
.course-title { font-family: var(--serif-ko); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -0.02em; }
.course-en { grid-column: 1; font: italic 400 18px var(--serif); color: var(--fg-muted); }
.course-go { grid-row: 2 / span 2; grid-column: 2; align-self: center; font-size: 18px; color: var(--fg-muted); transition: transform 0.5s var(--ease), color 0.5s; }
.course-list a:hover .course-go { transform: translateX(6px); color: var(--fg); }
.menus-link { justify-self: start; }

.room { position: relative; background: var(--night); }
.room-photo { aspect-ratio: 4 / 5; }
.room-caption { padding-block: 44px 110px; }
.room-caption .body-text { margin-top: 22px; }

.visit { padding-block: clamp(110px, 13vw, 200px); border-top: 1px solid var(--line); }
.visit-grid { display: grid; gap: 48px; align-items: center; }
.visit-text .body-text { margin-top: 26px; }
.visit-text .btn { margin-top: 40px; }
.hours { margin: 36px 0 0; }
.hours div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.hours div:last-child { border-bottom: 1px solid var(--line); }
.hours dt { font: 400 19px/1.3 var(--serif); }
.hours dt small { display: block; font: 400 12px var(--sans); color: var(--fg-muted); }
.hours dd { display: grid; margin: 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.hours dd small { color: var(--fg-muted); font-size: 12.5px; }

/* ---------- About ---------- */
.page-hero { position: relative; height: min(88svh, 900px); min-height: 520px; overflow: hidden; background: var(--night); color: var(--bone); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 8, 0.45) 0%, rgba(10, 9, 8, 0) 30%, rgba(10, 9, 8, 0.75) 100%); pointer-events: none; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(40px, 8vh, 96px); }
.chapter { padding-block: clamp(100px, 12vw, 190px) 0; }
.chapter + .closing { margin-top: clamp(100px, 12vw, 190px); }
.chapter-grid { display: grid; gap: 28px; }
.chapter-no { font: italic 400 22px var(--serif); color: var(--fg-muted); }
.chapter-wide { margin-bottom: clamp(56px, 7vw, 110px); }
.split { display: grid; gap: 44px; align-items: center; }
.split-text .body-text { margin-top: 26px; }
.chef-note { margin: 40px 0 0; padding-left: 24px; border-left: 1px solid var(--line-strong); }
.chef-note p { font: 400 clamp(18px, 1.6vw, 22px)/1.65 var(--serif-ko); letter-spacing: -0.02em; color: var(--fg); }
.chef-note footer { margin-top: 14px; font: italic 400 18px var(--serif); color: var(--fg-muted); }
.chef-note small { margin-left: 8px; font: 400 12px var(--sans); font-style: normal; }
.facts { margin: 40px 0 0; }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--fg-soft); }
.facts dt { font: italic 400 18px/1.3 var(--serif); color: var(--fg); }
.facts dd { margin: 0; }
.pair { display: grid; gap: 28px; margin-top: clamp(56px, 7vw, 110px); }
.pair-a { width: 72%; }
.closing { padding-block: clamp(120px, 15vw, 230px); border-top: 1px solid var(--line); }
.closing .btn { margin-top: 44px; }
.closing-full { min-height: 70vh; display: grid; align-items: center; border-top: 0; }

/* ---------- Inner page title band (light pages) ---------- */
.page-title-band { padding-block: clamp(64px, 9vw, 128px) clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-title-band .link-back { margin-bottom: 30px; }
.anchor-nav { display: flex; justify-content: center; gap: 40px; margin-top: 48px; }
.anchor-nav a { padding-bottom: 6px; font: 500 11px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.anchor-nav a:hover { border-color: var(--fg); }
.section-flow { padding-block: clamp(44px, 6vw, 80px) clamp(100px, 12vw, 170px); }

/* ---------- Menu ---------- */
.menu-period { padding-block: clamp(90px, 11vw, 170px) 0; scroll-margin-top: 20px; }
.menu-period-head { margin-bottom: clamp(56px, 7vw, 100px); text-align: center; }
.menu-period-head .display-sm { font-size: clamp(44px, 5vw, 76px); font-style: italic; }
.menu-period-head .label { margin: 14px 0 0; }
.menu-course { display: grid; gap: 40px; padding-bottom: clamp(90px, 11vw, 160px); scroll-margin-top: 24px; }
.course-name { display: grid; gap: 6px; font: 400 clamp(30px, 3vw, 42px)/1.2 var(--serif-ko); letter-spacing: -0.03em; }
.course-name em { font-size: clamp(19px, 1.6vw, 24px); font-style: italic; letter-spacing: 0; color: var(--fg-muted); }
.menu-course-body .body-text { margin-top: 22px; }
.dish-list { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: dish; }
.dish-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 8px; padding: 13px 0; border-top: 1px solid var(--line); counter-increment: dish; }
.dish-list li::before { content: counter(dish, decimal-leading-zero); grid-row: span 2; font: italic 400 15px/1.8 var(--serif); color: var(--fg-muted); }
.dish-name { font: 400 17.5px/1.5 var(--serif-ko); letter-spacing: -0.01em; }
.dish-desc { font-size: 13.5px; color: var(--fg-muted); }
.course-terms { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 30px 0 32px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.course-terms span { font: 400 24px var(--serif); }
.course-terms small { display: block; font: 400 12px var(--sans); color: var(--fg-muted); }
.menu-notes { padding-block: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.notes-grid { display: grid; gap: 48px; }
.notes { margin: 0; padding: 0; list-style: none; }
.notes li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--fg-soft); font-size: 14.5px; }
.menu-notes .hours { margin-top: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.fieldset { display: grid; gap: 18px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.fieldset legend { margin-bottom: 18px; padding: 0; font: 600 12.5px/1.6 var(--sans); letter-spacing: 0.04em; color: var(--fg-muted); }
.field { display: grid; gap: 4px; font-size: 13px; font-weight: 500; color: var(--fg-soft); }
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--field);
  color: var(--fg);
  font: 400 16px/1.4 var(--sans);
}
textarea.input { padding: 12px; border: 1px solid var(--line-strong); resize: vertical; }
.input:focus { outline: none; border-color: var(--fg); }
.input:disabled { color: var(--fg-muted); }
.input-num { width: 84px; }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); cursor: pointer; transition: border-color 0.3s; }
.choice:has(input:checked) { border-color: var(--fg); }
.choice input { margin-top: 5px; }
.choice span { display: grid; gap: 2px; }
.choice small { color: var(--fg-muted); font-size: 13px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--fg-soft); }
.check input { margin-top: 5px; width: 16px; height: 16px; }
.alert { padding: 14px 16px; border-left: 2px solid var(--danger); background: rgba(163, 54, 42, 0.07); color: var(--fg); font-size: 14px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-ok { border-left-color: var(--ok); background: rgba(61, 97, 70, 0.08); }
.notice, .notice-demo { padding: 14px 16px; border-left: 2px solid var(--accent); background: rgba(198, 106, 61, 0.07); font-size: 13.5px; color: var(--fg-soft); }
.notice-demo strong { color: var(--fg); font-weight: 600; }
.notice-demo p { margin-top: 4px; }

/* ---------- Reservation ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 44px 0 0; padding: 0; list-style: none; font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-muted); }
.steps li { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid transparent; }
.steps span { font: italic 400 15px var(--serif); letter-spacing: 0; text-transform: none; }
.steps small { font-size: 11.5px; letter-spacing: 0.02em; text-transform: none; }
.steps .done { color: var(--fg-soft); }
.steps [aria-current] { color: var(--fg); border-bottom-color: var(--fg); }

.booking-grid, .confirm-grid, .account-grid { display: grid; gap: 56px; align-items: start; }
.step { padding: 40px 0 46px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.step:first-child { border-top: 0; padding-top: 8px; }
.step-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; }
.step-title span { font: 500 11px var(--sans); letter-spacing: 0.24em; color: var(--fg-muted); }
.step-title small { font: 400 14px var(--serif-ko); color: var(--fg-muted); }
.step-empty { color: var(--fg-muted); }
.step-date { margin-bottom: 22px; font: 400 20px var(--serif-ko); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-grid;
  place-items: center;
  min-width: 68px;
  min-height: 50px;
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  font: 400 19px/1.1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
a.chip:hover { border-color: var(--fg); }
.chip[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip small { display: block; margin-top: 2px; font: 500 10px var(--sans); letter-spacing: 0.08em; }
.chip.is-off { color: var(--fg-muted); border-color: var(--line); text-decoration: line-through; text-decoration-thickness: 1px; }
.chip.is-off small { text-decoration: none; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-radio:has(input:checked) { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip-radio:has(input:focus-visible) { outline: 1px solid var(--fg); outline-offset: 3px; }
.seatings + .seatings { margin-top: 30px; }
.seatings h3 { margin-bottom: 14px; font: 400 22px var(--serif); }
.seatings h3 span { margin-left: 8px; font: 400 13px var(--sans); color: var(--fg-muted); }

.calendar { max-width: 600px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cal-month { font-size: 14px; color: var(--fg-muted); letter-spacing: 0.08em; }
.cal-month strong { margin-right: 8px; font-size: 34px; letter-spacing: 0; color: var(--fg); }
.cal-nav { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 15px; }
span.cal-nav { border-color: transparent; }
a.cal-nav:hover { border-color: var(--fg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.cal-grid > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-weekdays { border-left: 0; }
.cal-weekdays li { padding-bottom: 10px; border: 0 !important; text-align: center; font: 500 10.5px var(--sans); letter-spacing: 0.2em; color: var(--fg-muted); }
.cal-weekdays + .cal-grid { border-top: 1px solid var(--line); }
.cal-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; font: 400 21px var(--serif); font-variant-numeric: lining-nums; }
.cal-day > a, .cal-day > span { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; }
.cal-day small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cal-day.is-open > a { transition: background-color 0.25s; }
.cal-day.is-open > a:hover { background: var(--panel); }
.cal-day.is-open > a::after { content: ""; position: absolute; bottom: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal-day.is-open > a[aria-current] { background: var(--fg); color: var(--bg); }
.cal-day.is-past, .cal-day.is-beyond { color: var(--line-strong); }
.cal-day.is-full { color: var(--fg-muted); background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px)); }
.cal-day.is-closed { color: var(--fg-muted); background: var(--panel); }
.cal-day.is-today > a, .cal-day.is-today > span { text-decoration: underline; text-underline-offset: 6px; }
.cal-legend { margin-top: 16px; font-size: 12px; color: var(--fg-muted); }
.dot { display: inline-block; width: 7px; height: 7px; margin: 0 6px 0 14px; vertical-align: 1px; }
.dot:first-child { margin-left: 0; }
.dot-open { border-radius: 50%; background: var(--accent); }
.dot-full { border: 1px solid var(--fg-muted); }
.dot-closed { background: var(--panel); border: 1px solid var(--line-strong); }

.course-pick { display: grid; gap: 0; }
.course-option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.course-option:last-of-type { border-bottom: 1px solid var(--line); }
.course-option:has(input:checked) strong { font-style: normal; }
.course-option input { margin-top: 10px; width: 16px; height: 16px; }
.course-option-body { display: grid; gap: 2px; font-size: 13.5px; color: var(--fg-muted); }
.course-option-body strong { font: 400 24px/1.3 var(--serif-ko); letter-spacing: -0.02em; color: var(--fg); }
.course-option-body em { font: italic 400 17px var(--serif); color: var(--fg-muted); }
.course-option-deposit b { color: var(--fg); font-weight: 600; }
.course-pick .btn { margin-top: 30px; }
.booking-summary { padding: 34px 30px; border: 1px solid var(--line-strong); }
.booking-summary h3, .policy-card h3 { margin: 6px 0 12px; font: 600 12px/1.6 var(--sans); letter-spacing: 0.04em; color: var(--fg-muted); }
.summary-list { margin: 0 0 26px; }
.summary-list div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.summary-list dt { flex: none; color: var(--fg-muted); }
.summary-list dd { margin: 0; text-align: right; }
.summary-list dd span { color: var(--fg-muted); }
.policy-lines { margin: 0; padding: 0; list-style: none; }
.policy-lines li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--fg-soft); }
.policy-lines li strong { text-align: right; font-weight: 500; color: var(--fg); }
.policy-lines.compact li { padding: 4px 0; font-size: 13px; }

/* Confirm: the dark ticket */
.ticket { padding: 36px 32px; background: var(--bg); color: var(--fg); }
.ticket .label { color: var(--accent); }
.ticket-date { display: grid; font: 400 18px/1.4 var(--serif-ko); color: var(--fg-soft); }
.ticket-date strong { margin-top: 6px; font: 400 76px/0.95 var(--serif); color: var(--fg); font-variant-numeric: lining-nums; }
.ticket .summary-list { margin-top: 26px; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.ticket-total strong { font: 400 32px var(--serif); font-variant-numeric: lining-nums; }
.ticket .link-back { margin: 22px 0 0; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.gate { padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line-strong); }
.gate .display-sm { font-family: var(--serif-ko); font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.35; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gate .alert { margin-bottom: 18px; }
.schedule { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.schedule li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.schedule li span:nth-child(2) { grid-row: 2; color: var(--fg-muted); font-size: 12.5px; }
.schedule li strong { grid-row: span 2; align-self: center; font: 400 20px var(--serif); font-variant-numeric: lining-nums; }

/* ---------- My page ---------- */
.res-tickets { border-bottom: 1px solid var(--line); }
.res-ticket { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 22px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; transition: padding-left 0.4s var(--ease); }
.res-ticket:hover { padding-left: 10px; }
.res-ticket-date { display: grid; font-size: 12px; color: var(--fg-muted); text-align: center; }
.res-ticket-date strong { font: 400 52px/1 var(--serif); color: var(--fg); }
.res-ticket-body { display: grid; gap: 2px; }
.res-ticket-time { font: 500 11px var(--sans); letter-spacing: 0.2em; color: var(--accent); }
.res-ticket-body strong { font: 400 22px/1.35 var(--serif-ko); letter-spacing: -0.02em; }
.res-ticket .status { grid-column: 2; justify-self: start; }
.empty-card { padding: 40px; border: 1px solid var(--line); text-align: center; color: var(--fg-muted); }
.empty-card .btn { margin-top: 20px; }
.card { padding: 30px; border: 1px solid var(--line-strong); }
.profile-card .form { gap: 18px; }
.refund-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 20px 0; padding: 16px 0; border-block: 1px solid var(--line-strong); }
.refund-line strong { font: 400 30px var(--serif); font-variant-numeric: lining-nums; }
.ledger { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ledger li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger li span { display: grid; }
.ledger small { color: var(--fg-muted); font-size: 12px; }
.ledger strong { font: 400 19px var(--serif); font-variant-numeric: lining-nums; white-space: nowrap; }
.policy-card { padding: 30px; border: 1px solid var(--line); }
.ticket-wide { padding: clamp(28px, 4vw, 44px); }

.status { display: inline-block; padding: 3px 10px; border: 1px solid currentColor; font: 500 11px/1.5 var(--sans); letter-spacing: 0.06em; white-space: nowrap; text-decoration: none; }
.status-pending { color: var(--accent); }
.status-confirmed { color: var(--fg); }
.status-completed { color: var(--fg-muted); }
.status-cancelled { color: var(--fg-muted); text-decoration: line-through; }
.status-no_show { color: var(--danger); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-strong); text-align: left; font: 500 10.5px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td small { color: var(--fg-muted); }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table tr.is-muted td { opacity: 0.5; }
.table-wrap > .table { min-width: 560px; }

/* ---------- Sign in / sign up, policy pages ---------- */
.auth { display: grid; }
.auth-photo { display: none; }
.auth-main { display: grid; place-items: center; padding: clamp(56px, 8vw, 120px) var(--gutter); }
.auth-card { width: min(100%, 420px); }
.auth-card .title-ko { margin: 14px 0 36px; font-size: 15px; }
.auth-card .notice, .auth-card .alert { margin-bottom: 22px; }
.auth-alt { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-muted); }
.auth-alt a { color: var(--fg); }
.prose-page h2 { margin: 44px 0 12px; font: 400 21px/1.4 var(--serif-ko); letter-spacing: -0.02em; }
.prose-page p, .prose-page li { color: var(--fg-soft); }
.prose-page ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0908; color: var(--fg-soft); font-size: 14px; }
.footer-top { padding-block: clamp(80px, 10vw, 140px) 56px; border-bottom: 1px solid var(--line); }
.wordmark-lg { color: var(--fg); }
.wordmark-lg .wordmark-en { font-size: clamp(38px, 5vw, 64px); }
.wordmark-lg .wordmark-kr { font-size: clamp(18px, 2vw, 24px); }
.footer-line { margin-top: 20px; font: italic 400 20px var(--serif); color: var(--fg-muted); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; padding-block: 52px; }
.footer-grid .label { margin-bottom: 14px; }
.footer-grid p small { display: block; margin-top: 4px; color: var(--fg-muted); font-size: 12px; }
.footer-grid nav { display: grid; align-content: start; gap: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--fg); }
.demo-notice { padding-block: 40px 48px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.demo-notice .label { margin-bottom: 14px; color: var(--ember); }
.demo-statement { max-width: 54em; color: var(--fg); font-size: 14px; }
.maker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px 24px; margin: 26px 0 0; font-size: 13.5px; }
.maker dt { font-size: 11.5px; color: var(--fg-muted); }
.maker dd { margin: 2px 0 0; color: var(--fg); }
.contact-img { height: 15px; width: auto; margin-top: 4px; }
.copyright { margin-top: 28px; font-size: 12px; color: var(--fg-muted); }

/* ---------- Motion: scroll-driven reveals (no JS; browsers without support simply show everything) ---------- */
@keyframes hero-in { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(14% 0 0 0); } to { clip-path: inset(0); } }
.hero-media .photo, .page-hero-media .photo { animation: hero-in 2.8s var(--ease) both; }
.hero-caption, .page-hero-caption { animation: rise 1.6s 0.6s var(--ease) both; }
@supports (animation-timeline: view()) {
  [data-reveal] { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  main .photo:not(.r-fill) { animation: unveil linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
}

/* ---------- Admin (scoped: practical, compact, system fonts) ---------- */
body.admin {
  --bg: #f1eee8;
  --panel: #e7e2d9;
  --card: #faf8f4;
  --field: #fdfcfa;
  --fg: #1a1814;
  --fg-soft: #46413a;
  --fg-muted: #6f695f;
  --line: rgba(26, 24, 20, 0.12);
  --line-strong: rgba(26, 24, 20, 0.28);
  --accent: var(--ember-ink);
  font-size: 15px;
  line-height: 1.6;
}
.admin .btn { min-height: 40px; padding: 0 16px; border-radius: 8px; font: 600 13.5px/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
.admin .btn-small { min-height: 36px; }
.admin .btn-xs { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.admin .btn-lg { min-height: 48px; }
.admin .btn-quiet { border-color: var(--line-strong); color: var(--fg-soft); background: transparent; }
.admin .btn-quiet:hover { background: var(--panel); color: var(--fg); }
.admin .btn-danger { background: var(--danger); color: #fff; }
.admin .input { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--field); font-size: 15px; }
.admin textarea.input { padding: 10px 12px; }
.admin .card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.admin .choice { border-radius: 10px; background: var(--field); }
.admin .alert { border-radius: 8px; }
.admin .fieldset legend, .admin .label { letter-spacing: 0.14em; }
.admin .status { border: 0; border-radius: 999px; padding: 3px 10px; font-weight: 700; letter-spacing: 0; text-decoration: none; }
.admin .status-pending { background: #f3e2bd; color: #6e4b0e; }
.admin .status-confirmed { background: #d8e5d9; color: #1d4630; }
.admin .status-completed { background: #e2e1dc; color: #3b4640; }
.admin .status-cancelled { background: #f1dad2; color: #8a3018; }
.admin .status-no_show { background: #3a2a24; color: #f5e6df; }
.admin .table th { padding: 10px 12px; font: 600 12px var(--sans); letter-spacing: 0; text-transform: none; }
.admin .table td { padding: 11px 12px; }
.admin .table-wrap > .table { min-width: 820px; }
.admin .table-wrap > .table-compact { min-width: 0; }
.admin .chip { min-height: 42px; min-width: 60px; border-radius: 8px; font: 600 15px var(--sans); }
.admin .seatings h3 { font: 700 15px var(--sans); }
.admin .policy-lines li { font-size: 13px; }
.admin .ledger strong { font: 600 14px var(--sans); }
.admin-topbar { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 var(--gutter); background: var(--night); color: var(--bone); }
.admin-topbar .wordmark-en { font-size: 18px; }
.admin-topbar .wordmark-kr { font-size: 12px; }
.admin-topbar .badge { margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: var(--ember); color: #fff; font: 700 11px var(--sans); }
.topbar-right { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 13.5px; }
.topbar-right a { color: var(--bone); text-decoration: none; }
.topbar-user { display: none; color: rgba(236, 231, 222, 0.6); }
.admin-sidebar { background: var(--panel); border-bottom: 1px solid var(--line); }
.sidebar-nav { display: flex; gap: 4px; padding: 8px var(--gutter); overflow-x: auto; }
.sidebar-nav a { flex: none; padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--fg-soft); }
.sidebar-nav a:hover { background: var(--card); }
.sidebar-nav a[aria-current="page"] { background: var(--night); color: var(--bone); }
.sidebar-demo { display: none; }
.admin-main { padding: 24px var(--gutter) 64px; min-width: 0; }
.admin-main > * + * { margin-top: 18px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.page-title { font: 800 26px/1.3 var(--sans); letter-spacing: -0.03em; }
.today-line { color: var(--fg-muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-label { font-size: 13px; color: var(--fg-muted); }
.stat-value { margin-top: 4px; font: 800 30px/1.1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-hint { margin-top: 4px; font-size: 12.5px; color: var(--fg-muted); }
.card-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 14px; font: 800 17px/1.4 var(--sans); letter-spacing: -0.02em; }
.card-title small { font: 500 13px var(--sans); letter-spacing: 0; color: var(--fg-muted); }
.card-link { margin-left: auto; font: 600 13.5px var(--sans); color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.admin-grid { display: grid; gap: 18px; align-items: start; }
.admin .stack > .card + .card { margin-top: 18px; }
.table-tag { display: inline-block; min-width: 34px; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font: 700 12.5px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: center; }
td.request { max-width: 260px; font-size: 13px; color: var(--accent); }
td.request .muted { color: var(--fg-muted); }
.quick { display: flex; gap: 6px; }
.quick form { margin: 0; }
.res-list { margin: 0; padding: 0; list-style: none; }
.res-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.res-list li:last-child { border-bottom: 0; }
.res-list a, .res-list li > span { display: grid; text-decoration: none; min-width: 0; }
.res-list a span, .res-list li > span { font-size: 13px; color: var(--fg-muted); }
.res-list em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.info { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14.5px; }
.info dt { color: var(--fg-muted); }
.info dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.actions form { margin: 0; }
.timeline { margin: 0 0 14px; padding: 0; list-style: none; }
.timeline li { padding: 6px 0 10px 14px; border-left: 2px solid var(--line-strong); font-size: 14px; }
.timeline small { display: block; color: var(--fg-muted); font-size: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form .input { width: auto; flex: 1 1 140px; }
.inline-form .input-num { flex: 0 0 84px; }
.card > .inline-form { margin-top: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .input { width: auto; }
.filters .field { font-size: 12.5px; }
.date-nav { display: flex; align-items: center; gap: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.weekday-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.weekday-pick legend { margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fg); }
.weekday-pick label { position: relative; }
.weekday-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.weekday-pick span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; font-weight: 700; font-size: 14px; color: var(--fg-muted); }
.weekday-pick label:has(input:checked) span { background: var(--night); border-color: var(--night); color: var(--bone); }
.weekday-pick label:has(input:focus-visible) span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rule-rows { display: grid; gap: 8px; }
.rule-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; }
.rule-row label { display: flex; align-items: center; gap: 8px; }
.table-form td { vertical-align: middle; }
.table-form .input { min-height: 36px; min-width: 90px; }
.table-form .input-num { width: 70px; min-width: 70px; }
.course-admin-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.course-admin-head .card-title { margin: 0; }
.admin .card.is-muted { opacity: 0.7; }
.timeline-table { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.timeline-table th { padding: 6px 4px; font-weight: 600; color: var(--fg-muted); text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.timeline-table thead th span { color: var(--line-strong); }
.timeline-table thead th:first-child { width: 72px; }
.timeline-table th[scope="row"] { width: 72px; padding-right: 10px; color: var(--fg); font-weight: 800; }
.timeline-table th[scope="row"] small { display: block; font-weight: 500; color: var(--fg-muted); }
.timeline-table td { height: 54px; padding: 3px; border-left: 1px dashed var(--line); border-top: 1px solid var(--line); }
.tl-res a { display: block; height: 100%; padding: 6px 10px; border-radius: 10px; background: var(--night-3); color: var(--bone); text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tl-res a small { display: block; color: rgba(236, 231, 222, 0.6); }
.tl-pending a { background: #e9cd92; color: var(--fg); }
.tl-pending a small { color: var(--fg-soft); }
.tl-completed a { background: #a8a69e; color: var(--fg); }
.tl-completed a small { color: var(--fg-soft); }
.tl-off { color: var(--fg-muted); text-align: center; background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(26, 24, 20, 0.06) 7px 8px); }

@media (prefers-color-scheme: dark) {
  body.admin {
    color-scheme: dark;
    --bg: #0f0e0c;
    --panel: #181613;
    --card: #1c1a17;
    --field: #13110f;
    --fg: #ebe6dd;
    --fg-soft: #c9c4bb;
    --fg-muted: #9a948a;
    --line: rgba(235, 230, 221, 0.12);
    --line-strong: rgba(235, 230, 221, 0.26);
    --accent: #e08a5c;
  }
  body.admin .status-pending { background: #4a3a17; color: #f3dfae; }
  body.admin .status-confirmed { background: #1f3b2b; color: #cbe3d1; }
  body.admin .status-completed { background: #2b3330; color: #d8dcd6; }
  body.admin .status-cancelled { background: #47231a; color: #f2c9bc; }
  body.admin .tl-res a { background: #3a3530; }
  body.admin .sidebar-nav a[aria-current="page"] { background: #ebe6dd; color: #0f0e0c; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Desktop (one breakpoint) ---------- */
@media (min-width: 768px) {
  .hide-sm { display: inline; }
  :root { --header-h: 96px; }
  .header-inner { gap: 44px; }
  .nav-links { display: flex; gap: 36px; margin-left: auto; }
  .nav-links a { padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
  .nav-links a:hover, .nav-links a[aria-current] { background-size: 100% 1px; }
  .nav-account { display: flex; align-items: center; gap: 28px; color: var(--fg-soft); }
  .nav-account form { margin: 0; }
  .nav-reserve { margin-left: 0; min-height: 44px; padding: 0 24px; font-size: 11px; }
  .nav-menu { display: none; }

  .hero-wide { display: block; }
  .hero-tall { display: none; }
  .story-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); }
  .story-main { grid-column: 1 / span 6; }
  .story-side { grid-column: 8 / span 5; align-content: start; padding-top: clamp(80px, 12vw, 220px); gap: clamp(40px, 5vw, 72px); }
  .story-small { width: 62%; margin-left: 0; }
  .menus-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 56px; align-items: start; }
  .menus-head { grid-column: 1 / span 5; }
  .course-list { grid-column: 1 / span 6; }
  .menus-photo { grid-column: 8 / span 5; grid-row: 1 / span 3; align-self: center; }
  .menus-link { grid-column: 1 / span 6; }
  .room-photo { aspect-ratio: 21 / 9; }
  .room-caption { position: absolute; left: 0; right: 0; bottom: 0; padding-block: 0 clamp(40px, 5vw, 72px); color: var(--bone); }
  .room::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(rgba(10, 9, 8, 0), rgba(10, 9, 8, 0.78)); pointer-events: none; }
  .room-caption { z-index: 2; }
  .room-caption .body-text { max-width: 30em; }
  .visit-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); }
  .visit-photo { grid-column: 1 / span 5; }
  .visit-text { grid-column: 7 / span 6; }

  .chapter-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); align-items: start; }
  .chapter-no { grid-column: 1 / span 1; padding-top: 10px; }
  .chapter-head { grid-column: 2 / span 5; }
  .chapter-body { grid-column: 8 / span 5; padding-top: 44px; }
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); }
  .split-photo { grid-column: 1 / span 6; }
  .split-text { grid-column: 8 / span 5; }
  .split.is-flipped .split-photo { grid-column: 7 / span 6; grid-row: 1; }
  .split.is-flipped .split-text { grid-column: 1 / span 5; grid-row: 1; }
  .pair { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); align-items: end; }
  .pair-a { grid-column: 2 / span 4; width: auto; }
  .pair-b { grid-column: 7 / span 6; margin-bottom: clamp(60px, 9vw, 160px); }

  .menu-course { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); align-items: start; }
  .menu-course-photo { grid-column: 1 / span 5; position: sticky; top: 40px; }
  .menu-course-body { grid-column: 7 / span 6; }
  .menu-course.is-flipped .menu-course-photo { grid-column: 8 / span 5; grid-row: 1; }
  .menu-course.is-flipped .menu-course-body { grid-column: 1 / span 6; grid-row: 1; }
  .notes-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }

  .booking-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; }
  .booking-summary { position: sticky; top: 28px; }
  .confirm-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 80px; }
  .confirm-grid .ticket { position: sticky; top: 28px; }
  .account-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; }
  .res-ticket { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .res-ticket .status { grid-column: auto; justify-self: end; }
  .cal-day small { position: absolute; width: auto; height: auto; clip-path: none; bottom: 7px; left: 0; right: 0; font: 500 10px var(--sans); letter-spacing: 0.06em; text-align: center; }

  .auth { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - 130px); }
  .auth-photo { display: block; position: relative; aspect-ratio: auto; min-height: 640px; }

  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .admin-body { display: grid; grid-template-columns: 216px minmax(0, 1fr); flex: 1; }
  .admin-sidebar { border-bottom: 0; border-right: 1px solid var(--line); }
  .sidebar-nav { position: sticky; top: 0; flex-direction: column; padding: 20px 14px; overflow: visible; }
  .sidebar-demo { display: block; margin: 8px 18px; font-size: 12px; color: var(--fg-muted); }
  .topbar-user { display: inline; }
  .admin-main { padding: 28px 36px 72px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
