/* Terry Kitchen — one stylesheet, mobile first. Venue colour comes from a
   .theme-* class that sets --accent (buttons, eyebrows), --accent-2 (rules)
   and --tint (section bands). */

:root {
  --bg: #F6F1EA;
  --paper: #FBF8F3;
  --band: #EDE5D9;
  --ink: #1C1A18;
  --muted: #5C554D;
  --line: #DDD3C5;
  --accent: #1C1A18;
  --accent-2: #B7A78F;
  --tint: #EFE8DE;
  --on-accent: #FBF8F3;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --header: 64px;
}
html[lang="th"] { --serif: "Cormorant Garamond", "Noto Serif Thai", serif; --sans: "Manrope", "Noto Sans Thai", sans-serif; }
html[lang="ko"] { --serif: "Cormorant Garamond", "Noto Serif KR", serif; --sans: "Manrope", "Noto Sans KR", sans-serif; }
html[lang="zh-Hans"] { --serif: "Cormorant Garamond", "Noto Serif SC", serif; --sans: "Manrope", "Noto Sans SC", sans-serif; }

.theme-terrykim { --accent: #6B1E2A; --accent-2: #A8834A; --tint: #EFE2DC; }
.theme-cote     { --accent: #1F2D4A; --accent-2: #CDBF9F; --tint: #ECE6D7; }
.theme-hanok    { --accent: #A3412B; --accent-2: #8A5D3B; --tint: #F1E3D7; }
.theme-seoul    { --accent: #56703F; --accent-2: #BFAE8D; --tint: #E9E7D8; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header) + 16px); }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.icon { width: 18px; height: 18px; flex: none; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Type */
.display {
  font: 500 clamp(2.5rem, 5.4vw + 1rem, 5.25rem)/1.02 var(--serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
html[lang="th"] .display, html[lang="ko"] .display, html[lang="zh-Hans"] .display { line-height: 1.22; letter-spacing: 0; font-size: clamp(2.1rem, 4.2vw + 1rem, 4.2rem); }
.eyebrow {
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title { font: 500 clamp(2rem, 2.6vw + 1rem, 3.1rem)/1.1 var(--serif); letter-spacing: -0.01em; }
.label { font: 600 12px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.meta { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.note { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid var(--accent); border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: color-mix(in srgb, var(--accent) 84%, #000); border-color: color-mix(in srgb, var(--accent) 84%, #000); }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { background: var(--accent); color: var(--on-accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .btn { --accent: #1C1A18; min-height: 40px; padding: 0 16px; font-size: 14px; }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header); }
.wordmark { font: 600 25px/1 var(--serif); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; }
.header-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn .long { display: none; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lang { display: none; position: relative; }
.lang summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 14px; font-weight: 600; border-radius: 999px; }
.lang summary:hover { background: var(--band); }
.lang-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 120px;
  display: grid; padding: 6px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(28, 26, 24, .10);
}
.lang-panel a { padding: 9px 12px; border-radius: 6px; font-size: 15px; text-decoration: none; }
.lang-panel a:hover { background: var(--band); }
.lang-panel a[aria-current] { font-weight: 600; }

.mnav summary { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; }
.mnav summary .icon { width: 22px; height: 22px; }
.mnav-panel {
  position: absolute; left: 0; right: 0; top: var(--header);
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  max-height: calc(100dvh - var(--header)); overflow: auto;
}
.mnav-panel nav { display: grid; }
.mnav-panel nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 28px/1.1 var(--serif); text-decoration: none; }
.mnav-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mnav-langs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; text-decoration: none; }
.mnav-langs a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Home hero */
.hero { padding: 0 0 72px; }
.hero-grid { display: grid; gap: 28px; }
.hero-media { order: -1; margin: 0 calc(-1 * var(--gutter)); }
.hero-copy { display: grid; gap: 20px; align-content: center; }
.hero-copy .display { max-width: 14ch; }
html[lang="th"] .hero-copy .display, html[lang="ko"] .hero-copy .display, html[lang="zh-Hans"] .hero-copy .display { max-width: 16em; }
.fade { position: relative; height: 58svh; min-height: 320px; overflow: hidden; background: var(--band); }
.fade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fade img:not(.fade-base) { opacity: 0; animation: xfade 24s infinite; }
.fade img:nth-child(3) { animation-delay: 6s; }
.fade img:nth-child(4) { animation-delay: 12s; }
.fade img:nth-child(5) { animation-delay: 18s; }
@keyframes xfade {
  0% { opacity: 0; transform: scale(1.05); }
  4% { opacity: 1; }
  25% { opacity: 1; }
  29% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.fade-caps { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px var(--gutter) 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.fade-caps span { opacity: .4; animation: cap 24s infinite; }
.fade-caps span:nth-child(2) { animation-delay: 6s; }
.fade-caps span:nth-child(3) { animation-delay: 12s; }
.fade-caps span:nth-child(4) { animation-delay: 18s; }
@keyframes cap { 0% { opacity: .4; } 3% { opacity: 1; } 25% { opacity: 1; } 28% { opacity: .4; } 100% { opacity: .4; } }

/* Venue cards */
.venues { padding: 24px 0 96px; }
.venues .section-title { margin-bottom: 36px; }
.venue-grid { display: grid; gap: 56px; }
.vcard-media { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--band); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.vcard:hover .vcard-media img { transform: scale(1.03); }
.vcard-body { display: grid; gap: 10px; padding-top: 20px; border-top: 3px solid var(--accent-2); margin-top: 0; }
.vcard-name { font: 500 clamp(2rem, 1.6vw + 1.4rem, 2.6rem)/1.05 var(--serif); }
.vcard-name a { text-decoration: none; }
.vcard-name a:hover { color: var(--accent); }
.vcard-tag { color: var(--muted); max-width: 40ch; }
.vcard .actions { margin-top: 8px; }

/* Venue page */
.vhero { background: var(--tint); padding: 0 0 56px; }
.vhero-grid { display: grid; gap: 28px; }
.vhero-media { position: relative; order: -1; margin: 0 calc(-1 * var(--gutter)); height: 52svh; min-height: 300px; overflow: hidden; background: var(--band); }
.vhero-media img, .vhero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.vhero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.vhero-media video.is-playing { opacity: 1; }
.vhero-copy { display: grid; gap: 18px; align-content: center; }
.vname { color: var(--accent); }
.lede { font: 500 clamp(1.35rem, 1vw + 1.1rem, 1.75rem)/1.3 var(--serif); max-width: 30ch; }
.facts { display: grid; gap: 14px; padding: 18px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.facts dt { font: 600 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 2px; }
.facts a { text-decoration-color: var(--accent-2); text-underline-offset: 3px; }

.story { padding: 88px 0; }
.story .label { margin-bottom: 20px; }
.story-text { font: 500 clamp(1.6rem, 1.6vw + 1.1rem, 2.4rem)/1.32 var(--serif); text-wrap: pretty; }
html[lang="th"] .story-text, html[lang="ko"] .story-text, html[lang="zh-Hans"] .story-text { line-height: 1.6; font-size: clamp(1.3rem, 1vw + 1rem, 1.8rem); }

.dishes { padding: 0 0 88px; }
.dishes .section-title, .gallery .section-title, .more .section-title { margin-bottom: 28px; }
.dish-grid { display: grid; gap: 40px; }
.dish-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--band); }
.dish-grid h3 { margin-top: 18px; font: 500 1.75rem/1.15 var(--serif); }
.dish-grid p { margin-top: 6px; color: var(--muted); max-width: 36ch; }

.gallery { padding: 0 0 88px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; background: var(--band); }

.visit { background: var(--tint); padding: 72px 0; }
.visit-grid { display: grid; gap: 36px; }
.visit-info { display: grid; gap: 22px; align-content: start; }
.visit-map { aspect-ratio: 4 / 3; background: var(--band); }
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.more { padding: 80px 0 96px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.more-grid a { display: grid; gap: 8px; text-decoration: none; }
.more-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--band); }
.more-grid .eyebrow { margin-top: 4px; font-size: 10.5px; }
.more-name { font: 500 1.2rem/1.15 var(--serif); }
.more-grid a:hover .more-name { color: var(--accent); }

/* Menu page */
.menu-head { background: var(--tint); padding: 48px 0 40px; }
.menu-head .wrap { display: grid; gap: 16px; }
.menu-head .eyebrow a { text-decoration: none; }
.menu-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.menu-toc a { padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--accent); }
.menu-toc a:hover { background: var(--accent); color: var(--on-accent); }
.menu-body { padding-top: 24px; padding-bottom: 96px; }
.menu-section { padding-top: 40px; }
.menu-section h2 { font: 500 clamp(1.8rem, 1.4vw + 1.3rem, 2.4rem)/1.1 var(--serif); color: var(--accent); }
.menu-note { margin-top: 4px; font-size: 15px; color: var(--muted); }
.menu-list { margin-top: 12px; }
.menu-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mi-name { display: grid; gap: 2px; font-weight: 500; }
.mi-name small { font-size: 14px; font-weight: 400; color: var(--muted); }
.mi-local { font-size: 14px; font-weight: 400; color: var(--muted); }
.mi-price { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mi-price small { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu-boards { display: grid; gap: 16px; margin-top: 16px; }
.menu-boards img { width: 100%; border-radius: 4px; }

/* Legal */
.legal { padding: 56px var(--gutter) 96px; }
.legal .display { font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem); margin-bottom: 32px; }
.legal h2 { margin: 36px 0 12px; font: 500 1.6rem/1.2 var(--serif); }
.legal p, .legal ul { margin-bottom: 14px; color: #3D3833; }
.legal ul { list-style: disc; padding-left: 22px; }

/* Footer */
.site-footer { background: var(--band); padding: 64px 0 36px; font-size: 15px; }
.footer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-top p { color: var(--muted); }
.footer-venues { display: grid; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.footer-venue { display: grid; align-content: start; gap: 4px; padding-left: 14px; border-left: 3px solid var(--accent-2); }
.footer-venue h3 { font: 500 1.35rem/1.2 var(--serif); }
.footer-venue h3 a { text-decoration: none; }
.footer-venue address { font-style: normal; color: var(--muted); }
.footer-legal { margin-top: 6px; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.footer-venue > a { color: var(--muted); text-decoration: none; }
.footer-venue > a:hover, .footer-bottom a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: grid; gap: 12px; padding-top: 24px; color: var(--muted); }
.footer-bottom a { text-decoration: none; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Booking chooser */
.book {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 28px 24px 24px; border: 0; border-radius: 14px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 64px rgba(28, 26, 24, .22);
}
.book::backdrop { background: rgba(28, 26, 24, .5); }
.book h2 { font: 500 2rem/1.1 var(--serif); padding-right: 40px; }
.book-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.book-close:hover { background: var(--band); }
.book-venues { border: 0; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.book-venues legend { padding: 0; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.book-venues label { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.book-venues label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.book-venues label:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.book-venues input { position: absolute; opacity: 0; pointer-events: none; }
.book-venues label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.book-channels { margin-top: 22px; }
.book-online {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; margin-bottom: 18px;
  border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.book-online:hover { background: color-mix(in srgb, var(--accent) 84%, #000); }
.book-online .icon:last-child { margin-left: auto; }
.book-how { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.book-channels ul { display: grid; gap: 8px; }
.book-channels ul a {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px;
  border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.book-channels ul a:hover { background: color-mix(in srgb, var(--accent) 84%, #000); }
.book-channels ul a .icon:last-child { margin-left: auto; }
.book-call { margin-top: 14px; font-size: 15px; color: var(--muted); }
.book-call a { color: var(--ink); font-weight: 600; }

/* ≥ 720px */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .btn .long { display: inline; }
  .btn .short { display: none; }
  .lang { display: block; }
  .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 40px; }
  .venue-grid .vcard:nth-child(even) { margin-top: 96px; }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gallery-grid li:nth-child(3n+2) { transform: translateY(40px); }
  .gallery { padding-bottom: 128px; }
  .more-grid { gap: 24px; }
  .more-grid .eyebrow { font-size: 12px; }
  .more-name { font-size: 1.6rem; }
  .footer-venues { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; }
}

/* ≥ 1024px */
@media (min-width: 1024px) {
  :root { --header: 72px; }
  .header-nav { display: flex; gap: 28px; margin-left: 40px; }
  .header-nav a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
  .header-nav a:hover, .header-nav a[aria-current] { border-color: currentColor; }
  .mnav { display: none; }
  .hero { padding: 48px 0 112px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  .hero-media { order: 0; margin: 0; }
  .fade { height: min(80vh, 760px); }
  .fade-caps { padding: 14px 0 0; }
  .vhero { padding: 56px 0 72px; }
  .vhero-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .vhero-media { order: 0; margin: 0; height: min(78vh, 760px); }
  .story { padding: 128px 0; }
  .visit { padding: 104px 0; }
  .visit-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .visit-map { aspect-ratio: auto; min-height: 460px; }
  .footer-venues { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade img:not(.fade-base) { animation: none; }
  .fade-caps span { animation: none; opacity: 1; }
  .vcard-media img { transition: none; }
}
