/* Pouring Rain Coffee Roaster - v5.10.6
   Official logo and type from Jason, Dec 1, 2026 ~7:57–7:58 PM PT.
   Palette inverted at Jonathan's request (9:43 PM PT Dec 1): navy grounds, cream type.
   See docs/FONT-NOTE.md. */

:root {
  --navy: #14264a;
  --cream: #f3e9d2;
  --blue: #3e7fbf;
  --muted: #c9b89a;
  --rule: rgba(243, 233, 210, 0.22);
  --navy-deep: var(--navy);
  --cream-soft: var(--cream);
  --drop: var(--blue);
  --drop-deep: var(--blue);
  --pill: var(--blue);
  --ink: var(--navy);
  --panel: var(--cream);
  --paper: var(--cream);
  --rain: var(--blue);
  --serif: "Abhaya Libre", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --display: var(--serif);
  --body: var(--sans);
  --wide: 68rem;
  --header-h: 6.6rem;
  --header-stack: 7.25rem;
  color-scheme: dark;
}


@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/librebaskerville-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/librebaskerville-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/librebaskerville-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "Abhaya Libre";
  src: url("/fonts/abhayalibre-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--navy); scroll-padding-top: var(--header-h); color-scheme: dark; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--cream);
  min-height: 100%;
}

a { color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--drop); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cream);
  color: var(--navy);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { left: 0.6rem; top: 0.6rem; }

.wrap { width: min(calc(100% - 2rem), var(--wide)); margin: 0 auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}
.rain span {
  position: absolute;
  top: -8%;
  width: 1px;
  height: 14px;
  background: rgba(168, 203, 232, 0.35);
  animation: rain-fall 4.8s linear infinite;
}
.rain span:nth-child(1) { left: 8%; animation-delay: -0.4s; animation-duration: 5.2s; }
.rain span:nth-child(2) { left: 22%; animation-delay: -1.6s; animation-duration: 4.4s; height: 10px; }
.rain span:nth-child(3) { left: 37%; animation-delay: -2.8s; animation-duration: 5.6s; }
.rain span:nth-child(4) { left: 51%; animation-delay: -0.9s; animation-duration: 4.1s; height: 11px; }
.rain span:nth-child(5) { left: 66%; animation-delay: -3.2s; animation-duration: 5.0s; }
.rain span:nth-child(6) { left: 81%; animation-delay: -1.1s; animation-duration: 4.7s; height: 9px; }
.rain span:nth-child(7) { left: 93%; animation-delay: -2.2s; animation-duration: 5.4s; }
@keyframes rain-fall {
  from { transform: translate3d(0, -10vh, 0); }
  to { transform: translate3d(0, 110vh, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 38, 74, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--muted); }
.brand-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-rest { font-style: italic; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  min-height: 44px;
}
.cart-link:hover { background: var(--navy); color: var(--cream); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  background: var(--navy);
  color: var(--cream);
  border-radius: 99px;
  font-size: 0.75rem;
}

.tab-nav {
  position: relative;
  padding: 0 0 0.2rem;
  max-width: var(--wide);
  margin: 0 auto;
  width: 100%;
}
.tab-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-padding-inline: 2rem;
}
.tab-fade {
  position: absolute;
  top: 0;
  bottom: 0.15rem;
  width: 2.55rem;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
}
.tab-fade-start {
  left: 0;
  justify-content: flex-start;
  padding-left: 0.15rem;
  background: linear-gradient(to right, var(--navy) 0%, var(--navy) 58%, transparent 100%);
}
.tab-fade-end {
  right: 0;
  justify-content: flex-end;
  padding-right: 0.15rem;
  background: linear-gradient(to left, var(--navy) 0%, var(--navy) 58%, transparent 100%);
}
.tab-nav[data-affordance="start"] .tab-fade-start,
.tab-nav[data-affordance="both"] .tab-fade-start,
.tab-nav[data-affordance="end"] .tab-fade-end,
.tab-nav[data-affordance="both"] .tab-fade-end {
  opacity: 1;
  visibility: visible;
}
.tab-chevron {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 0 6px var(--navy);
}
.tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  width: max-content;
  min-width: 100%;
  padding: 0 1rem 0.2rem;
}
.tablist a {
  flex: 0 0 auto;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.55rem 0.48rem;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  scroll-margin-inline: 2rem;
}
.tablist a[aria-selected="true"] {
  color: var(--navy);
  border-bottom-color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--navy);
  background: transparent;
}
.tablist a:focus-visible, .more-btn:focus-visible, .size-btn:focus-visible, .cart-link:focus-visible, .filter-selects select:focus-visible, .add-btn:focus-visible {
  outline: 2px solid var(--drop);
  outline-offset: 2px;
}
.tablist a:hover { color: var(--navy); }

