/* 01. Tokens and foundation */
:root {
  --paper: #F2EDE3;
  --paper-warm: #E9E1D2;
  --ink: #12100E;
  --ink-soft: #3A3630;
  --muted: #6E685F;
  --brass: #B3803C;
  --brass-light: #D7B075;
  --line: rgba(18,16,14,0.14);
  --line-dark: rgba(242,237,227,0.18);
  --backdrop: rgba(18,16,14,0.72);
  --heading-font: 'Oswald', 'Arial Narrow', sans-serif;
  --body-font: 'Libre Franklin', Arial, sans-serif;
  --script-font: 'Caveat', cursive;
  --gutter: 64px;
  --section-space: 96px;
  --gap: 24px;
  --content-width: 1360px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.6 var(--body-font); }
body.overlay-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3, h4, .wordmark { font-family: var(--heading-font); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; line-height: .94; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(44px, 5vw, 76px); }
h2 { font-size: clamp(32px, 3.4vw, 52px); }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p + p { margin-top: 16px; }
small, .small { font-size: 14px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - var(--gutter) * 2), var(--content-width)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.section { padding-block: var(--section-space); }
.eyebrow { font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3 { margin-top: 14px; }
.muted { color: var(--muted); }
.script { font: 400 clamp(28px, 3vw, 44px)/1.06 var(--script-font); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 20px; color: var(--ink); background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
/* 02. Buttons, form controls, and shared headings */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); font: 600 14px/1.35 var(--heading-font); letter-spacing: .045em; text-transform: uppercase; text-decoration: none; transition: background-color 180ms, color 180ms, border-color 180ms; }
.button:hover { background: var(--ink-soft); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--paper-warm); }
.button-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-paper:hover { background: var(--paper-warm); border-color: var(--paper-warm); }
.button-on-dark { color: var(--paper); background: transparent; border-color: var(--paper); }
.button-on-dark:hover { color: var(--ink); background: var(--paper); }
.button-small { min-height: 40px; padding: 9px 12px; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1.4 var(--heading-font); text-transform: uppercase; }
.icon-button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px; border: 0; background: transparent; color: inherit; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.section-heading .support { max-width: 320px; margin-left: auto; font-size: 14px; line-height: 1.6; }
.section-heading .text-link { flex-shrink: 0; }
select, input[type='number'] { border: 1px solid var(--muted); border-radius: 2px; background: var(--paper); color: var(--ink); min-height: 48px; padding: 10px 14px; }
select { width: 100%; }
input[type='radio'], input[type='checkbox'] { accent-color: var(--ink); width: 18px; height: 18px; flex-shrink: 0; }
.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.placeholder-copy { color: var(--muted); font-size: 14px; }
/* 03. Announcement, sticky header, wordmark, and mobile navigation */
.announcement { background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--line-dark); }
.announcement-inner { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 11px; }
.announcement-place { margin-left: auto; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 30; color: var(--paper); background: var(--ink); border-bottom: 1px solid transparent; transition: border-color 180ms; }
.site-header.is-scrolled { border-color: var(--line-dark); }
.header-inner { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; gap: 15px; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-tower { width: 34px; height: 66px; color: currentColor; }
.wordmark { display: block; font-size: 37px; text-align: center; }
.wordmark-sub { display: block; margin-top: 8px; font: 600 13px/1 var(--body-font); letter-spacing: .24em; }
.wordmark-place { display: block; margin-top: 8px; font: 400 8px/1 var(--body-font); letter-spacing: .22em; }
.desktop-nav { display: flex; align-items: center; gap: clamp(15px, 2.4vw, 34px); }
.desktop-nav a, .desktop-nav button { padding: 8px 0; border: 0; background: none; color: inherit; text-decoration: none; font: 400 15px/1.5 var(--heading-font); }
.desktop-nav a:hover, .desktop-nav button:hover, .desktop-nav [aria-current='page'] { color: var(--brass-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-trigger { display: inline-flex; align-items: center; gap: 8px; }
.cart-count { font-size: 12px; }
.mobile-toggle { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 70; overflow-y: auto; padding: 24px var(--gutter) 48px; background: var(--ink); color: var(--paper); }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: start; gap: 28px; }
.mobile-menu nav a, .mobile-menu nav button { padding: 0; font: 600 38px/1.2 var(--heading-font); text-transform: uppercase; text-decoration: none; color: inherit; background: transparent; border: 0; }
.mobile-menu .eyebrow { margin-top: 64px; }
/* 04. Homepage hero and replaceable photography */
.hero { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero-inner { position: relative; min-height: 580px; align-items: center; padding-block: 48px 64px; }
.hero-copy { grid-column: 1 / 7; z-index: 1; }
.hero-copy h1 { max-width: 660px; }
.hero-copy > p:not(.eyebrow) { max-width: 560px; margin-top: 24px; font-size: 16px; }
.hero-copy .eyebrow { color: var(--brass-light); }
.hero-visual { grid-column: 7 / -1; display: flex; align-items: center; position: relative; min-width: 0; }
.hero-bag { width: 70%; max-height: 500px; object-fit: contain; transform: rotate(-3deg); }
.hero-handwriting { width: 38%; margin-left: -4%; transform: rotate(-9deg); }
.roast-log { position: absolute; right: 0; bottom: -28px; padding: 14px 22px; color: var(--ink); background: var(--paper-warm); font: 400 23px/1.15 var(--script-font); transform: rotate(-4deg); }
/* 05. Product cards, homepage lineup, and shop filters */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--gap); }
.lineup-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; display: flex; flex-direction: column; text-align: center; }
.product-image-link { display: block; overflow: hidden; text-decoration: none; }
.product-image { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; transition: transform 400ms ease; }
.product-image-link:hover .product-image { transform: scale(1.03); }
.product-card h3 { margin: 20px 0 10px; overflow-wrap: anywhere; }
.product-card h3 a { text-decoration: none; }
.product-card .notes { font-size: 14px; font-style: italic; line-height: 1.5; }
.product-card .tagline { font-size: 14px; line-height: 1.5; font-style: italic; margin-top: 12px; }
.product-card .price { font-size: 14px; font-weight: 600; margin-top: auto; padding-top: 18px; }
.product-card > .button { width: 100%; margin-top: 12px; }
.lineup-grid h3 { font-size: 20px; }
.lineup-grid .notes, .lineup-grid .tagline { font-size: 14px; }
.lineup-grid .button { padding-inline: 5px; }
.page-intro { margin-bottom: 40px; max-width: 720px; }
.page-intro > p:last-child:not(.eyebrow) { margin-top: 24px; }
.filter-bar { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding-block: 24px; margin-bottom: 40px; border-block: 1px solid var(--line); }
.filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-button { min-height: 44px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); font-size: 14px; }
.filter-button:hover { border-color: var(--ink); }
.filter-button[aria-pressed='true'] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.product-count { white-space: nowrap; font-size: 14px; color: var(--muted); }
/* 06. Subscription strip and steps */
.subscription-band { color: var(--paper); background: var(--ink); }
.subscription-band-inner { display: grid; grid-template-columns: 4fr 5fr 1.5fr; gap: 32px; align-items: center; }
.subscription-copy p { margin-top: 20px; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.step { padding: 0 16px; border-left: 1px solid var(--line-dark); }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 2px; margin-bottom: 24px; font: 400 20px/1 var(--heading-font); }
.step h3 { font-size: 18px; line-height: 1.1; margin-bottom: 12px; }
.step p { font-size: 14px; line-height: 1.5; }
.sticky-note { margin: 0; padding: 25px 18px; background: var(--brass-light); color: var(--ink); transform: rotate(-6deg); text-align: center; font-size: clamp(30px, 3vw, 46px); }
/* 07. Story collage and editorial story page */
.story-collage { display: grid; grid-template-columns: 3fr 4fr 2.1fr 1.9fr; border-bottom: 1px solid var(--line); }
.story-photo { position: relative; margin: 0; overflow: hidden; background: var(--paper-warm); }
.story-photo > img { width: 100%; height: 100%; min-height: 300px; aspect-ratio: 3 / 2; object-fit: cover; }
.story-photo .script { position: absolute; top: 28px; left: 24px; right: 24px; color: var(--paper); transform: rotate(-8deg); }
.story-photo-bridge { background: var(--ink-soft); }
.story-photo-bridge img { filter: grayscale(1); }
.story-collage-copy { padding: 40px 30px; }
.story-collage-copy h2 { font-size: clamp(30px, 2.7vw, 42px); }
.story-collage-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 14px; }
.story-collage-copy .button { margin-top: 20px; }
.building-sign { position: absolute; top: 50%; left: 14%; right: 14%; transform: translateY(-50%) rotate(-4deg); padding: 24px 12px; color: var(--paper); background: var(--ink); font: 400 22px/1.5 var(--heading-font); text-align: center; text-transform: uppercase; }
.story-logo-card { padding: 32px 18px; background: var(--paper-warm); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border-left: 1px solid var(--line); }
.story-logo-card .brand { flex-direction: column; gap: 8px; }
.story-logo-card .wordmark { font-size: 30px; }
.story-logo-card > p { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font: 500 17px/1.65 var(--heading-font); text-transform: uppercase; }
.story-intro { max-width: 850px; }
.story-intro p:last-child { margin-top: 28px; }
.story-section { border-top: 1px solid var(--line); align-items: center; }
.story-section > figure { grid-column: span 6; }
.story-section > div { grid-column: span 6; padding: 0 40px; }
.story-section h2 { margin-bottom: 24px; }
.story-section:nth-child(even) > figure { order: 2; }
.story-section .story-photo img { min-height: 0; height: auto; }
/* 08. Roast scale: the only gradient on the site */
.roast-guide { border-bottom: 1px solid var(--line); }
.roast-guide-top { display: flex; align-items: center; gap: 32px; margin-bottom: 30px; }
.roast-guide-top h2 { font-size: clamp(28px, 2.4vw, 36px); flex-shrink: 0; }
.roast-gradient { height: 22px; flex: 1; background: linear-gradient(90deg, var(--brass-light), var(--brass), var(--ink-soft), var(--ink)); border-radius: 2px; }
.roast-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.roast-columns h3 { font-size: 20px; margin-bottom: 10px; }
.roast-columns p, .roast-columns a { font-size: 14px; }
.roast-columns .roast-names { font-style: italic; margin-top: 12px; }
/* 09. Product detail, purchase options, and related roasts */
.breadcrumbs { margin-bottom: 36px; display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.product-detail-image { grid-column: 1 / 7; background: var(--paper-warm); display: grid; place-items: center; }
.product-detail-image img { width: 80%; aspect-ratio: 4 / 5; max-height: 710px; object-fit: contain; }
.product-detail-info { grid-column: 8 / -1; padding-block: 16px; }
.product-detail-info h1 { margin-top: 14px; overflow-wrap: anywhere; }
.detail-notes { margin-top: 24px; font-style: italic; }
.detail-tagline { margin-top: 12px; font-style: italic; color: var(--muted); }
.detail-price { margin-top: 24px; font-size: 24px; font-weight: 600; }
.purchase-form { margin-top: 28px; }
.purchase-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.purchase-options legend { margin-bottom: 8px; }
.purchase-option { display: flex; align-items: start; gap: 8px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; font-size: 14px; }
.purchase-option:has(input:checked) { border-color: var(--ink); background: var(--paper-warm); }
.purchase-option strong, .purchase-option small { display: block; }
.purchase-bottom { display: flex; gap: 16px; margin-top: 24px; }
.purchase-bottom > .button { flex: 1; }
.quantity-stepper { display: flex; width: 124px; flex-shrink: 0; align-items: center; border: 1px solid var(--muted); border-radius: 2px; }
.quantity-stepper .icon-button { min-width: 36px; padding: 4px; font-size: 20px; }
.quantity-stepper input { min-width: 0; width: 48px; padding: 0; border: 0; text-align: center; appearance: textfield; -moz-appearance: textfield; background: transparent; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.brewing-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.brewing-note h2 { font-size: 24px; margin-bottom: 12px; }
.brewing-note p + h2 { margin-top: 24px; }
.related-section { background: var(--paper-warm); }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto; }
/* 10. Subscription plan builder */
.subscription-intro { color: var(--paper); background: var(--ink); }
.subscription-intro .page-intro { max-width: 760px; }
.subscription-intro .steps { margin-top: 56px; }
.subscription-intro .step { padding-inline: 28px; }
.subscription-intro .step:first-child { padding-left: 0; border-left: 0; }
.plan-legend { font: 600 32px/.94 var(--heading-font); text-transform: uppercase; margin-bottom: 28px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.plan-card { padding: 28px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; display: block; }
.plan-card:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-card:has(input:checked) input { accent-color: var(--paper); }
.plan-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-card-title { font: 600 30px/1.1 var(--heading-font); text-transform: uppercase; }
.plan-price { display: block; font-size: 24px; font-weight: 600; margin-top: 24px; }
.plan-saving { display: block; font-size: 14px; margin-top: 8px; }
.plan-summary { padding: 22px 24px; margin: 24px 0 48px; background: var(--paper-warm); border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.plan-summary strong { font-weight: 600; }
.picker-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.surprise-option { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.roast-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.roast-choice { padding: 16px; border: 1px solid var(--line); border-radius: 2px; display: flex; flex-direction: column; }
.roast-choice img { width: 88px; align-self: center; }
.roast-choice h3 { font-size: 20px; margin-top: 12px; }
.roast-choice p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.roast-choice-controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.roast-choice-controls output { font-weight: 600; }
.roast-choice-controls button { border: 1px solid var(--line); }
.builder-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.builder-bottom p { font-size: 14px; }
.subscription-disclosure { margin-top: 28px; font-size: 14px; color: var(--muted); }
/* 11. Footer */
.site-footer { padding-block: 48px; background: var(--ink); color: var(--paper); }
.footer-inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.footer-tagline { padding-left: 30px; border-left: 1px solid var(--line-dark); font-size: 14px; margin-right: auto; }
.footer-meta { padding-left: 30px; border-left: 1px solid var(--line-dark); font-size: 11px; letter-spacing: .14em; line-height: 2; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
/* 12. Cart drawer, modal dialog, and live messages */
.drawer-backdrop { position: fixed; inset: 0; z-index: 75; background: var(--backdrop); }
.cart-drawer { position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(100%, 480px); background: var(--paper); display: flex; flex-direction: column; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid var(--line); }
.drawer-heading h2 { font-size: 32px; }
.shipping-status { padding: 20px 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.shipping-progress { margin-top: 12px; height: 3px; background: var(--line); }
.shipping-progress span { display: block; height: 100%; background: var(--ink); transition: width 200ms; }
.cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty { padding-block: 32px; text-align: center; }
.cart-empty p { margin-bottom: 24px; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.cart-item img { width: 72px; aspect-ratio: 4 / 5; object-fit: contain; }
.cart-item-heading { display: flex; justify-content: space-between; gap: 12px; }
.cart-item h3 { font-size: 22px; }
.cart-item p { margin-top: 8px; font-size: 14px; }
.cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cart-item-controls .quantity-stepper { width: 112px; }
.cart-quantity { flex: 1; text-align: center; }
.remove-item { min-height: 44px; padding: 8px 0; border: 0; color: var(--muted); background: none; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.cart-totals { border-top: 1px solid var(--line); padding: 24px; }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 12px; }
.cart-totals .button { width: 100%; margin-top: 20px; }
.prototype-note { color: var(--muted); font-size: 12px; margin-top: 12px; }
.notice-dialog { width: min(calc(100% - 40px), 500px); max-height: calc(100% - 40px); padding: 32px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; }
.notice-dialog::backdrop { background: var(--backdrop); }
.notice-dialog h2 { font-size: 32px; padding-right: 30px; margin-bottom: 24px; }
.notice-dialog .dialog-close { position: absolute; top: 12px; right: 12px; }
.notice-dialog .button { margin-top: 24px; }
.notice-dialog p { font-size: 14px; }
.noscript-message { padding: 24px; border: 1px solid var(--line); }
/* 13. Responsive layout */
@media (min-width: 1600px) {
  .story-collage { max-width: calc(var(--content-width) + var(--gutter) * 2); margin-inline: auto; }
}
@media (max-width: 1200px) {
  .header-inner { gap: 20px; }
  .desktop-nav { gap: 16px; }
  .header-shop { display: none; }
  .subscription-band-inner { grid-template-columns: 1fr 1.6fr; }
  .sticky-note { display: none; }
  .lineup-grid { grid-template-columns: repeat(7, minmax(145px, 1fr)); overflow-x: auto; padding: 6px 4px 24px; scroll-snap-type: x proximity; }
  .lineup-grid .product-card { scroll-snap-align: start; }
  .story-collage { grid-template-columns: 3fr 4fr 2.5fr; }
  .story-logo-card { display: none; }
  .section-heading { flex-wrap: wrap; }
  .section-heading .support { max-width: 280px; }
}
@media (max-width: 1024px) {
  .product-grid:not(.lineup-grid):not(.related-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { min-height: 540px; }
  .hero-copy { grid-column: 1 / 8; }
  .hero-visual { grid-column: 8 / -1; }
  .hero-bag { width: 100%; }
  .hero-handwriting, .roast-log { display: none; }
  .wordmark { font-size: 32px; }
  .brand { gap: 10px; }
  .brand-tower { width: 28px; }
  .desktop-nav { gap: 14px; }
  .desktop-nav a, .desktop-nav button { font-size: 14px; }
  .subscription-band-inner { grid-template-columns: 1fr; gap: 48px; }
  .subscription-copy { max-width: 600px; }
  .step:first-child { padding-left: 0; border-left: 0; }
  .story-collage { grid-template-columns: 1fr 1.4fr; }
  .story-collage .story-photo-building { display: none; }
  .product-detail-info { grid-column: 7 / -1; }
  .roast-guide-top { align-items: start; flex-direction: column; }
  .roast-gradient { width: 100%; flex: auto; }
  .roast-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { flex-wrap: wrap; }
  .footer-meta { padding-left: 0; border-left: 0; }
}
@media (max-width: 800px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-grid; }
  .announcement-inner > :nth-child(2), .announcement-inner > :nth-child(3) { display: none; }
  .plan-grid { gap: 12px; }
  .plan-card { padding: 20px 14px; }
  .plan-card-title { font-size: 25px; }
  .story-section > div { padding-inline: 12px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --section-space: 56px; }
  html { scroll-padding-top: 90px; }
  .header-inner { min-height: 88px; }
  .announcement-inner { min-height: 36px; font-size: 10px; }
  .announcement-place { display: none; }
  .announcement-inner > :first-child { width: 100%; text-align: center; }
  .wordmark { font-size: 30px; }
  .wordmark-sub { font-size: 11px; }
  .brand-tower { height: 56px; }
  .hero-inner { display: block; padding-block: 40px 32px; }
  .hero-copy h1 { max-width: 580px; font-size: clamp(44px, 8.5vw, 60px); }
  .hero-visual { margin-top: 28px; max-width: 470px; margin-inline: auto; }
  .hero-bag { width: 65%; max-height: 300px; }
  .hero-handwriting { display: block; width: 40%; font-size: 32px; }
  .section-heading { gap: 24px; align-items: start; }
  .section-heading .support { max-width: none; width: 100%; margin-left: 0; order: 3; }
  .lineup-grid { grid-template-columns: repeat(7, minmax(160px, 1fr)); }
  .product-grid:not(.lineup-grid):not(.related-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { align-items: start; flex-direction: column; gap: 16px; }
  .filter-button { padding-inline: 13px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .step, .subscription-intro .step { padding: 0 0 0 16px; }
  .step:nth-child(odd) { border-left: 0; padding-left: 0; }
  .story-collage { grid-template-columns: 1fr; }
  .story-collage-copy { padding: 40px 20px; }
  .story-collage .story-photo-building, .story-logo-card { display: flex; }
  .story-photo > img { min-height: 0; height: auto; }
  .story-logo-card { padding-block: 40px; border: 0; }
  .roast-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .roast-guide-top h2 { flex-shrink: 1; }
  .product-detail { display: block; }
  .product-detail-image img { max-height: 490px; width: 75%; }
  .product-detail-info { padding-top: 36px; }
  .related-grid { gap: 16px; }
  .related-grid h3 { font-size: 20px; }
  .related-grid .notes, .related-grid .tagline { font-size: 14px; }
  .related-grid .button { padding-inline: 4px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 24px; }
  .plan-price { margin-top: 14px; }
  .plan-summary { padding: 20px; }
  .picker-heading { flex-direction: column; align-items: start; }
  .roast-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-bottom { align-items: stretch; flex-direction: column; }
  .story-section { display: flex; flex-direction: column; align-items: stretch; }
  .story-section > div { padding: 12px 0 0; }
  .story-section:nth-child(even) > figure { order: 0; }
  .footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-tagline { padding: 0; border: 0; margin: 0; }
  .footer-meta { font-size: 10px; }
}
@media (max-width: 480px) {
  .product-grid:not(.lineup-grid) { grid-template-columns: 1fr !important; }
  .product-grid:not(.lineup-grid) .product-image { max-height: 340px; }
  .related-grid { gap: 40px; }
  .hero-copy .actions { flex-direction: column; align-items: stretch; }
  .hero-copy .eyebrow { letter-spacing: .15em; font-size: 10px; }
  .purchase-option { padding-inline: 8px; font-size: 13px; }
  .header-actions { gap: 2px; }
  .roast-choice { padding: 12px; }
  .roast-choice h3 { font-size: 18px; }
  .cart-items, .cart-totals, .drawer-heading { padding: 20px; }
}
/* 14. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
