/* Hullwick Coffee Roasters: Starter Store example. Committed roast brown on cupping-bowl porcelain, coffee-cherry red for actions and taste glyphs. */
@font-face { font-family: "Besley"; src: url("/fonts/besley-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("/fonts/besley-latin-wght-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --porcelain: oklch(97% 0.006 240);
  --porcelain-2: oklch(93.6% 0.011 240);
  --porcelain-3: oklch(89.5% 0.014 240);
  --line: oklch(82% 0.014 240);
  --ink: oklch(23% 0.03 45);
  --ink-2: oklch(39% 0.03 45);
  --roast: oklch(29% 0.05 45);
  --roast-2: oklch(24% 0.042 45);
  --on-roast: oklch(95.5% 0.012 70);
  --on-roast-2: oklch(84% 0.03 65);
  --cherry: oklch(51% 0.2 25);
  --cherry-hi: oklch(46% 0.19 25);
  --cherry-soft: oklch(93% 0.035 25);
  --r1: oklch(73% 0.09 66); --r2: oklch(63% 0.09 58); --r3: oklch(53% 0.085 52); --r4: oklch(44% 0.07 46); --r5: oklch(35% 0.055 42);
  --display: "Besley", "Rockwell", Georgia, serif;
  --text: "Onest", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --d1: 160ms; --d2: 280ms; --d3: 600ms; --d4: 900ms;
  --gut: clamp(16px, 4vw, 56px);
  --wrap: 84rem;
  --rad: 6px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; font-size: 100%; }
@media (min-width: 900px) { html { scroll-padding-top: 150px; } }
button, label, a, summary, select { touch-action: manipulation; }
@media (min-width: 2200px) { html { font-size: 125%; } }
@media (min-width: 3400px) { html { font-size: 170%; } }
@media (min-width: 4600px) { html { font-size: 225%; } }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); text-rendering: optimizeLegibility; }
@media (min-width: 760px) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: 760; line-height: 1.08; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
.bag.fly { position: fixed; z-index: 40; pointer-events: none; width: 64px; height: auto; margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--porcelain); padding: 10px 16px; z-index: 30; border-radius: var(--rad); }
.skip:focus { top: 8px; }

