/* ---------- Tokens ---------- */
:root {
  --beige: #F5EFE6;
  --brown: #6B4F3A;
  --brown-soft: #8a6b53;
  --cream: #FAF7F2;
  --espresso: #3D2B1F;
  --mustard: #D4A24C;
  --mustard-soft: #e0b56a;
  --line: rgba(61, 43, 31, 0.10);
  --line-strong: rgba(61, 43, 31, 0.18);
  --shadow-sm: 0 1px 2px rgba(61,43,31,.05), 0 1px 3px rgba(61,43,31,.05);
  --shadow-md: 0 4px 14px rgba(61,43,31,.06), 0 2px 6px rgba(61,43,31,.04);
  --shadow-lg: 0 20px 50px rgba(61,43,31,.10), 0 8px 20px rgba(61,43,31,.05);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 247, 242, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--espresso);
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--brown);
}
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--espresso);
}

.nav-desktop {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-desktop a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--espresso);
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-desktop a:hover { color: var(--brown); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.nav-mobile a {
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(212, 162, 76, 0.18), transparent 60%),
    radial-gradient(50% 40% at 10% 80%, rgba(107, 79, 58, 0.18), transparent 60%),
    linear-gradient(180deg, var(--beige) 0%, #efe6d8 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(61,43,31,.06) 1px, transparent 1.5px),
    radial-gradient(circle at 70% 70%, rgba(61,43,31,.04) 1px, transparent 1.5px);
  background-size: 36px 36px, 28px 28px;
  opacity: .6;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--brown);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin-bottom: 28px;
}
.hero-title .accent {
  position: relative;
  color: var(--brown);
  font-style: italic;
  font-weight: 400;
}
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 8px;
  background: rgba(212, 162, 76, 0.4);
  z-index: -1;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--brown);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--brown);
}
.meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-right: 6px;
}
.hero-meta .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brown-soft);
  opacity: .5;
}
.hero-scroll {
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--brown);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--brown);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -60%;
  width: 100%;
  height: 60%;
  background: var(--cream);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -60%; }
  100% { top: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brown);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--espresso);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(61,43,31,.04);
  border-color: var(--espresso);
}
.btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
  align-self: flex-start;
  margin-top: 8px;
}
.btn-outline:hover {
  background: var(--brown);
  color: var(--cream);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--mustard);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--espresso);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 15px;
  color: var(--brown);
  line-height: 1.8;
}

/* ---------- Menu ---------- */
.menu-section { background: var(--cream); }

.tabs {
  position: relative;
  display: inline-flex;
  margin: 0 auto 48px;
  padding: 6px;
  background: var(--beige);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}
.tab {
  position: relative;
  z-index: 1;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  transition: color .25s ease;
  white-space: nowrap;
}
.tab.is-active { color: var(--cream); }
.tab-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  background: var(--brown);
  border-radius: 999px;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), width .35s cubic-bezier(.4, 0, .2, 1);
  z-index: 0;
}

.tab-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.tab-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 56px;
  max-width: 880px;
  margin: 0 auto;
}
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  padding: 20px 0 24px;
  border-bottom: 1px dashed var(--line-strong);
  align-items: baseline;
}
.menu-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  grid-column: 1 / -1;
}
.menu-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--espresso);
}
.menu-tag {
  display: inline-block;
  margin-left: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mustard);
  padding: 3px 8px;
  border: 1px solid var(--mustard);
  border-radius: 999px;
  vertical-align: middle;
}
.menu-price {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--brown);
  white-space: nowrap;
}
.menu-desc {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--brown);
  line-height: 1.7;
}

/* ---------- Location ---------- */
.location-section { background: var(--beige); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.location-text { display: flex; flex-direction: column; }
.location-text .section-eyebrow { text-align: left; }
.location-text .section-title,
.location-text .section-desc { text-align: left; max-width: 100%; }
.location-text .section-title { margin-bottom: 14px; }
.location-text .section-desc { margin-bottom: 32px; }

.location-info {
  margin: 0 0 8px;
}
.location-info > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.location-info > div:last-of-type {
  border-bottom: 1px solid var(--line);
}
.location-info dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mustard);
  text-transform: uppercase;
  padding-top: 2px;
}
.location-info dd {
  margin: 0;
  color: var(--espresso);
}

