:root {
  --bg: #eceeec;
  --surface: #e1e4e2;
  --ink: #1c1f1e;
  --muted: #535a57;
  --line: #c3c8c5;
  --brick: #a3381f;
  --brick-dark: #8a2e18;
  --on-brick: #ffffff;
  --open: #2f6b46;
  --rail: #3d8b52;
  --font-ko: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ko);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; max-width: 62ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 20; text-decoration: none; }
.skip:focus { top: 12px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; fill: var(--brick); }
.brand-ko { font-weight: 700; font-size: 19px; }
.brand-en { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.top ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 4px;
}
.top nav a:hover { background: var(--surface); }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--pad) clamp(56px, 8vw, 112px);
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.lede { margin: 24px 0 0; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.status {
  display: flex; align-items: center; gap: 10px;
  margin: 28px 0 0; padding: 12px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status[data-state="open"] .status-dot { background: var(--open); }
.status[data-state="soon"] .status-dot { background: var(--brick); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border-radius: 4px; border: 1.5px solid var(--ink);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brick); border-color: var(--brick); color: var(--on-brick); }
.btn-primary:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn-line:hover { background: var(--ink); color: var(--bg); }

.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* sections */
section { scroll-margin-top: 72px; }
.menu, .hours, .location {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--pad);
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(16px, 4vw, 64px); align-items: baseline;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.3; }
.section-head p { margin: 0; color: var(--muted); }

/* menu */
.menu-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.menu-photo { margin: 0; position: sticky; top: 92px; }
.menu-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.menu-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; }
.menu-group:first-child { grid-column: 1 / -1; }
.menu-group h3 {
  font-size: 15px; font-weight: 600; color: var(--brick);
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.items { list-style: none; margin: 0; padding: 0; }
.items li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.items .name { flex: 1; font-weight: 500; font-size: 17px; }
.items small { display: block; margin-top: 2px; font-weight: 400; font-size: 14px; color: var(--muted); line-height: 1.5; }
.items .price { font-family: var(--font-mono); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-group:first-child .items { columns: 2; column-gap: 48px; }
.menu-group:first-child .items li { break-inside: avoid; }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* hours */
.hours {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
.hours .section-head { display: block; margin: 0; }
.hours .section-head p { margin-top: 16px; max-width: 34ch; }
.week { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.week th, .week td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; }
.week tr:first-child th, .week tr:first-child td { border-top: 2px solid var(--ink); }
.week th { width: 40%; font-weight: 600; font-size: 17px; }
.week td { font-family: var(--font-mono); font-size: 16px; text-align: right; }
.week td.closed { font-family: var(--font-ko); color: var(--muted); }
.week tr.today th, .week tr.today td { color: var(--brick); }
.week tr.today th::after {
  content: "오늘"; margin-left: 10px; padding: 2px 7px;
  font-size: 12px; font-weight: 600; color: var(--on-brick); background: var(--brick); border-radius: 2px;
  vertical-align: 2px;
}

/* location */
.loc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.address { margin: 0 0 20px; font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.45; }
.route { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.route li { counter-increment: step; position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); }
.route li::before {
  content: counter(step); position: absolute; left: 0; top: 12px;
  font-family: var(--font-mono); font-size: 14px; color: var(--brick); font-weight: 500;
}
.map { margin: 0; }
.map svg { width: 100%; height: auto; display: block; background: var(--surface); border-radius: 6px; }
.m-block { fill: #d1d5d2; }
.m-road { fill: #f6f7f6; }
.m-rail { stroke: var(--rail); stroke-width: 6; stroke-dasharray: 18 6; }
.m-station { fill: var(--rail); }
.m-station-t { fill: #fff; font: 600 15px var(--font-ko); text-anchor: middle; }
.m-exit { fill: var(--ink); }
.m-exit-t { fill: #fff; font: 500 12px var(--font-mono); text-anchor: middle; }
.m-walk { fill: none; stroke: var(--brick); stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; }
.m-cafe { fill: var(--brick); }
.m-cafe-t { fill: #fff; font: 700 17px var(--font-ko); text-anchor: middle; }
.m-label { fill: var(--muted); font: 500 16px var(--font-ko); text-anchor: end; }
.m-label-v { text-anchor: start; }
.m-north path { fill: var(--ink); }
.m-north text { fill: var(--ink); font: 500 12px var(--font-mono); text-anchor: middle; }

/* footer */
.foot {
  max-width: var(--max); margin: 0 auto;
  padding: 32px var(--pad) 48px;
  border-top: 2px solid var(--ink);
  font-size: 14px; color: var(--muted);
}
.foot p { margin: 4px 0; max-width: none; }
.foot strong { color: var(--ink); margin-right: 10px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* tablet */
@media (max-width: 959px) {
  .br-wide { display: none; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-photo { margin: 0 calc(var(--pad) * -1); }
  .hero-photo img { border-radius: 0; }
  .hero-photo figcaption { padding: 0 var(--pad); }
  .section-head { grid-template-columns: 1fr; }
  .hours { grid-template-columns: 1fr; gap: 0; }
  .hours .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
  .hours .section-head p { max-width: 62ch; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-photo { position: static; }
  .menu-photo img { aspect-ratio: 16 / 9; }
  .loc-grid { grid-template-columns: 1fr; }
}

/* phone */
@media (max-width: 599px) {
  body { font-size: 16px; }
  .brand-en { display: none; }
  .top { padding-top: 6px; padding-bottom: 6px; }
  .top nav a { padding: 0 8px; font-size: 14px; }
  .menu-lists { grid-template-columns: 1fr; gap: 36px; }
  .menu-group:first-child .items { columns: 1; }
  .menu-photo img { aspect-ratio: 4 / 3; }
  .actions .btn { flex: 1 1 auto; }
}