.panel { padding: 0.85rem 0 2.4rem; min-height: 60vh; }
.kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.7rem;
}
h1 { font-size: clamp(1.45rem, 4.6vw, 2.1rem); margin-bottom: 0.4rem; }
h2 { font-size: 1.25rem; margin-top: 1.6rem; }
.lede, .order-intro p, .about-copy p { margin: 0 0 0.7rem; max-width: 42rem; font-size: 0.98rem; }
.order-intro p { max-width: 46rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1rem;
  min-height: 44px;
  border: 1px solid var(--cream);
  color: var(--cream);
  background: transparent;
  cursor: pointer;
}
.btn:hover { background: var(--cream); color: var(--navy); }
.btn-primary { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn-primary:hover { background: var(--drop); border-color: var(--muted); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0; }

.bean-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.bean-card {
  background: rgba(8, 16, 32, 0.35);
  border: 1px solid rgba(168, 203, 232, 0.28);
  padding: 0.85rem;
  display: grid;
  gap: 0.85rem;
}
.bean-thumb {
  width: 7.2rem;
  height: auto;
  aspect-ratio: 4 / 5;
  background: var(--navy-deep);
  justify-self: start;
}
.bean-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.bean-notes {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  margin: 0 0 0.8rem;
  color: var(--cream);
}
.add-sizes {
  display: grid;
  gap: 0.7rem;
}
.add-row {
  display: grid;
  gap: 0.35rem;
}
.size-name {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--cream);
}
.field-inline {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.field-inline label, .field > label, fieldset.field > legend, .req-note {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.choice {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--cream);
}
select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--cream-soft);
  padding: 0.45rem 0.55rem;
  min-height: 44px;
  width: 100%;
  max-width: 100%;
}
textarea { min-height: 6rem; resize: vertical; }
.add-btn { width: 100%; }
.add-status { min-height: 1.3em; margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--muted); }

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.cart-table th, .cart-table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cart-table th {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-table select { min-height: 40px; width: auto; max-width: 5rem; }
.cart-total { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 1.2rem; }
.cart-empty { font-style: italic; }
.remove-btn {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  min-height: 44px;
  padding: 0 0.2rem;
}
.remove-btn:hover { color: var(--cream); }

.field { margin: 0 0 1.2rem; border: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 0.35rem; }
.helper {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.choices { display: grid; gap: 0.35rem; }
.choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 1rem;
  padding: 0.35rem 0;
  cursor: pointer;
}
.choice input { margin-top: 0.35rem; flex: none; accent-color: var(--muted); width: 1.1rem; height: 1.1rem; }
.req { color: var(--muted); }
.req-note { margin-bottom: 1.2rem; }
.form-error { color: var(--paper); background: #4a2030; padding: 0.7rem 0.8rem; }
.checkout-summary, .confirm-summary {
  border: 1px solid rgba(168, 203, 232, 0.28);
  padding: 1rem;
  margin: 0 0 1.4rem;
}
.confirm-summary h2, .checkout-summary h2 { margin-top: 0; font-size: 1.15rem; }
.confirm-summary dt, .checkout-answers dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.7rem;
}
.confirm-summary dd { margin: 0.15rem 0 0; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.process-counter { margin: 0; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--muted); }
.past-toolbar .btn:disabled {
  visibility: hidden;
  pointer-events: none;
}

.past-note { margin-top: 1.6rem; font-style: italic; }
.about-copy .btn-row { margin-top: 0.4rem; }

.mountain-band {
  display: block;
  width: 100%;
  height: 72px;
  margin: 0;
  color: var(--drop-deep);
}
.mountain-band svg { display: block; width: 100%; height: 100%; }
.site-footer { padding: 0 0 2.2rem; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { padding-top: 0.8rem; }
.site-footer a { color: var(--muted); }
.scaffold { font-size: 0.8rem; opacity: 0.8; }

@media (min-width: 700px) {
  .bean-card {
    grid-template-columns: 8.5rem 1fr;
    align-items: start;
  }
  .bean-thumb { width: 8.5rem; }
  .add-row {
    grid-template-columns: 1fr 6rem auto;
    align-items: end;
  }
  .add-btn { width: auto; }
  .tablist a { font-size: 0.78rem; padding: 0.7rem 0.8rem; flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .bean-grid { grid-template-columns: 1fr; }
  .panel { padding: 2rem 0 4rem; }
}


/* v5.2 label-as-box offerings: label stays grid-sized when More info opens. */
.offer-tools {
  display: grid;
  gap: 0.45rem;
  margin: 0.45rem 0 0.35rem;
}
.filter-selects {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  align-items: end;
}
.filter-selects label {
  display: grid;
  gap: 0.15rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
}
.filter-selects select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.filter-status, .empty-filter {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
  min-height: 2.5rem;
  white-space: normal;
}
.empty-filter { margin: 0.2rem 0 0.6rem; }
.label-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 0.55rem;
  align-items: start;
}
.label-card {
  background: rgba(8, 16, 32, 0.4);
  border: 1px solid rgba(168, 203, 232, 0.28);
  padding: 0.4rem 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.label-art {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  background: var(--navy-deep);
  display: block;
  flex: 0 0 auto;
}
/* Opening More info must not enlarge the label or stretch the card. */
.label-card.is-open { grid-column: auto; width: 100%; max-width: 100%; }
.label-card.is-open .label-art { width: 100%; max-width: 100%; }
.card-face {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  min-height: 0;
}
.face-producer, .face-meta, .face-notes {
  margin: 0;
  font-size: max(12px, 0.75rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
  /* System stack only: preloaded webfonts were shifting these lines (~0.001 CLS). */
  font-family: var(--serif);
}
.face-producer {
  font-weight: 700;
  color: var(--cream);
  min-height: calc(max(12px, 0.75rem) * 1.3);
}
.face-meta {
  color: var(--muted);
  min-height: calc(max(12px, 0.75rem) * 1.3);
}
.face-notes {
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  min-height: calc(max(12px, 0.75rem) * 1.3 * 2);
}
.label-buy { display: grid; gap: 0.25rem; }
.size-toggle,
.qty-add {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  align-items: stretch;
}
.size-btn {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(20, 38, 74, 0.35);
  min-height: 36px;
  padding: 0.25rem 0.15rem;
  cursor: pointer;
}
.size-btn[aria-pressed="true"] {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}
.qty-add .add-btn {
  width: 100%;
  min-height: 40px;
  padding: 0.3rem 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  box-sizing: border-box;
  white-space: nowrap;
}
.qty-add select { width: 100%; min-height: 40px; box-sizing: border-box; }
.add-status { margin: 0; font-size: 0.75rem; color: var(--muted); min-height: 0; }
.more-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  min-height: 36px;
  padding: 0.2rem 0;
  justify-self: start;
  text-decoration: none;
}
.more-btn:hover { border-bottom-color: var(--muted); color: var(--cream); }
.more-btn[aria-expanded="true"] { color: var(--cream); }
.more-panel {
  border-top: 1px solid var(--rule);
  padding-top: 0.5rem;
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
}
.more-panel[hidden] { display: none !important; }
.more-title { font-size: 1.05rem; margin: 0; }
.more-place, .more-notes, .more-story, .more-link { margin: 0; font-size: 0.92rem; }
.more-notes { font-family: var(--serif); font-style: italic; }
.pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; }
.pill {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--drop);
  padding: 0.15rem 0.4rem;
}
.facts { margin: 0.2rem 0 0; display: grid; gap: 0.25rem; }
.facts > div { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 0.35rem; font-size: 0.85rem; min-width: 0; }
.facts dt { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.facts dd { margin: 0; }
.sold-badge {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream-soft);
  justify-self: start;
  padding: 0.15rem 0.4rem;
}
.previous-section { margin-top: 1.4rem; padding-top: 0.4rem; }
.previous-lede { margin-bottom: 0.7rem; }
.label-card.is-filtered-out { display: none; }

@media (min-width: 700px) {
  .label-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .offer-tools { grid-template-columns: 1fr; }
  .filter-selects { max-width: 36rem; }
}

@media (min-width: 1100px) {
  .label-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .rain { display: none; }
  .past-track { scroll-snap-type: none; scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .roast-anim .drop, .roast-anim .bean, .roast-anim .steam-wisp, .roast-anim .chamber-beans { animation: none !important; }
}

@media (max-width: 360px) {
  .tablist a { font-size: 0.62rem; letter-spacing: 0.06em; padding: 0.5rem 0.2rem; }
  .filter-selects { gap: 0.25rem; }
  .filter-selects label { font-size: 0.6rem; letter-spacing: 0.06em; }
  .filter-selects select { font-size: 0.7rem; min-height: 36px; }
  .cart-table th:nth-child(4), .cart-table td:nth-child(4) { /* keep prices visible */ }
}

@media (max-width: 699px) {
  .cart-table thead, .confirm-summary table thead { position: absolute; left: -9999px; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td,
  .confirm-summary table, .confirm-summary tbody, .confirm-summary tr, .confirm-summary td { display: block; width: 100%; }
  .cart-table tr, .confirm-summary table tr { border-bottom: 1px solid var(--rule); padding: 0.75rem 0 0.9rem; }
  .cart-table td, .confirm-summary table td { border: 0; padding: 0.15rem 0; }
  .cart-table td:first-child, .confirm-summary table td:first-child { font-family: var(--serif); padding-bottom: 0.35rem; }
  .cart-table select { max-width: 5.5rem; }
  .confirm-summary table td:nth-child(2)::before { content: "Size "; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 0.35rem; }
  .confirm-summary table td:nth-child(3)::before { content: "Qty "; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 0.35rem; }
}


/* v5.3: previous carousel, info sheet, confirmation roast */
.past-carousel { margin: 0.6rem 0 1.5rem; }
.past-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.past-track {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0 0.8rem;
}
.past-slide {
  flex: 0 0 min(16.5rem, 82%);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.past-art {
  filter: grayscale(1) contrast(0.95);
  opacity: 0.72;
}
.is-past .sold-badge { margin-bottom: 0.2rem; }

.info-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.info-sheet[hidden] { display: none !important; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 22, 0.72);
}
.sheet-panel {
  position: relative;
  z-index: 1;
  background: var(--cream);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.sheet-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
  border: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.sheet-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 3.4rem 1.15rem 1.2rem;
}
.sheet-art {
  width: min(8.5rem, 42%);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.85rem;
}
.sheet-body { display: grid; gap: 0.85rem; }
.sheet-body h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.sheet-kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.3rem;
}
.sheet-section { margin: 0; }
.sheet-section p { margin: 0; }
.sheet-dl { margin: 0; display: grid; gap: 0.3rem; }
.sheet-dl div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.4rem; }
.sheet-dl dt {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.sheet-dl dd { margin: 0; overflow-wrap: anywhere; }
.sheet-buy {
  flex: 0 0 auto;
  border-top: 1px solid var(--rule);
  padding: 0.7rem 1.15rem 1rem;
  background: var(--cream);
}
.sheet-buy .label-buy { margin: 0; }
.sheet-buy .add-status { min-height: 1.1em; }
body.sheet-open { overflow: hidden; }

@media (min-width: 800px) {
  .info-sheet { align-items: center; padding: 2rem; }
  .sheet-panel {
    width: min(40rem, 100%);
    height: auto;
    max-height: min(92vh, 54rem);
    border: 1px solid rgba(168, 203, 232, 0.35);
  }
  .sheet-art { width: 7.5rem; }
}

.roast-anim { display: flex; justify-content: center; margin: 0.4rem 0 0.2rem; }
.roast-status {
  font-family: var(--serif);
  font-size: 1.15rem;
  text-align: center;
  margin: 0 0 0.9rem;
}
.next-steps { max-width: 36rem; margin: 0 0 1.4rem; padding-left: 1.2rem; }
.next-steps li { margin: 0 0 0.4rem; }
.drop.d1 { animation: drop-fall 2.4s ease-in infinite; }
.drop.d2 { animation: drop-fall 2.8s ease-in infinite 0.4s; }
.chamber-beans .bean { animation: bean-circulate 2.4s ease-in-out infinite; }
.chamber-beans .b2 { animation-duration: 2.8s; animation-delay: -0.4s; }
.chamber-beans .b3 { animation-duration: 2.2s; animation-delay: -0.9s; }
.chamber-beans .b4 { animation-duration: 2.6s; animation-delay: -1.2s; }
.chamber-beans .b5 { animation-duration: 2.1s; animation-delay: -0.2s; }
.chamber-beans .b6 { animation-duration: 2.7s; animation-delay: -1.6s; }
.chamber-beans .b7 { animation-duration: 2.3s; animation-delay: -0.7s; }
.steam-wisp.s1 { animation: steam-rise 2.8s ease-out infinite; }
.steam-wisp.s2 { animation: steam-rise 3.2s ease-out infinite 0.4s; }
.steam-wisp.s3 { animation: steam-rise 2.6s ease-out infinite 0.9s; }
@keyframes drop-fall {
  0% { transform: translateY(-8px); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(58px); opacity: 0; }
}
@keyframes bean-circulate {
  0%, 100% { transform: translate(0px, 8px); }
  25% { transform: translate(3px, -10px); }
  50% { transform: translate(-2px, -18px); }
  75% { transform: translate(-4px, -4px); }
}
@keyframes steam-rise {
  0% { transform: translateY(8px); opacity: 0; }
  25% { opacity: 0.9; }
  100% { transform: translateY(-18px); opacity: 0; }
}

.face-producer, .face-meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.face-notes {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ---------- v5.7: welcome screen (bean-rain intro + door reveal) ---------- */
.welcome {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  background: var(--navy-deep);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.welcome-door {
  position: relative;
  display: grid;
  place-items: center;
  min-height: inherit;
  width: 100%;
}
.welcome-texture { position: absolute; inset: 0; z-index: 0; }
.welcome-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(20, 38, 74, 0.6) 0%, rgba(20, 38, 74, 0.72) 50%, rgba(20, 38, 74, 0.92) 100%),
    url("/media/welcome-beans-blur.webp");
  background-image: linear-gradient(180deg, rgba(20, 38, 74, 0.6) 0%, rgba(20, 38, 74, 0.72) 50%, rgba(20, 38, 74, 0.92) 100%),
    image-set(url("/media/welcome-beans-blur.avif") type("image/avif"), url("/media/welcome-beans-blur.webp") type("image/webp"));
  background-size: cover;
  background-position: center;
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  /* Desktop: never upscale the 425x568 crop into a sharp image. A heavily blurred fill
     extends it to the sides; the soft photo sits as a centered portrait column. */
  .welcome-texture::before {
    background-image: linear-gradient(rgba(20, 38, 74, 0.86), rgba(20, 38, 74, 0.9)),
      image-set(url("/media/welcome-beans-blur.avif") type("image/avif"), url("/media/welcome-beans-blur.webp") type("image/webp"));
    filter: blur(22px);
    transform: scale(1.12);
  }
  .welcome-texture::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: min(75vh, 42rem);
    transform: translateX(-50%);
    background-image: linear-gradient(180deg, rgba(20, 38, 74, 0.56), rgba(20, 38, 74, 0.8)),
      image-set(url("/media/welcome-beans-blur.avif") type("image/avif"), url("/media/welcome-beans-blur.webp") type("image/webp"));
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  }
}
.welcome-copy {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2.5rem), 34rem);
  text-align: center;
  padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom));
}
.welcome-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}
.welcome-mark .brand-name { font-size: 1.45rem; letter-spacing: 0.05em; }
.welcome h1 {
  font-size: clamp(1.4rem, 5.4vw, 2.05rem);
  line-height: 1.32;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}