/* label bar, header */
.demo-bar { background: var(--ink); color: var(--porcelain); text-align: center; font-size: .9375rem; line-height: 1.35; padding: 6px var(--gut); letter-spacing: .01em; }
.head { position: relative; z-index: 20; background: color-mix(in oklch, var(--porcelain) 94%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--porcelain-3); }
.head-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gut) 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "mark cart" "nav nav"; align-items: center; gap: 4px 16px; }
.mark { grid-area: mark; text-decoration: none; display: flex; align-items: baseline; gap: 10px; min-height: 44px; }
.mark-w { font-family: var(--display); font-weight: 850; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1; }
.mark-s { font-size: .9375rem; color: var(--ink-2); letter-spacing: .04em; display: none; }
@media (min-width: 480px) { .mark-s { display: inline; } }
.nav { grid-area: nav; margin: 0 calc(var(--gut) * -1); overflow-x: auto; scrollbar-width: none; }
.nav ul { display: flex; gap: 4px; padding: 0 var(--gut); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; white-space: nowrap; border-radius: 99px; transition: background-color var(--d1) var(--ease); }
.nav li:first-child a { padding-left: 0; }
.nav a:hover { background: var(--porcelain-2); }
.nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
.cart-link { grid-area: cart; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 16px; border: 1.5px solid var(--ink); border-radius: 99px; text-decoration: none; font-weight: 560; transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.cart-link:hover { background: var(--ink); color: var(--porcelain); }
.cart-n { min-width: 32px; height: 32px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--cherry); color: var(--porcelain); font-size: .9375rem; font-weight: 700; }
.cart-n.is-pop { animation: pop var(--d3) var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
.ship-line { max-width: var(--wrap); margin: 0 auto; padding: 4px var(--gut) 8px; display: flex; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.ship-line span:nth-child(n+2) { display: none; }
@media (min-width: 900px) {
  .head { position: sticky; top: 0; }
  .head-in { grid-template-columns: auto 1fr auto; grid-template-areas: "mark nav cart"; padding-top: 12px; }
  .nav { margin: 0; justify-self: center; }
  .nav li:first-child a { padding-left: 12px; }
  .ship-line span:nth-child(n+2) { display: inline; }
  .ship-line { justify-content: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 99px; border: 1.5px solid transparent; font-weight: 620; text-decoration: none; cursor: pointer; transition: transform var(--d1) var(--ease), background-color var(--d2) var(--ease), color var(--d2) var(--ease), border-color var(--d2) var(--ease); }
.btn:active { transform: scale(.97); }
.btn--cherry { background: var(--cherry); color: var(--porcelain); }
.btn--cherry:hover { background: var(--cherry-hi); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--porcelain); border-color: var(--ink); }
.btn--porcelain { background: var(--porcelain); color: var(--roast); }
.btn--porcelain:hover { background: var(--cherry-soft); }
.btn--wide { width: 100%; }
.more { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; text-decoration-color: var(--cherry); min-height: 44px; display: inline-flex; align-items: center; }
.eyebrow { font-size: .9375rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cherry-hi); margin-bottom: 14px; }
.eyebrow--light { color: oklch(80% 0.1 30); }
.lede { font-size: 1.1875rem; color: var(--ink-2); max-width: 60ch; margin-top: 18px; }
.crumbs { font-size: .9375rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* the bag */
.bag { width: 100%; height: auto; overflow: visible; }
.bag-shadow { fill: oklch(30% 0.04 45 / .18); transition: transform var(--d3) var(--ease), opacity var(--d3) var(--ease); transform-origin: 120px 318px; transform-box: view-box; }
.bag-body { fill: var(--r3); }
.bag--r1 .bag-body { fill: var(--r1); } .bag--r2 .bag-body { fill: var(--r2); } .bag--r4 .bag-body { fill: var(--r4); } .bag--r5 .bag-body { fill: var(--r5); }
.bag-shade { fill: oklch(20% 0.03 45 / .2); }
.bag-sheen { fill: oklch(98% 0.01 70 / .16); }
.bag-seal-shade { fill: oklch(20% 0.03 45 / .16); }
.bag-crimp { stroke: oklch(20% 0.03 45 / .28); stroke-width: 1.4; fill: none; }
.bag-valve { fill: oklch(20% 0.03 45 / .3); } .bag-valve-in { fill: oklch(98% 0.01 70 / .25); }
.bag-label { fill: var(--porcelain); }
.label-brand { font: 700 10.5px var(--display); letter-spacing: 2.6px; fill: var(--ink-2); }
.label-name { font-family: var(--display); font-weight: 800; fill: var(--ink); letter-spacing: -.3px; }
.label-origin { font: 600 9.5px var(--text); letter-spacing: 1.1px; fill: var(--ink-2); }
.label-glyph { fill: var(--cherry); }
.roast-cell { fill: none; stroke: var(--ink); stroke-width: 1; }
.roast-cell.is-on { stroke: none; } .roast-cell.r1.is-on { fill: var(--r1); } .roast-cell.r2.is-on { fill: var(--r2); } .roast-cell.r3.is-on { fill: var(--r3); } .roast-cell.r4.is-on { fill: var(--r4); } .roast-cell.r5.is-on { fill: var(--r5); }
.roast-marker { fill: var(--ink); }
.label-stamp { fill: none; stroke: var(--cherry); stroke-width: 1.4; }
.label-stamp-t { font: 700 9px var(--text); letter-spacing: 1px; fill: var(--cherry); }

/* glyphs and notes */
.glyph { width: 1.15em; height: 1.15em; fill: var(--cherry); flex: none; }
.glyph--lg { width: 2.4rem; height: 2.4rem; }
.glyph--xs { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; margin-right: 8px; }
.notes { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.notes li { display: inline-flex; align-items: center; gap: 7px; }
.notes--sm { font-size: 1rem; color: var(--ink); }
.notes--sm .glyph { width: 15px; height: 15px; }
.notes--lg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 6px; }
.notes--lg li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 12px; min-width: 0; background: var(--porcelain-2); border-radius: var(--rad); font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.15; }

/* home: hero */
.hero { background: var(--roast); color: var(--on-roast); display: grid; gap: 36px; padding: 36px var(--gut) 44px; overflow-x: clip; }
.hero-copy { max-width: 40rem; }
.hero .eyebrow { color: oklch(80% 0.1 30); }
.hero-h { font-size: clamp(2.75rem, 5.6vw, 6rem); font-weight: 800; line-height: .98; letter-spacing: -.025em; }
.hero-p { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--on-roast-2); margin-top: 22px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--line { color: var(--on-roast); }
.hero .btn--line:hover { background: var(--on-roast); color: var(--roast); border-color: var(--on-roast); }
.hero-fine { margin-top: 16px; font-size: .9375rem; color: var(--on-roast-2); }
.hero-bags { display: flex; justify-content: center; align-items: flex-end; width: 100%; max-width: 52rem; justify-self: center; padding: 0 4%; }
.hero-bag { flex: 0 0 38%; }
.hb1 { margin: 0 -7%; }
.hero-bag { display: block; text-decoration: none; transition: transform var(--d3) var(--ease); }
.hero-bag .bag-body { stroke: oklch(97% 0.006 240 / .28); stroke-width: 1.2; }
.hb0 { transform: rotate(-7deg); z-index: 1; }
.hb1 { transform: translateY(-4%) scale(1.12); z-index: 2; position: relative; }
.hb2 { transform: rotate(7deg); z-index: 1; }
.hero-bag { position: relative; }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; padding: clamp(48px, 5vw, 96px) var(--gut); min-height: min(calc(100svh - 150px), 56rem); }
  .hero-copy { justify-self: end; width: 100%; max-width: 44rem; }
}

