:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --header-bg: rgba(255, 255, 255, 0.86);
  --seg-active: #FFFFFF;
  --pill-bg: rgba(255, 255, 255, 0.8);
  --mark: #FFF3B0;
  color-scheme: light;
  --bg-soft: #F9FAFB;
  --gray-100: #F2F4F6;
  --gray-200: #E5E8EB;
  --gray-300: #D1D6DB;
  --gray-400: #B0B8C1;
  --gray-500: #8B95A1;
  --gray-600: #6B7684;
  --gray-700: #4E5968;
  --gray-900: #191F28;
  --blue: #3182F6;
  --blue-dark: #1B64DA;
  --blue-soft: #E8F3FF;
  --red: #F04452;
  --red-soft: #FFEEEE;
  --radius: 20px;
  --max: 1040px;
  --gutter: 20px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--gray-900);
  font-family: var(--font);
  font-size: 16px; line-height: 1.6; letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 72px 0; }
.bg-soft { background: var(--bg-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Section heading ---------- */
.label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--blue); }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0 0 10px; font-size: 28px; font-weight: 700; line-height: 1.35; letter-spacing: -0.03em; }
.section-head p { margin: 0; font-size: 16px; color: var(--gray-600); }
.section-head--row { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.header-nav { display: flex; gap: 2px; }
.header-nav a {
  padding: 8px 10px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--gray-700);
  transition: background .15s, color .15s;
}
.header-nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.header-nav .hide-sm { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; text-align: center; }
.hero h1 { margin: 0 0 16px; font-size: 34px; font-weight: 700; line-height: 1.3; letter-spacing: -0.04em; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { margin: 0 auto 28px; max-width: 520px; font-size: 17px; color: var(--gray-600); line-height: 1.7; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 480px; margin: 0 auto; }
.quick-links a {
  display: flex; align-items: center; justify-content: center;
  height: 52px; border-radius: 14px;
  background: var(--gray-100); color: var(--gray-700);
  font-size: 15px; font-weight: 600;
  transition: background .15s;
}
.quick-links a:first-child { background: var(--blue); color: #fff; }
.quick-links a:first-child:hover { background: var(--blue-dark); }
.quick-links a:not(:first-child):hover { background: var(--gray-200); }

/* ---------- Beer notice ---------- */
.notice {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  max-width: 480px; margin: 0 auto 28px; padding: 14px 18px;
  border-radius: 16px; background: var(--blue-soft);
  font-size: 15px; color: var(--gray-700);
}
.notice strong {
  padding: 3px 8px; border-radius: 6px;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700;
}
.notice--inline { max-width: none; margin: 0 0 20px; justify-content: flex-start; }

/* ---------- Segmented tabs ---------- */
.segmented {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--gray-100); border-radius: 14px;
  max-width: 100%;
}
.segmented button {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--gray-600);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.segmented button[aria-pressed="true"] { background: var(--seg-active); color: var(--gray-900); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.segmented button:not([aria-pressed="true"]):hover { color: var(--gray-900); }

/* ---------- Chips ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--gray-200); background: var(--surface);
  font-size: 15px; font-weight: 500; color: var(--gray-700);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { background: var(--gray-100); }
.chip[aria-pressed="true"] { background: var(--gray-900); border-color: var(--gray-900); color: var(--bg); }
.chip-sep { flex: 0 0 auto; width: 1px; margin: 8px 2px; background: var(--gray-200); }

/* ---------- Card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.bg-soft .card { background: var(--surface); }
.card:hover { background: var(--gray-100); }
.bg-soft .card:hover { background: var(--surface); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card:active { transform: scale(0.98); }
.visual { position: relative; aspect-ratio: 4 / 3; background: var(--gray-100); overflow: hidden; }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; }
.card-cat { font-size: 13px; font-weight: 500; color: var(--gray-500); }
.badges { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.badge { padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.badge--hot { background: var(--red-soft); color: var(--red); }
.badge--pick { background: var(--blue-soft); color: var(--blue); }
.card-title { margin: 2px 0 0; font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; }
.card-desc {
  margin: 2px 0 0; font-size: 14px; color: var(--gray-600); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-hit { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }

/* ---------- Highlights ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }

/* ---------- Pairing ---------- */
.pair-layout { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
.pair-drink { padding: 28px 24px; border-radius: 24px; background: var(--blue-soft); }
.pair-drink .pair-en { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--blue); letter-spacing: 0.02em; }
.pair-drink h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.pair-drink p { margin: 0; font-size: 16px; color: var(--gray-700); line-height: 1.7; }
.pair-drink .label { margin: 22px 0 10px; font-size: 14px; font-weight: 600; color: var(--gray-600); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  cursor: pointer; padding: 7px 12px; border-radius: 10px;
  border: 0; background: var(--pill-bg);
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  transition: background .15s;
}
.pill:hover { background: var(--surface); color: var(--gray-900); }
.pair-foods { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pair-panel.is-fresh, .results.is-fresh { animation: fade-in .3s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Mini row (pairing / modal) */
.mini {
  width: 100%; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 0; border-radius: 18px;
  background: var(--bg-soft);
  transition: background .15s;
}
.mini:hover { background: var(--gray-100); }
.mini-visual { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; }
.mini-visual img { width: 100%; height: 100%; object-fit: cover; }
.mini > span:not(.mini-visual):not(.arrow) { flex: 1; min-width: 0; }
.mini strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.mini small { display: block; margin-top: 3px; font-size: 14px; color: var(--gray-600); line-height: 1.55; }
.mini .arrow { color: var(--gray-400); font-size: 22px; line-height: 1; }

/* ---------- Menu explorer ---------- */
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.toolbar .segmented { align-self: flex-start; }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--gray-500); pointer-events: none; }
.search input {
  width: 100%; height: 52px;
  padding: 0 46px 0 46px;
  border-radius: 14px; border: 2px solid transparent;
  background: var(--surface); color: var(--gray-900);
  font: inherit; font-size: 16px;
  transition: border-color .15s;
}
.search input::placeholder { color: var(--gray-400); }
.search input:focus { outline: none; border-color: var(--blue); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gray-400); color: #fff; font-size: 14px; line-height: 1;
}
.search-clear[hidden] { display: none; }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 15px; color: var(--gray-600); }
.result-meta strong { color: var(--gray-900); font-weight: 700; }
.link-btn { border: 0; background: none; cursor: pointer; color: var(--blue); font-size: 15px; font-weight: 600; padding: 4px 0; }
.link-btn[hidden] { display: none; }
.results .group { padding: 0; border: 0; }
.group + .group { margin-top: 40px; }
.group-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.group-title small { font-size: 15px; font-weight: 600; color: var(--blue); }
.empty { text-align: center; padding: 56px 16px; border-radius: var(--radius); background: var(--surface); color: var(--gray-600); }
.empty p { margin: 0 0 18px; }
.btn {
  cursor: pointer; border: 0; background: var(--blue); color: #fff;
  height: 48px; padding: 0 22px; border-radius: 14px; font-size: 16px; font-weight: 600;
  transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Detail dialog ---------- */
dialog.detail {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--surface); color: var(--gray-900);
}
dialog.detail::backdrop { background: rgba(0, 0, 0, 0.4); }
dialog.detail[open] { animation: sheet-in .3s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.detail-inner { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.detail-close {
  position: fixed; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 0; background: var(--gray-100); color: var(--gray-700);
  font-size: 22px; line-height: 1;
}
.detail-close:hover { background: var(--gray-200); }
.detail .visual { aspect-ratio: 16 / 10; flex: 0 0 auto; }
.detail-body { padding: 24px 24px 40px; }
.no-media .detail-body { padding-top: 64px; }
.detail-cat { font-size: 15px; font-weight: 600; color: var(--blue); }
.detail-body h2 { margin: 6px 0 14px; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; }
.detail-body .lead { margin: 0 0 24px; font-size: 17px; color: var(--gray-700); line-height: 1.75; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.spec div { padding: 16px; border-radius: 16px; background: var(--bg-soft); }
.spec dt { font-size: 14px; color: var(--gray-500); }
.spec dd { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
.detail-body h3 { margin: 28px 0 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 6px 12px; border-radius: 10px; background: var(--gray-100); font-size: 14px; font-weight: 500; color: var(--gray-700); }
.pair-list { display: grid; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 56px; background: var(--bg-soft); border-top: 1px solid var(--gray-100); font-size: 14px; color: var(--gray-600); }
.site-footer .footer-logo { font-size: 18px; font-weight: 800; color: var(--gray-900); margin-bottom: 14px; }
.site-footer p { margin: 2px 0; }
.note { margin-top: 18px !important; font-size: 13px; color: var(--gray-500); line-height: 1.7; }
.site-footer .notice-legal { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--gray-700); }

/* =========================================================
   TABLET (≥ 768px)
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 64px; }
  section { padding: 104px 0; }
  .header-nav { gap: 6px; }
  .header-nav .hide-sm { display: inline-block; }
  .hero { padding: 104px 0 88px; }
  .hero h1 { font-size: 52px; }
  .hero .lead { font-size: 20px; max-width: 600px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 38px; }
  .section-head p { font-size: 18px; }
  .section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }

  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .rail { grid-auto-columns: 34%; }
  .card-body { padding: 24px 22px 26px; }
  .card-title { font-size: 18px; }
  .card-desc { font-size: 15px; }

  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .search { flex: 0 1 380px; }

  .pair-layout { grid-template-columns: 5fr 7fr; gap: 16px; align-items: start; }
  .pair-drink { position: sticky; top: calc(var(--header-h) + 20px); padding: 36px 32px; }

  dialog.detail {
    width: min(880px, calc(100% - 64px)); height: auto; max-height: min(88vh, 760px);
    margin: auto; border-radius: 28px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.16);
  }
  dialog.detail:has(.no-media) { width: min(600px, calc(100% - 64px)); }
  .detail-inner { flex-direction: row; max-height: min(88vh, 760px); overflow: hidden; }
  .detail .visual { aspect-ratio: auto; flex: 0 0 42%; }
  .detail-body { flex: 1; overflow-y: auto; padding: 44px 40px; }
  .no-media .detail-body { padding-top: 44px; }
  .detail-close { position: absolute; top: 16px; right: 16px; }
}

/* =========================================================
   DESKTOP (≥ 1080px)
   ========================================================= */
@media (min-width: 1080px) {
  .hero h1 { font-size: 60px; }
  .section-head h2 { font-size: 42px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 14px; }
  .pair-foods { grid-template-columns: 1fr 1fr; }
}

/* ---------- 다크 모드 (기본값) ---------- */
:root[data-theme="dark"] {
  --bg: #17171C;
  --bg-soft: #1F1F25;
  --surface: #26262D;
  --gray-100: #2E2E36;
  --gray-200: #3B3B45;
  --gray-300: #4D4D58;
  --gray-400: #6E6E7A;
  --gray-500: #90909C;
  --gray-600: #ABABB5;
  --gray-700: #C7C7CF;
  --gray-900: #F2F2F5;
  --blue: #4593FC;
  --blue-dark: #3182F6;
  --blue-soft: rgba(69, 147, 252, 0.16);
  --red: #FF6B76;
  --red-soft: rgba(240, 68, 82, 0.18);
  --header-bg: rgba(23, 23, 28, 0.86);
  --seg-active: #3B3B45;
  --pill-bg: rgba(255, 255, 255, 0.06);
  --mark: rgba(255, 214, 0, 0.32);
  color-scheme: dark;
}

/* 테마 전환 버튼 */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; margin-left: 4px; border-radius: 10px;
  border: 0; background: transparent; color: var(--gray-700); cursor: pointer;
  transition: background .15s;
}
.theme-toggle:hover { background: var(--gray-100); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 언어 메뉴 ---------- */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  height: 38px; padding: 0 8px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--gray-700);
  transition: background .15s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--gray-100); }
