:root {
  --paper: #fffdf7;
  --ink: #163325;
  --green: #124b35;
  --line: #c2cec3;
  font: 100%/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem; background: white; transform: translateY(-200%); z-index: 1; }
.skip:focus { transform: none; }
main, footer { padding-inline: clamp(1rem, 5vw, 5.5rem); }
footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem clamp(.85rem, 3vw, 2rem); }
.button { display: inline-block; border: 1px solid currentColor; border-radius: .4rem; padding: .7rem 1rem; font-weight: 750; text-decoration: none; line-height: 1.3; }
.button:hover { text-decoration: underline; }
.button.ink { background: #9f2d1e; color: white; border-color: #9f2d1e; }
.button.ink:focus-visible { outline-color: var(--ink); }
.button.paper { background: var(--paper); color: var(--green); border-color: var(--paper); }
.button.paper:focus-visible { outline-color: var(--paper); }
.cover {
  --cover-accent: #9a3c2a;
  container-type: inline-size;
  max-width: 92rem;
  margin-inline: auto;
  padding: clamp(1rem, 2.8vw, 2.5rem) clamp(1rem, 3.8vw, 3.5rem) clamp(.9rem, 2vw, 1.6rem);
  background: radial-gradient(ellipse at 50% 61%, #fffdf5, #f2e5ce 84%);
  border: 1px solid #dacbb0;
  border-bottom: 0;
  color: #153f2e;
}
.cover-masthead {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: clamp(.35rem, 1.4cqw, 1.15rem);
  text-align: center;
}
.cover-index {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem clamp(.75rem, 1.7vw, 1.5rem);
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid #a5a88a;
  padding-bottom: .65rem;
  margin-bottom: clamp(.75rem, 1.6vw, 1.3rem);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cover-index a {
  display: inline-flex;
  align-items: center;
  gap: clamp(.65rem, 1.5vw, 1.15rem);
  padding-block: .3rem;
  text-decoration: none;
}
.cover-index a:hover { text-decoration: underline; }
.cover-index a::before {
  content: "";
  width: .26rem;
  height: .26rem;
  flex: none;
  border-radius: 50%;
  background: var(--cover-accent);
}
.instacart-link span { display: inline-flex; gap: .4rem; align-items: center; }
.instacart-link img { display: block; width: 6.1rem; height: auto; }
.cover-instacart {
  --cover-instacart-inset: clamp(.2rem, 2.6cqw, 2rem);
  grid-area: 2 / 1;
  align-self: center;
  justify-self: start;
  display: grid;
  align-content: center;
  min-height: 2.75rem;
  max-width: calc(100% - var(--cover-instacart-inset));
  margin-inline-start: var(--cover-instacart-inset);
  translate: 0 clamp(.35rem, 1.35cqw, 1.1rem);
  padding: .3rem;
  border-radius: .3rem;
}
.cover-instacart span {
  --wordmark-top: 69%;
  position: relative;
}
.cover-instacart img {
  display: block;
  width: clamp(5.5rem, 10.6cqw, 8.5rem);
  max-width: 100%;
  height: auto;
  clip-path: inset(var(--wordmark-top) 0 0);
}
.cover-instacart span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("instacart-cover-logo.png") center / contain no-repeat;
  clip-path: inset(0 0 calc(100% - var(--wordmark-top)));
  transform: translateX(-4%) scaleX(-1);
}
@media (min-width: 1024px) {
  .cover-instacart img { width: clamp(6.6rem, 12.72cqw, 10.2rem); }
}
.cover h1 {
  grid-area: 2 / 2;
  font-family: Georgia, serif;
  line-height: 1;
  text-transform: uppercase;
}
.cover-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
}
.cover h1 .wgm-monogram { font-size: clamp(3.35rem, 8.75cqw, 7.3rem); }
.cover-mark-name {
  display: block;
  padding: .25rem .4rem .3rem;
  border-block: 1px solid currentColor;
  font-size: clamp(1.35rem, 3.65cqw, 2.8rem);
  font-weight: 700;
  letter-spacing: .18em;
}
.cover-mark-name > span {
  display: block;
  margin-top: .25rem;
  font-size: .42em;
  font-weight: 600;
  letter-spacing: .19em;
}
.cover-body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 3.6fr) minmax(0, 1.12fr);
  grid-template-areas: "left art right" "circular art right";
  grid-template-rows: max-content 1fr;
  align-items: start;
}
.cover-circular {
  grid-area: circular;
  position: relative;
  z-index: 1;
  justify-self: start;
  margin-top: clamp(.75rem, 2vw, 1.5rem);
}
.cover-circular.button.ink { background: var(--green); border-color: var(--green); }
.cover-art { grid-area: art; position: relative; min-width: 0; align-self: center; }
@media (min-width: 791px) {
  .cover-art { margin-top: clamp(-3.5rem, -4.6cqw, -1.25rem); }
}
.tote-scene {
  --tote-drop-duration: 640ms;
  --grocery-drop-duration: 900ms;
  --grocery-entry-height: min(-8.5rem, -51cqw);
  --main-grocery-delay: 845ms;
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.28;
}
.tote-shadow { position: absolute; left: 17%; right: 17%; bottom: 5%; height: 11%; background: #493c2b; opacity: .26; filter: blur(13px); border-radius: 50%; }
.tote, .grocery { position: absolute; display: block; height: auto; user-select: none; }
.tote { width: 63%; left: 18.5%; bottom: 4%; }
.tote-back { z-index: 1; }
.tote-front { z-index: 3; }
.tote-front > img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(0 9%, 22% 11%, 49% 12%, 76% 11%, 100% 8%, 100% 100%, 0 100%);
}
.grocery { z-index: 2; left: var(--grocery-left); transform: rotate(var(--tilt)); }
.bread { width: 21%; --grocery-left: 43cqw; bottom: 49%; --tilt: 9deg; --entry: -17deg; --delay: 90ms; }
.greens { width: 35%; --grocery-left: 20cqw; bottom: 47%; --tilt: -12deg; --entry: 19deg; --delay: 260ms; }
.milk { width: 11%; --grocery-left: 20cqw; bottom: 45%; --tilt: -10deg; --entry: 11deg; --delay: 440ms; }
.carrots { width: 18%; --grocery-left: 64cqw; bottom: 47%; --tilt: 13deg; --entry: -10deg; --delay: 555ms; }
.lemons { width: 15%; --grocery-left: 67cqw; bottom: 56%; --tilt: 6deg; --entry: -11deg; --delay: 630ms; }
.apples { width: 19%; --grocery-left: 21cqw; bottom: 56%; --tilt: -7deg; --entry: 12deg; --delay: 700ms; }
.ribeye, .chicken-breasts, .salmon, .shrimp, .red-cabbage { --delay: var(--main-grocery-delay); }
.ribeye { width: 31%; --grocery-left: 37cqw; bottom: 53%; --tilt: -20deg; --entry: 13deg; }
.chicken-breasts { width: 23%; --grocery-left: 38cqw; bottom: 46%; --tilt: -15deg; --entry: 12deg; }
.salmon { width: 24%; --grocery-left: 38cqw; bottom: 44%; --tilt: -17deg; --entry: 9deg; }
.shrimp { width: 31%; --grocery-left: 38cqw; bottom: 53%; --tilt: -13deg; --entry: 11deg; }
.red-cabbage { width: 31%; --grocery-left: 35cqw; bottom: 47%; --tilt: -15deg; --entry: 11deg; }
.lime { width: 9%; --grocery-left: 66cqw; bottom: 56%; --tilt: -9deg; --entry: 14deg; --delay: 755ms; }
.back-to-nature-crackers {
  width: 12%;
  bottom: 60%;
  --grocery-left: 33cqw;
  --tilt: -11deg;
  --entry: 17deg;
  --delay: 950ms;
}
.bell-pepper { width: 14%; --grocery-left: 20cqw; bottom: 55%; --tilt: -12deg; --entry: 15deg; --delay: 440ms; }
[data-grocery-fill="steak"] .bell-pepper {
  width: 10%;
  bottom: 60%;
  --grocery-left: 70cqw;
  --tilt: 9deg;
  --entry: -12deg;
  --delay: 1090ms;
}
.pear { width: 12%; --grocery-left: 20cqw; bottom: 60%; --tilt: -12deg; --entry: 17deg; --delay: 440ms; }
.fennel { width: 16%; --grocery-left: 22cqw; bottom: 54%; --tilt: -14deg; --entry: 17deg; --delay: 440ms; }
[data-grocery-fill="vegetables"] .fennel { --grocery-left: 62cqw; bottom: 58%; --tilt: 8deg; --entry: -14deg; --delay: 650ms; }
.rosemary { width: 9%; --grocery-left: 63cqw; bottom: 62%; --tilt: 16deg; --entry: -12deg; --delay: 650ms; }
.blood-orange { width: 12%; --grocery-left: 69cqw; bottom: 63%; --tilt: 9deg; --entry: -12deg; --delay: 740ms; }
.tote-mark {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 62%;
  translate: -50% -50%;
  transform: rotate(-2deg);
  display: grid;
  justify-items: center;
  width: 36%;
  color: #18452e;
  font-family: Georgia, serif;
  text-align: center;
  line-height: 1;
  mix-blend-mode: multiply;
}
.tote-front .tote-mark { top: 49.11%; width: 57.14%; }
.wgm-monogram { position: relative; letter-spacing: -.1em; }
.tote-mark .wgm-monogram { font-size: clamp(1.65rem, 4.9vw, 4.8rem); }
.wgm-monogram span { font-size: .56em; letter-spacing: -.075em; }
.wgm-monogram::after { content: ""; position: absolute; width: .45em; height: .18em; left: 63%; top: 19%; border-radius: 100% 0 100% 0; transform: rotate(-10deg); background: currentColor; }
.tote-mark strong { font-size: clamp(.65rem, 1.85vw, 1.6rem); letter-spacing: .1em; border-top: 1px solid; padding-top: .15em; }
.tote-mark small { font-size: clamp(.35rem, .75vw, .75rem); letter-spacing: .1em; margin-top: .16rem; }
@media (prefers-reduced-motion: no-preference) {
  .tote-scene.awaiting-pack :is(.tote, .tote-shadow, .grocery) { opacity: 0; }
  .tote-scene.packing { overflow: visible; clip-path: inset(-6rem 0 0); }
  .tote-scene.packing .tote { animation: drop-tote var(--tote-drop-duration) both; }
  .tote-scene.packing .tote-shadow { animation: tote-shadow-appear var(--tote-drop-duration) both; }
  .tote-scene.packing .grocery { animation: pack var(--grocery-drop-duration) calc(var(--tote-drop-duration) + var(--delay)) both; }
}
@keyframes drop-tote {
  0% {
    opacity: 0;
    transform: translateY(-82cqw);
    animation-timing-function: cubic-bezier(.48, .05, .83, .62);
  }
  70% {
    opacity: 1;
    transform: translateY(1.1cqw);
  }
  87% { transform: translateY(-.5cqw); }
  100% { transform: translateY(0); }
}
@keyframes tote-shadow-appear {
  0%, 26% { opacity: 0; transform: scale(.8); }
  100% { opacity: .26; transform: scale(1); }
}
@keyframes pack {
  0% {
    opacity: 0;
    transform: translate(calc(50cqw - var(--grocery-left) - 50%), var(--grocery-entry-height)) rotate(var(--entry));
  }
  22% { opacity: 1; }
  77% { transform: translateY(4%) rotate(var(--tilt)); }
  90% { transform: translateY(-2%) rotate(var(--tilt)); }
  100% { transform: translateY(0) rotate(var(--tilt)); }
}
.feature {
  display: grid;
  gap: 1rem;
  padding: clamp(1.35rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2.5rem);
  background: #f3e8d3;
  border-radius: 0 0 .75rem .75rem;
  border: 1px solid var(--line);
  border-top: 0;
}
.feature h2 { font-size: clamp(1.9rem, 4vw, 3.5rem); }
.kicker { font-size: .875rem; font-weight: 800; letter-spacing: .11em; margin-bottom: 1rem; }
h1, h2, h3 { font-family: system-ui, sans-serif; line-height: 1; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 6rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2.1rem, 5vw, 4.5rem); letter-spacing: -.06em; }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.04em; }
p { margin: 0 0 1rem; }
.flyer-header, .flyer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
}
.flyer-header { justify-content: space-between; align-items: baseline; }
#flyer-date { margin: 0; font-weight: 650; }
.flyer-actions { align-items: center; }
.offer-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: .75rem;
  padding: 0;
  margin: 0 0 .85rem;
}
.offer-grid li {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #dacbb0;
  border-radius: .4rem;
  font-weight: 650;
}
.offer-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.offer-details { display: grid; align-content: space-between; gap: .35rem; padding: .85rem 1rem; }
.offer-details:only-child { grid-row: 1 / -1; }
.offer-details strong {
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
.offer-unit { font-size: .72em; font-weight: 650; }
.flyer-note { margin-bottom: 0; font-size: .75rem; }
.feature-image { margin: 0 auto; max-width: min(100%, 41.25rem); }
.feature-image a { display: block; }
.feature-image img { display: block; width: auto; height: auto; max-width: 100%; }
.market { padding-block: clamp(2.25rem, 5.5vw, 5rem); }
.departments {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.75rem);
  margin-top: 1.5rem;
}
.departments article {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.1rem, 4vw, 4rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.departments img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.department-copy { padding-block: 1.1rem 1.35rem; }
.department-copy p { margin: .55rem 0 0; }
.visit { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.5rem 3rem; padding: clamp(1.5rem, 5vw, 4.5rem); background: var(--green); color: var(--paper); border-radius: .75rem; }

.visit-details { font-size: 1.125rem; }
address { font-style: normal; font-weight: 750; margin-bottom: .6rem; }
footer { padding-block: 1.15rem; }
.footer-home { font-weight: 750; }
@media (max-width: 720px) {
  .visit, .departments article { grid-template-columns: 1fr; }
  .department-copy { padding-block: 0; }
}

@media (max-width: 790px) {
  .cover-body {
    grid-template-columns: 1fr;
    grid-template-areas: "circular" "art" "left" "right";
    grid-template-rows: auto;
  }
  .cover-circular { justify-self: center; }
  .cover-art { width: min(100%, 32rem); justify-self: center; }
  .tote-scene { --grocery-entry-height: min(-12rem, -70cqw); }
  .tote-mark .wgm-monogram { font-size: clamp(1.6rem, 8vw, 3.7rem); }
  .tote-mark strong { font-size: clamp(.68rem, 3.5vw, 1.25rem); }
  .tote-mark small { font-size: clamp(.36rem, 1.55vw, .65rem); }
}

@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; }
  .cover-index { letter-spacing: .035em; }
  .cover-index a::before { display: none; }
  .cover-location { flex-basis: 100%; }
}

/* Desktop cover: soft ground contact and separation between overlapping groceries. */
@media (min-width: 791px) {
  .tote-shadow {
    left: 18%;
    right: 14%;
    bottom: 2.8%;
    height: 10%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 37% 47%, #3b2a1b 6%, #6b4d2d 45%, transparent 73%);
    filter: blur(clamp(3px, .65cqw, 7px));
  }
  .tote-scene .grocery {
    filter: drop-shadow(1px 3px 3px rgb(58 41 25 / .13))
            drop-shadow(3px 8px 7px rgb(58 41 25 / .09));
  }
}

/* Phone cover: keep the same light direction but use tighter, lighter shadows. */
@media (max-width: 790px) {
  .tote-shadow {
    left: 18%;
    right: 15%;
    bottom: 3%;
    height: 9%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 39% 47%, #3b2a1b 6%, #6b4d2d 45%, transparent 73%);
    filter: blur(clamp(2px, .8cqw, 4px));
  }
  .tote-scene .grocery {
    filter: drop-shadow(.5px 2px 2px rgb(58 41 25 / .12))
            drop-shadow(1.5px 4px 3px rgb(58 41 25 / .08));
  }
}