/* page-load choreography (home) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise var(--d4) var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; } .hero-copy > :nth-child(3) { animation-delay: 160ms; } .hero-copy > :nth-child(4) { animation-delay: 240ms; } .hero-copy > :nth-child(5) { animation-delay: 300ms; }
  .hero-bag { animation: bagin 1100ms var(--ease) both; }
  .hb0 { animation-delay: 260ms; } .hb1 { animation-delay: 120ms; } .hb2 { animation-delay: 380ms; }
  .pdp-bag .bag { animation: bagup 1000ms var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bagin { from { opacity: 0; translate: 0 40%; } to { opacity: 1; translate: 0 0; } }
@keyframes bagup { from { opacity: 0; transform: translateY(30px) rotate(-2deg); } to { opacity: 1; transform: none; } }

/* scroll reveals: CSS only, content stays visible without support */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

/* sections */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2, .taste-head h2, .subhow h2, .cup h2, .week-line h2, .faq h2, .credits h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); }
.taste, .week, .story-tease, .reviews, .cup, .related, .subhow, .week-line, .buy-from, .credits, .faq { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--gut) 0; }
.taste-head { display: grid; gap: 14px; margin-bottom: 30px; }
.taste-head p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 900px) { .taste-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; } }
.taste-row { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1.5px solid var(--ink); }
@media (min-width: 640px) { .taste-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .taste-row { grid-template-columns: repeat(8, 1fr); } }
.taste-row li { border-bottom: 1px solid var(--line); }
.taste-row li:not(:nth-child(2n)) { border-right: 1px solid var(--line); }
@media (min-width: 640px) { .taste-row li:not(:nth-child(2n)) { border-right: 0; } .taste-row li:not(:nth-child(4n)) { border-right: 1px solid var(--line); } }
@media (min-width: 1100px) { .taste-row li:not(:nth-child(4n)) { border-right: 0; } .taste-row li:not(:last-child) { border-right: 1px solid var(--line); } }
.taste-chip { display: grid; gap: 4px; padding: 22px 16px 20px; text-decoration: none; min-height: 44px; transition: background-color var(--d2) var(--ease); }
.taste-chip .glyph { margin-bottom: 14px; transition: transform var(--d3) var(--ease); }
.taste-chip span:not(.taste-n) { font-family: var(--display); font-weight: 760; font-size: 1.25rem; }
.taste-n { font-size: .9375rem; color: var(--ink-2); }
.taste-chip:hover { background: var(--cherry-soft); }


/* product grid + cards */
.grid { display: grid; gap: 40px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
@media (max-width: 559px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; } }
.card { display: grid; align-content: start; gap: 8px; position: relative; }
.card-link { display: grid; gap: 14px; text-decoration: none; }
.card-bag { position: relative; display: block; background: var(--porcelain-2); border-radius: var(--rad); padding: 12% 16% 8%; transition: background-color var(--d2) var(--ease); }
.card-bag .bag { transition: transform var(--d3) var(--ease); }
.card-link:hover .card-bag { background: var(--porcelain-3); }


