/* Bearded Lady Coffee Roasters: zine counter.
   Palette: Chungking Express (Sky Magenta, Light Teal, Guardsman Red, Phthalo Green).
   Print texture: halftone dots, photocopied photos, hard offset shadows, taped scraps. */

:root {
  --green: #123524;
  --teal: #90e4c1;
  --magenta: #d56cc0;
  --red: #ba0101;
  --ink: #0a1d13;
  --paper: #eefaf3;
  --white: #fbfffd;
  --line: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --display: "Dela Gothic One", "Arial Black", "Hiragino Sans", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --dots: radial-gradient(circle at center, rgba(10, 29, 19, 0.55) 0 1.1px, transparent 1.7px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: left;
  display: block;
  height: auto;
  width: auto;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
#main:focus { outline: none; }

:focus-visible { outline: 4px solid var(--magenta); outline-offset: 3px; box-shadow: 0 0 0 7px var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--magenta); color: var(--ink); padding: 12px 18px; font-weight: 900; border: var(--line) solid var(--ink); }
.skip-link:focus { top: 8px; }

/* ---------- type helpers ---------- */
.h-xl { font-size: clamp(2.6rem, 9.4vw, 8.2rem); line-height: 0.92; }
.h-lg { font-size: clamp(2rem, 5.6vw, 4.4rem); }
.h-md { font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; font-weight: 500; }
.jp { font-family: var(--body); font-weight: 900; }
.vertical { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0.12em; }
.small { font-size: 0.9rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  font: 900 1rem/1.1 var(--body); text-decoration: none; text-align: center; cursor: pointer;
  color: var(--ink); background: var(--teal);
  border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-red { background: var(--red); color: var(--white); }
.btn-magenta { background: var(--magenta); }
.btn-ink { background: var(--ink); color: var(--teal); border-color: var(--ink); box-shadow: 4px 4px 0 var(--magenta); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--teal); box-shadow: none; transform: none; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green); color: var(--teal); border-bottom: var(--line) solid var(--ink); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--magenta); color: var(--ink); font: 400 1.15rem var(--display); border: var(--line) solid var(--ink); transform: rotate(-4deg); }
.brand-text { font: 400 1.15rem/1 var(--display); color: var(--teal); }
.brand-text small { display: block; font: 700 0.72rem/1.2 var(--body); letter-spacing: 0.04em; color: var(--magenta); margin-top: 3px; }
.site-nav ul { list-style: none; display: flex; gap: 6px; }
.site-nav a { display: block; padding: 10px 14px; color: var(--teal); font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--white); border-color: var(--magenta); }
.site-nav a[aria-current="page"] { border-color: var(--teal); color: var(--white); }
.bag-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--teal); color: var(--ink); font-weight: 900; text-decoration: none; border: var(--line) solid var(--ink); box-shadow: 3px 3px 0 var(--magenta); }
.bag-link:hover { background: var(--white); }
.bag-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; background: var(--red); color: var(--white); border-radius: 99px; font-size: 0.85rem; }
.bag-link.bump .bag-count { animation: bump 0.4s; }
.nav-toggle { display: none; width: 48px; height: 48px; background: transparent; border: var(--line) solid var(--teal); color: var(--teal); cursor: pointer; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 3px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }

@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--green); border-bottom: var(--line) solid var(--ink); display: none; padding: 8px var(--gutter) 20px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 0; font-size: 1.2rem; border-bottom: 2px solid rgba(144, 228, 193, 0.25); }
  .brand-text small { display: none; }
}
@media (max-width: 420px) { .brand-text { font-size: 0.95rem; } .bag-link { padding: 0 10px; } }