.welcome-sub { margin: 0 0 1.9rem; font-size: 1.02rem; color: var(--muted); }
.welcome-cta { min-height: 48px; padding-inline: 1.4rem; }
.welcome-skip .welcome { display: none; }
/* Falling rain lines only once inside the site (never on the welcome, never without JS). */
.rain { display: none; }
.js.welcome-skip .rain { display: block; }

/* Bean rain: plays once (~2.8s) on a first visit only; decorative (aria-hidden). */
.intro { display: none; }
.intro-on .intro {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--navy-deep);
  animation: intro-veil 1.25s ease-in-out 1.35s both;
  overflow: hidden;
}
.intro-defs { position: absolute; width: 0; height: 0; }
.intro .ib {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 1.4);
  opacity: 0;
  transform: translate3d(0, -12vh, 0) rotate(var(--r));
  animation: bean-fall 1.6s cubic-bezier(0.45, 0, 0.7, 1) var(--d) both;
}
.intro .ib svg { display: block; width: 100%; height: 100%; }
@keyframes bean-fall {
  0% { opacity: 0; transform: translate3d(0, -12vh, 0) rotate(var(--r)); }
  15% { opacity: 0.9; }
  80% { opacity: 0.85; }
  100% { opacity: 0; transform: translate3d(0, 104vh, 0) rotate(calc(var(--r) + 50deg)); }
}
@keyframes intro-veil {
  from { background-color: rgba(20, 38, 74, 1); }
  to { background-color: rgba(20, 38, 74, 0); }
}
.intro-on .welcome-copy { animation: copy-settle 0.9s ease-out 1.75s both; }
@keyframes copy-settle {
  from { transform: translate3d(0, 10px, 0); }
  to { transform: none; }
}
.intro-done .intro { display: none !important; }
.intro-done .welcome-copy { animation: none; }