.card-name { font-family: var(--display); font-weight: 760; font-size: 1.375rem; line-height: 1.1; }
.card-link:hover .card-name { text-decoration: underline; text-decoration-color: var(--cherry); text-decoration-thickness: 2px; }
.card-origin { color: var(--ink-2); font-size: 1rem; }
.card-price { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin-top: 2px; }
.card-price strong { font-family: var(--display); font-size: 1.25rem; }
.card-price span { font-size: .9375rem; color: var(--ink-2); }
.tag { position: absolute; left: 10px; top: 10px; background: var(--porcelain); color: var(--ink); font-size: .9375rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.tag--out { background: var(--ink); color: var(--porcelain); }
.card-bag .tag + .tag { top: 46px; }
@media (max-width: 559px) { .card-name { font-size: 1.1875rem; } .notes--sm { gap: 4px 10px; font-size: .9375rem; } .card-origin { font-size: .9375rem; } }

/* subscription band */
.subband { margin-top: clamp(64px, 9vw, 140px); background: var(--roast); color: var(--on-roast); padding: clamp(56px, 7vw, 110px) var(--gut); }
.subband-in { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 40px; }
.subband h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); max-width: 18ch; }
.subband p { color: var(--on-roast-2); max-width: 52ch; margin-top: 18px; }
.sub-points { margin: 26px 0 30px; display: grid; gap: 10px; }
.sub-points li { position: relative; padding-left: 24px; }
.sub-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: oklch(66% 0.17 27); }
.sub-points strong { color: var(--on-roast); }
.cupcost { background: var(--porcelain); color: var(--ink); border-radius: var(--rad); padding: 28px; align-self: center; max-width: 30rem; }
.subband .cupcost p { color: var(--ink); margin-top: 0; }
.cupcost-h { font-family: var(--display); font-weight: 760; font-size: 1.375rem; margin-bottom: 14px; }
.cupcost-dl { margin: 0; }
.cupcost-dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cupcost-dl dt { color: var(--ink-2); } .cupcost-dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cupcost-total { border-bottom: 0 !important; padding-top: 14px !important; }
.cupcost-total dt { color: var(--ink); font-weight: 600; }
.cupcost-total dd { font-family: var(--display); font-size: 1.75rem; color: var(--cherry-hi); }
@media (min-width: 900px) { .subband-in { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 72px; } .cupcost { justify-self: end; width: 100%; } }

/* story tease, about */
.story-tease { display: grid; gap: 28px; }
.story-img img, .about-img img, .bf-img img { width: 100%; border-radius: var(--rad); aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.9) contrast(1.04); }
.story-copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); margin-bottom: 18px; }
.story-copy p { color: var(--ink-2); max-width: 52ch; margin-bottom: 16px; }
@media (min-width: 900px) { .story-tease { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; } }

.sample-review { margin: 0; border: 1.5px solid var(--ink); border-radius: var(--rad); padding: 26px clamp(20px, 4vw, 44px); max-width: 52rem; position: relative; }
.sample-tag { display: inline-block; background: var(--ink); color: var(--porcelain); font-size: .9375rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; margin-bottom: 14px; }
.sample-review blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.3; }
.sample-review figcaption { margin-top: 14px; font-size: .9375rem; color: var(--ink-2); }