/* ---------- print textures ---------- */
.ht { position: relative; isolation: isolate; background: var(--tone, var(--teal)); overflow: hidden; border: var(--line) solid var(--ink); }
.ht img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.45) brightness(1.08); mix-blend-mode: multiply; }
.ht::after { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 4px 4px; mix-blend-mode: multiply; opacity: 0.55; pointer-events: none; }
.ht-red { --tone: var(--red); }
.ht-magenta { --tone: var(--magenta); }
.ht-teal { --tone: var(--teal); }
.ht-green { --tone: #5fa585; }
.ht-color img { filter: none; mix-blend-mode: normal; }
.ht-color::after { opacity: 0.18; }

.caption { font: 700 0.8rem/1.3 var(--body); letter-spacing: 0.02em; }
.tape { position: relative; }
.tape::before { content: ""; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; margin-left: -48px; transform: rotate(-3deg); background: rgba(213, 108, 192, 0.8); border: 1px solid rgba(10, 29, 19, 0.25); z-index: 3; }
.tape.tape-r::before { transform: rotate(4deg); background: rgba(144, 228, 193, 0.85); }

.sticker { display: grid; place-items: center; text-align: center; width: clamp(118px, 14vw, 170px); aspect-ratio: 1; padding: 22px; background: var(--magenta); color: var(--ink); font: 400 clamp(0.9rem, 1.4vw, 1.1rem)/1.05 var(--display); clip-path: polygon(50% 0, 61% 12%, 77% 7%, 80% 23%, 95% 28%, 88% 43%, 100% 56%, 86% 66%, 90% 83%, 74% 84%, 66% 99%, 52% 90%, 38% 100%, 31% 85%, 14% 87%, 16% 70%, 1% 60%, 12% 46%, 3% 30%, 20% 26%, 22% 9%, 38% 13%); transform: rotate(-10deg); }
.sticker-red { background: var(--red); color: var(--white); }
.sticker-teal { background: var(--teal); }

.scrawl { position: relative; z-index: 0; }

/* ---------- hero (poster) ---------- */
.hero { background: var(--red); color: var(--white); border-bottom: var(--line) solid var(--ink); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 6px 6px; opacity: 0.2; mix-blend-mode: multiply; pointer-events: none; }
.hero-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; max-width: none; padding: 12px 0; font: 700 0.78rem/1.2 var(--body); letter-spacing: 0.06em; color: var(--teal); border-bottom: 2px solid rgba(10, 29, 19, 0.45); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2.2fr) minmax(190px, 1fr); gap: clamp(14px, 2.4vw, 32px); padding: clamp(20px, 3vw, 40px) 0 clamp(28px, 4vw, 56px); align-items: stretch; }
.hero-side, .hero-tall, .hero-center { min-width: 0; }
.hero-side .ht, .hero-tall .ht { min-width: 0; }
.hero-side { display: grid; gap: 18px; align-content: start; }
.hero-side figure, .hero-tall figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.hero-side .ht { aspect-ratio: 4 / 3; }
.hero-side .caption, .hero-tall .caption { color: var(--ink); }
.hero-center { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 520px; }
.hero-title { font-size: clamp(2.5rem, 5.2vw, 5.2rem); line-height: 0.95; padding-right: clamp(0px, 3.4vw, 3.6rem); color: var(--teal); text-shadow: 4px 4px 0 var(--ink); margin: 0; position: relative; z-index: 2; }
.hero-title span { display: block; }
.hero-title .alt { color: var(--white); margin-top: 0.1em; }
.hero-jp { position: absolute; right: 0; top: 0; font-size: clamp(1.4rem, 2.8vw, 2.6rem); color: var(--ink); z-index: 1; opacity: 0.9; }
.hero-art { width: clamp(110px, 12vw, 160px); margin-left: auto; transform: rotate(5deg); }
.hero-lower { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: end; gap: 22px; }
.hero-lower p { color: var(--white); background: var(--ink); padding: 14px 16px; max-width: 34ch; margin: 0; border: var(--line) solid var(--ink); box-shadow: 5px 5px 0 var(--magenta); font-weight: 500; }
.hero-tall { position: relative; }
.hero-tall .ht { height: 100%; min-height: 380px; }
.hero-tall .sticker { position: absolute; z-index: 4; left: -18%; bottom: 8%; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-center { grid-column: 1 / -1; order: -1; min-height: 0; }
  .hero-jp { display: none; }
  .hero-title { padding-right: 0; }
  .hero-tall .sticker { left: auto; right: 6px; width: 110px; bottom: 4%; }
  .hero-tall .ht { min-height: 300px; }
  .hero-side { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-strip { font-size: 0.7rem; }
  .hero-grid { gap: 14px; }
  .hero-side .caption, .hero-tall .caption { display: none; }
  .hero-side figure, .hero-tall figure { grid-template-columns: 1fr; }
  .hero-tall .ht { min-height: 100%; }
}

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: var(--teal); border-bottom: var(--line) solid var(--ink); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 2.2rem; padding: 12px 0; animation: tick 40s linear infinite; font: 400 1.05rem var(--display); }
.ticker-track span:nth-child(even) { color: var(--magenta); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 100px) 0; }
.section-green { background: var(--green); color: var(--teal); }
.section-magenta { background: var(--magenta); }
.section-teal { background: var(--teal); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 28px; margin-bottom: clamp(24px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 360px)); gap: clamp(18px, 2.4vw, 30px); list-style: none; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: var(--line) solid var(--ink); box-shadow: var(--shadow); height: 100%; }
.product-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.product-card { transition: transform 0.12s, box-shadow 0.12s; }
.card-art { display: grid; place-items: center; padding: 22px 22px 8px; background: var(--card-bg, var(--teal)); border-bottom: var(--line) solid var(--ink); position: relative; }
.card-art::after { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 5px 5px; opacity: 0.18; pointer-events: none; }
.card-art svg { width: min(100%, 190px); position: relative; z-index: 1; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin: 0; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-body h3 a:focus-visible { outline-offset: -6px; }
.card-notes { margin: 0; font-size: 0.95rem; }
.card-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: 400 1.35rem var(--display); }
.card-actions { position: relative; z-index: 2; }
.card-actions .btn { min-height: 44px; padding: 0.5em 1em; font-size: 0.95rem; }
.badge { position: absolute; top: 12px; left: -3px; z-index: 2; background: var(--ink); color: var(--teal); font: 700 0.78rem/1 var(--body); padding: 7px 10px; letter-spacing: 0.04em; }
.accent-red { --card-bg: var(--red); }
.accent-magenta { --card-bg: var(--magenta); }
.accent-teal { --card-bg: var(--teal); }
.accent-green { --card-bg: #5fa585; }

/* bag art */
.bag { --bag: var(--red); --label: var(--teal); --lab-ink: var(--ink); --bag-ink: var(--white); filter: drop-shadow(5px 6px 0 rgba(10, 29, 19, 0.85)); }
.bag.red { --bag: var(--red); --label: var(--teal); --bag-ink: var(--white); }
.bag.magenta { --bag: var(--magenta); --label: var(--green); --lab-ink: var(--teal); --bag-ink: var(--ink); }
.bag.teal { --bag: var(--teal); --label: var(--red); --lab-ink: var(--white); --bag-ink: var(--ink); }
.bag.green { --bag: var(--green); --label: var(--magenta); --lab-ink: var(--ink); --bag-ink: var(--teal); }
.bag .b-body { fill: var(--bag); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.bag .b-label { fill: var(--label); stroke: var(--ink); stroke-width: 4; }
.bag .b-ink { fill: var(--lab-ink); font-family: var(--display); }
.bag .b-small { fill: var(--bag-ink); font-family: var(--body); font-weight: 900; }
.bag .b-fold { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.bag .b-dots { fill: var(--ink); opacity: 0.2; }

/* ---------- wholesale band ---------- */
.band { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.band h2 { color: var(--ink); }
.routes { list-style: none; display: grid; gap: 14px; }
.routes li { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 18px; background: var(--white); border: var(--line) solid var(--ink); box-shadow: var(--shadow); }
.routes li:nth-child(2) { transform: translateX(14px) rotate(0.6deg); }
.routes li:nth-child(1) { transform: rotate(-0.8deg); }
.routes li:nth-child(3) { transform: translateX(-6px) rotate(0.4deg); }
.routes .glyph { grid-row: span 2; font: 400 2rem/1 var(--display); color: var(--red); align-self: center; width: 2.4rem; text-align: center; }
.routes strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.routes span { font-size: 0.95rem; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .routes li:nth-child(n) { transform: none; } }

/* ---------- visit collage ---------- */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2vw, 24px); align-items: start; }
.collage figure { margin: 0; }
.collage .ht { aspect-ratio: 4 / 5; }
.collage .c1 { grid-column: 1 / span 5; }
.collage .c2 { grid-column: 6 / span 4; margin-top: 56px; transform: rotate(1.5deg); }
.collage .c3 { grid-column: 10 / span 3; transform: rotate(-2deg); }
.collage .c2 .ht, .collage .c3 .ht { aspect-ratio: 1; }
.collage figcaption { margin-top: 8px; }
.hours { list-style: none; border: var(--line) solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 2px solid var(--ink); font-weight: 700; }
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { font-family: var(--display); font-weight: 400; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.visit-info address { font: 400 clamp(1.4rem, 3vw, 2rem)/1.15 var(--display); margin: 0 0 20px; }
@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
  .collage .c1 { grid-column: 1 / span 7; }
  .collage .c2 { grid-column: 8 / span 5; margin-top: 30px; }
  .collage .c3 { grid-column: 3 / span 6; }
}
@media (max-width: 520px) {
  .collage .c1 { grid-column: 1 / -1; }
  .collage .c2 { grid-column: 1 / span 6; margin-top: 0; }
  .collage .c3 { grid-column: 7 / span 6; margin-top: 24px; }
}

/* ---------- story ---------- */
.story-hero { background: var(--teal); border-bottom: var(--line) solid var(--ink); }
.portraits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); }
.portrait { margin: 0; position: relative; }
.portrait .ht { aspect-ratio: 3 / 4; }
.portrait:nth-child(2) { margin-top: 48px; }
.portrait figcaption { margin-top: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.pull { font: 400 clamp(1.5rem, 3.6vw, 2.8rem)/1.08 var(--display); color: var(--ink); border-left: 10px solid var(--red); padding-left: 20px; margin: 0 0 24px; max-width: 24ch; }
@media (max-width: 800px) { .split, .portraits { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } .portrait:nth-child(2) { margin-top: 0; } .portraits { grid-template-columns: 1fr 1fr; } }

/* ---------- shop page ---------- */
.page-head { background: var(--green); color: var(--teal); border-bottom: var(--line) solid var(--ink); padding: clamp(36px, 5vw, 72px) 0; position: relative; overflow: hidden; }
.page-head h1 { margin: 0 0 12px; }
.page-head p { margin: 0; color: var(--white); }
.page-head .sticker { position: absolute; right: var(--gutter); top: 20px; }
@media (max-width: 640px) { .page-head .sticker { display: none; } }
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: var(--line) solid var(--ink); background: var(--white); font-weight: 700; text-decoration: none; }
.chip:hover { background: var(--teal); }
.chip[aria-current="true"] { background: var(--ink); color: var(--teal); }
.filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.demo-note { margin-top: 40px; padding: 14px 18px; background: var(--white); border: 2px dashed var(--ink); font-size: 0.95rem; max-width: none; }
.empty { padding: 40px; border: 3px dashed var(--ink); background: var(--white); text-align: center; }
.empty p { margin-inline: auto; }

