:root {
  color-scheme: light;
  --ink: #16222a;
  --midnight: #101c25;
  --gold: #c2a360;
  --gold-light: #e6d5ac;
  --paper: #f9f7f2;
  --white: #fffefa;
  --line: #dfddd5;
  --muted: #657078;
  --wine: #6b292d;
  font-family: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.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; }

.site-header { background: var(--midnight); border-bottom: 1px solid #33434b; }
.header-inner { max-width: 1180px; min-height: 83px; margin: auto; padding: 5px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { width: 135px; height: 72px; display: flex; align-items: center; }
.brand img { width: 135px; height: auto; max-height: 76px; object-fit: contain; }
.menu-link { color: var(--gold-light); text-decoration: none; font-size: .875rem; letter-spacing: .04em; border-bottom: 1px solid rgba(230,213,172,.55); padding-bottom: 4px; }
.menu-link:hover, .menu-link:focus-visible { color: #fff; border-color: #fff; }

.intro { color: #f8f6ee; background: radial-gradient(circle at 80% 12%, #26353d 0, #15252d 44%, #101c25 82%); border-bottom: 3px solid var(--gold); }
.intro-inner { max-width: 1180px; margin: auto; padding: 24px 32px 26px; }
.eyebrow, .section-eyebrow { color: var(--gold); font-weight: 700; font-size: .73rem; letter-spacing: .2em; margin: 0 0 12px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, .dish-title, .wine-title { font-family: "Playfair Display", Georgia, serif; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.25rem); line-height: 1.12; max-width: 780px; margin-bottom: 8px; font-weight: 500; }
h1 em { color: var(--gold-light); font-weight: 500; }
.intro-copy { color: #d0d6d4; font-size: .94rem; line-height: 1.55; max-width: 720px; margin-bottom: 0; }

.browser-inner { max-width: 1180px; margin: auto; padding: 0 32px 68px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.tab { background: transparent; border: 0; border-bottom: 3px solid transparent; color: #687078; margin-bottom: -1px; padding: 14px 20px 11px; font-weight: 700; font-size: .94rem; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--gold); }
.tab:focus-visible, .filter-button:focus-visible, .search-box input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.section-eyebrow { color: #9a7540; margin-bottom: 7px; }
h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 600; margin-bottom: 5px; }
.view-help { color: var(--muted); line-height: 1.55; margin: 0; }
.search-box { width: min(100%, 332px); display: flex; align-items: center; position: relative; }
.search-icon { position: absolute; left: 15px; color: #757c7e; font-size: 1.7rem; line-height: 1; top: 50%; transform: translateY(-56%); }
.search-box input { width: 100%; height: 47px; border: 1px solid #c9ccc8; border-radius: 6px; background: var(--white); padding: 0 14px 0 43px; color: var(--ink); }
.search-box input::placeholder { color: #8a9091; }
.category-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; }
.filter-button { border: 1px solid #d3d2cc; background: #fffdf8; color: #4e5a60; border-radius: 100px; padding: 7px 12px; font-size: .875rem; font-weight: 700; }
.filter-button:hover { border-color: #bca260; }
.filter-button.active { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.result-count { font-size: .8rem; font-weight: 700; color: #757b7d; letter-spacing: .04em; margin-bottom: 16px; }
.result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.result-card { border: 1px solid #deddd6; border-top: 3px solid var(--gold); background: var(--white); border-radius: 4px; padding: 21px 23px 20px; box-shadow: 0 9px 20px rgba(25,34,36,.035); min-width: 0; }
.card-kicker { color: #947845; text-transform: uppercase; font-size: .67rem; font-weight: 700; letter-spacing: .15em; margin-bottom: 6px; }
.dish-title, .wine-title { font-size: 1.35rem; line-height: 1.28; font-weight: 600; margin: 0 0 5px; overflow-wrap: anywhere; }
.dish-description { color: #59656b; line-height: 1.5; font-size: .86rem; margin: 0 0 17px; }
.pairing-label { border-top: 1px solid var(--line); padding-top: 13px; margin-bottom: 7px; color: #607078; text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; font-weight: 700; }
.pairing-line { display: flex; align-items: start; gap: 10px; margin: 8px 0; }
.pairing-detail { flex: 1; min-width: 0; }
.pairing-index { flex: none; display: inline-grid; place-items: center; height: 22px; width: 22px; border-radius: 50%; background: #efe8d7; color: #6d582c; font-size: .7rem; font-weight: 700; }
.pairing-name { font-weight: 700; font-size: .94rem; line-height: 1.4; }
.pairing-meta { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.sake-label { margin-top: 18px; }
.beverage-profile { border: 1px solid #e5dfd1; border-radius: 6px; background: #fcfaf5; margin: 10px 0 15px; overflow: hidden; }
.profile-row { display: grid; grid-template-columns: minmax(88px, 28%) minmax(0, 1fr); gap: 10px; border-top: 1px solid #e9e3d7; padding: 7px 10px; font-size: .76rem; line-height: 1.45; }
.profile-row:first-child { border-top: 0; }
.profile-label { color: #6b726e; text-transform: uppercase; font-weight: 700; font-size: .65rem; letter-spacing: .06em; }
.profile-value { color: #344247; margin: 0; overflow-wrap: anywhere; }
.beverage-group + .beverage-group { margin-top: 30px; }
.group-title { font: 600 1.45rem "Playfair Display", Georgia, serif; margin: 0 0 13px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.wine-meta { color: #59656b; font-size: .83rem; line-height: 1.55; margin: 0 0 17px; }
.wine-meta strong { color: var(--ink); font-weight: 700; }
.dish-chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.dish-chip { padding: 7px 9px; background: #f4f1e9; border: 1px solid #e7e1d3; border-radius: 4px; line-height: 1.35; font-size: .78rem; }
.show-more { border: 0; background: transparent; color: #806633; text-decoration: underline; font-weight: 700; font-size: .82rem; padding: 12px 0 0; }
.show-more:hover, .show-more:focus-visible { color: var(--ink); }
.empty, .loading { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 28px; color: var(--muted); }

.note { border-top: 1px solid var(--line); background: #efece5; }
.note-inner { max-width: 1180px; margin: auto; padding: 25px 32px; display: flex; gap: 20px; align-items: center; }
.note-rule { width: 3px; align-self: stretch; flex: none; background: var(--gold); }
.note p { color: #525c60; font-size: .8rem; line-height: 1.6; margin: 0; flex: 1; }
.note a { color: #493e2a; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.site-footer { background: var(--midnight); padding: 21px 32px 24px; text-align: center; }
.powered { display: inline-flex; align-items: center; gap: 8px; color: #d6ddd6; font-size: .72rem; text-decoration: none; letter-spacing: .025em; }
.powered:hover, .powered:focus-visible { color: #fff; }
.powered img { display: block; border-radius: 5px; }

@media (max-width: 760px) {
  .header-inner { min-height: 78px; padding: 5px 18px; }
  .brand { width: 122px; height: 68px; }
  .brand img { width: 122px; max-height: 72px; }
  .menu-link { font-size: .8rem; }
  .intro-inner { padding: 22px 20px 25px; }
  h1 { font-size: clamp(2.15rem, 8vw, 3.1rem); }
  .intro-copy { font-size: .91rem; }
  .browser-inner { padding: 0 16px 48px; }
  .tabs { margin-bottom: 23px; }
  .tab { flex: 1; padding: 17px 7px 12px; font-size: .875rem; }
  .toolbar { display: block; }
  .search-box { margin-top: 18px; width: 100%; }
  .result-list { grid-template-columns: 1fr; gap: 11px; }
  .result-card { padding: 18px; }
  .note-inner { padding: 22px 20px; align-items: start; flex-wrap: wrap; gap: 10px; }
  .note-rule { display: none; }
  .note a { width: 100%; }
}

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