/* collection */
.shop-head { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gut) 8px; }
.shop-head h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
.shop-intro { color: var(--ink-2); margin-top: 12px; max-width: 52ch; }
.shop-wrap { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gut) 0; display: grid; gap: 20px; }
.f-toggle { justify-self: start; min-height: 48px; }
.filters { display: grid; gap: 22px; padding: 4px 0 6px; }
.js .filters { display: none; }
.js .filters.is-open { display: grid; animation: rise var(--d2) var(--ease); }
.f-group { border: 0; margin: 0; padding: 0; }
.f-group legend { font-family: var(--display); font-weight: 760; font-size: 1.125rem; margin-bottom: 10px; padding: 0; }
.f-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.f-opt { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; font-size: 1rem; transition: border-color var(--d1) var(--ease), background-color var(--d1) var(--ease); background: var(--porcelain); }
.f-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.f-opt:hover { border-color: var(--ink); }
.f-opt:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--porcelain); }
.f-opt:has(input:checked) .glyph { fill: oklch(78% 0.13 28); }
.f-opt:has(input:focus-visible) { outline: 3px solid var(--cherry); outline-offset: 2px; }
.f-reset { justify-self: start; background: none; border: 0; padding: 10px 0; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; color: var(--ink-2); }
.results-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.results-n { color: var(--ink-2); }
.sort { display: inline-flex; align-items: center; gap: 10px; }
.sort select, .field select { min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--rad); background: var(--porcelain); padding: 0 12px; }
.card.is-hidden { display: none; }
.empty { padding: 40px 0; display: grid; gap: 12px; justify-items: start; }
.empty-h { font-family: var(--display); font-weight: 760; font-size: 1.75rem; }
@media (min-width: 1024px) {
  .shop-wrap { grid-template-columns: 16rem 1fr; gap: 48px; align-items: start; }
  .f-toggle { display: none; }
  .js .filters, .filters { display: grid; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 6px 4px; margin: -4px -6px 0 -4px; scrollbar-width: thin; }
}
.subhow { padding-bottom: 0; }
.subhow-steps { display: grid; gap: 0; margin-top: 26px; border-top: 1.5px solid var(--ink); }
.subhow-steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.subhow-steps .n { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--cherry); line-height: 1; }
.subhow-steps p { max-width: 60ch; }
@media (min-width: 900px) { .subhow-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 0; } .subhow-steps li { border-top: 1.5px solid var(--ink); border-bottom: 0; grid-template-columns: 1fr; } }

