/* ==========================================================================
   Ridgeline Roast Co. — demo storefront styles v2 (art-directed editorial)
   Warm-craft register: cream paper, deep forest, caramel, kraft.
   Display: Fraunces (opsz). Text: Karla.
   ========================================================================== */

:root {
  --cream: #f3eee2;
  --cream-2: #eae2d0;
  --paper: #fbf8f0;
  --kraft: #e4d8bf;
  --ink: #241a10;
  --ink-2: #66583f;
  --ink-3: #978870;
  --forest: #1f3d2a;
  --forest-2: #16301f;
  --caramel: #b06f2e;
  --caramel-2: #8f5718;
  --rust: #9c4a24;
  --sage: #79885e;
  --line: #ddd2bb;
  --line-2: #cbbc9e;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  --sh-sm: 0 1px 2px rgba(36,26,16,.07), 0 3px 10px rgba(36,26,16,.05);
  --sh-lg: 0 6px 18px rgba(36,26,16,.10), 0 18px 48px rgba(36,26,16,.12);
  --wrap: 1240px;
  --r: 4px;
  --ease: cubic-bezier(.2,.7,.25,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
h2 em, .hero-title em, .foot-word em { font-style: italic; font-weight: 430; color: var(--caramel-2); }
.page-width { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }

/* ---------- paper grain ---------- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- topo contour texture ---------- */
.topo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%23241a10' stroke-opacity='.055' stroke-width='1.2'%3E%3Cpath d='M-60 90 Q120 30 280 95 T580 75'/%3E%3Cpath d='M-60 150 Q140 95 300 155 T580 140'/%3E%3Cpath d='M-60 215 Q110 160 270 220 T580 205'/%3E%3Cpath d='M-60 280 Q150 230 310 285 T580 270'/%3E%3Cpath d='M-60 350 Q120 295 280 355 T580 340'/%3E%3Cpath d='M-60 420 Q140 365 300 425 T580 410'/%3E%3Cpath d='M-60 490 Q110 435 270 495 T580 480'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--caramel-2);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--caramel); }
.sec-head { margin-bottom: clamp(30px, 5vw, 56px); max-width: 640px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.015em; margin: 14px 0 12px; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 17px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r);
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--forest); color: var(--cream); }
.btn-solid:hover { background: var(--forest-2); box-shadow: var(--sh-sm); }
.btn-amber { background: var(--caramel); color: #fff; }
.btn-amber:hover { background: var(--caramel-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--forest); }
.btn-cream:hover { background: #fff; }
.btn-line { border-color: rgba(243,238,226,.4); color: var(--cream); }
.btn-line:hover { border-color: var(--cream); background: rgba(243,238,226,.08); }
.btn-block { width: 100%; }

/* ---------- announcement + header ---------- */
.topbar {
  background: var(--forest-2); color: #cfc6ad;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  text-align: center; padding: 9px 16px;
}
.topbar b { color: var(--cream); font-weight: 700; }

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(243,238,226,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .page-width { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand svg { width: 34px; height: 34px; color: var(--forest); }
.brand-text { line-height: 1.1; }
.brand-text b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.brand-text span { font-size: 9.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }

.main-nav { margin-left: auto; }
.list-menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.list-menu a {
  text-decoration: none; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.list-menu a:hover { color: var(--ink); border-color: var(--caramel); }

.head-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border: 0; background: none;
  display: inline-grid; place-items: center; border-radius: var(--r);
  color: var(--ink); text-decoration: none;
}
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count-bubble {
  position: absolute; top: 3px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--caramel); color: #fff; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center;
}
.cart-count-bubble:empty { display: none; }
.menu-btn { display: none; }

/* ---------- mobile nav ---------- */
.mnav { position: fixed; inset: 0; z-index: 90; display: none; }
.mnav.open { display: block; }
.mnav-scrim { position: absolute; inset: 0; background: rgba(22,18,10,.45); }
.mnav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 88vw);
  background: var(--forest); color: var(--cream); padding: 22px 26px 30px;
  display: flex; flex-direction: column; overflow-y: auto;
  animation: navIn .28s var(--ease);
}
@keyframes navIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.mnav-close {
  align-self: flex-end; background: none; border: 0; color: var(--cream);
  width: 40px; height: 40px; display: grid; place-items: center;
}
.mnav-close svg { width: 22px; height: 22px; }
.mnav-panel a.mnav-link {
  text-decoration: none; padding: 15px 2px;
  border-bottom: 1px solid rgba(243,238,226,.16);
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}
.mnav-panel a.mnav-link svg { width: 16px; height: 16px; opacity: .6; }
.mnav-visit {
  margin-top: auto; padding-top: 26px;
  font-size: 13.5px; line-height: 1.9; color: #c4bca4;
}
.mnav-visit b { color: var(--cream); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.mnav-visit a { color: var(--cream); }

/* ---------- hero: masthead composition ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-top { padding: clamp(40px, 6vw, 76px) 0 0; }
.hero-eyebrow-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hero-eyebrow-side {
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-3);
}
.hero-title {
  font-size: clamp(44px, 8.2vw, 112px);
  font-weight: 470; letter-spacing: -.025em; line-height: .96;
  margin: 24px 0 0;
}
.ht-line { display: block; }
.ht-indent { margin-left: clamp(48px, 14vw, 210px); }
.hero-sub-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; flex-wrap: wrap;
  margin: clamp(24px, 3vw, 36px) 0 clamp(34px, 4.5vw, 56px);
}
.hero-sub { color: var(--ink-2); font-size: 18px; max-width: 44ch; margin: 0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media {
  position: relative; height: clamp(340px, 58vh, 620px);
  overflow: hidden; border-top: 1px solid var(--line);
}
.hero-media > img {
  position: absolute; left: 0; top: 0; width: 100%; height: 118%;
  object-fit: cover; will-change: transform;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(22,28,20,.30), transparent 42%);
}
.hero-vtext {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; rotate: 180deg;
  font-size: 10.5px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(251,248,240,.85); text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.hero-stamp {
  position: absolute; right: clamp(18px, 4vw, 56px); top: -46px; z-index: 3;
  width: clamp(96px, 9.5vw, 126px); filter: drop-shadow(0 4px 10px rgba(36,26,16,.15));
}
.stamp-spin { transform-origin: 60px 60px; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* roast log — instrument readout */
.roast-card {
  position: absolute; right: clamp(18px, 4vw, 56px); bottom: clamp(16px, 3.5vw, 38px);
  width: min(302px, 76vw);
  background: rgba(251,248,240,.95); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--r);
  padding-bottom: 14px; box-shadow: var(--sh-lg);
  font-size: 13px; line-height: 1.55;
}
.rc-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--forest);
}
.rc-live { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); animation: pulse 1.7s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.rc-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 18px; }
.rc-row span { color: var(--ink-3); }
.rc-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-gauge {
  margin: 13px 18px 7px; height: 9px; border-radius: 5px;
  background: linear-gradient(90deg, #e8d9b8, var(--caramel) 58%, var(--rust));
  position: relative;
}
.rc-gauge i {
  position: absolute; top: -5px; width: 3px; height: 19px;
  background: var(--ink); border-radius: 2px;
  transform: translateX(-50%);
}
.rc-gauge::after {
  content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(251,248,240,.6) 19px 20px);
}
.rc-gauge-lbl {
  display: flex; justify-content: space-between; padding: 0 18px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- marquee: display serif ticker ---------- */
.marquee {
  background: var(--forest); color: var(--cream);
  overflow: hidden; padding: clamp(14px, 2vw, 22px) 0; white-space: nowrap;
}
.marquee-track { display: inline-flex; align-items: center; animation: mq 36s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: clamp(16px, 2.4vw, 30px);
  padding: 0 clamp(16px, 2.4vw, 30px);
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 46px); font-weight: 450;
  letter-spacing: -.01em; line-height: 1;
}
.marquee span em { color: #d9a561; font-weight: 420; }
.marquee svg { width: .42em; height: .42em; color: var(--caramel); flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- coffee grid ---------- */
.coffee-sec { padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); }
.shop-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2);
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  border: 1.5px solid var(--line-2); background: var(--paper); border-radius: 999px;
  padding: 8px 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); transition: all .15s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.result-n { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 600; }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard.hide { display: none; }
