/* Kōhī Roasters — concept by webtheory.co */

@font-face { font-family: "Bricolage"; src: url(fonts/bricolage-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url(fonts/bricolage-latin-ext.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; src: url(fonts/dmmono-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; src: url(fonts/dmmono-latin-ext.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1d3a2c;
  --ink-2: #14291f;
  --cream: #f4ecd8;
  --paper: #f8f2e3;
  --sand: #ebe0c6;
  --accent: #ee8a3c;
  --cream-mute: rgb(244 236 216 / 0.74);
  --ink-mute: rgb(29 58 44 / 0.8);
  --c: #f2c14e;
  --d: #c8952b;
  --sans: "Bricolage", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* One colour per origin. The whole shop is built around these. */
.o-lumaro { --c: #f2c14e; --d: #c8952b; }
.o-sorrel { --c: #c9e265; --d: #97ad33; }
.o-nessa { --c: #86b6ea; --d: #5a89bd; }
.o-oruvel { --c: #ee8a3c; --d: #bd5f1c; }
.o-verin { --c: #f4a3c4; --d: #c9708f; }
.o-tamsu { --c: #b49cff; --d: #8069d6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font: 400 1.0625rem/1.55 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-weight: 750; letter-spacing: -0.035em; line-height: 1; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.o-page :focus-visible, .light :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--accent); color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 650; }
.skip:focus { top: 12px; }
.meta { font: 400 0.78rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow { font: 400 0.8rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-mute); margin-bottom: 18px; }
.light .eyebrow, .o-page .eyebrow { color: var(--ink-mute); }

/* ---------- concept bar, header, footer ---------- */
.concept {
  background: var(--ink-2); color: var(--cream-mute); text-align: center;
  font-size: 0.8125rem; line-height: 1.4; padding: 8px var(--gutter);
}
.concept a { color: var(--cream); text-underline-offset: 3px; }

.site-head { position: relative; z-index: 5; }
.head-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 14px; }
.logo {
  justify-self: start; font-weight: 800; font-size: 1.9rem; letter-spacing: -0.06em; line-height: 1;
  text-decoration: none; padding: 6px 0; display: inline-flex; align-items: baseline; gap: 8px;
}
.logo small { font: 400 0.66rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px;
  text-decoration: none; color: var(--cream-mute); font-weight: 500; transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--cream); background: rgb(244 236 216 / 0.08); }
.nav a[aria-current="page"] { color: var(--cream); }
.cart-btn {
  justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 0 8px 0 18px; border-radius: 99px; border: 1.5px solid rgb(244 236 216 / 0.3);
  background: transparent; font-weight: 600; transition: border-color 0.2s, background-color 0.2s;
}
.cart-btn:hover { border-color: var(--cream); }
.cart-count {
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 99px;
  background: var(--accent); color: var(--ink); font: 500 0.85rem var(--mono);
}
/* light & origin pages flip the header to ink-on-colour */
.light .nav a { color: var(--ink-mute); }
.o-page .nav a { color: var(--ink); }
.light .nav a:hover, .o-page .nav a:hover { color: var(--ink); background: rgb(29 58 44 / 0.08); }
.light .nav a[aria-current="page"] { color: var(--ink); }
.light .cart-btn, .o-page .cart-btn { border-color: rgb(29 58 44 / 0.35); }
.light .cart-btn:hover, .o-page .cart-btn:hover { border-color: var(--ink); }
.o-page .cart-count { background: var(--ink); color: var(--c); }

.site-foot { background: var(--ink); color: var(--cream); padding-block: 72px 40px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 64px; }
.foot-in .logo { font-size: 3.4rem; }
.foot-blurb { margin-top: 14px; max-width: 34ch; color: var(--cream-mute); }
.foot-nav { display: flex; gap: 8px 28px; flex-wrap: wrap; align-content: start; justify-content: end; }
.foot-nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-weight: 550; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-top: 24px; border-top: 1px solid rgb(244 236 216 / 0.16); font-size: 0.875rem; color: var(--cream-mute);
}
.foot-base a { color: var(--cream); text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 99px; border: 2px solid transparent; font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.15;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #f59a50; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: rgb(128 128 128 / 0.1); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- the bag (label = design system) ---------- */
.bag {
  container-type: inline-size; position: relative; display: block; width: 100%; aspect-ratio: 10 / 14;
  border-radius: 3% 3% 7% 7% / 2% 2% 5% 5%; color: var(--ink);
  background:
    linear-gradient(104deg, transparent 20%, rgb(255 255 255 / 0.2) 26%, transparent 34%),
    linear-gradient(0deg, rgb(0 0 0 / 0.14), transparent 8%),
    linear-gradient(90deg, var(--d) 0%, var(--c) 22%, var(--c) 78%, var(--d) 100%);
  box-shadow: 0 22px 30px -20px rgb(10 25 18 / 0.55);
}
.bag-seal {
  position: absolute; inset: 0 0 auto; height: 8cqi; border-radius: 3cqi 3cqi 0 0;
  background: repeating-linear-gradient(90deg, rgb(0 0 0 / 0.2) 0 1.3cqi, transparent 1.3cqi 2.6cqi);
  border-bottom: 0.7cqi solid rgb(0 0 0 / 0.12);
}
.bag-valve {
  position: absolute; top: 13cqi; right: 13cqi; width: 7cqi; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--d) 0 34%, rgb(255 255 255 / 0.55) 36%);
  box-shadow: 0 0 0 0.6cqi rgb(0 0 0 / 0.1);
}
.bag-label {
  position: absolute; left: 11cqi; right: 11cqi; top: 25cqi; bottom: 13cqi;
  display: flex; flex-direction: column; padding: 5cqi 6cqi 4.5cqi;
  background: var(--paper); border-radius: 1.8cqi; box-shadow: 0 0.6cqi 0 rgb(0 0 0 / 0.08);
}
.bag-top { display: flex; justify-content: space-between; font: 400 5.4cqi/1 var(--mono); letter-spacing: 0.08em; padding-bottom: 3cqi; border-bottom: 0.6cqi solid var(--ink); }
.bag-top b { font-weight: 400; letter-spacing: 0.22em; }
.bag-name { margin-top: 4.5cqi; font-weight: 780; font-size: 12.5cqi; line-height: 0.92; letter-spacing: -0.045em; }
.bag-terrain { width: 100%; height: auto; margin-top: auto; }
.bag-q { margin-top: auto; font-weight: 800; font-size: 30cqi; line-height: 0.8; letter-spacing: -0.06em; }
.bag-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 3cqi; padding-top: 3cqi;
  border-top: 0.6cqi solid var(--ink); font: 400 5.2cqi/1 var(--mono);
}
.dots { display: inline-flex; gap: 0.25em; align-items: center; }
.dots i { width: 0.62em; height: 0.62em; border-radius: 50%; border: 1.5px solid currentColor; }
.dots i.on { background: currentColor; }
.bag .dots { gap: 1.4cqi; }
.bag .dots i { width: 3.6cqi; height: 3.6cqi; border-width: 0.6cqi; }
.bag-mix {
  --d: var(--ink);
  background:
    linear-gradient(104deg, transparent 20%, rgb(255 255 255 / 0.2) 26%, transparent 34%),
    linear-gradient(90deg, rgb(0 0 0 / 0.16), transparent 20%, transparent 80%, rgb(0 0 0 / 0.16)),
    linear-gradient(165deg, #f2c14e 0 17%, #c9e265 0 33%, #86b6ea 0 50%, #ee8a3c 0 66%, #f4a3c4 0 83%, #b49cff 0);
}
a:hover .bag, a:focus-visible .bag { transform: translateY(-6px) rotate(-1.2deg); }
.bag { transition: transform 0.45s var(--ease); }

/* ---------- product cards (shop + home shelf) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.card-link { display: block; text-decoration: none; border-radius: 18px; }
.card-stage {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 5.2; border-radius: 18px; overflow: hidden;
  background: var(--sand); padding: 12% 0 6%;
}
.card-stage::before { /* the origin's colour as a floor */
  content: ""; position: absolute; inset: auto 0 0; height: 30%; background: var(--c); opacity: 0.55;
}
.card-stage .bag { width: 48%; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; }
.card-name { font-size: 1.5rem; }
.card-price { font: 400 0.95rem var(--mono); white-space: nowrap; }
.card-notes { display: block; margin-top: 6px; color: var(--cream-mute); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card-tags > span {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 99px;
  border: 1px solid rgb(244 236 216 / 0.28); font-size: 0.8125rem; line-height: 1.2;
}
.card-tags .dots { font-size: 0.8rem; }
.card-link:hover .card-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- home ---------- */
.hero { padding-block: clamp(24px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(3.1rem, 7.4vw, 7rem); line-height: 0.9; letter-spacing: -0.055em; font-weight: 780; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { margin-top: 28px; max-width: 44ch; font-size: 1.1875rem; color: var(--cream-mute); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.shelf {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 999px 999px 28px 28px; background: var(--sand);
  overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 3%; padding: 0 6% 15%;
}
.shelf::after { content: ""; position: absolute; inset: auto 0 0; height: 15%; background: #d9caa6; }
.shelf .bag { flex: none; }
.shelf .s1 { width: 29%; }
.shelf .s2 { width: 39%; }
.shelf .s3 { width: 29%; }
.shelf-cup { position: absolute; z-index: 1; right: 4%; bottom: 8%; width: 16%; }
.shelf-beans { position: absolute; z-index: 1; left: 7%; bottom: 8.5%; width: 17%; }
.shelf-tag {
  position: absolute; top: 15%; left: 50%; translate: -50% 0; padding: 8px 14px; border-radius: 99px;
  background: var(--ink); color: var(--cream); font: 400 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}

.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 4.25rem); letter-spacing: -0.05em; line-height: 0.95; }
.section-head p { max-width: 42ch; color: var(--cream-mute); }
.light .section-head p { color: var(--ink-mute); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; text-underline-offset: 5px; }

.releases { border-top: 1px solid rgb(244 236 216 / 0.14); }
.releases .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 18px; }
.releases .card-stage .bag { width: 62%; }
.releases .card-name { font-size: 1.2rem; }
.releases .card-head { flex-direction: column; gap: 4px; }
.releases .card-notes { font-size: 0.9375rem; }
.releases .card-tags { display: none; }

.light { background: var(--cream); color: var(--ink); }
.taste-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.taste {
  display: flex; flex-direction: column; min-height: 260px; padding: 26px; border-radius: 20px;
  border: 2px solid var(--ink); background: var(--paper); text-decoration: none;
  transition: background-color 0.25s, transform 0.3s var(--ease);
}
.taste:hover { background: var(--accent); transform: translateY(-4px); }
.taste svg { width: 64px; height: 64px; }
.taste h3 { margin-top: auto; font-size: 2.1rem; letter-spacing: -0.045em; }
.taste p { margin-top: 8px; color: var(--ink-mute); }
.taste:hover p { color: var(--ink); }
.taste .meta { margin-top: 18px; display: flex; justify-content: space-between; }

.how { background: var(--sand); color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: var(--paper); border: 2px solid var(--ink); }
.step-art { height: 150px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 12px; background: var(--cream); }
.step-art svg { height: 110px; width: auto; }
.step-art .bag { width: 78px; }
.step .meta { color: var(--ink-mute); }
.step h3 { margin-top: 10px; font-size: 1.75rem; letter-spacing: -0.04em; }
.step p:last-child { margin-top: 10px; color: var(--ink-mute); }
.how-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
.how-cta p { color: var(--ink-mute); }

.anatomy-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.anatomy-art { position: relative; max-width: 420px; width: 100%; justify-self: center; }
@media (max-width: 640px) { .anatomy-art { max-width: 280px; } }
.pin {
  position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--cream); font: 400 0.85rem var(--mono); box-shadow: 0 0 0 4px var(--cream);
}
.parts { counter-reset: p; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.parts li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 20px 0; border-bottom: 2px solid var(--ink); }
.parts .n { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--cream); font: 400 0.85rem var(--mono); }
.parts h3 { font-size: 1.35rem; letter-spacing: -0.03em; align-self: center; }
.parts p { color: var(--ink-mute); }

/* ---------- shop ---------- */
.page-head { padding-block: clamp(28px, 5vw, 64px) 28px; }
.page-head h1 { font-size: clamp(2.9rem, 7vw, 6.25rem); line-height: 0.9; letter-spacing: -0.055em; max-width: 12ch; }
.sub-head h1 { max-width: 18ch; font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.page-head h1 + p { margin-top: 22px; max-width: 46ch; font-size: 1.125rem; color: var(--cream-mute); }
.light .page-head h1 + p { color: var(--ink-mute); }
.filters {
  display: flex; flex-wrap: wrap; align-items: end; gap: 20px 36px; padding-block: 24px;
  border-block: 1px solid rgb(244 236 216 / 0.16); margin-bottom: 40px;
}
.filter-group legend, .filter-label { display: block; margin-bottom: 10px; color: var(--cream-mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 99px;
  border: 1.5px solid rgb(244 236 216 / 0.35); background: transparent; font-weight: 550;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip svg { width: 22px; height: 22px; }
.chip:hover { border-color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; border: 1.5px solid rgb(244 236 216 / 0.35); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 99px; font-weight: 550; transition: background-color 0.2s, color 0.2s; }
.seg input:checked + span { background: var(--cream); color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.filter-status { margin-left: auto; display: flex; align-items: center; gap: 16px; min-height: 44px; }
.count { font: 400 0.9rem var(--mono); color: var(--cream-mute); }
.clear { min-height: 44px; padding: 0 4px; background: none; border: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 48px 20px 56px; border-radius: 22px; background: var(--sand); color: var(--ink); }
.empty svg { width: 120px; height: auto; }
.empty h2 { font-size: 2rem; letter-spacing: -0.04em; }
.empty p { color: var(--ink-mute); max-width: 40ch; }
.empty :focus-visible { outline-color: var(--ink); }
.shop-foot { margin-block: 64px clamp(64px, 8vw, 112px); padding: 28px; border-radius: 20px; background: var(--accent); color: var(--ink); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.shop-foot h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.04em; }
.shop-foot p { margin-top: 6px; }

/* ---------- origin page: the label becomes the layout ---------- */
.o-page { background: var(--c); color: var(--ink); }
.o-page .concept { background: var(--ink); }
.pending main { visibility: hidden; animation: unhide 0s 2.5s forwards; }
@keyframes unhide { to { visibility: visible; } }
.o-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-block: clamp(16px, 3vw, 40px) clamp(56px, 7vw, 96px); }
.o-stage {
  position: sticky; top: 24px; display: grid; place-items: end center; aspect-ratio: 1 / 1.1; overflow: hidden;
  border-radius: 999px 999px 22px 22px; background: var(--paper); border: 2px solid var(--ink);
}
.o-num {
  position: absolute; top: 7%; left: 50%; translate: -50% 0; font-weight: 800; font-size: clamp(8rem, 16vw, 14rem);
  line-height: 0.8; letter-spacing: -0.07em; color: var(--c); user-select: none;
}
.o-terrain { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.o-bag { position: relative; width: 42%; margin-bottom: 11%; }
.label { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; }
.label-top { display: flex; justify-content: space-between; gap: 12px; padding: 16px 28px; border-bottom: 2px solid var(--ink); }
.label-title { padding: 28px 28px 24px; border-bottom: 2px solid var(--ink); }
.label-title h1 { font-size: clamp(3.4rem, 7vw, 6.5rem); line-height: 0.88; letter-spacing: -0.06em; font-weight: 790; }
.label-place { margin-top: 14px; color: var(--ink-mute); }
.label-row { padding: 22px 28px; border-bottom: 2px solid var(--ink); }
.label-row .meta { color: var(--ink-mute); margin-bottom: 8px; }
.notes { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.12; }
.label-line { margin-top: 10px; color: var(--ink-mute); }
.label-grid { display: grid; grid-template-columns: 0.8fr 0.9fr 1.3fr; border-bottom: 2px solid var(--ink); }
.label-grid > div { padding: 18px 20px 20px 28px; }
.label-grid > div + div { border-left: 2px solid var(--ink); padding-left: 20px; }
.label-grid dt { margin-bottom: 8px; color: var(--ink-mute); }
.label-grid dd { font-weight: 600; line-height: 1.3; }
.label-grid .dots { margin-right: 8px; font-size: 0.85rem; }
.buy { padding: 24px 28px 28px; display: grid; gap: 22px; }
.buy legend { margin-bottom: 10px; color: var(--ink-mute); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt > span {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px;
  border: 2px solid rgb(29 58 44 / 0.25); border-radius: 14px; font-weight: 600; line-height: 1.2; transition: border-color 0.2s, background-color 0.2s;
}
.opt > span small { font: 400 0.9rem var(--mono); }
.opt:hover > span { border-color: var(--ink); }
.opt input:checked + span { border-color: var(--ink); background: var(--c); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-actions .btn { width: 100%; min-height: 58px; }
.buy-actions .btn-line { flex-direction: column; gap: 0; border-color: var(--ink); }
.buy-actions .btn-line small { font: 400 0.78rem var(--mono); }
.o-more { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; padding-bottom: clamp(56px, 7vw, 96px); }
.panel { background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 28px; border-bottom: 2px solid var(--ink); }
.panel h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.045em; padding: 24px 28px 4px; }
.scales { padding: 12px 28px 28px; display: grid; gap: 18px; }
.scale dt { font-weight: 650; margin-bottom: 8px; }
.scale dd { display: grid; grid-template-columns: 5.5em 1fr 5.5em; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--ink-mute); }
.scale-end:last-child { text-align: right; }
.scale-dots { display: flex; justify-content: space-between; position: relative; }
.scale-dots::before { content: ""; position: absolute; inset: 50% 8px auto; height: 2px; background: rgb(29 58 44 / 0.25); translate: 0 -50%; }
.scale-dots i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid rgb(29 58 44 / 0.45); }
.scale-dots i.on { width: 22px; height: 22px; margin: -3px; background: var(--c); border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.brews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brew { padding: 20px 24px 28px; border-top: 2px solid var(--ink); }
.brew + .brew { border-left: 2px solid var(--ink); }
.brew-icon { width: 52px; height: 52px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.brew h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.brew p { margin-top: 6px; color: var(--ink-mute); font-size: 0.9375rem; }
.others { padding-bottom: clamp(64px, 8vw, 112px); }
.others h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.05em; margin-bottom: 24px; }
.others ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.others a { display: grid; justify-items: center; gap: 14px; padding: 22px 14px 18px; border-radius: 18px; background: var(--paper); border: 2px solid var(--ink); text-decoration: none; font-weight: 650; }
.others .bag { width: 64%; }
.others a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- subscribe ---------- */
.sub-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: clamp(64px, 8vw, 120px); }
.q { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 20px; }
.q .n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--cream); font: 400 0.9rem var(--mono); letter-spacing: 0; translate: 0 -4px; }
.freq-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.freq-card { position: relative; display: block; }
.freq-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.freq-body {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px; border-radius: 22px; border: 2px solid var(--ink);
  background: var(--paper); transition: background-color 0.2s, transform 0.3s var(--ease);
}
.freq-card:hover .freq-body { transform: translateY(-3px); }
.freq-big { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 780; letter-spacing: -0.055em; line-height: 0.9; }
.freq-body svg { width: 100%; max-width: 260px; height: 78px; margin-bottom: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.freq-sub { color: var(--ink-mute); }
.freq-check { position: absolute; top: 20px; right: 20px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--paper); }
.freq-check::after { content: ""; width: 12px; height: 7px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; rotate: -45deg; translate: 0 -1px; opacity: 0; }
.freq-card input:checked ~ .freq-body { background: var(--accent); }
.freq-card input:checked ~ .freq-check::after { opacity: 1; }
.freq-card input:focus-visible ~ .freq-body { outline: 3px solid var(--ink); outline-offset: 3px; }
.error { min-height: 1.5em; margin-top: 12px; color: #9b2c1a; font-weight: 650; }
.freq[aria-invalid="true"] .freq-body { border-color: #9b2c1a; border-style: dashed; }
.defaults { margin-top: 36px; padding: 24px 26px; border-radius: 22px; border: 2px solid var(--ink); background: var(--paper); }
.defaults .meta { color: var(--ink-mute); }
.defaults-line { margin-top: 8px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.2; }
.tweak { margin-top: 16px; }
.tweak summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 650;
  text-decoration: underline; text-underline-offset: 4px; list-style: none;
}
.tweak summary::-webkit-details-marker { display: none; }
.tweak summary::after { content: "+"; font: 400 1.2rem var(--mono); text-decoration: none; }
.tweak[open] summary::after { content: "−"; }
.tweak-body { display: grid; gap: 22px; padding-top: 14px; }
.tweak-body legend { margin-bottom: 10px; color: var(--ink-mute); }
.opts.origins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.swatch { flex: none; width: 18px; height: 24px; border-radius: 3px 3px 6px 6px; background: var(--c); border: 1.5px solid var(--ink); }
.swatch.mix { background: linear-gradient(165deg, #f2c14e 0 17%, #c9e265 0 33%, #86b6ea 0 50%, #ee8a3c 0 66%, #f4a3c4 0 83%, #b49cff 0); }
.opt .opt-l { display: inline-flex; align-items: center; gap: 10px; }
.summary { position: sticky; top: 24px; padding: 28px; border-radius: 24px; background: var(--ink); color: var(--cream); }
.summary-bag { width: 150px; margin: 4px auto 24px; }
.summary h2 { font-size: 1.6rem; letter-spacing: -0.035em; }
.summary-text { margin-top: 10px; color: var(--cream-mute); min-height: 3.1em; }
.summary-price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgb(244 236 216 / 0.2); }
.summary-price strong { font-size: 3rem; font-weight: 780; letter-spacing: -0.05em; line-height: 1; }
.summary-price span { color: var(--cream-mute); }
.summary .btn { width: 100%; margin-top: 22px; }
.summary .fine { margin-top: 14px; font-size: 0.875rem; color: var(--cream-mute); }
.demo { font-weight: 600; }
.demo:not(:empty) { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgb(238 138 60 / 0.16); border: 1.5px solid var(--accent); }
.light .demo:not(:empty) { background: var(--paper); border-color: var(--ink); }
.light .summary .demo:not(:empty) { background: rgb(238 138 60 / 0.16); border-color: var(--accent); color: var(--cream); }
#sub { --c: var(--accent); }

/* ---------- cart drawer ---------- */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; width: min(440px, calc(100vw - 28px)); max-width: none; height: 100dvh; max-height: 100dvh;
  background: var(--paper); color: var(--ink);
}
.drawer[open] { animation: slide 0.35s var(--ease); }
.drawer::backdrop { background: rgb(10 22 16 / 0.55); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 16px 24px; border-bottom: 2px solid var(--ink); }
.drawer-head h2 { font-size: 1.75rem; letter-spacing: -0.04em; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgb(29 58 44 / 0.3); background: transparent; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1.5px solid rgb(29 58 44 / 0.16); }
.line-bag { position: relative; width: 46px; aspect-ratio: 10 / 14; border-radius: 3px 3px 6px 6px; background: linear-gradient(90deg, var(--d), var(--c) 25%, var(--c) 75%, var(--d)); }
.line-bag::after { content: ""; position: absolute; inset: 34% 14% 16%; border-radius: 2px; background: var(--paper); }
.line-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.2; }
.line-meta { font-size: 0.875rem; color: var(--ink-mute); }
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1.5px solid rgb(29 58 44 / 0.3); border-radius: 99px; }
.qty button { width: 44px; height: 40px; border: 0; background: none; font-size: 1.2rem; border-radius: 99px; }
.qty button:hover { background: rgb(29 58 44 / 0.08); }
.qty span { min-width: 24px; text-align: center; font: 400 0.95rem var(--mono); }
.line-end { display: flex; flex-direction: column; align-items: end; justify-content: space-between; }
.line-price { font: 400 0.95rem var(--mono); }
.link { min-height: 44px; padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: 0.875rem; color: var(--ink-mute); }
.link:hover { color: var(--ink); }
.cart-empty { display: grid; justify-items: start; gap: 16px; padding: 28px 0; }
.cart-empty p { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.drawer-foot { padding: 20px 24px 24px; border-top: 2px solid var(--ink); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-weight: 600; }
.subtotal strong { font-size: 1.6rem; letter-spacing: -0.03em; }
.drawer-foot .btn { width: 100%; }
.drawer .demo:not(:empty) { background: var(--cream); border-color: var(--ink); }

/* ---------- 404 ---------- */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost-bag { width: 150px; margin: 0 auto 32px; text-align: left; }
.lost h1 { font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: -0.055em; }
.lost p { margin: 16px auto 28px; max-width: 36ch; color: var(--cream-mute); }

/* ---------- reveal (JS only; content is visible without JS) ---------- */
.js .reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .releases .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
  .taste-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .others ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .label-grid { grid-template-columns: 1fr 1fr; }
  .label-grid > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 2px solid var(--ink); padding-left: 28px; }
}
@media (max-width: 900px) {
  .hero-in, .anatomy-in, .o-hero, .o-more, .sub-grid { grid-template-columns: minmax(0, 1fr); }
  .shelf { max-width: 520px; width: 100%; justify-self: center; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: 120px 1fr; gap: 0 22px; align-items: start; }
  .step-art { grid-row: span 3; height: 120px; margin: 0; }
  .step-art svg { height: 84px; }
  .step-art .bag { width: 60px; }
  .o-stage { position: relative; top: 0; width: 100%; max-width: 460px; justify-self: center; }
  .o-num { font-size: clamp(8rem, 36vw, 13rem); }
  .summary { position: static; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { justify-content: start; }
  .filter-status { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .head-in { grid-template-columns: auto 1fr auto; gap: 4px; }
  .logo { font-size: 1.6rem; }
  .logo small { display: none; }
  .nav ul { justify-content: center; gap: 0; }
  .nav a { padding: 0 10px; }
  .hide-sm { display: none; }
  .cart-btn { padding: 0 6px 0 14px; gap: 8px; }
  .releases .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .card-stage { border-radius: 14px; }
  .card-name { font-size: 1.2rem; }
  .card-head { flex-direction: column; gap: 2px; margin-top: 12px; }
  .card-notes { font-size: 0.9rem; }
  .card-tags > span { font-size: 0.75rem; padding: 4px 9px; }
  .taste-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .taste { min-height: 200px; padding: 18px; }
  .taste svg { width: 48px; height: 48px; }
  .taste h3 { font-size: 1.6rem; }
  .taste p { font-size: 0.875rem; }
  .step { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .step-art { grid-row: auto; margin-bottom: 18px; }
  .filters { gap: 18px; }
  .filter-group, .seg { width: 100%; }
  .seg label { flex: 1; }
  .seg span { justify-content: center; width: 100%; padding: 0 8px; }
  .label-top, .label-title, .label-row, .panel-head { padding-inline: 20px; }
  .label-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .label-grid > div { padding-left: 20px; }
  .label-grid > div:last-child { padding-left: 20px; }
  .buy { padding: 20px; }
  .buy-actions { grid-template-columns: minmax(0, 1fr); }
  .panel h2 { padding-inline: 20px; }
  .scales { padding-inline: 20px; }
  .scale dd { grid-template-columns: 4.6em 1fr 4.6em; gap: 8px; font-size: 0.8125rem; }
  .brews { grid-template-columns: minmax(0, 1fr); }
  .brew { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; padding: 20px; }
  .brew + .brew { border-left: 0; }
  .brew-icon { grid-row: span 2; margin: 0; }
  .others ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .others a { grid-template-columns: 52px 1fr auto; justify-items: start; align-items: center; padding: 12px 18px; }
  .others a::after { content: "→"; }
  .others .bag { width: 52px; }
  .others .bag { box-shadow: none; }
  .freq-cards { grid-template-columns: minmax(0, 1fr); }
  .freq-body { padding: 22px; }
  .freq-body svg { height: 64px; margin-bottom: 8px; }
  .opts.origins { grid-template-columns: minmax(0, 1fr); }
  .shelf-tag { font-size: 0.62rem; }
  .foot-in .logo { font-size: 2.6rem; }
}
@media (max-width: 380px) {
  .nav a { padding: 0 7px; }
  .opts.four { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  a:hover .bag, a:focus-visible .bag, .taste:hover, .freq-card:hover .freq-body, .btn:active { transform: none; }
  .pending main { visibility: visible; }
}