/* product page */
.pdp { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut) 0; display: grid; gap: 24px; }
.pdp-media { display: grid; gap: 10px; }
.pdp-bag { background: var(--porcelain-2); border-radius: var(--rad); padding: 8% 18% 5%; display: grid; place-items: center; }
.pdp-bag .bag { max-width: 26rem; }
@media (max-width: 759px) { .pdp-bag { padding: 5% 10% 2%; } .pdp-bag .bag { max-width: 11rem; } }
.pdp-price { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.pdp-price strong { font-family: var(--display); font-size: 1.75rem; font-weight: 760; }
.pdp-price span { color: var(--ink-2); }
.pdp-roasted { font-size: .9375rem; color: var(--ink-2); }
.pdp-h { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 800; }
.pdp-origin { color: var(--ink-2); margin-top: 10px; }
.pdp-line { margin-top: 14px; max-width: 48ch; }
@media (min-width: 760px) {
  .pdp { grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 5vw, 88px); align-items: start; padding-top: 28px; }
  .pdp-media { position: sticky; top: 140px; }
}
.buy { margin-top: 26px; display: grid; gap: 22px; }
.opt-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt-group legend { font-weight: 650; margin-bottom: 10px; padding: 0; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-row--size { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; display: grid; align-content: center; gap: 2px; min-height: 48px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: var(--rad); cursor: pointer; background: var(--porcelain); transition: border-color var(--d1) var(--ease), background-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease); }
.opt input, .plan-opt input, .freq-o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt--size { min-height: 72px; }
.opt-main { font-weight: 650; }
.opt-sub { font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.opt--chip { border-radius: 99px; }
.opt:hover { border-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: oklch(99% 0.004 240); }
.opt--chip:has(input:checked) { background: var(--ink); color: var(--porcelain); }
.opt:has(input:focus-visible), .plan-opt:has(input:focus-visible), .freq-o:has(input:focus-visible) { outline: 3px solid var(--cherry); outline-offset: 2px; }
.opt.is-out { cursor: not-allowed; color: var(--ink-2); background: var(--porcelain-2); border-style: dashed; }
.opt.is-out .opt-main { text-decoration: line-through; }
.opt.is-out:hover { border-color: var(--line); }
.grind-help { margin-top: 10px; }
.grind-help summary { cursor: pointer; text-decoration: underline; text-underline-offset: .25em; color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }
.grind-help p { margin-top: 6px; max-width: 60ch; color: var(--ink-2); }
.plan { display: grid; gap: 10px; }
.plan-opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: var(--rad); cursor: pointer; transition: border-color var(--d1) var(--ease), background-color var(--d1) var(--ease); }
.plan-opt:hover { border-color: var(--ink); }
.plan-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: oklch(99% 0.004 240); }
.plan-opt::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; order: -1; transition: box-shadow var(--d1) var(--ease), background-color var(--d1) var(--ease); }
.plan-opt:has(input:checked)::before { background: var(--cherry); box-shadow: inset 0 0 0 4px var(--porcelain); border-color: var(--cherry); }
.plan-t { font-weight: 650; flex: 1; }
.save { display: inline-block; margin-left: 6px; background: var(--cherry-soft); color: var(--cherry-hi); font-size: .9375rem; padding: 2px 8px; border-radius: 99px; }
.plan-p { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.plan-p s { color: var(--ink-2); font-weight: 400; margin-right: 4px; }
.plan-more { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--d2) var(--ease), visibility var(--d2); }
.plan-more-in { overflow: hidden; min-height: 0; }
.plan:has(input[value="sub"]:checked) .plan-more { grid-template-rows: 1fr; visibility: visible; }
.plan-more-in > * { margin-left: 2px; margin-right: 2px; }
.freq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding-top: 6px; }
@media (min-width: 1200px) { .freq { grid-template-columns: repeat(4, 1fr); } }
.freq-o { position: relative; display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; font-size: 1rem; text-align: center; padding: 0 8px; }
.freq-o:has(input:checked) { background: var(--ink); color: var(--porcelain); border-color: var(--ink); }
.next-l { margin-top: 16px; font-weight: 650; font-size: 1rem; }
.next-dates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; counter-reset: nd; }
.next-dates li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--porcelain-2); border-radius: 99px; font-size: 1rem; font-variant-numeric: tabular-nums; counter-increment: nd; }
.next-dates li::before { content: counter(nd); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--roast); color: var(--on-roast); font-size: .9375rem; font-weight: 700; }
.next-dates li.is-new { animation: rise var(--d2) var(--ease) both; }
.next-dates li.is-new:nth-child(2) { animation-delay: 60ms; } .next-dates li.is-new:nth-child(3) { animation-delay: 120ms; }
.plan-promise { margin-top: 4px; padding: 12px 14px; background: var(--cherry-soft); border-radius: var(--rad); font-size: 1rem; }
.add-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty { display: inline-grid; grid-template-columns: 44px 3rem 44px; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; min-height: 52px; }
.qty button { min-height: 48px; border: 0; background: none; cursor: pointer; font-size: 1.25rem; border-radius: 99px; }
.qty button:hover { background: var(--porcelain-2); }
.qty input, .qty output { width: 100%; min-height: 44px; display: grid; place-items: center; text-align: center; border: 0; background: none; font-variant-numeric: tabular-nums; font-weight: 650; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.btn--add { justify-content: space-between; min-height: 56px; font-size: 1.0625rem; white-space: nowrap; }
@media (max-width: 479px) { .btn--add { padding: 0 18px; gap: 8px; } .add-price { padding-left: 10px; } .notes--lg li { font-size: 1rem; padding: 12px 10px 10px; } .notes--lg .glyph--lg { width: 2rem; height: 2rem; } }
.add-price { font-variant-numeric: tabular-nums; padding-left: 14px; border-left: 1px solid oklch(97% 0.006 240 / .4); }
.btn--add.is-added { background: var(--roast); }
.added { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: var(--rad); animation: rise var(--d2) var(--ease); }
.added a { font-weight: 650; text-decoration-color: var(--cherry); text-decoration-thickness: 2px; min-height: 44px; display: inline-flex; align-items: center; }
.ship-box { display: grid; gap: 8px; font-size: 1rem; color: var(--ink-2); }
.ship-box strong, .sum-roast strong { color: var(--ink); font-weight: 600; }
.ship-meter { height: 8px; border-radius: 99px; background: var(--porcelain-3); overflow: hidden; }
.ship-meter span { display: block; height: 100%; width: 100%; background: var(--cherry); border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform var(--d3) var(--ease); }
.ship-meter.is-full span { background: oklch(52% 0.11 150); }
.soldout { margin-top: 26px; padding: 22px; border: 1.5px dashed var(--ink); border-radius: var(--rad); display: grid; gap: 10px; justify-items: start; }
.soldout-h { font-family: var(--display); font-weight: 760; font-size: 1.375rem; }

.cup-grid { display: grid; gap: 36px; margin-top: 26px; }
@media (min-width: 1024px) { .cup-grid { grid-template-columns: 1fr 1.25fr .9fr; gap: 56px; } }
.profile { display: grid; gap: 14px; align-content: start; }
.prof-row { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 12px; }
.prof-row--roast { grid-template-columns: 6.5rem auto 1fr; }
.pips { display: flex; gap: 6px; }
.pip { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink); }
.pip.is-on { background: var(--roast); border-color: var(--roast); }
.roast-strip { display: flex; gap: 3px; }
.rs { width: 22px; height: 18px; border-radius: 3px; opacity: .3; }
.rs.r1 { background: var(--r1); } .rs.r2 { background: var(--r2); } .rs.r3 { background: var(--r3); } .rs.r4 { background: var(--r4); } .rs.r5 { background: var(--r5); }
.rs.is-on { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.roast-l { font-size: 1rem; color: var(--ink-2); }
.facts { margin: 0; display: grid; border-top: 1.5px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); } .facts dd { margin: 0; }
.recipe { background: var(--roast); color: var(--on-roast); border-radius: var(--rad); padding: 24px; align-self: start; }
.recipe-h { font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-roast-2); }
.recipe-m { font-family: var(--display); font-weight: 760; font-size: 1.75rem; margin: 6px 0 12px; }
.recipe li { padding: 6px 0; border-top: 1px solid oklch(95% 0.012 70 / .2); }