/* ---------- product detail ---------- */
.crumbs { padding: 16px 0 0; font-weight: 700; font-size: 0.9rem; }
.crumbs a { text-decoration-thickness: 1px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding: 24px 0 clamp(40px, 6vw, 80px); align-items: start; }
.pdp-art { position: sticky; top: 92px; }
.pdp-stage { display: grid; place-items: center; padding: 40px; background: var(--card-bg, var(--teal)); border: var(--line) solid var(--ink); box-shadow: var(--shadow); position: relative; }
.pdp-stage::after { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 6px 6px; opacity: 0.18; pointer-events: none; }
.pdp-stage svg { width: min(100%, 340px); position: relative; z-index: 1; }
.pdp-mood { margin-top: 24px; }
.pdp-mood .ht { aspect-ratio: 16 / 9; }
.pdp h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.pdp .price { font-size: 2rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 24px 0; border: var(--line) solid var(--ink); background: var(--white); }
.facts dt, .facts dd { margin: 0; padding: 10px 14px; border-bottom: 2px solid var(--ink); }
.facts dt { font-weight: 900; border-right: 2px solid var(--ink); background: var(--teal); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.roast { display: inline-flex; gap: 4px; vertical-align: middle; }
.roast i { width: 22px; height: 14px; border: 2px solid var(--ink); background: transparent; }
.roast i.on { background: var(--red); }
.buy { padding: 20px; background: var(--magenta); border: var(--line) solid var(--ink); box-shadow: var(--shadow); display: grid; gap: 16px; }
.buy-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 900; }
.field input, .field select, .field textarea, .form-control, .form-select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 500 1rem var(--body); color: var(--ink);
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 0; appearance: none;
}
.field select, .form-select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .form-control:focus-visible { outline-color: var(--red); }
.qty { display: inline-flex; border: var(--line) solid var(--ink); background: var(--white); }
.qty button { width: 44px; min-height: 44px; border: 0; background: var(--white); font: 900 1.3rem var(--body); cursor: pointer; }
.qty button:hover { background: var(--teal); }
.qty output { min-width: 44px; display: grid; place-items: center; font-weight: 900; border-inline: 2px solid var(--ink); }
.pitch-note { font-size: 0.9rem; margin: 0; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .pdp-art { position: static; } }

