.catalog-page {
  --pad: max(20px, calc((100vw - 1152px) / 2), 5vw);
  --paper: #faf8f2;
  --ink: #242119;
  --rule: #d7d0bf;
}
body.catalog-page > header {
  position: static;
  inset: auto;
  margin: 0 var(--pad);
  padding: 10px 0;
  min-height: 64px;
  border-bottom: 1px solid #534a37;
}
.catalog-page header .logo {width: 112px;}
.catalog-page header .location {display: inline-flex; align-items:center; min-height:44px; color: var(--gold);}
.mast, .collection, .directory aside {padding-inline: var(--pad);}
.mast {padding-block: 10px clamp(24px,4vw,54px);}
.mast nav {display:flex; flex-wrap:wrap; gap:8px; align-items:center; color:#bcb5a4; font:14px/1.25 Arial,sans-serif;}
.mast nav a {display:inline-flex; align-items:center; min-height:44px;}
.mast nav a:hover {text-decoration:underline;}
.mast-grid {display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:6%; margin-top:16px;}
.directory h1 {font:400 clamp(42px,6.4vw,88px)/1.03 var(--serif); letter-spacing:-.045em; margin:0; overflow-wrap:anywhere;}
.directory-intro {color:#dedbd4; font-size:clamp(16px,1.3vw,19px); line-height:1.48; max-width:55ch;}
.shelf-actions {display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; margin-top:18px;}
.shelf-actions a {display:inline-flex; align-items:center; justify-content:center; min-height:44px;}
.collection {background:var(--paper); color:var(--ink); padding-block:clamp(24px,4vw,54px) clamp(32px,5vw,64px);}
.collection h2,.directory aside h2 {font:400 clamp(26px,3vw,40px)/1.14 var(--serif); letter-spacing:-.035em; margin:32px 0 16px;}
.collection > :first-child {margin-top:0;}
.collection h2 a {text-decoration-thickness:1px; text-underline-offset:5px;}
.directory-links, .bottles {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0; margin:0;}
.directory-links {list-style:none; gap:0 24px;}
.directory-links a {display:flex; justify-content:space-between; align-items:center; gap:12px; text-decoration:none; min-height:50px; padding:10px 2px; border-bottom:1px solid var(--rule);}
.directory-links a::after {content:'›'; font-size:20px; color:#80632b;}
.directory-links a:hover,.bottle-card:hover h3 {text-decoration:underline; text-underline-offset:3px;}
.bottles {gap:16px; align-items:start;}
.bottles article,.bottle-card {position:relative; min-width:0; background:#fff; border:1px solid var(--rule); border-radius:6px; overflow:hidden;}
.bottle-card {align-self:stretch; display:block; color:inherit; text-decoration:none;}
.photo {background:#f0ede4; height:clamp(140px,16vw,205px); display:grid; place-items:center; padding:14px;}
.photo img {width:100%; height:100%; min-height:0; object-fit:contain; mix-blend-mode:multiply;}
.caption {padding:16px;}
.producer {display:block; color:#745723; font:bold 12px/1.4 Arial,sans-serif; margin-bottom:4px; letter-spacing:.045em;}
.bottles h3 {font:400 clamp(21px,2vw,28px)/1.12 var(--serif); overflow-wrap:anywhere; letter-spacing:-.02em;}
.bottles p {font-size:15px; line-height:1.45; color:#575248; margin-top:8px;}
.bottles p:empty {display:none;}
.bottles article > span[id] {position:absolute; top:0; scroll-margin-top:16px;}
.bottles article:has(:target) {border-color:#927032; box-shadow:0 0 0 2px #927032;}
.directory aside {padding-block:28px 36px; color:#dedbd4;}
.directory aside h2 {margin-top:0; color:white;}
.directory aside a {display:inline-flex; align-items:center; min-height:44px; color:var(--gold);}
@media(max-width:740px){
  .mast-grid {grid-template-columns:1fr; gap:10px; margin-top:6px;}
  .directory-links {grid-template-columns:repeat(2,minmax(0,1fr));}
  .bottles {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:540px){
  .directory-links,.bottles {grid-template-columns:1fr;}
  .bottles {gap:10px;}
  .bottle-card,.bottles article:has(.photo) {display:grid; grid-template-columns:clamp(78px,24vw,110px) 1fr; align-items:center;}
  .photo {height:100%; min-height:116px; padding:10px;}
  .photo img {height:100px;}
  .caption {padding:13px;}
  .shelf-actions {gap:8px 12px;}
  .shelf-actions .button {padding:10px 14px;}
}
.mast .trip {margin-top:12px;color:var(--gold);font:600 15px/1.6 Arial,sans-serif}
.trip a {text-underline-offset:3px}
.directory aside .button {color:var(--black)}
@media(max-width:540px){
  .shelf-actions {display:grid;grid-template-columns:1fr}
  .shelf-actions a {min-height:48px}
  .shelf-actions .link {border:1px solid #aa935e;border-radius:4px;text-decoration:none}
}