/* cart */
.cart-page { max-width: 60rem; margin: 0 auto; padding: 28px var(--gut) 0; }
.steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 1rem; }
.steps li + li::before { content: ""; width: 26px; height: 1.5px; background: var(--line); }
.steps li.is-on { color: var(--ink); font-weight: 650; }
.steps li.is-done { color: var(--ink); }
.cart-h { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; margin-bottom: 26px; }
.cart-empty { display: grid; gap: 14px; }
.cart-empty .grid { margin-top: 18px; }
.lines { border-top: 1.5px solid var(--ink); }
.line { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "bag info price" "bag qty x"; gap: 8px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line.is-leaving { animation: leave var(--d2) var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(-16px); } }
.line-bag { grid-area: bag; align-self: start; background: var(--porcelain-2); border-radius: var(--rad); padding: 8px; }
.mini { width: 100%; }
.mini.bag--r1 .bag-body { fill: var(--r1); } .mini.bag--r2 .bag-body { fill: var(--r2); } .mini.bag--r4 .bag-body { fill: var(--r4); } .mini.bag--r5 .bag-body { fill: var(--r5); }
.line-info { grid-area: info; }
.line-name { font-family: var(--display); font-weight: 760; font-size: 1.25rem; text-decoration: none; }
.line-name:hover { text-decoration: underline; }
.line-meta, .line-plan { font-size: 1rem; color: var(--ink-2); }
.line-plan:empty { display: none; }
.line-qty { grid-area: qty; justify-self: start; min-height: 46px; grid-template-columns: 44px 2.5rem 44px; }
.line-qty button { min-height: 44px; }
.line-price { grid-area: price; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.line-x { grid-area: x; justify-self: end; background: none; border: 0; text-decoration: underline; text-underline-offset: .25em; color: var(--ink-2); cursor: pointer; min-height: 44px; padding: 0 4px; }
@media (min-width: 700px) { .line { grid-template-columns: 80px 1fr auto auto auto; grid-template-areas: "bag info qty price x"; gap: 24px; } .line-price { min-width: 5.5rem; } }
.sum { margin-top: 26px; display: grid; gap: 12px; max-width: 26rem; margin-left: auto; }
.sum-ship { color: var(--ink-2); font-size: 1rem; }
.sum-dl { margin: 6px 0 0; }
.sum-dl div { display: flex; justify-content: space-between; padding: 8px 0; }
.sum-dl dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1.5px solid var(--ink); margin-top: 6px; padding-top: 12px !important; font-weight: 700; font-size: 1.25rem; }
.sum-roast { font-size: 1rem; color: var(--ink-2); }
.checkout { margin-top: 10px; display: grid; gap: 18px; max-width: 40rem; }
.checkout h2, .done h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.co-note { color: var(--ink-2); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; grid-column: span 2; }
@media (min-width: 560px) { .field:not(.field--wide) { grid-column: span 1; } }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: var(--rad); background: oklch(99% 0.004 240); padding: 10px 14px; transition: border-color var(--d1) var(--ease); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-2); }
.field [aria-invalid="true"] { border-color: var(--cherry); box-shadow: inset 0 0 0 1px var(--cherry); }
.err { color: var(--cherry-hi); font-size: 1rem; font-weight: 550; }
.co-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.done { margin-top: 10px; padding: clamp(24px, 4vw, 40px); border: 1.5px solid var(--ink); border-radius: var(--rad); display: grid; gap: 14px; justify-items: start; max-width: 44rem; }
.done-stamp { display: inline-block; border: 2px solid var(--cherry); color: var(--cherry-hi); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; rotate: -4deg; font-size: 1rem; }
.done:not([hidden]) .done-stamp { animation: stamp var(--d3) var(--ease) both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
.done--inline { margin-top: 6px; }

/* about */
.about-hero { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gut) 0; display: grid; gap: 32px; }
.about-hero h1 { font-size: clamp(2.375rem, 5.2vw, 4.5rem); font-weight: 800; }
@media (min-width: 900px) { .about-hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding-top: 56px; } }
.wk { display: grid; gap: 0; margin-top: 26px; border-top: 1.5px solid var(--ink); }
.wk li { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.wk-d { font-family: var(--display); font-weight: 760; font-size: 1.25rem; }
.wk p { max-width: 60ch; color: var(--ink-2); }
@media (max-width: 559px) { .wk li { grid-template-columns: 1fr; gap: 4px; } }
.buy-from { display: grid; gap: 28px; }
.buy-from h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); margin-bottom: 16px; }
.buy-from p { color: var(--ink-2); max-width: 56ch; margin-bottom: 16px; }
.bf-img img { aspect-ratio: 1; }
@media (min-width: 900px) { .buy-from { grid-template-columns: .8fr 1fr; gap: 64px; align-items: center; } }
.credits p { color: var(--ink-2); max-width: 70ch; margin-top: 14px; }

