@charset "UTF-8";

/* One visual system for the collection, index, beer, author and legal pages. */
:root {
  --paper: #f7f4eb;
  --white: #fffdf7;
  --cream: #ede5d4;
  --ink: #203c33;
  --forest: #203c33;
  --muted: #62685c;
  --line: #ddd6c5;
  --amber: #996325;
  --gold: #c49a51;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --title: clamp(2.75rem, 5vw, 4rem);
  --section-title: clamp(1.875rem, 3.2vw, 2.25rem);
  --radius: 12px;
  --shadow: 0 8px 24px #203c3309;
  --content-width: 1240px;
  --beer-motif: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22520%22%20height%3D%22140%22%20viewBox%3D%220%200%20520%20140%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23987744%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%22.1%22%3E%3Cg%20transform%3D%22translate%2826%2015%29%20rotate%28-10%2035%2055%29%22%3E%3Cpath%20d%3D%22M10%2032h42v48c0%208-42%208-42%200Z%20M52%2042h8c16%200%2016%2030%200%2030h-8%20M21%2044v29%20M32%2044v29%20M43%2044v29%22%2F%3E%3Cpath%20d%3D%22M10%2032C1%2029%203%2014%2015%2016c-1-13%2019-15%2023-3%2011-8%2023%203%2017%2013%207%200%209%209-3%209%20M21%2023c3-3%207-2%208%201%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28183%2020%29%20rotate%2814%2020%2050%29%22%3E%3Cpath%20d%3D%22M20%2096V6%20M20%2026C7%2025%204%2018%205%2012c9%200%2015%205%2015%2014Z%20M20%2040C7%2039%202%2031%204%2025c9%200%2016%206%2016%2015Z%20M20%2055C6%2054%201%2046%203%2039c11%200%2017%207%2017%2016Z%20M20%2070C6%2069%201%2061%203%2054c11%200%2017%207%2017%2016Z%20M20%2026c13-1%2016-8%2015-14-9%200-15%205-15%2014Z%20M20%2040c13-1%2018-9%2016-15-9%200-16%206-16%2015Z%20M20%2055c14-1%2019-9%2017-16-11%200-17%207-17%2016Z%20M20%2070c14-1%2019-9%2017-16-11%200-17%207-17%2016Z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28313%2032%29%20rotate%28-12%2025%2038%29%22%3E%3Cpath%20d%3D%22M25%204C4%2013-3%2036%207%2054c5%2010%2013%2016%2018%2020%205-4%2013-10%2018-20C53%2036%2046%2013%2025%204Z%20M25%204V-5%20M9%2024q16%2010%2032%200%20M5%2039q20%2012%2040%200%20M9%2054q16%2010%2032%200%20M25%208q-10%209%200%2017%2010-8%200-17Z%20M15%2028q-10%209%200%2017%2010-8%200-17Z%20M35%2028q-10%209%200%2017%2010-8%200-17Z%20M25%2046q-10%209%200%2017%2010-8%200-17Z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28439%2019%29%20rotate%2810%2022%2055%29%22%3E%3Cpath%20d%3D%22M5%2020h34l-5%2043c-2%2014-22%2014-24%200Z%20M8%2034h28%20M22%2074v23%20M10%2098h24%20M8%2020C2%209%2017%205%2022%2012c9-8%2020%200%2015%208%20M17%2043v17%20M26%2044v14%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%22122%22%20cy%3D%2240%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%22137%22%20cy%3D%2294%22%20r%3D%225%22%2F%3E%3Ccircle%20cx%3D%22260%22%20cy%3D%22104%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%22401%22%20cy%3D%2235%22%20r%3D%224%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --hop-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%239c772e%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%22.38%22%3E%3Ccircle%20cx%3D%22150%22%20cy%3D%22150%22%20r%3D%22132%22%2F%3E%3Ccircle%20cx%3D%22150%22%20cy%3D%22150%22%20r%3D%22122%22%20stroke-dasharray%3D%222%207%22%2F%3E%3Cpath%20d%3D%22M150%2068C100%2088%2090%20136%20108%20172c10%2021%2028%2039%2042%2049%2014-10%2032-28%2042-49%2018-36%208-84-42-104ZM150%2068V52M150%2077c-22%2018-22%2035%200%2048%2022-13%2022-30%200-48ZM123%20114c-20%2017-20%2033%200%2046%2020-13%2020-29%200-46ZM177%20114c-20%2017-20%2033%200%2046%2020-13%2020-29%200-46ZM150%20150c-23%2018-23%2035%200%2049%2023-14%2023-31%200-49ZM109%20169q41%2029%2082%200M116%20189q34%2022%2068%200%22%2F%3E%3Cpath%20d%3D%22M66%20224C43%20190%2035%20155%2039%20121M49%20187c-18-2-27-11-27-23%2016%200%2026%207%2027%2023ZM43%20161c-16-6-22-16-20-28%2016%204%2023%2014%2020%2028ZM40%20136c-13-8-17-19-13-29%2013%206%2017%2017%2013%2029ZM51%20190c12-13%2016-26%2011-38-13%209-18%2022-11%2038ZM43%20165c13-11%2017-24%2013-36-13%208-18%2020-13%2036M234%20224c23-34%2031-69%2027-103M251%20187c18-2%2027-11%2027-23-16%200-26%207-27%2023ZM257%20161c16-6%2022-16%2020-28-16%204-23%2014-20%2028ZM260%20136c13-8%2017-19%2013-29-13%206-17%2017-13%2029ZM249%20190c-12-13-16-26-11-38%2013%209%2018%2022%2011%2038ZM257%20165c-13-11-17-24-13-36%2013%208%2018%2020%2013%2036%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: radial-gradient(ellipse at 95% 0, #e6d5aa50, transparent 45rem), var(--paper);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--title); line-height: 1.1; letter-spacing: -.045em; margin-bottom: 24px; overflow-wrap: anywhere; }
h2 { font-size: var(--section-title); line-height: 1.2; letter-spacing: -.035em; margin-bottom: 20px; }
h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 12px; }
p { margin-bottom: 20px; }
.wrap, .header-inner, .site-footer { width: min(var(--content-width), calc(100% - 96px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; color: var(--white); background: var(--forest); border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Shared masthead. The transparent caricature links to the author page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid #d5c9ac;
  background-color: #eee7d6;
  background-image: var(--beer-motif), linear-gradient(110deg, #e9e2ce, #f4eedf 55%, #e9e1cd);
  background-size: 520px 140px, 100% 100%;
  background-position: center;
  background-repeat: repeat, no-repeat;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 114px; padding-block: 13px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.portrait-link { display: block; flex: 0 0 auto; transform: translateY(-6px); }
.brand-portrait { width: 88px; height: 88px; object-fit: contain; border: 0; border-radius: 0; background: transparent; }
.brand-title { min-width: 0; }
.brand strong { display: block; font: 700 29px/1.15 var(--serif); letter-spacing: -1px; }
.brand small { display: block; margin-top: 8px; color: #4d594b; font-size: 9px; line-height: 1.6; letter-spacing: .5px; white-space: nowrap; }
.brand-slogan-part { white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.site-header nav a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid #203c3329; border-radius: 6px; font-size: 14px; font-weight: 600; transition: color .2s, background .2s, border-color .2s; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .site-header nav a:hover { background: #203c330a; }
}
.site-header nav a[aria-current="page"] { border-color: var(--forest); background: var(--forest); color: var(--white); box-shadow: 0 3px 8px #203c3314; }
/* Custom hints share the same dark green treatment. */
.tooltip-trigger { position: relative; }
.hover-tip { position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 30; transform: translateX(-50%); padding: 8px 12px; border-radius: 3px; background: var(--forest); color: var(--white); font: 600 12px/1.4 var(--sans); white-space: nowrap; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .15s; }
.tooltip-trigger:focus-visible .hover-tip, .author-portrait:focus-visible .hover-tip { visibility: visible; opacity: 1; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .tooltip-trigger:hover .hover-tip, .author-portrait:hover .hover-tip { visibility: visible; opacity: 1; }
}
.site-header nav a.fun-menu { padding: 2px 10px; }
.fun-icon { width: 44px; height: 40px; flex: 0 0 auto; }
.fun-menu .hover-tip { top: calc(100% + 8px); right: 0; bottom: auto; left: auto; transform: none; }

.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--amber); font-size: 10px; line-height: 1.6; font-weight: 700; letter-spacing: 1.8px; margin-bottom: 18px; }
.eyebrow::before { content: ''; flex: 0 0 26px; height: 2px; background: var(--gold); }
.eyebrow > span { display: none; }

/* A single readable card for the beer humour page. */
.fun-box { position: relative; max-width: 820px; margin-inline: auto; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.fun-quote { display: block; height: 52px; color: var(--amber); font: 88px/1 var(--serif); }
.fun-number { margin: 0 0 12px; color: var(--muted); font: 600 11px/1.5 var(--sans); letter-spacing: 1px; }
.fun-text { display: grid; place-items: center; min-height: 170px; margin: 0; color: var(--forest); font: 500 clamp(23px, 3vw, 32px)/1.6 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }
.fun-actions { display: flex; justify-content: center; margin-top: 28px; }
.fun-actions .button { min-width: 190px; }

/* Controls share a single shape, scale and focus treatment. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 50px; padding: 13px 24px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; line-height: 1.5; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.button span { font-size: 21px; line-height: 1; }
.button-dark { color: var(--white); background: var(--forest); border-color: var(--forest); box-shadow: 0 4px 12px #203c3312; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .button-dark:hover { background: #315548; border-color: #315548; }
}
.button-outline { background: transparent; border-color: #a99c7e; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .button-outline:hover { background: var(--cream); border-color: var(--amber); }
}
.text-link { display: inline-flex; gap: 16px; align-items: center; min-height: 44px; color: var(--forest); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--gold); }
.text-link span { font-size: 21px; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .text-link:hover { color: var(--amber); }
}

/* Five photographs on a quiet, engraved hop motif. No added captions. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 40px 54px; padding-block: 62px 42px; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(80px, 8vw, 112px); line-height: 1; letter-spacing: -.055em; margin-bottom: 24px; }
.hero-intro { max-width: 490px; font-size: 16px; line-height: 1.85; color: var(--muted); margin-bottom: 28px; }
.hero-aside { max-width: 490px; margin: -2px 0 0; padding-left: 16px; border-left: 2px solid #c49a5180; font-size: 14px; line-height: 1.85; color: var(--muted); }
.collection-period { margin-top: 24px; color: var(--forest); }
.collection-period p { margin: 0; }
.collection-period strong { font: 700 18px/1.5 var(--serif); }
.hero-art { width: 100%; aspect-ratio: 1.3; min-width: 0; position: relative; isolation: isolate; }
.hero-circle { position: absolute; width: 72%; aspect-ratio: 1; top: 2%; left: 50%; transform: translateX(-50%); z-index: -2; border: 1px solid #b38c4440; border-radius: 50%; background: #e8d6af var(--hop-art) center / 95% no-repeat; box-shadow: 0 0 0 17px #dec89830, 0 0 0 18px #af89462b; }
.hero-art::before { content: ''; position: absolute; left: 2%; bottom: 3%; width: 22%; height: 24%; z-index: -1; background: radial-gradient(#7a8c6742 1px, transparent 1.5px) 0 0 / 9px 9px; transform: rotate(-8deg); }
.hero-art::after { content: ''; position: absolute; right: -1%; bottom: -1%; width: 31%; aspect-ratio: 1; z-index: -1; background: var(--hop-art) center / contain no-repeat; opacity: .65; transform: rotate(18deg); }
.hero-photos { position: absolute; inset: 0; }
.hero-refresh { position: absolute; left: 50%; top: 44%; z-index: 10; display: grid; place-items: center; width: 72px; height: 72px; padding: 0; transform: translate(-50%, -50%); border: 1px solid #b69a6c; border-radius: 50%; color: var(--forest); background: var(--white); box-shadow: 0 3px 12px #43331b26, 0 0 0 5px #f7f4eecf; cursor: pointer; }
.hero-refresh svg { width: 34px; height: 34px; }
.hero-refresh:focus-visible { background: var(--forest); color: var(--white); }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .hero-refresh:hover { background: var(--forest); color: var(--white); }
}
.hero-refresh:disabled { cursor: default; opacity: .55; }
.hero-refresh-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); padding: 7px 11px; border-radius: 3px; background: var(--forest); color: var(--white); font: 600 12px/1.4 var(--sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.hero-refresh:focus-visible .hero-refresh-tip { opacity: 1; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .hero-refresh:hover .hero-refresh-tip { opacity: 1; }
}
.hero-status:not(.sr-only) { position: absolute; inset: 25% 10%; display: grid; place-items: center; margin: 0; padding: 20px; background: var(--cream); border: 1px solid var(--line); color: var(--forest); text-align: center; font-size: 15px; line-height: 1.6; }
.js body[data-page="home"]:not([data-hero-ready="true"]) .hero-photos { visibility: hidden; }
.hero-photo { position: absolute; display: block; width: 31%; padding: 7px; border: 1px solid #d8cdb6; border-radius: 5px; background: var(--white); box-shadow: 0 9px 16px #43331b1c, 0 22px 40px #43331b0e; transition: transform .25s, box-shadow .25s; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background: #eee8dc; border-radius: 2px; }
.hero-photo-label { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 9px 8px; border-radius: 3px; background: #16392ff2; color: var(--white); font: 600 11px/1.45 var(--sans); letter-spacing: 0; overflow-wrap: anywhere; opacity: 0; transform: translateY(3px); pointer-events: none; transition: opacity .2s, transform .2s; }
.hero-photo:focus-visible .hero-photo-label { opacity: 1; transform: none; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .hero-photo:hover .hero-photo-label { opacity: 1; transform: none; }
}
.hero-photo.photo-one { left: 3%; top: 10%; transform: rotate(-12deg); z-index: 1; }
.hero-photo.photo-two { left: 35%; top: 3%; transform: rotate(4deg); z-index: 2; }
.hero-photo.photo-three { right: 3%; top: 13%; transform: rotate(12deg); z-index: 3; }
.hero-photo.photo-four { left: 18%; top: 52%; transform: rotate(-7deg); z-index: 4; }
.hero-photo.photo-five { right: 14%; top: 56%; transform: rotate(8deg); z-index: 5; }
.hero-stats { grid-column: 1/-1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 25px 10px; color: var(--white); background: var(--forest); border: 1px solid #304c3b; border-top: 2px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-stats > div { min-width: 0; padding: 0 22px; border-right: 1px solid #ffffff20; }
.hero-stats > div:last-child { border: 0; }
.hero-stats strong { display: block; font: 700 34px/1.1 var(--serif); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.hero-stats span { display: block; color: #dfdfcf; font-size: 11px; line-height: 1.5; letter-spacing: .3px; margin-top: 8px; }

/* The collection keeps five random cards, all existing fields and pagination. */
.collection-section { padding-block: 60px 56px; scroll-margin-top: 145px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { margin: 0; }
.section-description { max-width: 600px; margin: 12px 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.filter-panel { display: grid; grid-template-columns: 1.8fr 1.15fr 1fr 1fr 1.1fr; gap: 16px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-panel > div { min-width: 0; }
.filter-panel label { display: block; margin-bottom: 8px; color: var(--forest); font-size: 11px; line-height: 1.5; font-weight: 600; }
.filter-panel input, .filter-panel select { display: block; min-width: 0; width: 100%; height: 48px; padding: 10px 12px; border: 1px solid #d7d1c1; border-radius: 5px; background: #faf8f1; font-size: 13px; line-height: 1.5; }
.filter-panel input::placeholder { color: #747467; opacity: 1; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .filter-panel input:hover, .filter-panel select:hover { border-color: #b3aa91; }
}
.filter-panel input:focus, .filter-panel select:focus { border-color: var(--amber); background: var(--white); }
.search-input { position: relative; }
.search-input svg { position: absolute; top: 15px; left: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-input input { padding-left: 40px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 20px 0; min-height: 30px; }
.results-toolbar p { font-size: 12px; color: var(--muted); margin: 0; }
.results-toolbar strong { color: var(--forest); font-weight: 600; }
.reset-button { border: 0; background: none; min-height: 44px; padding: 7px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.beer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.beer-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-image { position: relative; aspect-ratio: 4/3; padding: 12px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #e0d8c8; background: radial-gradient(ellipse at 50% 100%, #d5c5a57a, transparent 75%), #ebe6da; }
.card-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 3px; }
.photo-count { position: absolute; right: 9px; top: 9px; display: flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid #d5cbb5; border-radius: 4px; background: #fffdf4ed; color: #45503e; font-size: 10px; line-height: 1.5; }
.photo-count svg { width: 13px; height: 13px; }
.card-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 18px 17px 14px; }
.card-kicker { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; line-height: 1.6; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 10px; }
.card-kicker span:first-child { overflow-wrap: anywhere; }
.card-kicker span:last-child { white-space: nowrap; }
.card-copy h3 { font-size: 23px; line-height: 1.2; margin-bottom: 5px; overflow-wrap: anywhere; }
.card-product { font: 17px/1.35 var(--serif); margin-bottom: 14px; overflow-wrap: anywhere; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11px; line-height: 1.5; color: var(--muted); margin-bottom: 18px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid #e6e0d1; font-size: 10px; line-height: 1.6; color: var(--muted); }
.card-bottom strong { font-weight: 700; color: var(--forest); }
.card-arrow { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #ede6d7; color: var(--amber); font-size: 19px; transition: background .2s, color .2s; }
.random-actions { display: flex; justify-content: center; margin-top: 32px; }
.empty-state { grid-column: 1/-1; padding: 48px 24px; border: 1px dashed #b7ac8f; border-radius: var(--radius); text-align: center; background: #fffdf580; }
.empty-state h3 { font-size: 27px; }
.empty-state p { color: var(--muted); margin-bottom: 0; }

.beer-list { border-top: 1px solid var(--line); }
.beer-list:empty { border: 0; }
.search-empty { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* All interior pages use the same heading scale and horizontal alignment. */
.page-main { padding-block: 60px 64px; min-height: 70vh; }
.page-heading { max-width: 820px; margin-bottom: 36px; }
.page-heading h1 { margin-bottom: 22px; }
.page-heading > p:not(.eyebrow) { max-width: 650px; font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
.page-heading::after { content: ''; display: block; width: 64px; height: 3px; margin-top: 28px; background: var(--gold); }
.az-overview { display: inline-block; font-size: 12px; color: var(--muted); margin: 0 0 20px; }
.alphabet { position: sticky; top: 118px; z-index: 10; display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; padding: 13px 4px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; border-block: 1px solid var(--line); background: var(--paper); }
.alphabet a, .alphabet span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; font: 700 19px/1 var(--serif); }
.alphabet a { color: var(--forest); background: #e9e3d3; transition: background .2s, color .2s; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .alphabet a:hover { color: var(--white); background: var(--forest); }
}
.alphabet span { color: #8c8a7d; }
.az-group, .recommendation-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding-block: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 214px; }
.group-marker { display: flex; align-items: center; align-self: start; gap: 6px; margin-top: 9px; }
.az-letter { display: grid; place-items: center; flex: 0 0 auto; margin: 0; width: 60px; height: 60px; border: 1px solid #d3c29c; border-radius: 50%; color: var(--amber); background: #ece1c970; font: 700 33px/1 var(--serif); }
.page-top-link { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; min-height: 32px; border: 1px solid transparent; border-radius: 50%; color: var(--muted); font: 400 19px/1 var(--sans); }
.list-end { display: flex; justify-content: flex-end; margin-top: 12px; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .page-top-link:hover { color: var(--forest); border-color: var(--line); background: var(--cream); }
}
.recommendation-heading { align-content: center; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.recommendation-symbol { font: 600 11px/1.2 var(--sans); }
.az-row { display: grid; grid-template-columns: 60px minmax(150px, 1fr) minmax(200px, auto) 22px; gap: 18px; align-items: center; padding: 17px 12px; border-bottom: 1px solid #e5dfd1; border-radius: 5px; transition: background .2s; }
.az-row:last-child { border-bottom: 0; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .az-row:hover { background: #eee7d98c; }
}
.az-row img { width: 60px; height: 48px; object-fit: contain; background: #e9e3d6; border: 1px solid #e1d8c4; border-radius: 4px; }
.az-name { min-width: 0; }
.az-name > strong { font: 700 22px/1.25 var(--serif); overflow-wrap: anywhere; }
.az-product { display: block; font-size: 13px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.az-meta { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; justify-self: end; gap: 12px; min-width: 0; width: 100%; max-width: 460px; color: var(--muted); font: 12px/1.7 var(--sans); }
.az-details { display: flex; justify-content: flex-end; align-items: baseline; flex-wrap: wrap; gap: 5px; min-width: 0; }
.az-details > span { overflow-wrap: anywhere; min-width: 0; }
.az-average { justify-self: end; text-align: right; font: 700 14px/1.5 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--forest); }
.az-arrow { color: var(--amber); font-size: 20px; }

/* Beer photography keeps its full landscape shape, without cropping. */
.detail-main { padding-block: 28px 56px; min-height: 75vh; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 25px; padding: 0; border: 0; background: transparent; font-size: 13px; color: var(--muted); }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .back-link:hover { color: var(--amber); }
}
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 56px; }
.gallery { min-width: 0; }
.gallery-stage { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; aspect-ratio: 4/3; border: 1px solid #d9cdb5; border-radius: var(--radius); background: radial-gradient(ellipse at 50% 100%, #d9c6a080, transparent 75%), #ede6d7; box-shadow: var(--shadow); }
.gallery-open { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 16px; border: 0; border-radius: var(--radius); background: transparent; cursor: zoom-in; }
.gallery-open img, .gallery-stage > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 4px; }
.gallery-stage > img { padding: 16px; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 3px; border: 1px solid #c3b38e; border-radius: 50%; background: #fffdf5ed; color: var(--forest); font-size: 28px; line-height: 1; z-index: 1; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .gallery-arrow:hover { background: var(--white); border-color: var(--amber); }
}
.gallery-arrow:disabled { opacity: .4; }
.gallery-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 14px 2px; font-size: 12px; line-height: 1.6; color: var(--muted); }
#photo-variant { overflow-wrap: anywhere; }
#photo-position { flex-shrink: 0; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-thumbnails button, .gallery-thumbnails a { min-height: 52px; padding: 4px; border: 1px solid #ddd3bc; border-radius: 5px; background: #eee6d7; }
.gallery-thumbnails button[aria-current] { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.gallery-thumbnails img { width: 60px; height: 45px; object-fit: contain; border-radius: 2px; }
.detail-heading { min-width: 0; padding-top: 6px; }
.detail-heading .eyebrow { margin-bottom: 18px; }
.detail-heading h1 { margin-bottom: 9px; }
.detail-product { margin-bottom: 24px; color: var(--amber); font: 26px/1.35 var(--serif); overflow-wrap: anywhere; }
.beer-facts, .region-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 26px 0 20px; padding: 21px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf580; }
.beer-facts dt, .region-info h2 { font: 400 10px/1.6 var(--sans); letter-spacing: .7px; color: var(--muted); margin: 0 0 7px; }
.beer-facts dd, .region-info p { font: 20px/1.4 var(--serif); margin: 0; overflow-wrap: anywhere; }
.region-info { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; }
.tasting-history { margin-top: 44px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.tasting-title { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.tasting-title h2 { margin: 0; }
.tasting-title > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.tasting-table { table-layout: fixed; border-collapse: collapse; width: 100%; font-size: 13px; }
.tasting-table th { text-align: left; padding: 14px 14px 14px 0; vertical-align: bottom; color: var(--muted); font-size: 10px; line-height: 1.5; font-weight: 600; border-bottom: 1px solid #c8c3b2; }
.tasting-table th { width: 20%; }
.tasting-table td { vertical-align: top; padding: 18px 14px 18px 0; border-bottom: 1px solid #e5dfd0; overflow-wrap: anywhere; }
.tasting-table td:first-child { font-variant-numeric: tabular-nums; }
.tasting-table td:nth-child(3) { font: 700 22px/1.3 var(--serif); white-space: nowrap; }
.tasting-table .entry-crown { padding-left: 0; }
.tasting-table tbody tr:nth-child(even) { background: #f5f1e74d; }
.rating-denominator { font: 11px var(--sans); color: var(--muted); }
.source-value { border-bottom: 1px dotted var(--muted); }
.beer-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.beer-pagination a { display: block; min-height: 76px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; line-height: 1.5; background: #fffdf580; overflow-wrap: anywhere; }
.beer-pagination a:last-child { text-align: right; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .beer-pagination a:hover { background: var(--cream); border-color: #b5a47f; }
}
.beer-pagination small { display: block; font-size: 10px; letter-spacing: .7px; color: var(--amber); margin-bottom: 7px; }

/* Original-size image dialog, including the 1200 × 900 source link. */
.photo-dialog { width: max-content; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 48px 20px 16px; overflow: auto; border: 1px solid #e4d6b5; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 20px 80px #0005; }
.photo-dialog::backdrop { background: #10231eed; }
.photo-dialog img { display: block; width: auto; height: auto; max-width: min(1200px, calc(100vw - 64px)); max-height: min(900px, calc(100vh - 156px)); max-height: min(900px, calc(100dvh - 156px)); margin: 0 auto 12px; object-fit: contain; }
.dialog-close { position: absolute; right: 8px; top: 3px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 5px; background: transparent; font-size: 32px; line-height: 1; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .dialog-close:hover { background: var(--cream); }
}
.dialog-caption-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.dialog-caption-bar p { flex: 1; min-width: 180px; margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.dialog-caption-bar a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.image-missing { object-fit: contain !important; box-shadow: none !important; }

/* Author: the agreed text, with a transparent portrait and a calm reading width. */
.author-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: 'heading portrait' 'story portrait'; align-items: start; gap: 0 72px; }
.author-heading { grid-area: heading; margin-bottom: 30px; }
.author-story { grid-area: story; max-width: 670px; }
.author-story p { font-size: 16px; line-height: 1.9; color: #3e493d; margin-bottom: 22px; }
.author-story p:first-child { font: 22px/1.6 var(--serif); color: var(--forest); margin-bottom: 28px; }
.author-story .story-exclamation { border-left: 3px solid var(--gold); padding-left: 18px; font: 700 25px/1.5 var(--serif); color: var(--forest); margin-block: 28px; }
.author-story .story-signoff { font: 700 clamp(18px, 4.5vw, 22px)/1.4 var(--serif); color: var(--amber); margin-top: 28px; text-wrap: balance; }
.signoff-toast { white-space: nowrap; }
.author-signature { display: block; width: 200px; max-width: 100%; height: auto; margin: -12px 0 24px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.author-story .story-heading { margin: 36px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.author-portrait { grid-area: portrait; position: sticky; top: 154px; isolation: isolate; align-self: start; justify-self: center; width: 85%; margin: 18px 0 0; padding: 0; border: 0; background: transparent; }
.author-portrait::before { content: ''; position: absolute; inset: 8% 2% 8%; z-index: -1; border: 1px solid #d6bc85; border-radius: 50% 50% 42% 42%; background: #e8d8b35c; box-shadow: 0 0 0 15px #e8d8b326; }
.author-portrait::after { content: ''; position: absolute; right: -3%; bottom: 2%; width: 35%; aspect-ratio: 1; z-index: -1; background: var(--hop-art) center / contain no-repeat; transform: rotate(20deg); }
.author-portrait img { width: 100%; height: auto; object-fit: contain; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.author-portrait .hover-tip { top: calc(100% + 12px); bottom: auto; width: max-content; max-width: 100%; white-space: normal; text-align: center; }
.author-back { margin-top: 16px; }

/* Legal copy shares the same headings; comfortable lengths for long paragraphs. */
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 38px; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid #d7cdb5; border-radius: 6px; background: #eee7d9; font-size: 13px; line-height: 1.6; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .legal-nav a:hover { color: var(--white); background: var(--forest); border-color: var(--forest); }
}
.legal-page section { max-width: 900px; padding-block: 34px 20px; border-top: 1px solid var(--line); scroll-margin-top: 145px; }
.legal-page section h2 { max-width: 750px; margin-bottom: 24px; }
.legal-page section h3 { font-size: 22px; margin-top: 30px; margin-bottom: 14px; }
.legal-page section p, .legal-page address, .legal-page section li { max-width: 790px; color: #414b40; font-size: 15px; line-height: 1.9; }
.legal-page address { font-style: normal; margin-bottom: 22px; }
.legal-page section a { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .legal-page section a:hover { color: var(--forest); }
}

/* Compact, common footer. */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0 16px; border-top: 1px solid #cfc7b1; padding-block: 0 10px; }
.footer-copyright { margin: 0; padding-top: 4px; font-size: 12px; line-height: 1.6; color: var(--muted); white-space: nowrap; }
.footer-links { display: flex; justify-content: flex-end; gap: 20px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.footer-links a { display: inline-flex; align-items: flex-start; min-height: 44px; padding-top: 4px; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
}
.site-message { position: fixed; bottom: 20px; right: 20px; max-width: 430px; padding: 16px 22px; border-radius: 8px; background: var(--forest); color: var(--white); z-index: 40; font-size: 13px; }
.loading-note { padding: 32px; color: var(--muted); }

@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
  .hero-photo:hover { transform: rotate(0deg) translateY(-5px); z-index: 6; box-shadow: 0 16px 32px #43331b30; }
  .beer-card:hover { transform: translateY(-5px); border-color: #b7a67f; box-shadow: 0 14px 28px #203c3314; }
  .beer-card:hover .card-arrow { color: var(--white); background: var(--forest); }
}

@media (max-width: 1280px) {
  .wrap, .header-inner, .site-footer { width: calc(100% - 64px); }
  html { scroll-padding-top: 16px; }
  .site-header { position: relative; top: auto; }
  .header-inner { flex-wrap: wrap; gap: 12px; min-height: 0; }
  .brand { width: 100%; }
  .site-header nav { width: 100%; }
  .site-header nav a { flex: 1; }
  .alphabet { top: 0; }
  .az-group { scroll-margin-top: 80px; }
  .collection-section { scroll-margin-top: 16px; }
  .brand strong { font-size: 27px; }
  .brand small { max-width: 375px; font-size: 8px; letter-spacing: .5px; }
  .site-header nav a { padding-inline: 14px; }
  .hero { gap: 32px; padding-block: 44px 36px; }
  .hero h1 { font-size: 86px; }
  .hero-intro { font-size: 15px; }
  .hero-stats > div { padding-inline: 16px; }
  .hero-stats strong { font-size: 30px; }
  .filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-control { grid-column: span 2; }
  .beer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { gap: 32px; }
  .beer-facts, .region-info { padding: 16px; }
  .beer-facts { gap: 14px; }
  .beer-facts dd, .region-info p { font-size: 18px; }
  .author-intro { gap: 0 40px; }
  .az-row { gap: 14px; grid-template-columns: 56px minmax(130px, 1fr) minmax(170px, auto) 20px; }
  .az-meta { max-width: 340px; }
}

@media (max-width: 960px) and (min-width: 761px) {
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .hero-stats > div:nth-child(3) { border-right: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .hero-intro { max-width: 600px; }
  .hero-art { width: min(560px, 100%); margin-inline: auto; }
}

@media (max-width: 760px) {
  :root { --title: clamp(2.5rem, 8vw, 3.25rem); --section-title: clamp(1.75rem, 6vw, 2rem); }
  html { scroll-padding-top: 16px; }
  .wrap, .header-inner, .site-footer { width: calc(100% - 32px); }
  .site-header { position: relative; top: auto; background-size: 440px 120px, 100% 100%; }
  .header-inner { flex-wrap: wrap; gap: 8px; min-height: 0; padding-block: 12px 8px; }
  .brand { width: 100%; gap: 12px; }
  .portrait-link { transform: translateY(-4px); }
  .brand-portrait { width: 68px; height: 68px; }
  .brand strong { font-size: 26px; letter-spacing: -.8px; }
  .brand small { max-width: 100%; font-size: clamp(7px, 2.4vw, 9px); line-height: 1.5; letter-spacing: .5px; margin-top: 5px; white-space: normal; text-wrap: balance; }
  .site-header nav { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .site-header nav a { grid-column: span 4; min-height: 44px; padding: 8px 2px; font-size: 13px; }
  .site-header nav a:nth-child(5), .site-header nav a:nth-child(6) { grid-column: span 3; }
  .site-header nav a.fun-menu { grid-column: span 2; padding: 4px 0; }
  .fun-menu .fun-icon { width: 36px; height: 36px; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 32px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1.3px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(70px, 18vw, 94px); margin-bottom: 18px; }
  .hero-intro { max-width: 570px; font-size: 16px; line-height: 1.8; margin-bottom: 24px; }
  .hero-art { width: min(520px, 100%); margin: 10px auto; }
  .hero-photo { padding: 5px; }
  .hero-refresh { width: 64px; height: 64px; box-shadow: 0 3px 10px #43331b26, 0 0 0 3px #f7f4eecf; }
  .hero-circle { box-shadow: 0 0 0 11px #dec89830, 0 0 0 12px #af89462b; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px 8px; gap: 22px 0; }
  .hero-stats > div { padding-inline: 12px; }
  .hero-stats > div:nth-child(3) { border-right: 0; }
  .hero-stats strong { font-size: 29px; }
  .hero-stats span { font-size: 10px; letter-spacing: 0; margin-top: 5px; }
  .collection-section { padding-block: 36px 40px; scroll-margin-top: 16px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading h2 { margin-bottom: 12px; }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 16px 12px; }
  .search-control { grid-column: 1/-1; }
  .filter-panel label { font-size: 12px; }
  .filter-panel input, .filter-panel select { height: 48px; min-height: 48px; font-size: 16px; }
  .results-toolbar { flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-block: 18px; }
  .results-toolbar p { font-size: 12px; }
  .beer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card-copy { padding: 18px 16px 14px; }
  .card-kicker { font-size: 10px; letter-spacing: .3px; }
  .card-meta { font-size: 12px; }
  .card-bottom { font-size: 11px; }
  .page-main { padding-block: 36px 44px; }
  .page-heading { margin-bottom: 28px; }
  .page-heading > p:not(.eyebrow) { font-size: 15px; }
  .page-heading::after { margin-top: 24px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
  .alphabet { top: 0; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; padding-block: 10px; }
  .alphabet a, .alphabet span { flex: 0 0 36px; width: 36px; height: 36px; font-size: 19px; }
  .az-group, .recommendation-group { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 22px; scroll-margin-top: 80px; }
  .group-marker { gap: 8px; margin-top: 0; }
  .az-letter { width: 44px; height: 44px; font-size: 26px; margin-top: 0; }
  .recommendation-heading { font-size: 18px; }
  .az-row { grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 5px 11px; padding: 14px 0; }
  .az-row img { grid-column: 1; grid-row: 1/3; width: 44px; height: 40px; }
  .az-name { grid-column: 2; grid-row: 1; }
  .az-name > strong { font-size: 20px; }
  .az-product { font-size: 13px; margin-top: 2px; }
  .az-meta { grid-column: 2; grid-row: 2; max-width: none; gap: 8px; font-size: 11px; }
  .az-details { justify-content: flex-start; gap: 4px; }
  .az-average { font-size: 13px; }
  .az-arrow { grid-column: 3; grid-row: 1/3; font-size: 18px; }
  .detail-main { padding-block: 18px 40px; }
  .back-link { margin-bottom: 18px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gallery { max-width: 600px; width: 100%; margin-inline: auto; }
  .gallery-open, .gallery-stage > img { padding: 12px; }
  .gallery-prev { left: 6px; }
  .gallery-next { right: 6px; }
  .gallery-caption { gap: 12px; }
  .detail-heading h1 { font-size: var(--title); }
  .detail-product { font-size: 25px; }
  .beer-facts, .region-info { padding: 17px; }
  .beer-facts { margin-top: 22px; gap: 15px; }
  .beer-facts dd, .region-info p { font-size: 19px; }
  .tasting-history { padding: 22px 18px; margin-top: 28px; }
  .tasting-title { align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .tasting-title > span { padding-top: 6px; font-size: 11px; }
  .tasting-table, .tasting-table tbody { display: block; width: 100%; }
  .tasting-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .tasting-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; padding: 22px 0; border-top: 1px solid var(--line); }
  .tasting-table tbody tr:nth-child(even) { background: transparent; }
  .tasting-table tbody tr:last-child { padding-bottom: 12px; }
  .tasting-table td, .tasting-table td:nth-child(3) { display: block; padding: 0; border: 0; text-align: left; font: 14px/1.6 var(--sans); }
  .tasting-table td:nth-child(2) { font: 21px/1.5 var(--serif); }
  .tasting-table td:nth-child(3) { font: 700 23px/1.4 var(--serif); }
  .tasting-table .entry-crown { padding-left: 0; }
  .tasting-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; font: 11px/1.5 var(--sans); color: var(--muted); }
  .beer-pagination { gap: 12px; margin-top: 20px; }
  .beer-pagination a { padding: 14px 12px; font-size: 13px; }
  .beer-pagination small { font-size: 10px; letter-spacing: .3px; }
  .photo-dialog { padding: 48px 12px 12px; max-width: calc(100vw - 16px); }
  .photo-dialog img { max-width: min(1200px, calc(100vw - 40px)); max-height: min(900px, calc(100vh - 180px)); max-height: min(900px, calc(100dvh - 180px)); }
  .dialog-caption-bar { gap: 6px; }
  .dialog-caption-bar p { flex-basis: 100%; font-size: 11px; }
  .author-intro { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'heading' 'portrait' 'story'; gap: 0; }
  .author-heading { margin-bottom: 28px; }
  .author-portrait { position: relative; top: auto; width: min(300px, 85%); margin: 0 auto 32px; }
  .author-story { max-width: none; }
  .author-story p { font-size: 15px; }
  .author-story p:first-child { font-size: 21px; }
  .author-story .story-exclamation { font-size: 25px; }
  .author-back { margin-top: 8px; }
  .legal-nav { gap: 8px; margin-bottom: 28px; }
  .legal-nav a { padding-inline: 13px; font-size: 12px; }
  .legal-page section { padding-block: 28px 12px; scroll-margin-top: 16px; }
  .legal-page section h3 { font-size: 21px; }
  .legal-page section p, .legal-page address, .legal-page section li { font-size: 14px; }
  .site-footer { gap: 0 8px; padding-block: 0 8px; }
  .footer-copyright, .footer-links { font-size: clamp(10px, 2.8vw, 11px); }
}

@media (max-width: 480px) {
  .beer-grid, .filter-panel { grid-template-columns: minmax(0, 1fr); }
  .search-control { grid-column: auto; }
  .card-image { padding: 14px; }
  .card-copy { padding: 20px 18px 16px; }
  .hero-stats strong { font-size: 27px; }
  .hero-stats > div { padding-inline: 10px; }
  .beer-facts, .region-info { padding: 14px; }
  .beer-facts { gap: 12px; }
  .beer-facts dt, .region-info h2 { font-size: 9px; letter-spacing: .4px; }
  .beer-facts dd, .region-info p { font-size: 17px; }
}

@media (max-width: 360px) {
  .site-header nav a { font-size: 12px; padding-inline: 3px; }
  .brand strong { font-size: 24px; }
  .brand small { font-size: 8px; }
  .hero h1 { font-size: 66px; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats span { font-size: 9px; }
  .hero-photo { padding: 4px; }
}

@media (max-height: 500px) and (max-width: 1000px) {
  html { scroll-padding-top: 16px; }
  .site-header { position: relative; top: auto; }
  .alphabet { top: 0; }
  .az-group { scroll-margin-top: 80px; }
  .filter-panel input, .filter-panel select { min-height: 48px; font-size: 16px; }
  .photo-dialog img { max-height: min(900px, calc(100vh - 152px)); max-height: min(900px, calc(100dvh - 152px)); }
}

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

/* Touch screens and phone layouts do not show hover-only hints. */
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .hover-tip, .hero-refresh-tip, .hero-photo-label { display: none !important; }
}