/* ---------- bag page ---------- */
.bag-lines { list-style: none; display: grid; gap: 16px; }
.bag-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px 18px; align-items: center; padding: 14px; background: var(--white); border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.bag-line .swatch { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--ink); font: 400 1.6rem var(--display); color: var(--ink); background: var(--card-bg, var(--teal)); }
.bag-line h3 { font-size: 1.15rem; margin: 0 0 4px; }
.bag-line p { margin: 0; font-size: 0.9rem; }
.bag-line .line-end { display: grid; gap: 8px; justify-items: end; }
.link-btn { background: none; border: 0; padding: 6px; font: 700 0.9rem var(--body); text-decoration: underline; cursor: pointer; min-height: 32px; }
.bag-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.summary { position: sticky; top: 92px; padding: 22px; background: var(--teal); border: var(--line) solid var(--ink); box-shadow: var(--shadow); display: grid; gap: 14px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; }
.summary dd { margin: 0; font-weight: 900; text-align: right; }
.summary .total { font-family: var(--display); font-size: 1.5rem; border-top: 3px solid var(--ink); padding-top: 10px; }
@media (max-width: 860px) { .bag-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .bag-line { grid-template-columns: 56px 1fr; } .bag-line .line-end { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; justify-items: start; align-items: center; } }

