@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #173229;
  --green: #19372d;
  --green-light: #2f5b49;
  --cream: #f4eedf;
  --paper: #fffdf6;
  --amber: #e99c2f;
  --red: #c34c38;
  --line: #d8d0bd;
  --muted: #6c756e;
  --shadow: 0 8px 30px rgba(35, 45, 33, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.45; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { 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; }

.masthead { min-height: 68px; padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; background: var(--green); color: white; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; line-height: 1.05; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 2px solid var(--amber); border-radius: 50%; color: var(--amber); font-family: "Source Serif 4", serif; font-weight: 900; font-size: 13px; letter-spacing: .04em; transform: rotate(-6deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Source Serif 4", serif; font-size: 18px; }
.brand small { margin-top: 4px; color: #c9d3cc; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.icon-button { width: 38px; height: 38px; border: 1px solid #627c70; border-radius: 50%; background: transparent; color: white; font-family: "Source Serif 4", serif; font-weight: bold; cursor: pointer; }

.hero { position: relative; overflow: hidden; padding: 36px 18px 41px; background: var(--green); color: white; }
.hero::before { content: "26"; position: absolute; right: -17px; top: -39px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); font: 900 190px/1 "Source Serif 4", serif; transform: rotate(4deg); }
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .17em; }
.hero .eyebrow { color: var(--amber); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2 { font-family: "Source Serif 4", Georgia, serif; }
h1 { max-width: 540px; margin: 0; font-size: clamp(40px, 11.5vw, 67px); line-height: .98; letter-spacing: -.04em; }
h1 em { color: var(--amber); font-weight: inherit; }
.hero-copy { max-width: 500px; margin: 17px 0 23px; color: #cdd7d1; line-height: 1.55; font-size: 14px; }
.search-wrap { max-width: 670px; height: 56px; display: flex; align-items: center; gap: 11px; padding: 0 16px; border: 2px solid transparent; border-radius: 6px; background: white; box-shadow: 0 13px 26px rgba(0,0,0,.16); }
.search-wrap:focus-within { border-color: var(--amber); }
.search-wrap svg { width: 21px; fill: none; stroke: var(--green); stroke-width: 2; }
.search-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.search-wrap input::placeholder { color: #7f8781; }
kbd { display: none; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--cream); font: 11px ui-monospace, monospace; }

.catalogue, .info-panel { max-width: 1100px; min-height: 55vh; margin: 0 auto; padding: 28px 15px 112px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-heading h2, .info-panel h2 { margin: 0; font-size: 31px; line-height: 1; }
.filter-button { min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-weight: 750; cursor: pointer; }
.filter-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.filter-button span { min-width: 20px; padding: 2px 5px; border-radius: 10px; background: var(--red); color: white; font-size: 11px; }
.filters { margin-top: 17px; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); }
.filters label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.filters select { width: 100%; height: 43px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: white; }
.text-button { padding: 5px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--green-light); font-size: 12px; font-weight: 800; cursor: pointer; }
.quick-filters { display: flex; gap: 8px; margin: 20px -15px 0; padding: 0 15px 3px; overflow-x: auto; scrollbar-width: none; }
.quick-filters::-webkit-scrollbar { display: none; }
.quick-filter { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); font-size: 12px; font-weight: 750; cursor: pointer; }
.quick-filter.active { border-color: var(--green); background: var(--green); color: white; }
.results-meta { margin: 19px 2px 11px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.drink-list { display: grid; gap: 10px; }
.drink-card { position: relative; padding: 15px 15px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 3px 12px rgba(37,50,37,.04); transition: opacity .2s, border-color .2s, transform .2s; }
.drink-card.tried { border-color: #9caf99; background: #f4f5e9; }
.drink-card.tried::after { content: "TRIED"; position: absolute; right: 61px; top: 55px; color: rgba(25,55,45,.075); font: 900 27px "Source Serif 4", serif; transform: rotate(-8deg); pointer-events: none; }
.card-topline { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.category-tag { padding: 4px 7px; border-radius: 3px; background: #f5ddaf; color: #744c15; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.location-tag { color: var(--red); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.location-tag:not(:empty)::before { content: "· "; color: var(--line); }
.drink-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.producer { margin: 0 0 3px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.drink-name { margin: 0; font: 700 23px/1.18 "Source Serif 4", serif; }
.tried-button { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.tried-button svg { width: 23px; fill: none; stroke: #9b9d94; stroke-width: 2.3; }
.tried .tried-button { border-color: var(--green); background: var(--green); }
.tried .tried-button svg { stroke: white; }
.drink-facts { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 12px; }
.drink-facts .style { color: var(--green-light); font-weight: 750; }
.drink-facts .abv { padding-left: 8px; border-left: 1px solid var(--line); }
.abv:empty, .style:empty { display: none; }
.tasting-notes { margin: 11px 0 0; color: #4f5b55; font-size: 14px; line-height: 1.58; }
.details { margin: 9px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--green-light); font-size: 12px; font-weight: 700; line-height: 1.6; }
.details:empty, .tasting-notes:empty { display: none; }
.rating { display: none; margin: 14px 0 0; padding: 11px 0 0; border: 0; border-top: 1px solid var(--line); }
.tried .rating { display: block; }
.rating legend { float: left; width: 82px; margin: 8px 8px 0 0; padding: 0; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.rating > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.rating button { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; }
.rating button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rating button.active { border-color: var(--green); background: var(--green); color: white; }
.rating button[data-rating="disliked"].active { border-color: var(--red); background: var(--red); }
.rating button[data-rating="liked"].active { border-color: var(--green-light); background: var(--green-light); }
.empty-state { padding: 44px 20px; text-align: center; }
.empty-state > span { color: var(--line); font: 900 70px/1 "Source Serif 4", serif; }
.empty-state h3 { margin: 5px 0; font: 700 25px "Source Serif 4", serif; }
.empty-state p { color: var(--muted); }
.primary-button { min-height: 44px; padding: 0 19px; border: 0; border-radius: 4px; background: var(--red); color: white; font-weight: 800; cursor: pointer; }
.link-button { display: inline-flex; align-items: center; text-decoration: none; }

.info-panel { padding-top: 40px; }
.info-panel > h2 { max-width: 500px; font-size: 42px; }
.info-grid { display: grid; gap: 10px; margin: 25px 0; }
.info-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.info-grid strong { font-family: "Source Serif 4", serif; font-size: 19px; }
.info-grid p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.bottom-nav { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: calc(67px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,253,246,.96); backdrop-filter: blur(12px); }
.bottom-nav button { position: relative; display: grid; place-items: center; gap: 2px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; }
.bottom-nav button.active { color: var(--green); }
.bottom-nav button.active::before { content: ""; position: absolute; top: -7px; width: 36px; height: 3px; background: var(--amber); }
.bottom-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bottom-nav b { min-width: 16px; display: inline-block; padding: 1px 4px; border-radius: 8px; background: var(--red); color: white; font-size: 9px; }

dialog { width: min(90vw, 430px); padding: 28px; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 70px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(12,31,25,.72); backdrop-filter: blur(2px); }
dialog h2 { margin: 0; font-size: 32px; }
dialog p { line-height: 1.55; }
.dialog-close { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.muted { color: var(--muted); font-size: 12px; }

@media (min-width: 700px) {
  .masthead { padding-inline: max(28px, calc((100vw - 1100px) / 2)); }
  .hero { padding: 55px max(28px, calc((100vw - 1100px) / 2)) 60px; }
  .hero-copy { font-size: 16px; }
  kbd { display: block; }
  .catalogue, .info-panel { padding-inline: 28px; }
  .filters { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; }
  .filters label { margin: 0; }
  .filters .text-button { margin-bottom: 12px; }
  .quick-filters { margin-inline: 0; padding-inline: 0; }
  .drink-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .bottom-nav { left: 50%; right: auto; width: 380px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
}

@media (max-width: 390px) {
  .rating legend { float: none; width: auto; margin: 0 0 7px; }
  .rating button span { display: none; }
}

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