:root {
  --paper: #efe9db;
  --paper-card: #f8f4ea;
  --ink: #243a33;
  --ink-soft: rgb(36 58 51 / 72%);
  --ink-muted: rgb(36 58 51 / 56%);
  --forest: #23362e;
  --forest-hover: #1b2b24;
  --cream: #fff9e9;
  --butter: #fff2d8;
  --butter-hover: #fff8ea;
  --brass: #7f5d3b;
  --amber-dot: #e2b46b;
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
.site-header {
  min-height: var(--header-h);
  padding: 0.75rem clamp(1.25rem, 4.5vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--paper);
  border-bottom: 1px solid rgb(36 58 51 / 9%);
}

.brand {
  font-family: "Baskervville", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.75rem);
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-weight: 500;
  padding: 0.45rem 0.2rem;
  min-height: 2.5rem;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: color 150ms ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  color: var(--ink);
  font-weight: 700;
}

.lang-sep {
  color: rgb(36 58 51 / 34%);
  font-size: 0.85em;
  user-select: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.25rem 0.15rem;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgb(36 58 51 / 38%);
  text-underline-offset: 0.34em;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.nav-link:hover {
  color: #162620;
  text-decoration-color: currentColor;
}

/* Hero — PC wide composition (>= 960px) */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(32rem, calc(100svh - var(--header-h)), 60vw);
  max-height: 60vw;
  overflow: hidden;
  color: var(--cream);
  background: var(--forest);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 35%;
  z-index: -2;
  user-select: none;
  -webkit-user-drag: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgb(15 29 23 / 82%) 0%,
    rgb(15 29 23 / 54%) 26%,
    rgb(15 29 23 / 16%) 44%,
    transparent 58%
  );
}

.invite {
  width: 100%;
  max-width: min(36rem, 43vw);
  padding: clamp(2.25rem, 5vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem)
    clamp(2.25rem, 5vw, 5.5rem) clamp(2rem, 5.5vw, 5.75rem);
}

.greeting {
  margin: 0 0 clamp(1.35rem, 2.3vw, 1.9rem);
  font-family: "Gowun Batang", "AppleMyungjo", "Batang", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.15rem, 3.45vw, 3.85rem);
  line-height: 1.34;
  letter-spacing: -0.055em;
  word-break: keep-all;
  text-shadow: 0 2px 24px rgb(10 22 17 / 38%);
}

html[lang="en"] .greeting {
  font-family: "Baskervville", Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 3.1vw, 3.55rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
  word-break: normal;
}

.greeting span {
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.88rem 1.55rem;
  border-radius: 999px;
  background: var(--butter);
  color: #23352f;
  font-size: clamp(0.96rem, 1.06vw, 1.06rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgb(10 20 16 / 28%);
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.enter:hover {
  background: var(--butter-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgb(10 20 16 / 34%);
}

.enter:active {
  transform: translateY(0);
}

.enter:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 4px;
  border-radius: 999px;
}

.yt-icon {
  flex-shrink: 0;
  color: #b32822;
}

.enter-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.enter:hover .enter-arrow {
  transform: translate(2px, -2px);
}

.status-row {
  margin-top: 0.85rem;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.44rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgb(255 242 216 / 28%);
  background: rgb(15 29 23 / 44%);
  color: rgb(255 249 233 / 88%);
  font-size: clamp(0.82rem, 0.92vw, 0.9rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: default;
  user-select: none;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--amber-dot);
  flex-shrink: 0;
}

.lang-note {
  margin: 0.75rem 0 0;
  max-width: 24rem;
  font-size: clamp(0.82rem, 0.92vw, 0.9rem);
  line-height: 1.5;
  color: rgb(255 249 233 / 78%);
  letter-spacing: -0.005em;
  text-shadow: 0 1px 12px rgb(10 22 17 / 42%);
}

.lang-note[hidden],
.menu-footnote[hidden] {
  display: none;
}

/* Café Menu Board (차림표) */
.menu-section {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem)
    clamp(2.5rem, 6vw, 4.5rem);
  background: var(--paper);
}

.menu-board {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.6rem) clamp(1.5rem, 5vw, 3.5rem);
  background: var(--paper-card);
  border: 1px solid rgb(36 58 51 / 18%);
  border-radius: 2px;
  box-shadow: 0 18px 46px rgb(24 40 34 / 7%);
}

.menu-board::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgb(36 58 51 / 11%);
  pointer-events: none;
}

.menu-header {
  text-align: center;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.5rem);
}

.menu-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brass);
}

.menu-title {
  margin: 0 0 0.7rem;
  font-family: "Gowun Batang", "AppleMyungjo", "Batang", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
  color: var(--ink);
}

html[lang="en"] .menu-title {
  font-family: "Baskervville", Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.menu-subtitle {
  margin: 0 auto;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  word-break: keep-all;
}

.menu-group {
  margin: 0;
}

.menu-group-title {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.menu-item {
  margin: 0;
}

.menu-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.65rem;
}

.menu-name {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  word-break: keep-all;
}

.menu-badge {
  display: inline-block;
  padding: 0.1rem 0.42rem;
  border: 1px solid rgb(127 93 59 / 34%);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brass);
  vertical-align: middle;
}

