@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');
:root{--ink:#292c24;--muted:#797b71;--cream:#f6f4ed;--line:#dfdfd3;--green:#354d3c}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input,select{font:inherit}button,select{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a57553;outline-offset:3px}header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 5.5%}.brand{font-size:30px;display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--green)}.brand span{font-size:16px;letter-spacing:3px;font-weight:700}.private{margin-left:auto;font-size:10px;letter-spacing:2px;color:var(--muted)}button{background:var(--green);color:white;border:0;border-radius:5px;padding:12px 18px}main{max-width:1400px;padding:0 5.5%;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;min-height:330px;overflow:hidden}.eyebrow{font-size:10px;letter-spacing:3px;color:#737c64;font-weight:700}h1{font-family:'Playfair Display',Georgia,serif;font-weight:400;font-size:55px;line-height:1.13;margin:20px 0}h1 i{color:#5d7058}.subtitle{line-height:1.8;color:var(--muted);margin-bottom:30px}.bottles{position:relative;width:370px;height:280px;display:flex;align-items:flex-end;justify-content:center;gap:22px;background:radial-gradient(ellipse at bottom,#e5e4d5,transparent 70%)}.bottles>span{height:184px;width:57px;background:linear-gradient(90deg,#182f25,#40553b 40%,#213627);border-radius:18px 18px 9px 9px;position:relative;box-shadow:8px 8px 14px #293b2420;transform:rotate(-9deg)}.bottles>span:before{content:'';position:absolute;height:65px;width:20px;background:#263f2e;top:-50px;left:19px;border-radius:3px 3px 0 0;border-top:22px solid #b6a787}.bottles>span:after{content:'CELLAR';position:absolute;top:65px;left:3px;right:3px;height:67px;background:#eeeadb;color:#737057;text-align:center;padding-top:26px;font-size:7px;letter-spacing:1px}.bottles>span:nth-child(2){height:215px;width:65px;transform:rotate(0);z-index:1}.bottles>span:nth-child(3){transform:rotate(10deg);background:linear-gradient(90deg,#716a38,#a49e68,#6a673b)}.seal{position:absolute;right:0;top:45px;border:1px solid #b9b9a4;border-radius:50%;padding:22px 13px;text-align:center;font-size:9px;letter-spacing:2px;color:#7b806c;transform:rotate(14deg)}.stats{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 0}.stat{padding-left:30px;border-left:1px solid var(--line)}.stat:first-child{border:0;padding-left:0}.stat strong{font-family:'Playfair Display',Georgia,serif;font-size:31px;font-weight:400}.stat span{display:block;font-size:10px;letter-spacing:2px;color:var(--muted);margin-top:6px}.collection{padding:36px 0}.section-title{display:flex;align-items:center;justify-content:space-between}h2{font:400 27px 'Playfair Display',Georgia,serif}.section-title>span{color:var(--muted);font-size:12px}.toolbar{display:flex;gap:10px;margin:16px 0 20px}.search{display:flex;gap:12px;align-items:center;background:white;border:1px solid var(--line);border-radius:5px;padding:0 14px;flex:1}.search span{font-size:24px;color:var(--muted)}input{width:100%;padding:14px 0;border:0;background:transparent;min-width:0}select{border:1px solid var(--line);border-radius:5px;background:transparent;max-width:180px;padding:12px;color:var(--ink)}.subtoolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.tabs{display:flex;gap:7px;flex-wrap:wrap}.tabs button{background:transparent;color:#787a6e;padding:9px 15px;border-radius:30px}.tabs button.active{background:var(--green);color:white}.text{background:transparent;color:var(--muted);font-size:12px;padding:10px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fcfbf7;border:1px solid var(--line);border-radius:7px;padding:23px;cursor:pointer;text-align:left;color:var(--ink);display:flex;flex-direction:column;min-height:250px;transition:transform .15s,box-shadow .15s}.card:hover{transform:translateY(-3px);box-shadow:0 8px 22px #2e38220b}.card-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#813d45;margin-right:7px}.dot.white{background:#c9b66b}.dot.rose{background:#d69691}.dot.other{background:#829377}.vintage{font:400 28px 'Playfair Display',serif;margin:20px 0 7px;color:#667052}.card h3{font:400 20px/1.35 'Playfair Display',Georgia,serif;margin:0 0 8px}.origin{color:var(--muted);font-size:12px;line-height:1.6;margin-bottom:20px}.card-bottom{margin-top:auto;border-top:1px solid #e8e7df;padding-top:14px;display:flex;justify-content:space-between;font-size:12px}.card-bottom span:last-child{color:var(--muted)}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:25px 0 35px;font-size:10px;letter-spacing:1px;color:var(--muted)}footer small{letter-spacing:0}dialog{border:1px solid var(--line);border-radius:10px;background:var(--cream);color:var(--ink);width:650px;max-width:94vw;padding:36px}dialog::backdrop{background:#1c271cb3}.close{float:right;background:transparent;color:var(--ink);font-size:26px;padding:0 0 10px 15px}dialog h2{font-size:32px;line-height:1.3}dl{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:25px 0}dt{color:var(--muted);font-size:11px;margin-bottom:6px}dd{margin:0;line-height:1.5}.raw{border-top:1px solid var(--line);padding-top:18px;margin-top:25px}.raw dl{grid-template-columns:1fr 1fr}a{color:var(--green)}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--green);color:white;border-radius:6px;padding:14px 22px;display:none;max-width:90vw}#empty{padding:50px;text-align:center;color:var(--muted)}@media(min-width:1500px){.grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.toolbar{flex-wrap:wrap}.search{flex-basis:100%}.bottles{width:270px}.seal{right:-10px}h1{font-size:46px}}@media(max-width:560px){header{height:72px;gap:8px}.private{display:none}header button{margin-left:auto}.intro{min-height:310px}.bottles{display:none}h1{font-size:44px}.stats{grid-template-columns:repeat(2,1fr);gap:22px}.stat:nth-child(3){border:0;padding-left:0}.grid{grid-template-columns:1fr}.toolbar select{max-width:100%;flex:1;min-width:120px}.subtoolbar{align-items:flex-start}.tabs{gap:0}.tabs button{padding:9px 10px}.section-title h2{font-size:24px}footer{gap:20px;line-height:1.6}dialog{padding:24px}}
.wine-photo{height:200px;background:#fff;border-radius:5px;display:flex;align-items:center;justify-content:center;margin:18px 0 8px;overflow:hidden;width:100%}.wine-photo img{height:100%;width:100%;object-fit:contain;padding:10px}.wine-photo img[hidden]{display:none}.photo-caption{font-size:9px;color:var(--muted);line-height:1.5}.photo-placeholder{height:200px;margin-top:18px;display:grid;place-items:center;color:var(--muted);background:#efeee5;font-size:11px;border-radius:5px}.image-fallback{padding:20px;color:var(--muted);font-size:12px}.photo-review{font-size:12px;line-height:1.6}.photo-review p{margin:8px 0}.photo-explain{color:var(--muted)}.photo-actions{display:flex;gap:8px;margin:14px 0}.photo-actions button{font-size:12px}#photo-section .wine-photo{height:300px}

.storage-help{font-size:12px;line-height:1.6;color:var(--muted);background:#eeeee3;padding:12px 15px;border-radius:5px}.storage-help[hidden]{display:none}.storage-label{font-size:11px;color:var(--muted);margin:0 0 12px}.toolbar{flex-wrap:wrap}.toolbar .search{min-width:240px}header .brand span{font-size:14px;letter-spacing:2px}@media(max-width:560px){header .brand span{font-size:11px;letter-spacing:1px}.toolbar .search{min-width:100%}}

.intro .subtitle{max-width:370px}.hero-photos{width:400px;display:flex;align-items:flex-end;justify-content:center;gap:10px;padding:30px 10px}.hero-photos .hero-bottle{width:108px;height:230px;flex:none;background:#fcfbf7;border:1px solid var(--line);border-radius:60px 60px 8px 8px;box-shadow:0 10px 25px #293b2410;transform:rotate(-7deg);overflow:hidden}.hero-photos .hero-bottle:nth-child(2){height:265px;transform:translateY(-5px)}.hero-photos .hero-bottle:nth-child(3){transform:rotate(7deg)}.hero-photos img{padding:12px 8px;mix-blend-mode:multiply}.hero-photos .image-fallback{text-align:center;letter-spacing:2px;line-height:1.8;font-size:10px}@media(max-width:900px){.hero-photos{width:290px;gap:6px}.hero-photos .hero-bottle{width:78px;height:200px}.hero-photos .hero-bottle:nth-child(2){height:230px}}@media(max-width:560px){.hero-photos{display:none}.intro .subtitle{max-width:290px}}

.hero-crest{width:370px;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:15px 0}.hero-crest img{width:100%;height:300px;object-fit:contain;mix-blend-mode:multiply}@media(max-width:900px){.hero-crest{width:280px}.hero-crest img{height:270px}}@media(max-width:560px){.intro{flex-wrap:wrap;padding-top:15px}.hero-crest{width:100%;padding:0 0 25px}.hero-crest img{height:190px}.intro .subtitle{margin-bottom:5px}}

/* iPad touch controls and safe-area spacing. */
@media(pointer:coarse){button,select{min-height:44px}.close{min-width:44px}input{font-size:16px}.brand{min-height:44px}}header{padding-top:env(safe-area-inset-top)}

.window-label{font-size:11px;color:var(--muted);line-height:1.5;margin:0 0 10px}.window-label.ready{color:#354d3c}.window-label.young{color:#826b35}.window-label.past{color:#8b4d47}

.browse-panel{margin-top:30px;border:1px solid var(--line);border-radius:8px;background:#fcfbf7;padding:22px 26px}.browse-panel summary{cursor:pointer;font:400 26px 'Playfair Display',Georgia,serif}.browse-panel summary>span{display:inline-block;font:12px 'DM Sans',sans-serif;color:var(--muted);margin-left:15px}.browse-intro{font-size:12px;color:var(--muted);line-height:1.7;margin:16px 0}.browse-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:50px}.browse-category{border-top:1px solid var(--line);padding:20px 0}.browse-category h3,.browse-dates h3{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;margin:0 0 12px}.browse-options{display:flex;flex-direction:column;gap:3px}.browse-options.expanded{max-height:260px;overflow-y:auto}.browse-option{background:transparent;color:var(--green);display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;padding:7px 9px;border-radius:4px}.browse-option small{font-size:10px;white-space:nowrap;color:var(--muted)}.browse-option.selected{background:#e4eadf;font-weight:600}.browse-option:hover{background:#eeeee5}.browse-more{background:transparent;padding:10px 9px 0;font-size:12px;text-decoration:underline;color:var(--green)}.browse-unavailable{font-size:12px;color:var(--muted)}.browse-dates{border-top:1px solid var(--line);padding-top:22px;margin-top:5px}.browse-dates p,.browse-dates small{font-size:12px;color:var(--muted);line-height:1.6}.browse-dates form{display:flex;gap:10px;align-items:flex-end;margin:15px 0}.browse-dates label{font-size:12px;max-width:150px}.browse-dates input{display:block;background:white;border:1px solid var(--line);padding:10px;border-radius:4px;margin-top:6px}.browse-dates button{min-height:42px}#drink-range-error{color:#8b3434}.browse-active{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.browse-active[hidden]{display:none}.filter-chip{background:#e4eadf;color:var(--green);font-size:11px;padding:9px 12px;border-radius:20px}@media(max-width:560px){.browse-panel{padding:18px}.browse-panel summary>span{display:block;margin:8px 0 0 20px;line-height:1.5}.browse-grid{grid-template-columns:1fr}.browse-dates form{flex-wrap:wrap}.browse-dates label{max-width:45%}.browse-option{min-height:44px}}

header{height:auto;min-height:88px;flex-wrap:wrap;padding-bottom:12px;padding-top:12px;gap:10px}.signout{margin:0}.signout input{display:none}.signout button{white-space:nowrap}.backup-row{padding:15px 0;border-top:1px solid var(--line);display:flex;gap:16px;align-items:center}.backup-row>div{flex:1}.backup-row small{color:var(--muted)}@media(max-width:560px){header .private{display:none}.backup-row{flex-wrap:wrap}}

/* Keep italic overhangs and descenders visible in the collection headline. */
.intro{overflow:visible}.intro h1{line-height:1.2;padding-bottom:.12em}


/* Subtle disclosure for a photo without a matching vintage listing. */
.wine-photo{position:relative}.photo-watermark{position:absolute;bottom:8px;right:9px;max-width:calc(100% - 18px);font-size:11px;line-height:1.35;font-weight:400;letter-spacing:.05px;color:#5e6758;opacity:.72;pointer-events:none;text-align:right;text-shadow:0 1px 2px #fff}.photo-watermark[hidden]{display:none}

/* Unified filters */
.unified-toolbar{display:flex;flex-wrap:nowrap;align-items:stretch;gap:10px}.unified-toolbar .search{flex:1;min-width:180px}.unified-toolbar #sort{max-width:195px}.unified-toolbar #filter-toggle{white-space:nowrap;background:transparent;border:1px solid var(--line);color:var(--green);min-width:100px}.unified-toolbar #filter-toggle[aria-expanded=true]{background:#e4eadf;border-color:#b9c5b2}.unified-panel{margin:0 0 20px;padding:20px 24px}.unified-panel[hidden],.unified-panel [hidden],.active-filter-row [hidden]{display:none!important}.filter-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.filter-heading h3{font:400 23px 'Playfair Display',Georgia,serif;margin:0}.unified-panel .browse-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px}.unified-panel .browse-category{min-width:0}.unified-panel .browse-option{width:100%}.unified-panel .browse-option span{min-width:0;overflow-wrap:anywhere}.unified-panel .browse-dates{margin-top:14px}.drink-date-heading{margin-top:24px!important}.active-filter-row{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.active-filter-row .browse-active{margin:0 0 20px;flex:1}.active-filter-row #reset{white-space:nowrap}.collection .section-title{gap:15px}.unified-toolbar .search input{min-width:0}
@media(max-width:900px){.unified-toolbar{flex-wrap:wrap}.unified-toolbar .search{flex-basis:100%}.unified-toolbar #sort{flex:1;max-width:none}.unified-panel .browse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.unified-panel{padding:18px}.unified-panel .browse-grid{grid-template-columns:1fr}.unified-toolbar #filter-toggle{margin-left:0}.active-filter-row{flex-wrap:wrap}.active-filter-row .browse-active{flex-basis:100%;margin-bottom:0}.active-filter-row #reset{margin-bottom:15px}.unified-panel select{max-width:100%}}

/* Anchor the status lines together above the card footer. */
.card .window-label{margin-top:auto}.card .card-bottom{margin-top:0;flex-shrink:0}


/* Keep provenance detail in the wine dialog, not beneath every card photo. */
.card > .photo-caption{display:none}

/* Viewer display layout */
.card .card-meta{margin-top:auto}.card .card-meta .window-label{margin-top:0}.stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}

/* Tonight randomiser */
.tonight{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:30px 0;border-bottom:1px solid var(--line)}.tonight[hidden]{display:none}.tonight-heading .eyebrow{margin:0 0 10px}.tonight h2{margin:0;font-size:29px}.tonight-heading>p:last-child{color:var(--muted);font-size:13px;margin:10px 0 0}.tonight-controls{width:490px;max-width:100%}.tonight-controls>label{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px;margin-bottom:12px}.tonight-controls output{font-family:'Playfair Display',Georgia,serif;font-size:24px;color:var(--green)}.tonight-control-row{display:flex;align-items:center;gap:22px}.tonight input[type=range]{accent-color:var(--green);width:100%;min-width:0;padding:0;flex:1;height:30px}.tonight button{white-space:nowrap}.tonight button:disabled{opacity:.45;cursor:default}.tonight-controls>p{font-size:12px;color:var(--muted);line-height:1.6;margin:10px 0 0}.tonight-actions{border-top:1px solid var(--line);padding-top:20px;margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.tonight-actions small{font-size:12px;color:var(--muted)}
@media(max-width:700px){.tonight{align-items:flex-start;flex-direction:column;gap:24px}.tonight-controls{width:100%}.tonight-control-row{gap:15px}.tonight-actions{flex-wrap:wrap}}
/* Bottle shuffle */
/* Restaurant menu view */
.collection-controls{display:flex;gap:22px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.view-switch{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;flex-shrink:0}.view-switch button{border:0;border-radius:0;background:transparent;color:var(--green);font-size:12px;padding:10px 15px}.view-switch button[aria-pressed=true]{background:var(--green);color:var(--bg,#f7f5ed)}.grid[hidden],.restaurant-menu[hidden]{display:none}.menu-group{margin:0 0 40px}.menu-group>h3{font-family:Arial,sans-serif;font-size:11px;letter-spacing:2.5px;text-transform:uppercase;font-weight:500;color:var(--green);padding:15px 0;border-bottom:1px solid var(--line);margin:0}.menu-wine{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:24px;width:100%;text-align:left;border:0;border-radius:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);padding:23px 0;white-space:normal}.menu-wine:hover{background:#354d3c08}.menu-vintage{font-family:'Playfair Display',Georgia,serif;font-size:17px;color:var(--green);overflow-wrap:anywhere}.menu-description{display:flex;flex-direction:column;gap:9px;min-width:0}.menu-description strong{font-family:'Playfair Display',Georgia,serif;font-size:20px;font-weight:400;line-height:1.4}.menu-description>span{font-size:12px;color:var(--muted);line-height:1.7}.menu-end{display:flex;flex-direction:column;align-items:flex-end;gap:9px;min-width:90px}.menu-end small{font-size:11px;color:var(--muted);line-height:1.5}.menu-cost{display:flex;align-items:center;gap:6px;font-size:14px}.menu-cost>small{font-size:10px}.restaurant-menu{margin-top:24px}@media(max-width:700px){.section-title{flex-wrap:wrap;gap:16px}.collection-controls{justify-content:flex-start;gap:16px}.menu-wine{gap:16px;grid-template-columns:44px minmax(0,1fr) auto}.menu-description strong{font-size:18px}}@media(max-width:480px){.menu-wine{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:20px 0}.menu-end{grid-column:2;align-items:flex-start;min-width:0;flex-direction:row;align-items:center;gap:14px;flex-wrap:wrap}.menu-description strong{font-size:17px}.collection-controls{width:100%;justify-content:space-between}.menu-vintage{align-self:start}}
.cost-bottles{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;line-height:1}.cost-bottle{width:11px;height:27px;stroke:var(--green);stroke-width:1.5;stroke-linejoin:round}.cost-bottle.filled{fill:var(--green)}.cost-bottle.outline{fill:none;opacity:.22}.cost-bottle .bottle-band{fill:none;stroke:var(--bg,#f7f5ed);stroke-width:1}.cost-bottle.outline .bottle-band{stroke:var(--green)}.cost-unknown{font-size:11px;color:var(--muted)}#tonight-value .cost-bottle{width:15px;height:36px}#tonight-value .cost-bottles{gap:6px}
.tonight-shuffle{padding:42px 10px 30px;text-align:center;min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center}.tonight-shuffle h2{font-size:28px;margin:30px 0 14px}.tonight-shuffle small{color:var(--muted);font-size:12px}.shuffle-name{font-size:15px;color:var(--green);min-height:3em;max-width:400px;margin:0 0 14px;line-height:1.5}.shuffle-bottle{position:relative;width:45px;height:100px;border-radius:17px 17px 7px 7px;background:linear-gradient(90deg,#243c2c,#50634b 48%,#243c2c);margin-top:36px;transform-origin:50% 85%;animation:bottle-sway .45s ease-in-out infinite alternate}.shuffle-bottle:before{content:'';position:absolute;width:15px;height:40px;background:linear-gradient(#b2a17a 0 25%,#354d3c 25%);left:15px;top:-32px;border-radius:3px 3px 0 0}.shuffle-bottle:after{content:'AW';position:absolute;left:6px;right:6px;top:36px;padding:12px 0;background:#eeeadb;color:#6e785d;font:12px Georgia,serif;letter-spacing:2px;box-shadow:0 1px 3px #0001}@keyframes bottle-sway{from{transform:rotate(-10deg) translateY(0)}to{transform:rotate(10deg) translateY(-7px)}}@media(prefers-reduced-motion:reduce){.shuffle-bottle{animation:none}}