/* Door reveal after "See this week's coffees" */
.welcome-opening .welcome {
  position: fixed;
  inset: 0;
  z-index: 60;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  background: transparent;
}
.welcome-opening .welcome-door {
  background: var(--navy-deep);
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0, 50% 100%, 50% 100%, 50% 0, 0 0);
  transition: clip-path 0.95s cubic-bezier(0.65, 0, 0.35, 1);
}
.welcome-opening .welcome-copy { transition: opacity 0.35s ease; }
.welcome-open .welcome-door {
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 0 0, 0 100%, 100% 100%, 100% 0, 0 0);
}
.welcome-open .welcome-copy { opacity: 0; }
.welcome-opening main { animation: home-in 0.95s ease-out both; }
@keyframes home-in { from { transform: scale(0.985); opacity: 0.6; } to { transform: none; opacity: 1; } }

/* ---------- v5.7: header, 3 tabs ---------- */
.tab-nav { padding: 0 0 0.15rem; }
.tablist { display: flex; justify-content: flex-start; gap: 0.2rem; padding: 0 1rem; max-width: var(--wide); margin: 0 auto; }
.tablist a { flex: 1 1 0; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }
@media (min-width: 700px) { .tablist a { flex: 0 0 auto; min-width: 7rem; } }
.tablist .cart-count { min-width: 1.3rem; height: 1.3rem; font-size: 0.7rem; background: var(--cream); color: var(--navy); }
.tablist .cart-count[hidden] { display: none; }