.menu-dots {
  min-width: 1.2rem;
  border-bottom: 1px dotted rgb(36 58 51 / 30%);
  transform: translateY(-0.22rem);
}

.menu-price {
  font-family: "Gowun Batang", "Baskervville", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

html[lang="en"] .menu-price {
  font-family: "Baskervville", Georgia, serif;
}

.menu-price.is-free {
  color: var(--brass);
}

.menu-desc {
  margin: 0.28rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-muted);
  word-break: keep-all;
}

.menu-rule {
  border: 0;
  border-top: 1px solid rgb(36 58 51 / 15%);
  margin: 1.85rem 0;
}

.menu-footnotes {
  margin-top: 1.85rem;
  padding-top: 1.35rem;
  border-top: 1px dashed rgb(36 58 51 / 18%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.menu-footnote {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.58;
  color: var(--ink-muted);
  word-break: keep-all;
}

.menu-footnote.is-emphasis {
  color: var(--ink);
  font-weight: 600;
}

.menu-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.5rem;
}

.menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.82rem 1.55rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--butter);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.menu-cta.is-disabled {
  background: rgb(36 58 51 / 10%);
  color: var(--ink-soft);
  border: 1px solid rgb(36 58 51 / 18%);
  font-weight: 600;
  cursor: default;
  user-select: none;
}

.menu-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgb(36 58 51 / 38%);
  text-underline-offset: 0.34em;
  transition: text-decoration-color 160ms ease;
}

.menu-secondary:hover {
  text-decoration-color: currentColor;
}

.site-footer {
  padding: 0 1.25rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: "Baskervville", Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-sep {
  font-style: normal;
  opacity: 0.5;
}

.footer-link {
  font-family: "Instrument Sans", sans-serif;
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(36 58 51 / 30%);
  text-underline-offset: 0.28em;
}

.footer-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* Intermediate & Tablet stacked layout (<= 959px) */
@media (max-width: 959px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--header-h));
    max-height: none;
    overflow: visible;
  }

  .hero-photo {
    position: static;
    display: block;
    width: 100%;
    height: clamp(22rem, 54svh, 32rem);
    object-fit: cover;
    object-position: 72% 35%;
    flex: 0 0 auto;
  }

  .hero::before {
    display: none;
  }

  .invite {
    flex: 1 0 auto;
    max-width: none;
    padding: clamp(1.85rem, 4.5vw, 2.75rem) clamp(1.5rem, 5vw, 3rem)
      clamp(2.2rem, 5vw, 3.25rem);
    background: var(--forest);
  }

  .greeting,
  html[lang="en"] .greeting {
    font-size: clamp(2.1rem, 5.2vw, 2.9rem);
    margin-bottom: 1.25rem;
    text-shadow: none;
  }

  .enter {
    font-size: 0.98rem;
  }

  .lang-note {
    text-shadow: none;
  }
}

/* Mobile framing (<= 600px, e.g. 390px) */
@media (max-width: 600px) {
  :root {
    --header-h: 3.75rem;
  }

  .site-header {
    padding: 0.6rem 1.1rem;
    gap: 0.5rem;
  }

  .brand {
    font-size: 1.48rem;
  }

  .header-actions {
    gap: 0.7rem;
  }

  .lang-switch {
    font-size: 0.82rem;
    gap: 0.16rem;
  }

  .lang-btn {
    padding: 0.45rem 0.15rem;
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .hero-photo {
    height: clamp(19rem, 51svh, 28rem);
    object-position: 78% 35%;
  }

  .invite {
    padding: 1.45rem 1.35rem 1.75rem;
  }

  .greeting {
    font-size: clamp(2rem, 8.4vw, 2.4rem);
    line-height: 1.3;
    margin-bottom: 1.05rem;
  }

  html[lang="en"] .greeting {
    font-size: clamp(1.9rem, 7.5vw, 2.3rem);
    line-height: 1.22;
    margin-bottom: 1.05rem;
  }

  .enter {
    padding: 0.85rem 1.38rem;
    min-height: 3rem;
  }

  .status-row {
    margin-top: 0.72rem;
  }

  .coming-soon-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.82rem;
  }

  .lang-note {
    margin-top: 0.65rem;
    font-size: 0.82rem;
  }

  .menu-section {
    padding: 2.25rem 0.9rem 2rem;
  }

  .menu-board {
    padding: 2rem 1.3rem 2.1rem;
  }

  .menu-board::before {
    inset: 0.5rem;
  }

  .menu-name {
    font-size: 0.95rem;
  }

  .menu-price {
    font-size: 1rem;
  }

  .menu-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .menu-cta,
  .menu-secondary {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lang-btn,
  .nav-link,
  .enter,
  .enter-arrow,
  .menu-secondary {
    transition: none;
  }

  .enter:hover,
  .enter:hover .enter-arrow {
    transform: none;
  }
}