.pcard-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  background: var(--kraft);
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(22,28,20,.26), transparent 36%);
  opacity: 0; transition: opacity .3s;
}
.pcard:hover .pcard-media::after { opacity: 1; }
.qv-tag {
  position: absolute; left: 50%; bottom: 14px; z-index: 2;
  transform: translate(-50%, 10px);
  background: var(--paper); color: var(--ink); border-radius: 999px;
  padding: 9px 18px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transition: transform .3s var(--ease), opacity .3s;
  box-shadow: var(--sh-sm); pointer-events: none; white-space: nowrap;
}
.pcard:hover .qv-tag, .pcard-media:focus-visible .qv-tag { opacity: 1; transform: translate(-50%, 0); }
.pcard-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--paper); border-radius: 3px;
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 10px; color: var(--forest); box-shadow: var(--sh-sm);
}
.pcard-body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pcard-name { font-size: clamp(19px, 1.7vw, 25px); font-weight: 550; letter-spacing: -.015em; line-height: 1.1; }
.pcard-name button { border: 0; background: none; padding: 0; font: inherit; text-align: left; }
.pcard-name button:hover { color: var(--caramel-2); }
.pcard-price { font-size: 16px; font-weight: 700; white-space: nowrap; }
.pcard-origin { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.pcard-chips { list-style: none; display: flex; gap: 5px; flex-wrap: wrap; margin: 0; padding: 0; }
.pcard-chips li {
  font-size: 11.5px; font-style: italic; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px;
}
.pcard-foot { margin-top: auto; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.roast-meter { display: inline-flex; align-items: center; gap: 3px; }
.roast-meter i { width: 14px; height: 4px; border-radius: 2px; background: var(--line-2); }
.roast-meter i.on { background: var(--caramel); }
.roast-meter em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-left: 7px; }

.add-btn {
  border: 1.5px solid var(--ink); background: transparent; border-radius: var(--r);
  padding: 9px 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  transition: all .15s; white-space: nowrap;
}
.add-btn:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.add-price { opacity: .65; }

/* ---------- subscription ---------- */
.sub-sec { background: var(--forest); color: var(--cream); position: relative; overflow: hidden; }
.sub-sec::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%23f3eee2' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M-60 90 Q120 30 280 95 T580 75'/%3E%3Cpath d='M-60 150 Q140 95 300 155 T580 140'/%3E%3Cpath d='M-60 215 Q110 160 270 220 T580 205'/%3E%3Cpath d='M-60 280 Q150 230 310 285 T580 270'/%3E%3Cpath d='M-60 350 Q120 295 280 355 T580 340'/%3E%3Cpath d='M-60 420 Q140 365 300 425 T580 410'/%3E%3Cpath d='M-60 490 Q110 435 270 495 T580 480'/%3E%3C/g%3E%3C/svg%3E");
}
.sub-sec .page-width {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 90px); align-items: center;
  padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px);
}
.sub-sec .eyebrow { color: #d9a561; }
.sub-sec .eyebrow::before { background: #d9a561; }
.sub-sec h2 em { color: #d9a561; }
.sub-copy h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.015em; margin: 14px 0 16px; }
.sub-copy > p { color: #c4bca4; font-size: 17px; max-width: 46ch; }
.sub-steps { list-style: none; margin: 30px 0 0; padding: 0; }
.sub-steps li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px 0; border-top: 1px solid rgba(243,238,226,.15);
}
.sub-steps .n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid #d9a561; color: #d9a561;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 15px; font-weight: 600;
}
.sub-steps b { display: block; font-size: 15.5px; }
.sub-steps span { font-size: 14px; color: #a89f86; }

/* stepped builder */
.sub-card {
  background: var(--paper); color: var(--ink); border-radius: var(--r);
  padding: clamp(22px, 3vw, 36px); box-shadow: var(--sh-lg);
}
.sub-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.sub-tab {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 0 0 12px; margin-right: 26px;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.sub-tab i { font-style: normal; font-family: var(--serif); font-size: 13px; color: var(--caramel); }
.sub-tab.on { color: var(--ink); border-color: var(--caramel); }
.sub-tab.done { color: var(--sage); }

.sub-step { border: 0; padding: 0; margin: 0; display: none; }
.sub-step.on { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.f-label {
  display: block; font-family: var(--serif); font-size: 21px; font-weight: 550;
  letter-spacing: -.01em; padding: 0; margin: 0 0 16px;
}

.sub-coffees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.sub-opt {
  position: relative; display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--paper);
  padding: 11px 12px; cursor: pointer; transition: border-color .15s, background .15s;
}
.sub-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sub-opt::before {
  content: ''; flex: none; width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid var(--line-2); transition: all .15s;
}
.sub-opt:hover { border-color: var(--ink-3); }
.sub-opt:focus-within { outline: 2px solid var(--caramel); outline-offset: 2px; }
.sub-opt:has(input:checked) { border-color: var(--forest); background: #eef0e4; }
.sub-opt:has(input:checked)::before { border-color: var(--forest); background: var(--forest); box-shadow: inset 0 0 0 3px var(--paper); }
.so-body { min-width: 0; line-height: 1.3; }
.so-body b { display: block; font-size: 14px; }
.so-body span { font-size: 11.5px; color: var(--ink-2); }
.so-price { margin-left: auto; font-weight: 700; font-size: 13.5px; }

.freq-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.freq-opt {
  position: relative; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--paper); padding: 16px 12px 14px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s; display: block;
}
.freq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.freq-opt b { display: block; font-size: 14.5px; }
.freq-opt small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.freq-opt .fq-price { display: block; margin-top: 9px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--caramel-2); }
.freq-opt:hover { border-color: var(--ink-3); }
.freq-opt:focus-within { outline: 2px solid var(--caramel); outline-offset: 2px; }
.freq-opt:has(input:checked) { border-color: var(--forest); background: #eef0e4; }

.sub-review { margin-bottom: 20px; }
.sr-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 14.5px;
}
.sr-row span { color: var(--ink-2); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; align-self: center; }
.sr-row b { font-weight: 600; text-align: right; }
.sr-total b { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.sr-total s { color: var(--ink-3); font-size: 16px; margin-right: 6px; }
.sr-note { font-size: 12.5px; color: var(--sage); font-weight: 600; margin: 12px 0 0; }

.sub-nav { display: flex; justify-content: space-between; gap: 12px; }
.sub-nav .btn { flex: none; }
.sub-nav .btn:last-child { flex: 1; }
.sub-nav > span { flex: 1; }
.sub-nav > span + .btn { flex: none; margin-left: auto; }

/* ---------- story ---------- */
.story-sec { border-top: 1px solid var(--line); }
.story-ridge { position: relative; min-height: clamp(300px, 44vw, 480px); overflow: hidden; }
.story-ridge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-ridge .ridge-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px 24px 22px; color: var(--cream);
  background: linear-gradient(transparent, rgba(22,30,20,.72));
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px); font-weight: 450; font-style: italic;
  text-align: center;
}
.story-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 84px); align-items: center;
  padding: clamp(56px, 7vw, 96px) 0;
}
.story-media { position: relative; }
.story-media img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.story-media .badge-2 {
  position: absolute; right: -14px; bottom: 26px;
  background: var(--caramel); color: #fff; border-radius: var(--r);
  font-family: var(--serif); padding: 14px 18px; text-align: center; line-height: 1.25;
  box-shadow: var(--sh-sm);
}
.story-media .badge-2 b { display: block; font-size: 24px; }
.story-media .badge-2 span { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-family: var(--sans); }
.story-copy h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.015em; margin: 14px 0 16px; }
.story-copy > p { color: var(--ink-2); font-size: 17px; margin: 0 0 18px; max-width: 52ch; }
.story-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border-top: 1px solid var(--line-2); margin-top: 34px; padding-top: 26px;
}
.story-stats b { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 550; display: block; }
.story-stats span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- brew guides ---------- */
.brew-sec { background: var(--cream-2); border-block: 1px solid var(--line); padding: clamp(56px, 8vw, 110px) 0; }
.brew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.brew-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
}
.brew-card .brew-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--kraft); }
.brew-card .brew-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.brew-card:hover .brew-img img { transform: scale(1.05); }
.brew-card .brew-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.brew-body h3 { font-size: 22px; }
.brew-body p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.brew-specs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.brew-specs span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; color: var(--ink-2);
}

