:root {
  --ink: #251b18;
  --muted: #756863;
  --cream: #fff8ed;
  --paper: #fffdf9;
  --line: #ead9c5;
  --wine: #651d19;
  --red: #cf3c32;
  --gold: #b28136;
  --shadow: 0 20px 50px rgba(80, 42, 18, 0.12);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 218, 171, 0.46), transparent 28%),
    linear-gradient(145deg, #fffaf2 0%, #f7eee1 54%, #ebdbc5 100%);
}

button, input, select { font: inherit; }

.topbar {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-link, .instagram-mini { color: var(--ink); text-decoration: none; font-weight: 900; }
.home-link { display: inline-flex; align-items: center; gap: 10px; }
.home-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #32110f; color: #ffe4bc; font-family: Georgia, serif; }
.instagram-mini { padding: 8px 11px; border: 1px solid #d8c4ae; border-radius: 8px; color: #6e2a25; font-size: .8rem; }

main { width: min(1180px, calc(100% - 40px)); margin: 28px auto 0; }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 26px; padding: clamp(30px, 5vw, 66px); border: 1px solid rgba(119, 70, 33, 0.16); border-radius: 8px; background: linear-gradient(120deg, rgba(255,255,255,.8), rgba(255,248,236,.72)); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 10px; color: #a06a27; font-size: .72rem; font-weight: 950; letter-spacing: .12em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 13px; font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: 1; letter-spacing: 0; font-family: Georgia, "Noto Serif KR", serif; }
.hero-lead { margin-bottom: 24px; color: #5f5047; font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 700; }
.hero-note { display: flex; gap: 10px; max-width: 710px; padding: 12px 14px; border-left: 3px solid #bd8434; background: rgba(255, 249, 237, .78); }
.hero-note p { margin: 0; color: #736159; font-size: .82rem; line-height: 1.6; }
.hero-stat { align-self: center; padding: 24px 16px; border: 1px solid #e3c892; border-radius: 6px; background: #3c1511; color: #f8e4bc; text-align: center; box-shadow: inset 0 0 0 4px rgba(255,220,153,.08); }
.hero-stat span, .hero-stat small { display: block; font-weight: 800; }
.hero-stat span { font-size: .7rem; color: #d9b678; }
.hero-stat strong { display: block; margin: 6px 0; color: #fff8e9; font-size: 3.5rem; font-family: Georgia, serif; }
.hero-stat small { font-size: .7rem; }

.catalog { padding: 50px 0 30px; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.brand-filter { border: 1px solid #d8c3aa; border-radius: 7px; padding: 9px 12px; background: rgba(255,255,255,.56); color: #6f5850; font-size: .8rem; font-weight: 900; cursor: pointer; }
.brand-filter.is-active { border-color: #4d1612; background: #4d1612; color: #fff8ee; }
.search-sort { display: flex; gap: 8px; }
.search-box, .sort-box { display: flex; align-items: center; gap: 7px; min-height: 38px; border: 1px solid #d8c3aa; border-radius: 7px; padding: 0 10px; background: rgba(255,255,255,.7); }
.search-box input, .sort-box select { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .82rem; font-weight: 800; }
.search-box input { width: 160px; }
.sort-box span { color: #846c60; font-size: .72rem; font-weight: 900; }
.result-summary { min-height: 24px; margin: 20px 0 12px; color: var(--muted); font-size: .85rem; font-weight: 750; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.menu-card { display: flex; flex-direction: column; min-height: 258px; padding: 21px; border: 1px solid rgba(134, 90, 52, .16); border-radius: 7px; background: rgba(255,255,255,.8); box-shadow: 0 10px 28px rgba(86, 45, 20, .06); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand-tag { padding: 5px 7px; border-radius: 4px; background: #f5e5d1; color: #7b412c; font-size: .68rem; font-weight: 950; }
.type-tag { color: #9a8173; font-size: .7rem; font-weight: 800; }
.source-status { padding: 5px 7px; border-radius: 4px; background: #e8f1e8; color: #356141; font-size: .65rem; font-weight: 950; }
.source-status.is-reference { background: #fbebd8; color: #8b5626; }
.menu-card h2 { margin: 16px 0 4px; font-size: 1.1rem; line-height: 1.35; }
.weight { min-height: 22px; color: #8c7a6e; font-size: .75rem; font-weight: 700; }
.calorie-row { display: flex; align-items: end; gap: 5px; margin: 17px 0; }
.calorie-row strong { color: var(--wine); font-family: Georgia, "Noto Serif KR", serif; font-size: 2.35rem; line-height: .9; }
.calorie-row span { padding-bottom: 2px; color: #77645b; font-size: .72rem; font-weight: 900; }
.whole-target { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -3px 0 17px; padding: 9px 10px; border-left: 3px solid #c98a38; background: #fff7eb; color: #715747; font-size: .74rem; font-weight: 800; }
.whole-target strong { color: #8e3d25; font-size: 1rem; }
.whole-target small { color: #987f6d; font-size: .65rem; font-weight: 800; text-align: right; }
.nutrition { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.nutrition div { padding: 8px; border-radius: 5px; background: #fbf2e7; }
.nutrition dt { margin-bottom: 3px; color: #9a8173; font-size: .65rem; font-weight: 900; }
.nutrition dd { margin: 0; color: #514038; font-size: .8rem; font-weight: 900; }
.card-links { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.source-link { color: #8f5b27; font-size: .73rem; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.discipline-link { padding: 8px 10px; border-radius: 5px; background: #f0d9bd; color: #4e2018; font-size: .72rem; font-weight: 950; text-decoration: none; }
.empty-state { padding: 56px 20px; border: 1px dashed #cfb89c; border-radius: 7px; color: #78665d; text-align: center; }
.empty-state span { font-size: 2rem; }
.empty-state h2 { margin: 10px 0 5px; font-size: 1.1rem; }
.empty-state p { margin: 0; font-size: .85rem; }

.catalog-notice { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 26px 0 70px; padding: 30px; border-radius: 7px; background: #35201c; color: #fff4e2; }
.catalog-notice h2 { margin-bottom: 10px; font-size: 1.2rem; }
.catalog-notice > div > p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: #dac5b6; font-size: .84rem; line-height: 1.7; }
.catalog-notice .eyebrow { color: #daa95d; }
.discipline-cta { flex: 0 0 auto; padding: 13px 17px; border-radius: 6px; background: #e7ad52; color: #31130f; font-size: .82rem; font-weight: 950; text-decoration: none; }
footer { padding: 28px; border-top: 1px solid rgba(139, 95, 49, .14); color: #927d70; font-size: .72rem; text-align: center; }

@media (max-width: 820px) {
  .guide-hero { grid-template-columns: 1fr; }
  .hero-stat { justify-self: start; min-width: 190px; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .search-sort { justify-content: space-between; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-notice { align-items: start; flex-direction: column; }
}

@media (max-width: 540px) {
  .topbar, main { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 68px; }
  .instagram-mini { font-size: .7rem; }
  .guide-hero { padding: 27px 20px; }
  h1 { font-size: 2.35rem; }
  .search-sort { flex-direction: column; }
  .search-box input { width: 100%; }
  .menu-grid { grid-template-columns: 1fr; }
  .catalog-notice { padding: 24px 20px; }
}