/* ---------- v5.7: coffee cards, one Add ---------- */
.card-buy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}
.card-price { margin: 0; font-family: var(--serif); font-size: 0.95rem; color: var(--cream); white-space: nowrap; }
.card-buy .add-btn {
  width: auto;
  min-width: 4.4rem;
  min-height: 44px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.label-card .add-status { min-height: 1.1em; }
.offer-tools[hidden], .filter-status[hidden] { display: none; }

/* Past coffees row */
.past-coffees { margin: 2rem 0 0.5rem; border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.past-coffees > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.4rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.past-coffees > summary::-webkit-details-marker { display: none; }
.past-coffees > summary::after { content: "+"; margin-left: auto; font-family: var(--sans); color: var(--muted); font-size: 1.3rem; line-height: 1; }
.past-coffees[open] > summary::after { content: "–"; }
.past-sub { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.past-lede { margin-top: 0.2rem; }

/* Sheet: two clear Add choices */
.sheet-adds { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.sheet-adds .btn { min-height: 44px; width: 100%; padding: 0.4rem 0.4rem; font-size: 0.78rem; }

/* ---------- v5.7: sticky review bar ---------- */
.review-bar {
  position: fixed;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  width: min(calc(100% - 1.5rem), 30rem);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: var(--cream);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.review-bar:hover { background: var(--navy); color: var(--cream); }
.review-bar[hidden] { display: none; }
body.has-review-bar { padding-bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
body.sheet-open .review-bar { display: none; }

/* ---------- v5.7: one-page order ---------- */
.order-wrap { max-width: 44rem; }
.cart-lines { list-style: none; margin: 0.6rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.cart-line { display: grid; gap: 0.5rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.line-name { margin: 0; font-family: var(--serif); font-size: 1rem; }
.line-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.line-controls label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.line-controls select { width: auto; min-height: 44px; font-size: 0.9rem; text-transform: none; letter-spacing: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(20, 38, 74, 0.35); }
.stepper button {
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--cream);
  font-size: 1.2rem; cursor: pointer; font-family: var(--sans);
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper button:hover:not(:disabled) { background: rgba(20, 38, 74, 0.1); }
.stepper output { min-width: 2rem; text-align: center; font-weight: 700; }
.line-price { margin: 0 0 0 auto; font-family: var(--serif); }
.cart-lines .remove-btn { min-height: 44px; }
.cart-total { margin: 0.8rem 0 0.4rem; text-align: right; }
.order-facts { list-style: none; padding: 0.9rem 1rem; margin: 1.2rem 0 1.4rem; display: grid; gap: 0.35rem; background: rgba(168, 203, 232, 0.08); border-left: 3px solid var(--drop); font-size: 0.95rem; }
.order-facts li::before { content: "·"; color: var(--muted); margin-right: 0.5rem; font-weight: 700; }
#checkout-title { margin-top: 0.4rem; }
.site-footer p { margin: 0.3rem 0; }

@media (prefers-reduced-motion: reduce) {
  .intro-on .intro { display: none; }
  .welcome-opening main { animation: none; }
}

/* ---------- v5.7.1: size picker on each card ---------- */
.card-buy { grid-template-columns: 1fr; gap: 0.35rem; }
.card-buy .add-btn { width: 100%; }
.size-pick { position: relative; display: block; }
.size-pick select {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.35rem 2rem 0.35rem 0.6rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(20, 38, 74, 0.45);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.size-pick select option { color: var(--navy); background: var(--cream); }
.size-pick::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--drop);
  border-bottom: 2px solid var(--drop);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.size-pick select:hover { border-color: var(--muted); }
.card-price { min-height: 44px; display: flex; align-items: center; padding: 0 0.6rem; border: 1px solid transparent; }
.sheet-adds-one { grid-template-columns: 1fr; }
@media (min-width: 1100px) {
  .card-buy { grid-template-columns: 1fr auto; align-items: center; }
  .card-buy .add-btn { width: auto; }
}

/* ---------- v5.8: Home menu board ---------- */
.menu-board { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0; max-width: 46rem; }
.menu-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}
.menu-item:last-child { border-bottom: 1px solid var(--rule); }
.menu-art { width: 3.5rem; height: auto; aspect-ratio: 4 / 5; border-radius: 2px; opacity: 0.92; }
.menu-origin { margin: 0 0 0.6rem; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.25; color: var(--cream); }
.menu-facts { margin: 0; display: grid; gap: 0.3rem; }
.menu-facts > div { display: grid; grid-template-columns: 6.6rem 1fr; gap: 0.75rem; align-items: baseline; }
.menu-facts dt { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.menu-facts dd { margin: 0; font-size: 0.98rem; line-height: 1.45; color: var(--cream); overflow-wrap: anywhere; }
.menu-facts .menu-notes dd { font-family: var(--serif); font-style: italic; }
.menu-price { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.9rem 0 0.8rem; font-family: var(--serif); font-size: 1.1rem; color: var(--cream); }
.menu-leader { flex: 1; border-bottom: 1px dotted rgba(20, 38, 74, 0.45); transform: translateY(-0.25rem); }
.menu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.menu-actions .add-btn { min-height: 44px; padding: 0.55rem 1.3rem; }
.menu-actions .more-btn { margin: 0; min-height: 44px; }
.menu-item .add-status { margin: 0.4rem 0 0; min-height: 1.2em; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 380px) {
  .menu-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .menu-art { width: 2.75rem; }
  .menu-facts > div { grid-template-columns: 5.6rem 1fr; gap: 0.5rem; }
}
@media (min-width: 900px) {
  .menu-board { max-width: none; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
  .menu-item:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--rule); }
  .menu-item { grid-template-columns: 4.5rem 1fr; gap: 1.25rem; }
  .menu-art { width: 4.5rem; }
  .menu-origin { font-size: 1.4rem; }
}

/* ---------- v5.8: Order tab "Choose your coffees" ---------- */
.order-pick { margin: 1rem 0 2rem; }
.order-pick h2, .cart-heading { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: 0 0 0.75rem; color: var(--cream); }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-row { padding: 1rem 0; border-top: 1px solid var(--rule); }
.pick-row:last-child { border-bottom: 1px solid var(--rule); }
.pick-name h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; color: var(--cream); }
.pick-name p { margin: 0.15rem 0 0.6rem; font-size: 0.88rem; color: var(--muted); }
.pick-controls { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: end; }
.pick-size, .pick-qty { display: grid; gap: 0.25rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pick-size select {
  min-height: 44px; width: 100%; padding: 0.35rem 2rem 0.35rem 0.6rem; font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0; text-transform: none;
  color: var(--cream); background: transparent; border: 1px solid rgba(20, 38, 74, 0.45); border-radius: 0; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--rain) 50%), linear-gradient(135deg, var(--rain) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 52%, calc(100% - 0.7rem) 52%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
.pick-size select option { color: var(--navy); background: var(--cream); }
.pick-add { grid-column: 1 / -1; min-height: 44px; }
.pick-row .pick-status { margin: 0.35rem 0 0; min-height: 1.2em; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 900px) {
  .pick-row { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
  .pick-controls { grid-template-columns: 9rem auto auto; }
  .pick-add { grid-column: auto; }
  .pick-row .pick-status { grid-column: 1 / -1; margin: 0; }
}
.menu-actions .add-btn { width: auto; }
.cart-heading { scroll-margin-top: 7rem; }

/* v5.8.1: coffee list below the order when the cart has bags */
.order-pick-more { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }

/* ---------- v5.9: header Cart (n) button, top right ---------- */
.cart-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0.35rem 0.8rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
  border: 1px solid rgba(20, 38, 74, 0.45); border-radius: 999px;
}
.cart-btn:hover { border-color: var(--muted); color: var(--muted); }
.cart-btn:focus-visible { outline: 2px solid var(--drop); outline-offset: 2px; }
.cart-btn[aria-current="page"] { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.cart-btn svg { flex: none; }
.cart-btn-count {
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 0.75rem; letter-spacing: 0;
  background: var(--cream); color: var(--navy);
}
.cart-btn[aria-current="page"] .cart-btn-count { background: var(--navy); color: var(--cream); }
#cart .cart-empty { padding: 1.5rem 0 0.5rem; }
#cart .cart-empty p { margin: 0 0 1rem; font-size: 1.05rem; }

/* v5.9.1: desktop tabs right-aligned so the header Cart button sits directly above Order; phones unchanged */
@media (min-width: 700px) {
  .tablist { justify-content: flex-end; }
}

/* v5.9.2: menu rows without bag art; listed name when the form gives a name but not a farm/producer role */
.menu-item-plain { grid-template-columns: 1fr; }
.menu-listed { margin: -0.35rem 0 0.6rem; font-family: var(--serif); font-size: 1.02rem; color: var(--cream); }


/* ===== v5.10: type matches Jason's logo (docs/FONT-NOTE.md) =====
   Logo = Libre Baskerville Regular (+ Italic for "coffee"), tracked ~+0.05em, cream on dark, pale-blue drops above.
   One family site-wide; no bold in the wordmark; "coffee" is never hidden. */
body { font-size: 1rem; line-height: 1.72; }
.brand { flex-direction: column; align-items: center; gap: 0.2rem; }
.brand .drops { display: block; line-height: 0; }
.brand .drops svg { width: 30px; height: 20px; display: block; }
.brand-name { font-size: 1rem; letter-spacing: 0.052em; font-weight: 400; line-height: 1.1; }
.brand-rest { font-style: italic; }
.welcome-mark .brand-name { font-size: 1.5rem; letter-spacing: 0.052em; }
h1, h2, h3 { font-weight: 400; letter-spacing: 0.005em; }
input, select, textarea, button { font-family: var(--serif); }
@media (max-width: 360px) {
  .brand-name { font-size: 0.86rem; letter-spacing: 0.04em; }
  .brand .drops svg { width: 26px; height: 17px; }
}

/* v5.10.3: price note under the menu; footer order info (hidden on the cart/confirmation panels, which already say it) */
.price-note { margin: 1rem 0 0.4rem; max-width: 42rem; font-size: 0.92rem; color: var(--muted); }
.footer-order { max-width: 42rem; }
main:has(#cart:not([hidden])) ~ .site-footer .footer-order, main:has(#confirmation:not([hidden])) ~ .site-footer .footer-order { display: none; }

/* ===== v5.10.4: official logo typography (Jason, Dec 1 ~7:57 PM PT) ===== */
html, body { background: var(--cream); color: var(--navy); color-scheme: light; }
body { font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.55; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: 0.02em; color: var(--navy); }
input, select, textarea, button { font-family: var(--sans); }
a { color: var(--navy); text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.welcome { background: var(--cream); color: var(--navy); }
.welcome-door { background: transparent; color: var(--navy); }
.welcome-lockup { margin: 0 0 1.6rem; }
.welcome-lockup .logo-lockup {
  display: block; width: min(100%, 20rem); height: auto; margin: 0 auto;
}
.welcome h1 { font-family: var(--display); font-weight: 800; color: var(--navy); }
.welcome-sub { color: var(--muted); font-family: var(--sans); }

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: none;
}
.site-header .brand {
  display: flex; align-items: center; justify-content: flex-start;
  text-decoration: none; min-width: 0;
}
.logo-lockup-header {
  display: block; width: auto; height: 52px; margin: 0.35rem 0;
}
@media (max-width: 360px) {
  .logo-lockup-header { height: 44px; }
}

#coffees-title { font-family: var(--display); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px; color: var(--navy); }
.lede { font-family: var(--sans); font-style: italic; color: var(--muted); font-size: 13px; }

.menu-board { list-style: none; margin: 0; padding: 0; }
.menu-item { border-top: 1px solid var(--rule); }
.menu-item:last-child { border-bottom: 1px solid var(--rule); }
.menu-topline {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
}
.menu-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.menu-origin, .menu-listed {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0;
}
.menu-pv {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin: 0.15rem 0 0;
}
.menu-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.5;
  margin: 0;
  display: block;
}
.menu-price .price-size, .menu-price > span:first-child { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--muted); display: block; }
.menu-leader { display: none; }
.btn { font-family: var(--sans); font-weight: 700; }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--muted); color: var(--cream); }
.site-footer { color: var(--muted); }
.sheet-kicker { color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; font-family: var(--sans); font-weight: 400; }

/* v5.10.4 contrast pass: cream is the page ground. Cream type only sits on navy controls. */
body, .panel, .menu-origin, .menu-listed, .menu-price, .menu-facts dd, .menu-facts dt,
.pick-name h3, .order-pick h2, .cart-heading, .card-price, .more-btn, .more-btn:hover,
.more-btn[aria-expanded="true"], .btn-ghost, .cart-btn, .remove-btn, .remove-btn:hover,
.stepper button, .line-controls button {
  color: var(--navy);
}
a:hover { color: var(--muted); }
.btn-primary, .btn-primary:hover,
.review-bar, .review-bar:hover,
.cart-link:hover,
.cart-btn[aria-current="page"] .cart-btn-count {
  color: var(--cream);
}
.btn-ghost { border-color: var(--navy); }
.cart-btn { color: var(--navy); border-color: var(--navy); }
.cart-btn[aria-current="page"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.cart-btn[aria-current="page"] .cart-btn-count { background: var(--cream); color: var(--navy); }

/* Past-coffee card text sits over label art; put it on cream so it meets AA. */
.card-face {
  background: var(--cream);
  color: var(--navy);
  padding: 0.35rem 0.15rem 0.2rem;
}
.face-producer, .face-notes { color: var(--navy); }
.face-meta { color: var(--muted); }
.size-btn { color: var(--navy); border-color: var(--rule); }
.size-btn[aria-pressed="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* v5.10.5: cream card over the bean photo so the official navy-on-cream lockup and tagline meet AA.
   The photo stays as a frame; text no longer sits on the navy wash. */
.welcome-copy {
  background: var(--cream);
  color: var(--navy);
  padding: 2.1rem 1.35rem calc(2.2rem + env(safe-area-inset-bottom));
  width: min(calc(100% - 2.5rem), 22.5rem);
  box-sizing: border-box;
}
.skip:focus, .skip:focus-visible {
  background: var(--cream);
  color: var(--navy);
}

/* ===== v5.10.6: invert the palette (Jonathan, Dec 1, 2026, 9:43 PM PT) =====
   "Can you just invert it? The darker blue looks nicer."
   Page, header, cards, and sheets are Ink Navy #14264a. Type is cream #f3e9d2.
   Lockup is the cream-on-navy variant. Welcome text sits on a navy card over the
   bean photo — never navy type on the photo.
   --muted was #3a4a66 (7.40:1 on cream, but only 1.67:1 on navy). It is now
   #c9b89a, a dimmer cream in the same family (7.69:1 on navy, AAA). Flagged.
   Official #3e7fbf is still logo-only (3.55:1 on navy: fail AA normal, pass AA large). */
html, body { background: var(--navy); color: var(--cream); color-scheme: dark; }
body, .panel, .menu-origin, .menu-listed, .menu-price, .menu-facts dd, .menu-facts dt,
.pick-name h3, .order-pick h2, .cart-heading, .card-price, .more-btn, .more-btn:hover,
.more-btn[aria-expanded="true"], .btn-ghost, .cart-btn, .remove-btn, .remove-btn:hover,
.stepper button, .line-controls button, h1, h2, h3,
.menu-num, .menu-origin, .menu-listed, .welcome h1, #coffees-title {
  color: var(--cream);
}
a { color: var(--cream); }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.tablist a:focus-visible, .more-btn:focus-visible, .size-btn:focus-visible,
.cart-link:focus-visible, .filter-selects select:focus-visible, .add-btn:focus-visible,
.cart-btn:focus-visible, .sheet-close:focus-visible, .btn:focus-visible, .skip:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}


.welcome { background: var(--navy); color: var(--cream); }
.welcome-door { background: transparent; color: var(--cream); }
/* Navy card over the bean photo so cream type and the cream-on-navy lockup meet AA. */
.welcome-copy {
  background: var(--navy);
  color: var(--cream);
  padding: 2.1rem 1.35rem calc(2.2rem + env(safe-area-inset-bottom));
  width: min(calc(100% - 2.5rem), 22.5rem);
  box-sizing: border-box;
}
.welcome h1 { color: var(--cream); }
.welcome-sub { color: var(--muted); }

.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: none;
}
.lede, .menu-pv, .price-note, .site-footer, .sheet-kicker, .face-meta,
.menu-facts dt, .menu-price .price-size, .menu-price > span:first-child {
  color: var(--muted);
}

/* Inverted CTA: cream fill, navy type (12.37:1). Hover uses the muted cream (7.69:1). */
.btn-primary, .btn-primary:hover {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}
.btn-primary:hover { background: var(--muted); border-color: var(--muted); color: var(--navy); }
.btn-ghost { color: var(--cream); border-color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--navy); }

.review-bar { background: var(--cream); color: var(--navy); }
.review-bar:hover { background: var(--muted); color: var(--navy); }

.cart-btn { color: var(--cream); border-color: var(--cream); }
.cart-btn:hover { border-color: var(--muted); color: var(--muted); }
.cart-btn[aria-current="page"] { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.cart-btn[aria-current="page"] .cart-btn-count { background: var(--navy); color: var(--cream); }
.cart-btn-count { background: var(--cream); color: var(--navy); }
.cart-link { color: var(--navy); background: var(--cream); }
.cart-link:hover { background: var(--muted); color: var(--navy); }
.cart-count { background: var(--cream); color: var(--navy); }

.tablist a { color: var(--muted); }
.tablist a[aria-selected="true"],
.tablist a[aria-current="page"],
.tablist a:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
  box-shadow: inset 0 -2px 0 var(--cream);
}

/* Sheets and panels are navy, cream type. */
.sheet-panel, .sheet-buy, .panel, .card, .order-facts {
  background: var(--navy);
  color: var(--cream);
}
.sheet-close { background: var(--navy); color: var(--cream); }
.sheet-close:hover { color: var(--muted); }
.sheet-dl dd, .sheet-body, .sheet-body h2 { color: var(--cream); }
.sheet-dl dt, .sheet-kicker { color: var(--muted); }

/* Past-coffee text sits over label art; keep it on a navy panel so cream type meets AA. */
.card-face {
  background: var(--navy);
  color: var(--cream);
}
.face-producer, .face-notes { color: var(--cream); }
.face-meta { color: var(--muted); }

.size-btn { color: var(--cream); border-color: var(--rule); }
.size-btn[aria-pressed="true"] { background: var(--cream); color: var(--navy); border-color: var(--cream); }

select, input[type="text"], input[type="email"], input[type="tel"], textarea,
.size-pick select, .pick-size select, .line-controls select {
  color: var(--cream);
  background: var(--navy);
  border: 1px solid var(--muted);
  accent-color: var(--cream);
}
.size-pick select option, .pick-size select option,
select option { color: var(--navy); background: var(--cream); }
.stepper { border-color: var(--muted); }
.stepper button { color: var(--cream); }
.stepper button:hover:not(:disabled) { background: rgba(243, 233, 210, 0.1); }

.more-btn { color: var(--cream); border-bottom-color: var(--cream); }
.more-btn:hover, .more-btn[aria-expanded="true"] { color: var(--muted); border-bottom-color: var(--muted); }

/* Skip link: cream chip, navy type — stands out on the navy page, 12.37:1. */
.skip, .skip:focus, .skip:focus-visible {
  background: var(--cream);
  color: var(--navy);
}

.menu-leader { border-bottom-color: rgba(243, 233, 210, 0.45); }
.choice { color: var(--cream); }
.remove-btn { color: var(--muted); }
.remove-btn:hover { color: var(--cream); }