/* ---------- wholesale ---------- */
.wholesale-sec { position: relative; overflow: hidden; }
.wholesale-sec .wholesale-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wholesale-sec::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(15,22,15,.84), rgba(15,22,15,.55));
}
.wholesale-in {
  position: relative; z-index: 2; color: var(--cream); text-align: center;
  padding: clamp(70px, 10vw, 130px) 24px; max-width: 680px; margin: 0 auto;
}
.wholesale-in h2, .wholesale-in p { text-shadow: 0 1px 14px rgba(15,22,15,.55); }
.wholesale-in .eyebrow { color: #d9a561; justify-content: center; }
.wholesale-in .eyebrow::before { background: #d9a561; }
.wholesale-in h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.015em; margin: 16px 0 14px; }
.wholesale-in h2 em { color: #d9a561; }
.wholesale-in p { color: #d5cbb2; font-size: 17px; max-width: 50ch; margin: 0 auto 30px; }
.wholesale-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- visit ---------- */
.visit-sec .page-width {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(36px, 6vw, 84px); align-items: center;
  padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px);
}
.visit-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--kraft); }
.visit-media img { width: 100%; height: 100%; object-fit: cover; }
.visit-copy h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.015em; margin: 14px 0 16px; }
.visit-copy > p { color: var(--ink-2); font-size: 17px; margin: 0 0 26px; max-width: 48ch; }
.visit-rows { display: grid; gap: 0; }
.visit-row {
  display: grid; grid-template-columns: 26px 130px 1fr; gap: 14px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid var(--line);
  font-size: 15px;
}
.visit-row svg { width: 17px; height: 17px; color: var(--caramel-2); align-self: center; }
.visit-row .vr-k { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.visit-row a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.visit-row a:hover { color: var(--caramel-2); border-color: var(--caramel); }

/* ---------- newsletter ---------- */
.news-sec { background: var(--kraft); border-block: 1px solid var(--line-2); }
.news-sec .page-width {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap;
}
.news-copy h2 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 4px; }
.news-copy p { margin: 0; color: var(--ink-2); font-size: 15px; }
#news-form { display: flex; gap: 10px; flex-wrap: wrap; }
#news-form input {
  font: inherit; min-width: min(300px, 62vw); flex: 1;
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--paper); padding: 14px 16px; color: var(--ink);
}
#news-form input:focus { outline: 2px solid var(--caramel); outline-offset: 1px; }