.lang summary svg { width: 18px; height: 18px; }
.lang summary span { display: none; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 150px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--gray-200); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.lang ul a {
  display: block; padding: 10px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--gray-700);
}
.lang ul a:hover { background: var(--gray-100); color: var(--gray-900); }
.lang ul a[aria-current] { color: var(--blue); font-weight: 700; }
@media (min-width: 768px) {
  .lang summary span { display: inline; }
}

/* 휴대폰: 헤더 메뉴가 한 줄에 들어가도록 간격 줄이기 (영어 등 긴 언어 대비) */
@media (max-width: 767px) {
  .logo { font-size: 18px; }
  .header-nav { gap: 0; }
  .header-nav > a { padding: 8px 6px; font-size: 14px; }
  .lang summary { padding: 0 6px; }
  .theme-toggle { width: 34px; margin-left: 0; }
}

/* =========================================================
   타이포그래픽 요소 (모든 언어 공통, 마크업 변경 없이 CSS로만)
   ========================================================= */
/* 히어로 뒤에 아주 큰 SIGNET 외곽선 글자 */
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero::before {
  content: "SIGNET";
  content: "SIGNET" / "";
  position: absolute; left: 50%; top: 50%; z-index: 0;
  transform: translate(-50%, -50%);
  font-size: clamp(120px, 36vw, 440px); font-weight: 900;
  letter-spacing: -0.06em; line-height: 1; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gray-200);
  opacity: 0.55;
  pointer-events: none; user-select: none;
}

/* 핵심 숫자를 크게 (24시간 · 투명 정찰제 · 룸 46개) */
.fact strong {
  font-size: 32px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--gray-900) 30%, var(--gray-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 푸터 아래쪽에 잘려 보이는 큰 워드마크 */
.site-footer { position: relative; overflow: hidden; }
.site-footer::after {
  content: "SIGNET";
  content: "SIGNET" / "";
  display: block; margin: 40px 0 -0.22em; text-align: center;
  font-size: clamp(80px, 24vw, 300px); font-weight: 900;
  letter-spacing: -0.06em; line-height: 0.9; white-space: nowrap;
  background: linear-gradient(180deg, var(--gray-200), transparent 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none; user-select: none;
}

@media (min-width: 768px) {
  .fact strong { font-size: 40px; }
  .hero::before { -webkit-text-stroke-width: 2px; }
}

/* 워드마크가 푸터 맨 아래에 붙도록 */
.site-footer { padding-bottom: 0; }
