:root {
  --bg: #faf8f3;
  --paper: #fffdfa;
  --text: #1f1f1f;
  --muted: #4a4a4a;
  --copper: #b86b3b;
  --copper-dark: #9d572f;
  --olive: #5f6f45;
  --divider: #e7e1d8;
  --shadow: 0 20px 60px rgba(73, 54, 36, .08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--sans);
  background: linear-gradient(180deg, #fffefd 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.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; }

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  background: rgba(255, 254, 252, .9);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 10;
}
.header-inner {
  width: min(100%, 1218px);
  margin: 0 auto;
  padding: 0 42px;
  display: grid;
  grid-template-columns: 220px 1fr 112px;
  align-items: center;
  gap: 24px;
}
.brand {
  width: 158px;
  line-height: 1;
  text-transform: uppercase;
  color: #171717;
}
.brand-main {
  display: block;
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .19em;
  transform: scaleX(.78);
  transform-origin: left center;
  white-space: nowrap;
}
.brand-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  transform: scaleX(.9);
  transform-origin: left center;
  white-space: nowrap;
}
.brand-sub i { width: 18px; height: 1px; background: #111; opacity: .82; }
.brand-sub i:last-child { width: 10px; }
.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(34px, 5.6vw, 72px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.primary-nav a { position: relative; padding: 8px 0; }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform .24s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 25px; }
.icon-link {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  position: relative;
}
.icon-link svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-link svg circle { fill: none; }
.cart-badge {
  position: absolute; top: -10px; right: -12px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.menu-toggle { display: none; }

.hero {
  width: min(var(--max), calc(100% - 88px));
  margin: 0 auto;
  min-height: 484px;
  padding: 38px 0 26px;
  display: grid;
  grid-template-columns: minmax(310px, 405px) minmax(520px, 1fr);
  align-items: center;
  gap: 16px;
}
.hero-copy { padding-left: 22px; padding-top: 5px; }
.hero h1 {
  margin: 0 0 19px;
  font-family: var(--serif);
  font-size: clamp(58px, 6vw, 73px);
  line-height: .98;
  font-weight: 600;
  letter-spacing: -.047em;
}
.hero p {
  margin: 0;
  max-width: 360px;
  color: #2d2d2d;
  font-size: 18px;
  line-height: 1.48;
  letter-spacing: -.035em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 54px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 15px 28px rgba(184, 107, 59, .15);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button-copper { margin-top: 29px; background: linear-gradient(180deg, #bf7442 0%, var(--copper) 100%); }
.button:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(184, 107, 59, .22); background: var(--copper-dark); }
.hero-media {
  position: relative;
  min-height: 462px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-media > img {
  width: min(790px, 111%);
  max-width: none;
  margin-right: -46px;
  margin-top: -26px;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 24px 25px rgba(64, 39, 20, .05));
  border-radius: 0;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 55% 56%, #000 58%, rgba(0,0,0,.88) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 72% at 55% 56%, #000 58%, rgba(0,0,0,.88) 72%, transparent 100%);
}
.bag-wordmark {
  position: absolute;
  right: 15.5%;
  top: 36%;
  transform: rotate(.1deg);
  text-align: center;
  text-transform: uppercase;
  color: rgba(31,31,31,.72);
  pointer-events: none;
}
.bag-wordmark span {
  display: block;
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: clamp(20px, 3.15vw, 34px);
  letter-spacing: .18em;
  transform: scaleX(.78);
}
.bag-wordmark small {
  display: block;
  margin-top: 4px;
  font-size: clamp(10px, 1.35vw, 15px);
  font-weight: 900;
  letter-spacing: .18em;
}

.benefit-strip {
  width: min(1115px, calc(100% - 80px));
  margin: 0 auto 38px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255,253,248,.94);
  border: 1px solid rgba(231,225,216,.4);
  border-radius: 13px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.benefit-item {
  min-height: 136px;
  margin: 0;
  padding: 25px 20px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  position: relative;
}
.benefit-item + .benefit-item::before {
  content: "";
  position: absolute;
  left: 0; top: 25px; bottom: 25px;
  width: 1px;
  background: var(--divider);
}
.benefit-item svg { width: 44px; height: 44px; stroke: var(--olive); stroke-width: 1.55; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.benefit-item h2 { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.2; font-weight: 500; letter-spacing: -.03em; }

.story-section {
  width: min(1026px, calc(100% - 88px));
  margin: 0 auto;
  padding: 0 0 58px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 76px;
  align-items: center;
}
.story-image { border-radius: 8px; overflow: hidden; box-shadow: 0 14px 34px rgba(43,33,22,.08); background: #eadfce; }
.story-image img { width: 100%; height: 100%; aspect-ratio: 404 / 257; object-fit: cover; }
.eyebrow { margin: 0 0 16px; color: var(--copper-dark); font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.story-copy h2, .products-section h2, .signup-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.03;
}
.story-copy h2 { max-width: 490px; font-size: clamp(37px, 4.1vw, 48px); }
.story-copy p:not(.eyebrow) { margin: 24px 0 0; max-width: 370px; color: #2d2d2d; font-size: 16px; line-height: 1.52; letter-spacing: -.025em; }

.products-section { padding: 0 0 60px; text-align: center; }
.products-section .eyebrow { margin-bottom: 7px; }
.products-section h2 { font-size: clamp(32px, 3.6vw, 40px); }
.product-grid {
  width: min(885px, calc(100% - 88px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}
.product-card {
  min-height: 186px;
  border-radius: 9px;
  background: rgba(255,253,248,.96);
  box-shadow: 0 18px 42px rgba(45,35,24,.07);
  border: 1px solid rgba(231,225,216,.32);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 22px 52px rgba(45,35,24,.11); }
.product-card > img { width: 100%; height: 108px; object-fit: cover; object-position: center; mix-blend-mode: multiply; background: #fff; }
.product-copy { padding: 13px 39px 18px; }
.product-copy h3 { margin: 0 0 8px; font-size: 14px; line-height: 1; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.product-copy p { margin: 0; color: #242424; font-size: 12px; line-height: 1.45; letter-spacing: -.025em; }

.signup-cta {
  min-height: 188px;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  background-image: url("./assets/images/vineyard-footer.png");
  background-size: cover;
  background-position: center 52%;
}
.signup-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34,28,18,.5), rgba(34,28,18,.15)); backdrop-filter: blur(1.1px); }
.signup-inner {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 88px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 66px;
  align-items: center;
}
.signup-copy h2 { color: #fff; font-size: clamp(35px, 4vw, 44px); text-shadow: 0 2px 18px rgba(0,0,0,.12); }
.signup-copy p { margin: 16px 0 0; max-width: 392px; color: rgba(255,255,255,.96); font-size: 15px; line-height: 1.45; letter-spacing: -.02em; }
.signup-form { display: grid; grid-template-columns: 1fr 150px; gap: 12px; }
.signup-form input { height: 54px; width: 100%; border: 1px solid rgba(255,255,255,.65); border-radius: 5px; background: rgba(255,255,255,.94); color: var(--text); padding: 0 18px; outline: none; box-shadow: 0 12px 34px rgba(25,20,15,.1); }
.signup-form input::placeholder { color: #565656; }
.signup-form .button { width: 100%; min-width: 0; margin: 0; }

.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  padding: 13px 18px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  transition: opacity .24s ease, transform .24s ease;
  font-size: 13px;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 180px 1fr 96px; padding: 0 24px; }
  .primary-nav { gap: 28px; }
  .hero { width: min(100% - 44px, 760px); grid-template-columns: 1fr; min-height: 0; padding-top: 18px; text-align: center; }
  .hero-copy { padding: 28px 0 0; }
  .hero p { margin: 0 auto; }
  .hero-media { min-height: auto; justify-content: center; margin-top: 8px; }
  .hero-media > img { width: min(760px, 110%); margin: 0; }
  .bag-wordmark { right: 22%; top: 38%; }
  .benefit-strip { width: min(100% - 44px, 760px); grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .benefit-item { scroll-snap-align: start; }
  .story-section { width: min(100% - 44px, 760px); grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .story-copy p:not(.eyebrow), .story-copy h2 { margin-left: auto; margin-right: auto; }
  .product-grid { width: min(100% - 44px, 760px); grid-template-columns: 1fr 1fr; }
  .signup-inner { width: min(100% - 44px, 760px); grid-template-columns: 1fr; gap: 26px; text-align: center; padding: 36px 0; }
  .signup-copy p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .site-header { height: 78px; }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 14px; }
  .brand-main { font-size: 23px; }
  .menu-toggle {
    order: 3;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border: 1px solid rgba(31,31,31,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.56);
    padding: 0;
  }
  .menu-toggle span:not(.sr-only) { width: 16px; height: 1.5px; background: #111; display: block; margin: 2px 0; }
  .primary-nav {
    position: absolute;
    top: 78px; left: 17px; right: 17px;
    display: grid;
    gap: 0;
    justify-content: stretch;
    background: rgba(255,253,248,.98);
    border: 1px solid rgba(231,225,216,.7);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 16px 18px; border-bottom: 1px solid var(--divider); }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav a::after { display: none; }
  .header-actions { gap: 14px; }
  .header-actions .icon-link:first-child { display: none; }
  .hero { width: calc(100% - 34px); }
  .hero h1 { font-size: clamp(48px, 15vw, 64px); }
  .hero p { font-size: 16px; }
  .bag-wordmark { right: 21%; top: 39%; }
  .benefit-strip { width: calc(100% - 34px); grid-template-columns: repeat(2, 1fr); overflow: hidden; }
  .benefit-item + .benefit-item::before { display: none; }
  .benefit-item { min-height: 118px; border-top: 1px solid var(--divider); }
  .benefit-item:nth-child(-n+2) { border-top: 0; }
  .benefit-item:nth-child(odd) { border-right: 1px solid var(--divider); }
  .benefit-item:last-child { grid-column: 1 / -1; border-right: 0; }
  .story-section, .product-grid, .signup-inner { width: calc(100% - 34px); }
  .story-section { padding-bottom: 48px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-card { max-width: 360px; width: 100%; margin-inline: auto; }
  .signup-cta { min-height: 305px; }
  .signup-form { grid-template-columns: 1fr; }
}