/* contact */
.contact { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gut) 0; display: grid; gap: 36px; }
.contact h1 { font-size: clamp(2.375rem, 5.2vw, 4.5rem); font-weight: 800; }
.c-facts { margin: 26px 0 0; border-top: 1.5px solid var(--ink); }
.c-facts div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.c-facts dt { color: var(--ink-2); font-size: 1rem; } .c-facts dd { margin: 0; font-weight: 600; }
.c-form { display: grid; gap: 18px; background: var(--porcelain-2); border-radius: var(--rad); padding: clamp(20px, 4vw, 40px); align-self: start; }
.c-form .field { grid-column: auto; }
.c-form .btn { justify-self: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 72px; padding-top: 56px; } }
.faq details { border-bottom: 1px solid var(--line); max-width: 52rem; }
.faq h2 { margin-bottom: 18px; }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: 1.25rem; min-height: 44px; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); max-width: 62ch; }

/* 404 */
.nf { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gut) 0; display: grid; gap: 28px; align-items: center; }
.nf-bag { max-width: 11rem; }
@media (min-width: 760px) { .nf-bag { max-width: 16rem; } }
.nf h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
.nf .btn { margin-top: 24px; }
@media (min-width: 760px) { .nf { grid-template-columns: 18rem 1fr; gap: 64px; } }

/* footer */
.foot { margin-top: clamp(72px, 10vw, 160px); background: var(--roast-2); color: var(--on-roast); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gut) 36px; display: grid; gap: 28px; }
.foot-brand p:last-child { color: var(--on-roast-2); margin-top: 10px; max-width: 36ch; }
.foot nav ul { display: grid; gap: 2px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot-note { font-size: .875rem; color: var(--on-roast-2); max-width: 70ch; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.2fr 1fr; } .foot-note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid oklch(95% 0.012 70 / .18); } }

@media (hover: hover) and (pointer: fine) {
  .card-link:hover .bag { transform: translateY(-6px) rotate(-1.5deg); }
  .card-link:hover .bag-shadow { transform: scale(.86); opacity: .7; }
  .hero-bag:hover { transform: translateY(-5%) scale(1.14) rotate(0deg); z-index: 3; }
  .taste-chip:hover .glyph { transform: scale(1.14) rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* help me choose (collection) */
.starts { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.starts-l { font-weight: 600; }
.starts ul { display: flex; flex-wrap: wrap; gap: 8px; }
.starts a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--porcelain-2); text-decoration: none; font-size: 1rem; transition: background-color var(--d1) var(--ease); }
.starts a:hover { background: var(--cherry-soft); }

/* phones: the bags come first, so the first screen shows the product */
@media (max-width: 639px) {
  .hero { padding-top: 24px; gap: 20px; }
  .hero-bags { order: -1; max-width: 24rem; }
}