.map-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #efe6d8 0%, #f5efe6 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,79,58,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,79,58,.10) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
}
.map-grid::before {
  content: "";
  position: absolute;
  top: 30%;
  left: -10%;
  width: 140%;
  height: 2px;
  background: rgba(107,79,58,.18);
  transform: rotate(-8deg);
}
.map-grid::after {
  content: "";
  position: absolute;
  top: 65%;
  left: -10%;
  width: 140%;
  height: 2px;
  background: rgba(107,79,58,.18);
  transform: rotate(6deg);
}
.map-pin {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
}
.pin-dot {
  position: absolute;
  inset: 9px;
  background: var(--mustard);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--cream), 0 4px 10px rgba(212,162,76,.4);
}
.pin-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--mustard);
  border-radius: 50%;
  opacity: 0;
  animation: pinPulse 2.2s ease-out infinite;
}
@keyframes pinPulse {
  0% { transform: scale(.6); opacity: .8; }
  100% { transform: scale(2.4); opacity: 0; }
}
.map-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.map-label-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--espresso);
}
.map-label-sub {
  font-size: 12px;
  color: var(--brown);
}

/* ---------- Instagram ---------- */
.insta-section { background: var(--cream); }
.insta-handle {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  transition: color .2s ease, transform .2s ease;
}
.insta-handle:hover { color: var(--mustard); transform: translateX(2px); }

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.insta-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s ease;
}
.insta-item:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.insta-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: rgba(250, 247, 242, 0.85);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 16px;
  line-height: 1.4;
  transition: transform .5s ease;
}
.insta-item:hover .insta-thumb { transform: scale(1.06); }
.insta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(61,43,31,.55) 0%, rgba(61,43,31,0) 60%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 500;
}
.insta-item:hover .insta-overlay { opacity: 1; }

/* ---------- Hours ---------- */
.hours-section { background: var(--beige); }
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.hours-text .section-eyebrow,
.hours-text .section-title,
.hours-text .section-desc { text-align: left; }
.hours-text .section-head { text-align: left; margin: 0; }
.closed-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 18px;
  background: var(--cream);
  border-radius: 999px;
  font-size: 14px;
  color: var(--brown);
  border: 1px solid var(--line);
}
.closed-note strong { color: var(--espresso); font-weight: 600; }
.closed-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mustard);
}

.hours-table {
  width: 100%;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table th,
.hours-table td {
  padding: 18px 28px;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.hours-table th {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--espresso);
  width: 40%;
}
.hours-table td {
  color: var(--brown);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hours-table tr.is-closed th { color: var(--brown-soft); }
.hours-table tr.is-closed td {
  color: var(--mustard);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso);
  color: rgba(250, 247, 242, 0.78);
  padding: 80px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer-brand .brand-mark { color: var(--mustard); }
.footer-brand .brand-name { color: var(--cream); }
.footer-tag {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 15px;
  color: rgba(250, 247, 242, 0.7);
  max-width: 360px;
  line-height: 1.7;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
}
.footer-cols h3 {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 14px;
}
.footer-cols p, .footer-cols a {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(250, 247, 242, 0.75);
}
.footer-cols a:hover { color: var(--mustard-soft); }
.footer-copy {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(250, 247, 242, 0.45);
  padding-top: 24px;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--espresso);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.4,0,.2,1), transform .9s cubic-bezier(.4,0,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Overflow safety ---------- */
.overflow-x-safe { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .location-grid,
  .hours-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-scroll { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .menu-list { grid-template-columns: 1fr; gap: 4px; max-width: 640px; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding: 64px 0 72px; }
  .hero-cta { gap: 10px; }
  .btn { padding: 12px 22px; font-size: 13.5px; }
  .section-head { margin-bottom: 40px; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 56px 0 32px; }
  .hours-table th, .hours-table td { padding: 14px 18px; font-size: 14px; }
  .container { padding: 0 20px; }
}

@media (max-width: 420px) {
  .tab { padding: 11px 22px; font-size: 13px; }
  .map-label { left: 14px; bottom: 14px; padding: 10px 14px; }
  .map-label-title { font-size: 13px; }
  .map-label-sub { font-size: 11px; }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero-meta { font-size: 13px; }
  .location-info > div { grid-template-columns: 64px 1fr; gap: 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
