@import url("../fonts/hahmlet-300.css");
@import url("../fonts/hahmlet-500.css");
@import url("../fonts/noto-sans-kr-400.css");
@import url("../fonts/noto-sans-kr-500.css");
@import url("../fonts/shippori-mincho.css");

:root {
  /* 찬합의 옻칠: 바깥은 먹빛, 안쪽은 주홍 */
  --lacquer: #121010;
  --lacquer-2: #1a1716;
  --text: #ece5d8;
  --text-2: #b4aa9a;
  --text-3: #8d8476;
  --line: rgba(236, 229, 216, .14);
  /* 메뉴판의 화지 */
  --washi: #f1efeb;
  --washi-2: #e7e4de;
  --ink: #1b1816;
  --ink-2: #57504a;
  --ink-3: #6f675e;
  --line-ink: rgba(27, 24, 22, .14);
  --shu: #b03a26; /* 찬합 안쪽 주홍, 아주 작게만 */

  --f-serif: "Hahmlet", "Apple SD Gothic Neo", serif;
  --f-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-jp: "Shippori Mincho", "Hahmlet", serif;

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lacquer);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: -.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--shu); color: #fff; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; }

h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 300; margin: 0; line-height: 1.32; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.jp { font-family: var(--f-jp); font-weight: 500; letter-spacing: .12em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--lacquer); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ───── header ───── */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--head-h);
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.head.is-solid { background: rgba(18, 16, 16, .92); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.head-row { display: flex; align-items: center; gap: 28px; height: 100%; }
.mark { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; margin-right: auto; }
.mark-en { font-family: var(--f-jp); font-size: 17px; letter-spacing: .42em; font-weight: 500; }
.mark-jp { font-family: var(--f-jp); font-size: 13px; letter-spacing: .3em; color: var(--text-2); }
.nav { display: none; gap: 30px; font-size: 14px; letter-spacing: .04em; }
.nav a { text-decoration: none; color: var(--text); opacity: .82; transition: color .25s var(--ease); }
.nav a:hover { opacity: 1; }
.head-book { font-size: 14px; letter-spacing: .04em; text-decoration: none; padding: 8px 16px; border: 1px solid rgba(236,229,216,.4); transition: background-color .3s var(--ease), color .3s var(--ease); }
.head-book:hover { background: var(--text); color: var(--lacquer); }
.head-lang { font-size: 13px; letter-spacing: .12em; text-decoration: none; opacity: .72; padding: 8px 2px; transition: opacity .25s var(--ease); }
.head-lang:hover { opacity: 1; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ───── buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 500 15px/1 var(--f-sans); letter-spacing: .04em; text-decoration: none;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-solid { background: var(--text); color: var(--lacquer); }
.btn-solid:hover { background: #fff; }
.btn-ghost { border-color: rgba(236,229,216,.38); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.on-washi .btn-solid { background: var(--ink); color: var(--washi); }
.on-washi .btn-solid:hover { background: #000; }
.ico { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ───── hero ───── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { /* 글자가 읽히도록 위아래만 어둡게 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,16,16,.55) 0, rgba(18,16,16,0) 20%, rgba(18,16,16,0) 40%, rgba(18,16,16,.8) 72%, rgba(18,16,16,.95) 100%);
}
@media (max-width: 759px) {
  .hero::after { background: linear-gradient(180deg, rgba(18,16,16,.6) 0, rgba(18,16,16,0) 16%, rgba(18,16,16,.1) 34%, rgba(18,16,16,.82) 56%, rgba(18,16,16,.96) 100%); }
}
.hero-body { position: relative; z-index: 1; padding-block: 0 clamp(36px, 7vh, 80px); }
.hero h1 { font-size: clamp(36px, 6.2vw, 84px); line-height: 1.18; letter-spacing: -.03em; }
.hero-lede { margin-top: 18px; max-width: 32em; color: var(--text-2); font-size: clamp(15px, 1.3vw, 17px); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 auto; }
@media (max-width: 479px) { .hero-actions { width: 100%; } .hero-actions .btn-solid { flex-basis: 100%; } }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 14px; color: var(--text-2); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.status[data-state="open"] .status-dot { background: #7fb27a; }
.status[data-state="break"] .status-dot, .status[data-state="last"] .status-dot { background: #d4a35a; }
.status-main { color: var(--text); white-space: nowrap; }
.status-sub { white-space: nowrap; }

/* ───── sections ───── */
.sec { padding-block: clamp(96px, 14vw, 180px); }
.sec + .sec:not(.on-washi) { border-top: 1px solid var(--line); }
.h2 { font-size: clamp(30px, 4.4vw, 56px); }
.lede { margin-top: 18px; max-width: 36em; color: var(--text-2); }
.on-washi { background: var(--washi); color: var(--ink); }
.on-washi .lede { color: var(--ink-2); }
.on-washi ::selection { background: var(--ink); color: var(--washi); }

/* story */
.story { display: grid; gap: clamp(40px, 6vw, 96px); }
.story-photo { margin: 0; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story-text .p { margin-top: 22px; max-width: 30em; color: var(--text-2); }
.story-text .p em { font-style: normal; color: var(--text); }
.quote { margin: clamp(36px, 5vw, 56px) 0; font-family: var(--f-serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.55; color: var(--text); }
.quote::before { content: ""; display: block; width: 28px; height: 1px; background: var(--shu); margin-bottom: 22px; }
.story-sub { display: grid; gap: 14px; margin-top: clamp(48px, 7vw, 96px); }
.story-sub figure { margin: 0; }
.story-sub img, .story-sub video { width: 100%; background: #000; }
.story-sub .wide img { aspect-ratio: 3 / 2; object-fit: cover; height: 100%; }
.story-sub video { aspect-ratio: 9 / 16; object-fit: cover; }
.cap { margin-top: 12px; font-size: 13px; letter-spacing: .02em; color: var(--text-3); }
@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; align-items: center; }
  .story-sub { grid-template-columns: 2.2fr 1fr; align-items: end; gap: 20px; }
}

/* three ways */
.ways { list-style: none; padding: 0; display: grid; gap: 48px; margin: clamp(48px, 7vw, 88px) 0 0; }
.way img { width: 100%; aspect-ratio: 12 / 7; object-fit: cover; margin-bottom: 26px; }
.way-n { display: block; font-size: 30px; line-height: 1; color: var(--text); margin-bottom: 18px; }
.way h3 { font-size: 24px; }
.way p { margin-top: 8px; color: var(--text-2); max-width: 22em; }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* menu */
.signature { display: grid; gap: 40px; margin-top: clamp(48px, 7vw, 88px); }
.sig { margin: 0; }
.sig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--washi-2); }
.sig figcaption { margin-top: 18px; }
.sig-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sig h3 { font-size: 24px; }
.sig .price { font-size: 17px; }
.sig .jp { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.sig p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
@media (min-width: 900px) { .signature { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

.cats {
  position: sticky; top: var(--head-h); z-index: 5;
  display: flex; gap: 6px; margin: clamp(72px, 9vw, 120px) calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter);
  overflow-x: auto; scrollbar-width: none;
  background: rgba(241, 239, 235, .95); border-bottom: 1px solid var(--line-ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; font-size: 14px; letter-spacing: .03em; text-decoration: none; color: var(--ink-2); padding: 6px 12px; border: 1px solid transparent; transition: color .25s var(--ease), border-color .25s var(--ease); }
.cats a:hover, .cats a[aria-current="true"] { color: var(--ink); border-color: var(--line-ink); }
@media (min-width: 900px) { .cats { margin-inline: 0; padding-inline: 0; } }

.cat { padding-top: clamp(48px, 6vw, 72px); display: grid; gap: 20px; }
.cat-head h3 { font-size: clamp(24px, 2.6vw, 32px); }
.cat-head .jp { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.dishes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.dish { display: grid; grid-template-columns: 76px 1fr auto; gap: 2px 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line-ink); }
.dish img { grid-row: span 3; width: 76px; height: 76px; object-fit: cover; background: var(--washi-2); }
.dish h4 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.dish h4 small { font-family: var(--f-sans); font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.dish .jp { grid-column: 2; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.dish p { grid-column: 2 / -1; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin-top: 6px; }
.dish .price { grid-column: 3; grid-row: 1; font-size: 16px; white-space: nowrap; padding-top: 2px; }
.rec { display: inline-block; margin-left: 8px; font-family: var(--f-sans); font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--shu); vertical-align: 3px; }
.cat-note { font-size: 13.5px; color: var(--ink-3); }
@media (min-width: 900px) {
  .cat { grid-template-columns: 260px 1fr; gap: 48px; }
  .cat-head { position: sticky; top: calc(var(--head-h) + 72px); align-self: start; }
  .dish { grid-template-columns: 96px 1fr auto; gap: 2px 24px; padding: 22px 0; }
  .dish img { width: 96px; height: 96px; }
  .cat-note { grid-column: 2; }
}
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(56px, 7vw, 88px); font-size: 14.5px; color: var(--ink-2); }

/* space */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: clamp(48px, 7vw, 88px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-a { grid-column: 1 / -1; } .g-a img { aspect-ratio: 4 / 3; }
.g-b img, .g-c img { aspect-ratio: 1 / 1; }
.g-d { grid-column: 1 / -1; } .g-d img { aspect-ratio: 2 / 1; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .g-a { grid-column: 1; grid-row: 1 / span 2; } .g-a img { aspect-ratio: auto; }
  .g-b img, .g-c img { aspect-ratio: 4 / 3; }
  .g-d { grid-column: 2 / span 2; } .g-d img { aspect-ratio: auto; }
}
.drinks { display: grid; gap: clamp(32px, 5vw, 80px); margin-top: clamp(72px, 9vw, 120px); }
.drinks-photo { margin: 0; }
.drinks-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.drinks h3 { font-size: clamp(24px, 2.6vw, 32px); }
.drinks .p { margin-top: 14px; color: var(--text-2); max-width: 30em; }
.cork { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cork li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.cork li span:last-child { color: var(--text); white-space: nowrap; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--text-3); }
@media (min-width: 900px) { .drinks { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* visit */
.visit { display: grid; gap: clamp(40px, 6vw, 96px); }
.visit-photo { margin: 0; }
.visit-photo img { width: 100%; }
.addr { margin-top: 26px; font-family: var(--f-serif); font-weight: 300; font-size: clamp(20px, 2vw, 26px); line-height: 1.6; }
.addr-ko { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.addr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.addr-actions .btn { min-height: 46px; padding: 0 20px; font-size: 14px; }
.visit .status { margin-top: 22px; }
.info { display: grid; gap: 36px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.info h3 { font-family: var(--f-sans); font-weight: 500; font-size: 15px; letter-spacing: .02em; color: var(--text); margin-bottom: 12px; }
.info p, .info li { color: var(--text-2); font-size: 15px; }
.info ul { margin: 0; padding-left: 1.1em; }
.info li + li { margin-top: 6px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 7px 0; vertical-align: top; }
.hours th { width: 4.2em; color: var(--text); }
.hours td { color: var(--text-2); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--text); }
.hours tr.is-today td::after { content: "오늘"; margin-left: 10px; font-size: 12px; color: var(--shu); letter-spacing: .04em; }
@media (min-width: 900px) {
  .visit { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .info { grid-template-columns: 1fr 1fr; }
  .info .wide { grid-column: 1 / -1; }
}

/* footer */
.foot { padding: 64px 0 120px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.foot-grid { display: grid; gap: 24px; }
.foot a { color: var(--text-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 900px) { .foot { padding-bottom: 64px; } .foot-grid { grid-template-columns: auto 1fr auto; align-items: center; gap: 56px; } }

/* phone action bar */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(18, 16, 16, .94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.dock.is-on { transform: none; }
.dock .btn { flex: 1; min-height: 48px; padding: 0 16px; }
.dock .btn-ghost { flex: 0 0 auto; }
@media (min-width: 900px) { .dock { display: none; } }

/* one authored moment: the table settles in as the headline rises */
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero-photo img { animation: settle 2.4s var(--ease) both; }
.js .hero-body > * { animation: rise 1.2s var(--ease) both; }
.js .hero-body > :nth-child(2) { animation-delay: .12s; }
.js .hero-body > :nth-child(3) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-photo img, .js .hero-body > * { animation: none; }
  .head, .dock, .btn { transition: none; }
}
