@font-face {
  font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "DM Sans"; src: url("assets/fonts/dm-sans-normal-400-900.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --cream: #f4ead9;
  --paper: #fbf5eb;
  --ink: #2b1a0e;
  --copper: #92541d;
  --muted: #6e5947;
  --rule: #d7c7b3;
  --amber: #e8962e;
  --honey: #f5b942;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.55 var(--sans); }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
button { color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 3px solid #a84c06; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - clamp(48px, 11vw, 176px), 1250px); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -6rem; z-index: 5; padding: .75rem; background: white; }
.skip:focus { top: 8px; }
.mast { border-bottom: 1px solid var(--rule); }
.mast-inner { min-height: 94px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.wordmark img { width: 121px; height: auto; }
.mast nav { display: flex; gap: clamp(16px, 2.4vw, 42px); }
.mast nav a, .bag-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .87rem; font-weight: 550; }
.mast nav a:hover, .bag-link:hover { color: var(--copper); }
.bag-link { justify-self: end; gap: 10px; padding: 0 3px; }
.product, .film-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(36px, 7.6vw, 122px); align-items: center; }
.product { padding-block: clamp(30px, 4vw, 60px) clamp(52px, 6vw, 94px); }
.product-gallery, .product-copy, .film-copy { min-width: 0; }
.main-shot { position: relative; aspect-ratio: .83; background: #dcb484; overflow: hidden; }
.main-shot img, .detail-image img { width: 100%; height: 100%; object-fit: cover; }
.main-shot img { position: absolute; inset: 0; object-position: 50% 48%; }
.main-shot img[data-current="texture"] { object-position: 50% 59%; }
.main-shot img[data-current="in-hand"] { object-position: 50% 43%; }
.gallery-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 13px; }
.views { display: flex; gap: 7px; }
.view { position: relative; width: 48px; height: 51px; padding: 3px; border: 1px solid transparent; }
.view[aria-pressed="true"] { border-color: var(--copper); }
.view:hover img { opacity: .84; }
.view img { width: 100%; height: 100%; object-fit: cover; }
#photo-caption { font: italic 1.15rem var(--serif); color: var(--muted); }
.product-copy { width: 100%; max-width: 456px; margin-bottom: 32px; }
h1, h2, .bag-product h3, #order-preview h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(5.4rem, 7.8vw, 7.75rem); line-height: .84; letter-spacing: -.045em; }
h1 em, .bottle-details em { color: var(--copper); }
.intro { max-width: 32ch; margin-top: clamp(21px, 2.2vw, 34px); font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.5; color: #5f4835; }
.purchase { margin-top: clamp(23px, 2.5vw, 40px); border-top: 1px solid var(--rule); padding-top: 17px; }
.product-meta, .buy-row, .quantity, .bag-controls, .subtotal { display: flex; align-items: center; }
.product-meta { gap: 10px; justify-content: space-between; font-size: .9rem; }
.product-meta strong { font-size: 1.35rem; font-weight: 550; }
.product-meta small { margin-left: 4px; color: var(--muted); font-size: .73rem; white-space: nowrap; }
.size-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--copper); font-size: .9rem; font-weight: 550; }
.size-link:hover { color: var(--ink); }
.size-link small { color: var(--muted); font-size: .75rem; }
.size-link + .buy-row { margin-top: 4px; }
.buy-row { gap: 10px; margin-top: 15px; }
.quantity { flex-shrink: 0; border: 1px solid #ac9278; height: 52px; }
.quantity button, .quantity output { display: grid; place-items: center; }
.quantity button { width: 42px; height: 100%; font-size: 1.1rem; }
.quantity output { padding-inline: 1px; min-width: 20px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.quantity button:hover:enabled { background: #ecdfcc; }
.primary { display: flex; align-items: center; justify-content: center; min-height: 52px; background: var(--ink); color: #fff8ee; padding: 12px 20px; font-size: .95rem; font-weight: 550; }
.primary:hover:enabled { background: #51301b; }
.buy-row .primary { flex: 1; justify-content: space-between; }
.buy-row .primary::after, .shop-back::after { content: "↗"; font: 1.2rem var(--sans); }
.film-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 24px; text-decoration: none; }
.film-link strong, .film-link small { display: block; }
.film-link strong { font-size: .89rem; font-weight: 550; }
.film-link:hover strong { text-decoration: underline; text-underline-offset: .22em; }
.film-link small { color: var(--muted); font-size: .78rem; }
.film-thumb { position: relative; }
.film-thumb img { width: 44px; height: 52px; object-fit: cover; object-position: center 32%; }
.film-thumb svg { position: absolute; width: 17px; height: 17px; bottom: 2px; right: 2px; }
.film-section { color: var(--cream); background: var(--ink); padding-block: clamp(55px, 6vw, 96px); }
.film-section :focus-visible { outline-color: var(--honey); }
.cinema { display: grid; place-items: center; }
.screen { width: min(100%, 23rem, 42svh); }
.screen video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; background: #140d08; }
.screen figcaption { margin-top: 10px; color: #d6be9e; font-size: .75rem; text-align: center; }
.film-copy { width: 100%; max-width: 425px; }
.film-copy h2, .bottle-details h2 { font-size: clamp(3.3rem, 5.9vw, 5.65rem); letter-spacing: -.045em; line-height: .94; }
.film-copy h2 em { color: var(--honey); }
.film-copy > p { margin-block: 22px; max-width: 35ch; color: #e2cfb4; }
.chapters { border-top: 1px solid #67503b; }
.chapters button { display: flex; gap: 19px; align-items: center; width: 100%; padding: 11px 2px; min-height: 45px; border-bottom: 1px solid #67503b; text-align: left; font-size: .9rem; }
.chapters button::after { content: "▷"; margin-left: auto; }
.chapters button span { font-variant-numeric: tabular-nums; color: #e5be82; font-size: .79rem; }
.chapters button:hover, .chapters button[data-active] { color: var(--honey); }
.transcript { margin-top: 9px; font-size: .85rem; color: #e2cfb4; }
.transcript summary { cursor: pointer; padding-block: 10px; }
.transcript p { margin-bottom: 10px; }
.shop-back { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; margin-top: 7px; font-size: .88rem; color: var(--cream); }
.details-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 8vw, 125px); padding-block: clamp(56px, 7.5vw, 115px); align-items: center; }
.bottle-details h2 { margin-bottom: 32px; }
.bottle-details dl { border-top: 1px solid var(--rule); }
.bottle-details dl > div { display: grid; grid-template-columns: 1fr 1.7fr; gap: 12px; padding-block: 13px; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.bottle-details dt { color: var(--muted); }
.detail-image { aspect-ratio: 1.5; overflow: hidden; }
.detail-image img { object-position: 50% 75%; }
.footer { background: var(--cream); border-top: 1px solid var(--rule); }
.footer .wrap { display: flex; justify-content: space-between; gap: 28px; align-items: center; padding-block: 26px; }
.footer a { text-decoration: none; font: 1.65rem var(--serif); letter-spacing: .05em; }
.footer p { font-size: .77rem; color: var(--muted); }
#bag { width: min(100%, 460px); max-width: 100vw; height: 100%; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; color: var(--ink); background: var(--paper); }
#bag::backdrop { background: rgb(32 17 6 / 52%); }
body:has(dialog[open]) { overflow: hidden; }
#size-dialog { width: min(24rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
#size-dialog::backdrop { background: rgb(32 17 6 / 72%); }
.size-heading { display: flex; align-items: center; justify-content: space-between; padding: .4rem 1rem; gap: .75rem; }
.size-heading h2 { font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.15; }
.size-heading button { min-height: 44px; text-decoration: underline; text-underline-offset: .24em; font-size: .85rem; }
#size-film { width: 100%; height: auto; max-height: calc(100dvh - 6rem); aspect-ratio: 9 / 16; object-fit: contain; background: #140d08; }
.bag-inner { padding: clamp(20px, 3vw, 38px); }
.bag-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.bag-header h2 { font-size: 3rem; line-height: 1; }
.bag-header button, .text-button { padding: 0; text-underline-offset: 4px; text-decoration: underline; font-size: .86rem; min-height: 44px; }
#empty-bag > p { margin-block: 26px; }
.bag-product { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.bag-product img { width: 75px; height: 102px; object-fit: cover; }
.bag-product h3, #order-preview h3 { font-size: 1.8rem; line-height: 1.1; }
.bag-product p, .bag-note, #order-preview p { color: var(--muted); font-size: .88rem; }
.bag-product p { margin-top: 4px; }
.bag-controls, .subtotal { justify-content: space-between; gap: 12px; }
.bag-controls { margin-block: 22px; }
.subtotal { border-top: 1px solid var(--rule); padding-top: 18px; }
.bag-note { margin-block: 12px 20px; }
.bag-inner .primary { width: 100%; }
#order-preview { border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 22px; }
#order-preview p { margin-top: 8px; }
@media (min-width: 901px) {
  .product-gallery { display: grid; grid-template-columns: 48px 1fr; gap: 10px 13px; align-items: start; }
  .main-shot { grid-column: 2; grid-row: 1; }
  .gallery-line { display: contents; }
  .views { grid-column: 1; grid-row: 1; flex-direction: column; }
  #photo-caption { grid-column: 2; text-align: right; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .product, .film-grid { gap: 32px; grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(4.7rem, 9.8vw, 6rem); }
  .quantity button { width: 36px; }
  .main-shot { aspect-ratio: .82; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .mast-inner { min-height: 70px; }
  .wordmark img { width: 98px; }
  .mast nav { gap: 0; }
  .mast nav a:first-child { display: none; }
  .mast nav a, .bag-link { font-size: .8rem; }
  .bag-link { gap: 7px; }
  .bag-link svg { width: 16px; }
  .product { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 22px 46px; }
  .product-gallery, .product-copy { display: contents; }
  .product h1 { order: 0; font-size: clamp(2.9rem, 10.45vw, 4.5rem); line-height: 1.04; margin-bottom: 15px; }
  .product h1 br { display: none; }
  .product h1 em::before { content: " "; }
  .main-shot { order: 1; aspect-ratio: .87; }
  .gallery-line { order: 2; margin-top: 8px; }
  .view { width: 43px; height: 44px; }
  .intro { order: 3; margin-top: 20px; max-width: 36ch; font-size: 1.04rem; }
  .purchase { order: 4; margin-top: 17px; padding-top: 12px; }
  .buy-row { margin-top: 11px; }
  .quantity button { width: 44px; }
  .film-link { order: 5; align-self: start; margin-top: 18px; }
  .film-grid { display: flex; flex-direction: column; align-items: stretch; gap: 26px; }
  .film-copy { display: contents; }
  .film-copy h2 { order: 0; }
  .film-copy h2 br { display: none; }
  .film-copy h2 em::before { content: " "; }
  .cinema { order: 1; }
  .screen { max-width: min(72vw, 260px); }
  .film-copy > p { order: 2; margin: 0; }
  .chapters { order: 3; }
  .transcript { order: 4; margin-top: -15px; }
  .shop-back { order: 5; margin-top: -18px; align-self: start; }
  .details-section { grid-template-columns: 1fr; gap: 22px; padding-block: 48px; }
  .bottle-details h2 { margin-bottom: 21px; }
  .footer .wrap { flex-direction: column; align-items: start; gap: 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  .primary, .mast a, .view img, .chapters button { transition: background-color .16s, color .16s, opacity .16s; }
}

footer a.portfolio-return { color: inherit; font: inherit; letter-spacing: inherit; text-decoration: underline; text-underline-offset: .18em; }
