@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("assets/playfair.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("assets/playfair-italic.woff2") format("woff2");
  font-weight: 500 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #111a33;
  --navy-deep: #0d1529;
  --ivory: #f6f3e9;
  --paper: #fffdf7;
  --gold: #e6c183;
  --gold-ink: #785725;
  --ink: #142039;
  --muted: #4b5160;
  --light-muted: #dddbe1;
  --line: #dbd3c0;
  --serif: Playfair, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1.15rem, 4.5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
h2 { font-size: clamp(2.55rem, 5vw, 4.55rem); }
a { color: inherit; text-underline-offset: .25em; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #91652c; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .project-band :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.shell { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; background: var(--ivory); padding: .55rem 1rem; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 2; background: var(--navy); color: var(--ivory); border-bottom: 1px solid #c6a56638; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; min-height: 5.5rem; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .75rem; color: var(--ivory); text-decoration: none; }
.brand img { width: 3.15rem; height: 3.15rem; border-radius: 50%; }
.brand span { font: 500 1.13rem/1.02 var(--serif); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 3.4rem); }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--gold); }
.cart-trigger { display: inline-flex; align-items: center; justify-self: end; gap: .6rem; min-height: 2.75rem; padding: .4rem .75rem; border: 1px solid #dcb8797a; color: var(--gold); background: transparent; font-weight: 700; font-size: .9rem; }
.cart-trigger:hover { background: #e6c18319; }
.cart-count { display: grid; place-items: center; min-width: 1.45rem; min-height: 1.45rem; padding-inline: .15rem; border-radius: 2rem; background: var(--gold); color: var(--navy-deep); font-size: .78rem; }
.bag-icon { display: inline-block; position: relative; width: .9rem; height: .85rem; border: 1px solid currentColor; margin-top: .18rem; }
.bag-icon::before { content: ""; position: absolute; width: .43rem; height: .38rem; border: 1px solid currentColor; border-bottom: 0; border-radius: .3rem .3rem 0 0; left: 50%; bottom: 100%; transform: translateX(-50%); }

.eyebrow { color: var(--gold-ink); font-size: .875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero, .project-band, .story-hero { background: var(--navy); color: var(--ivory); }
.hero .eyebrow, .project-band .eyebrow, .story-hero .eyebrow { color: var(--gold); }
.hero-grid { display: grid; grid-template-columns: .87fr 1.13fr; align-items: stretch; padding-block: 2.2rem 2.55rem; }
.hero-copy { align-self: center; padding: clamp(2rem, 4vw, 4rem) clamp(1.75rem, 3.6vw, 3.75rem) clamp(2rem, 4vw, 4rem) 0; }
.hero h1 { margin: 1.1rem 0 1.45rem; font-size: clamp(4rem, 6.3vw, 6.1rem); line-height: .99; }
.hero h1 em, .project-band h2 em, .story-hero h1 em { color: var(--gold); font-weight: 500; }
.hero-copy > p:not(.eyebrow), .project-teaser > div > p:not(.eyebrow), .story-grid > div > p:not(.eyebrow), .story-end > div > p:not(.eyebrow) { max-width: 34rem; color: var(--light-muted); font-size: 1.075rem; line-height: 1.62; }
.hero-copy > p:not(.eyebrow) { max-width: 25rem; }
.hero-photo { position: relative; overflow: hidden; isolation: isolate; min-height: 31.5rem; background: #293148; }
.hero-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 59% 50%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; border: 1px solid #e6c18375; pointer-events: none; }
.hero-photo figcaption { position: absolute; z-index: 1; bottom: .8rem; right: .85rem; padding: .25rem .55rem; background: #0d1529eb; color: var(--ivory); font-size: .78rem; letter-spacing: .015em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.15rem; padding: .65rem 1.2rem; border: 1px solid transparent; text-decoration: none; text-align: center; line-height: 1.25; font-weight: 700; transition: background-color .18s, color .18s; }
.button-gold { background: var(--gold); color: var(--navy-deep); }
.button-gold:hover { background: #f7d7a5; }
.hero-copy > .button { margin-top: 1.65rem; padding-inline: 1.45rem; }
.button-navy { background: var(--navy); color: var(--ivory); }
.button-navy:hover { background: #293958; }
.button-outline-light { color: var(--gold); border-color: #d8b5779c; }
.button-outline-light:hover { color: var(--navy); background: var(--gold); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: var(--ivory); }

.catalog { padding-block: clamp(3.35rem, 6vw, 6rem); }
.section-heading { max-width: 47rem; margin: 0 auto 2.4rem; text-align: center; }
.section-heading h2 { margin: .55rem 0 .8rem; }
.section-heading > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.1vw, 1.75rem); align-items: start; }
.product { display: flex; flex-direction: column; min-height: 100%; background: var(--paper); border: 1px solid var(--line); }
.product-grid:has(.ingredients[open]) .product { min-height: 0; }
.product-frame { position: relative; }
.product-photo { width: 100%; aspect-ratio: 1.07; object-fit: cover; background: #d5bc9c; }
.product-frame figcaption { position: absolute; bottom: .55rem; right: .55rem; padding: .2rem .45rem; color: var(--ivory); background: #0d1529eb; font-size: .8125rem; }
.photo-controls { display: flex; gap: .25rem; align-items: center; padding: .25rem .5rem; border-bottom: 1px solid var(--line); }
.photo-controls button { flex: 1; min-height: 2.75rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 600; }
.photo-controls button:hover { color: var(--navy); background: var(--ivory); }
.photo-controls button[aria-pressed="true"] { color: var(--navy); border-bottom-color: var(--gold-ink); }
.product-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: clamp(1rem, 2vw, 1.55rem); }
.product-note { color: var(--gold-ink); font-size: .875rem; font-weight: 700; }
.product h3 { margin-block: .3rem .7rem; font-size: clamp(2rem, 3.1vw, 2.8rem); }
.product h3 + p { color: var(--muted); margin-bottom: .65rem; }
.product .button { width: 100%; justify-content: space-between; gap: .3rem; margin-top: auto; }
.product .button span { font-size: 1.25rem; line-height: 1; }
.ingredients { width: 100%; margin-bottom: .8rem; border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: .85rem; min-height: 2.75rem; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; height: .48rem; width: .48rem; flex: 0 0 auto; border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin: -.2rem .3rem 0 0; }
details[open] > summary::after { transform: rotate(225deg); margin-top: .3rem; }
.ingredients summary { font-size: .95rem; }
.ingredients ul { margin: .15rem 0 .8rem; padding-left: 1.2rem; color: var(--muted); font-size: .95rem; }
.catalog-note { margin: 1.45rem auto 0; color: var(--muted); text-align: center; font-size: .95rem; }

.project-band { background: var(--navy-deep); }
.project-teaser, .story-grid, .story-end { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 6vw, 6rem); }
.project-teaser img, .story-grid img { width: 100%; aspect-ratio: 1.77; object-fit: cover; border: 1px solid #e6c18375; }
.project-teaser h2, .story-end h2 { font-size: clamp(2.25rem, 4.2vw, 4rem); margin-block: .6rem 1rem; }
.project-teaser .button, .story-end .button { margin-top: 1.4rem; }
.story-hero h1 { font-size: clamp(3rem, 5.3vw, 5.8rem); margin: .85rem 0 1.2rem; }
.story-hero figcaption { color: var(--light-muted); margin-top: .5rem; font-size: .875rem; }
.team { padding-block: clamp(3.5rem, 6vw, 6rem); }
.portraits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.45rem, 1.25vw, 1rem); margin-bottom: 2rem; }
.portraits img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e7dfcf; }
.team-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; }
.team-grid li { border-top: 1px solid var(--line); padding: 1.1rem 0 .95rem; }
.team-grid h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.25; }
.team-grid p { color: var(--gold-ink); margin-top: .3rem; font-size: .95rem; }
.faq { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(3.2rem, 6vw, 6rem); }
.faq h2 { margin-top: .45rem; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 3.85rem; padding: .6rem 0; }
.faq-list details p { margin: 0 .6rem 1rem 0; color: var(--muted); }

.site-footer { color: var(--ivory); background: var(--navy); border-top: 1px solid #c6a56638; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 7rem; padding-block: 1rem; }
.footer-inner p { color: var(--light-muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--gold); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.no-script { padding: 1rem; text-align: center; }

body:has(.cart[open]) { overflow: hidden; }
.cart { color: var(--ink); background: var(--paper); border: 0; width: min(100%, 30rem); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; overflow: auto; }
.cart::backdrop { background: #0b1429a3; }
.cart-inner { padding: clamp(1.1rem, 4vw, 2rem); }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: clamp(2.1rem, 7vw, 2.75rem); }
.close-cart { border: 1px solid var(--line); }
.close-cart, .quantity button { display: grid; place-items: center; background: transparent; color: var(--ink); min-width: 2.75rem; min-height: 2.75rem; padding: 0; font-size: 1.35rem; }
.close-cart:hover, .quantity button:hover { background: var(--ivory); }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 3.6rem 1fr auto; align-items: center; gap: .8rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.cart-item img { aspect-ratio: 1; object-fit: cover; }
.cart-item h3 { font-size: 1.35rem; }
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--line); gap: .25rem; }
.quantity button { border: 0; }
.quantity button:disabled { cursor: default; opacity: .5; }
.cart-empty, .cart-checkout { padding-top: 1.35rem; }
.cart-empty .button { margin-top: 1rem; }
.cart-checkout p, .cart-empty p { color: var(--muted); }
.cart-checkout label { display: block; font-weight: 700; margin: 1.2rem 0 .35rem; }
.cart-checkout input, .cart-checkout textarea { display: block; width: 100%; border: 1px solid #a8a295; color: var(--ink); background: #fff; border-radius: 0; padding: .6rem .7rem; }
.cart-actions { display: grid; gap: .6rem; margin-top: 1.15rem; }
.cart-checkout .cart-help { font-size: .9rem; margin-top: .7rem; }
.cart-checkout textarea { margin-top: .7rem; }
.sr-only { position: absolute; height: 1px; width: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 58rem) {
  .hero-grid { grid-template-columns: .92fr 1.08fr; }
  .hero h1 { font-size: clamp(3.8rem, 7.5vw, 5rem); }
  .hero-photo { min-height: 29rem; }
  .product-grid { gap: .9rem; }
  .product-body { padding: .95rem; }
}
@media (max-width: 46rem) {
  html { scroll-padding-top: 6.5rem; }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 1rem; padding-top: .55rem; }
  .brand img { width: 2.6rem; height: 2.6rem; }
  .brand span { font-size: 1rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: 2rem; }
  .site-nav a { min-height: 2.55rem; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 0; gap: .25rem; padding-bottom: 1.35rem; }
  .hero-copy { padding: 2.4rem 0 1.45rem; }
  .hero h1 { font-size: clamp(2.85rem, 9vw, 4.35rem); margin-block: .75rem 1.05rem; }
  .hero h1 .hero-break { display: none; }
  .hero-copy > .button { margin-top: 1.15rem; }
  .hero-copy > p:not(.eyebrow) { max-width: 30rem; font-size: 1rem; }
  .hero-photo { min-height: 0; aspect-ratio: 1.36; }
  .hero-photo img { object-position: 57% 52%; }
  .section-heading { margin-bottom: 1.65rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-teaser, .story-grid, .story-end, .faq { grid-template-columns: 1fr; gap: 1.45rem; }
  .project-teaser figure { order: 1; }
  .portraits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { align-items: start; flex-direction: column; gap: .65rem; min-height: auto; padding-block: 1.5rem; }
}
@media (max-width: 32rem) {
  .product-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .product-body { padding: 1.1rem; }
  .cart-item { grid-template-columns: 3.15rem 1fr auto; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.section-heading { position: relative; }
.heading-ornament {
  display: block;
  width: 3rem;
  margin: 0 auto .6rem;
  opacity: .88;
}
@media (min-width: 65rem) {
  .heading-ornament {
    position: absolute;
    top: 1.55rem;
    width: 6.1rem;
    margin: 0;
    pointer-events: none;
  }
  .heading-ornament-olivier { left: -5.25rem; transform: rotate(-12deg); }
  .heading-ornament-citron { right: -4.7rem; top: -.15rem; width: 4.9rem; transform: rotate(9deg); }
}

.ingredients .packshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: .8rem .45rem;
  padding: .2rem 0 .75rem;
  list-style: none;
}
.packshot-button {
  display: grid;
  place-content: start stretch;
  gap: .4rem;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: center;
  font-size: .875rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.packshot-frame {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fff;
}
.packshot-button:hover .packshot-frame { border-color: var(--gold-ink); }
.packshot-frame img, .packshot-view img {
  position: absolute;
  inset: .35rem;
  margin: auto;
  width: auto;
  height: auto;
  max-width: calc(100% - .7rem);
  max-height: calc(100% - .7rem);
}
[data-photo-mask="jar"] {
  clip-path: polygon(9% 8%, 21% 4%, 78% 4%, 89% 8%, 91% 19%, 87% 25%, 89% 34%, 88% 82%, 85% 89%, 77% 94%, 29% 94%, 14% 90%, 10% 84%, 9% 34%, 12% 24%, 9% 19%);
}
[data-photo-mask="round"] { clip-path: ellipse(46% 44.5% at 50% 49.5%); }
[data-photo-mask="bottle"] {
  clip-path: polygon(27% 2%, 66% 2%, 71% 4%, 71% 10%, 68% 12%, 72% 29%, 77% 35%, 86% 42%, 95% 51%, 96% 95%, 89% 99%, 12% 99%, 4% 95%, 4% 54%, 9% 45%, 19% 36%, 25% 28%, 28% 12%, 24% 10%, 24% 4%);
}
[data-photo-mask="tomatoes"] {
  clip-path: polygon(4% 9%, 13% 4%, 87% 4%, 96% 9%, 96% 24%, 92% 29%, 96% 42%, 96% 88%, 91% 95%, 80% 97%, 18% 97%, 6% 93%, 3% 86%, 3% 40%, 8% 29%, 3% 23%);
}

body:has(.packshot-view[open]) { overflow: hidden; }
.packshot-view {
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 1rem 1.15rem 1.35rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.packshot-view::backdrop { background: #0b1429a3; }
.packshot-view-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.packshot-view h2 { font-size: clamp(1.35rem, 5vw, 1.9rem); }
.packshot-view .close-cart { flex: none; }
.packshot-view figure { position: relative; margin-top: 1rem; height: min(55vh, 23rem); }

@media (min-width: 46.01rem) and (max-width: 70rem) {
  .ingredients .packshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 32.01rem) and (max-width: 46rem) {
  .ingredients .packshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