/* ---------- footer ---------- */
.site-foot { background: var(--forest-2); color: #c4bca4; }
.foot-top {
  padding: clamp(48px, 7vw, 80px) 0 clamp(30px, 4vw, 48px);
  border-bottom: 1px solid rgba(243,238,226,.14);
}
.foot-word {
  font-family: var(--serif); font-weight: 480; letter-spacing: -.02em;
  font-size: clamp(38px, 7.5vw, 96px); line-height: 1; color: var(--cream);
}
.foot-word em { color: #d9a561; }
.foot-mid { display: flex; gap: clamp(30px, 6vw, 90px); flex-wrap: wrap; padding: 40px 0; }
.foot-col h3 {
  font-family: var(--sans); font-size: 11px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: #8d9a7f;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: #c4bca4; text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: #fff; }
.foot-visit { font-size: 14.5px; line-height: 1.9; }
.foot-visit a { color: #c4bca4; text-decoration: none; border-bottom: 1px solid rgba(243,238,226,.25); }
.foot-visit a:hover { color: #fff; }
.foot-bar {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 22px 0 26px; font-size: 12.5px; color: #8d9a7f;
}
.demo-tag {
  display: inline-block; margin-left: 10px; padding: 2px 11px;
  border: 1px solid #8d9a7f; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c4bca4;
}

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 95; display: none; }
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(22,18,10,.5); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 94vw);
  background: var(--paper); display: flex; flex-direction: column;
  animation: navIn .28s var(--ease); box-shadow: var(--sh-lg);
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.drawer-head b { font-family: var(--serif); font-size: 22px; font-weight: 550; }
.drawer-close { border: 0; background: none; width: 38px; height: 38px; display: grid; place-items: center; }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cline { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cline img { width: 72px; height: 86px; object-fit: cover; border-radius: var(--r); background: var(--cream-2); }
.cline-info { min-width: 0; }
.cline-info b { font-family: var(--serif); font-size: 16.5px; font-weight: 600; display: block; }
.cline-info > span { font-size: 12.5px; color: var(--ink-2); display: block; margin: 2px 0 10px; }
.cline-row { display: flex; align-items: center; gap: 16px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 16px; color: var(--ink-2); }
.qty button:hover { color: var(--caramel-2); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-size: 14px; }
.cline-rm { border: 0; background: none; font-size: 12px; text-decoration: underline; color: var(--ink-3); padding: 0; }
.cline-rm:hover { color: var(--rust); }
.cline-price { font-weight: 700; font-size: 15px; align-self: start; padding-top: 2px; }

.cart-empty { text-align: center; padding: 70px 20px; color: var(--ink-2); }
.cart-empty svg { width: 42px; height: 42px; color: var(--line-2); margin-bottom: 14px; }
.cart-empty b { font-family: var(--serif); font-size: 22px; display: block; color: var(--ink); margin-bottom: 6px; }
.cart-empty .btn { margin-top: 20px; }

.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; background: var(--paper); }
.ship-note { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.ship-note b { color: var(--forest); }
.ship-track { height: 6px; border-radius: 3px; background: var(--cream-2); overflow: hidden; margin-bottom: 16px; }
.ship-track i { display: block; height: 100%; width: 0; background: var(--caramel); border-radius: 3px; transition: width .4s ease; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.drawer-total span { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.drawer-total b { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.drawer-foot .fine { font-size: 12px; color: var(--ink-3); margin: 0 0 14px; }

/* ---------- quick-view modal ---------- */
.pview { position: fixed; inset: 0; z-index: 92; display: none; }
.pview.open { display: grid; place-items: center; padding: 18px; }
.pview-scrim { position: absolute; inset: 0; background: rgba(22,18,10,.55); }
.pview-panel {
  position: relative; background: var(--paper); border-radius: var(--r);
  width: min(920px, 100%); max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  animation: popIn .26s var(--ease); box-shadow: var(--sh-lg);
}
@keyframes popIn { from { transform: translateY(18px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.pview-img { position: relative; min-height: 340px; background: var(--kraft); }
.pview-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pview-badge {
  position: absolute; top: 14px; left: 14px; background: var(--paper); border-radius: 3px;
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 10px; color: var(--forest); box-shadow: var(--sh-sm);
}
.pview-body { padding: clamp(24px, 3.5vw, 42px); display: flex; flex-direction: column; }
.pview-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  border: 0; background: rgba(251,248,240,.92); border-radius: var(--r);
  width: 38px; height: 38px; display: grid; place-items: center;
}
.pview-close svg { width: 18px; height: 18px; }
.pview-origin { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); margin: 0 0 8px; }
.pview-name { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.015em; }
.pview-process { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 14px; }
.pview-meter { margin-bottom: 14px; }
.pview-notes { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; }
.pview-notes li {
  font-size: 12.5px; font-weight: 700; font-style: italic;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; color: var(--ink-2);
}
.pview-desc { font-size: 15px; color: var(--ink-2); margin: 0 0 22px; }
.pview-label { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.pview-size { display: flex; gap: 8px; margin-bottom: 20px; }
.pview-size button {
  flex: 1; border: 1.5px solid var(--line-2); background: var(--paper); border-radius: var(--r);
  padding: 11px 8px; font-size: 13px; font-weight: 700; text-align: center; transition: all .15s;
}
.pview-size button small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.pview-size button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.pview-size button[aria-pressed="true"] small { color: #c4bca4; }
.pview-buy { display: flex; gap: 12px; align-items: stretch; margin-top: auto; }
.pview-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r); }
.pview-qty button { width: 42px; height: 100%; min-height: 48px; border: 0; background: none; font-size: 18px; color: var(--ink-2); }
.pview-qty output { min-width: 30px; text-align: center; font-weight: 700; }
.pview-buy .btn { flex: 1; }
.pview-price { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 80px);
  z-index: 99; background: var(--ink); color: var(--cream);
  padding: 13px 22px; border-radius: var(--r); font-size: 14px; font-weight: 600;
  box-shadow: var(--sh-lg); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s;
  max-width: min(92vw, 480px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .site-head .page-width { gap: 10px; }
  .brand svg { width: 30px; height: 30px; }
  .brand-text b { font-size: 16px; }
  .brand-text span { display: none; }
  .story-media .badge-2 { right: 10px; }
  .hero-media { height: clamp(300px, 46vh, 480px); }
  .hero-eyebrow-side { display: none; }
  .hero-vtext { display: none; }
  .hero-stamp { top: 14px; right: 14px; width: 84px; }
  .sub-sec .page-width, .story-grid, .visit-sec .page-width { grid-template-columns: 1fr; }
  .story-media { max-width: 520px; }
  .visit-media { order: -1; }
  .brew-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .pcard-name { font-size: 17px; }
  .pcard-origin { font-size: 10px; }
  .pcard-chips li { font-size: 10.5px; padding: 2px 8px; }
  .pcard-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .add-btn { width: 100%; }
  .ht-indent { margin-left: clamp(28px, 8vw, 60px); }
  .roast-card { left: 14px; right: 14px; bottom: 14px; width: auto; }
  .pview-panel { grid-template-columns: 1fr; max-height: 92vh; }
  .pview-img { min-height: 240px; aspect-ratio: 16 / 10; }
  .pview-img img { position: absolute; }
  .sub-coffees { grid-template-columns: 1fr; }
  .freq-cards { grid-template-columns: 1fr; }
  .news-sec .page-width { flex-direction: column; align-items: flex-start; }
  #news-form { width: 100%; }
  .visit-row { grid-template-columns: 1fr; }
  .visit-row svg, .visit-row .vr-k { display: none; }
  .story-stats { gap: 12px; }
  .sub-tabs { overflow-x: auto; }
}
@media (max-width: 380px) {
  .prod-grid { grid-template-columns: 1fr; }
  .pcard-media { aspect-ratio: 5 / 4; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .stamp-spin, .rc-live { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .sub-step.on { animation: none; }
  html { scroll-behavior: auto; }
}