/* ---------- forms / wholesale ---------- */
.wholesale-hero { background: var(--magenta); border-bottom: var(--line) solid var(--ink); position: relative; overflow: hidden; }
.wholesale-hero::before { content: "卸"; position: absolute; right: -2vw; top: -4vw; font: 900 min(46vw, 460px)/1 var(--body); color: var(--ink); opacity: 0.1; pointer-events: none; }
.wholesale-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding: clamp(40px, 6vw, 80px) 0; position: relative; }
.offer { list-style: none; display: grid; gap: 12px; margin: 24px 0; }
.offer li { padding: 14px 16px; background: var(--white); border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 500; }
.offer strong { font-family: var(--display); font-weight: 400; display: block; }
.form-card { background: var(--white); border: var(--line) solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.form-card h2 { margin: 0; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }
.errorlist, .invalid-feedback { list-style: none; margin: 0; padding: 0; color: var(--red); font-weight: 900; font-size: 0.95rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { padding: 14px 16px; background: var(--red); color: var(--white); border: var(--line) solid var(--ink); font-weight: 700; }
.error-summary:focus { outline: 4px solid var(--ink); }
.error-summary a { color: var(--white); }
.success { padding: clamp(32px, 5vw, 64px); background: var(--teal); border: var(--line) solid var(--ink); box-shadow: 8px 8px 0 var(--ink); max-width: 760px; }
.success:focus { outline: none; }
.help { font-size: 0.88rem; margin: 0; }

/* ---------- auth pages (existing foundation templates) ---------- */
.auth { max-width: 460px; margin: clamp(32px, 6vw, 80px) auto; padding: 28px; background: var(--white); border: var(--line) solid var(--ink); box-shadow: var(--shadow); }
.auth h2 { margin-bottom: 18px; }
.auth form { display: grid; gap: 14px; }
.auth .mb-3, .auth .form-group { display: grid; gap: 6px; }
.auth label, .auth .form-label { font-weight: 900; }
.auth .btn-primary, .auth .btn { width: 100%; }
.auth .helptext, .auth .form-text { font-size: 0.85rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--teal); padding: clamp(36px, 5vw, 64px) 0 24px; border-top: var(--line) solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-brand { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1 var(--display); color: var(--magenta); margin: 0 0 12px; }
.footer-h { font-size: 1.1rem; color: var(--magenta); }
.footer-line { font-size: 0.95rem; margin-top: 12px; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-links a, .site-footer address a { display: inline-block; padding: 4px 0; }
.footer-fine { margin: 36px auto 0; padding-top: 18px; border-top: 1px solid rgba(144, 228, 193, 0.3); font-size: 0.82rem; max-width: var(--max); opacity: 0.85; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- messages, toast ---------- */
.message { margin: 16px 0 0; padding: 12px 16px; background: var(--teal); border: var(--line) solid var(--ink); font-weight: 700; max-width: none; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 90; transform: translate(-50%, 140%); max-width: min(92vw, 420px); padding: 14px 18px; background: var(--ink); color: var(--teal); border: var(--line) solid var(--teal); box-shadow: 4px 4px 0 var(--magenta); font-weight: 700; transition: transform 0.25s, opacity 0.25s; pointer-events: none; opacity: 0; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- motion ---------- */
@keyframes bump { 40% { transform: scale(1.5) rotate(-8deg); } }
@keyframes stamp { from { transform: scale(1.6) rotate(-16deg); opacity: 0; } to { transform: scale(1) rotate(-10deg); opacity: 1; } }
.hero .sticker { animation: stamp 0.5s 0.5s both cubic-bezier(0.2, 1.4, 0.4, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { flex-wrap: wrap; white-space: normal; }
  .ticker { white-space: normal; }
}

@media print { .site-header, .site-footer, .ticker, .toast { display: none; } }
@media (prefers-reduced-motion: reduce) { .ticker-track .dup { display: none; } }
@media (max-width: 860px) { .wholesale-grid { grid-template-columns: 1fr; } }
