/* Doc Harvey's Wound Formula: Apothecary Noir. Iron Sharp Media, v1.
   One photo grade (warm, deep shadows), one radius (none: sharp edges), two typefaces. */
:root {
  --ink: #120d0a;
  --espresso: #1b140f;
  --bark: #261c15;
  --bark-2: #31251c;
  --cream: #efe2c8;
  --cream-2: #d9c8a8;
  --tan: #b89a72;
  --amber: #c98d45;
  --amber-hi: #dea561;
  --line: rgba(239, 226, 200, .14);
  --line-2: rgba(239, 226, 200, .26);
  --muted: rgba(239, 226, 200, .66);
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(18px, 4.6vw, 56px);
  --max: 1240px;
  --hdr: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* FU-0023 */
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- type ---------- */
.cap { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: .02em; }
h2 { font-size: clamp(30px, 6.4vw, 60px); text-transform: uppercase; letter-spacing: .06em; }
h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .18em; color: var(--tan); }
.eyebrow { font: 600 12px/1.2 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--tan); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--amber); flex: none; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--cream-2); max-width: 34em; margin: 18px 0 0; }

/* ---------- buttons (sharp, verbs) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--cream); background: transparent; color: var(--cream); font: 600 14px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s; }
.btn:hover { background: var(--cream); color: var(--ink); }
.btn.buy { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.buy:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.wide { width: 100%; }
.btn[hidden] { display: none !important; }
.textlink { color: var(--amber-hi); text-underline-offset: 4px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; height: var(--hdr); background: var(--ink); border-bottom: 1px solid var(--line); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.hdr-logo { display: block; flex: none; }
.hdr-logo img { height: 34px; width: auto; }
.hdr-nav { display: none; margin-left: auto; gap: 30px; }
.hdr-nav a { font: 600 12px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--cream-2); padding: 8px 0; border-bottom: 1px solid transparent; }
.hdr-nav a:hover, .hdr-nav a[aria-current] { color: var(--cream); border-color: var(--amber); }
.cart-btn, .menu-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); background: none; cursor: pointer; color: var(--cream); }
.cart-btn { margin-left: auto; }
.cart-btn svg, .menu-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--amber); color: var(--ink); font: 700 11px/20px var(--body); text-align: center; }
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
@media (min-width: 900px) {
  .hdr-nav { display: flex; }
  .cart-btn { margin-left: 8px; }
  .menu-btn { display: none; }
  :root { --hdr: 76px; }
  .hdr-logo img { height: 40px; }
}
/* Phone menu lives outside the header (FU-0022) */
.menu { position: fixed; inset: var(--hdr) 0 0 0; z-index: 39; background: var(--ink); padding: 28px var(--gut); display: flex; flex-direction: column; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu a { font: 500 30px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--hdr)); display: grid; overflow: hidden; isolation: isolate; background: var(--espresso); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; filter: saturate(.85) contrast(1.05) brightness(.62); animation: slowzoom 28s var(--ease) infinite alternate; }
.hero-bg img.is-ph { opacity: 0; }
.hero::before { /* lamp light: the amber of the bottle, drifting */
  content: ''; position: absolute; z-index: -1; width: 120vmax; height: 120vmax; left: 50%; top: 58%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(201, 141, 69, .30), rgba(201, 141, 69, .10) 40%, transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.hero::after { /* honeycomb from the label, fading up from the bottom edge */
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 46%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='145.5' viewBox='0 0 84 145.5'%3E%3Cpath d='M42 0l42 24.25v48.5L42 97 0 72.75v-48.5zM42 97v48.5M0 72.75L-42 97M84 72.75L126 97' fill='none' stroke='%23efe2c8' stroke-opacity='.11' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 84px 145.5px; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); pointer-events: none; }
@keyframes drift { from { transform: translate(-56%, -48%) scale(.94); } to { transform: translate(-44%, -54%) scale(1.06); } }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-in { display: grid; align-content: center; gap: 26px; padding-top: clamp(28px, 7vh, 80px); padding-bottom: clamp(36px, 7vh, 80px); }
.hero h1 { margin: 0; }
.hero h1 img { width: min(560px, 86vw); height: auto; }
.hero .tagline { font: 400 clamp(18px, 2.4vw, 22px)/1.45 var(--body); color: var(--cream-2); max-width: 26em; margin: 0; }
.hero-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.price { font: 500 clamp(30px, 4.4vw, 40px)/1 var(--display); letter-spacing: .02em; }
.price-meta { font-size: 14px; color: var(--muted); }
.hero-shot { position: relative; justify-self: center; width: min(360px, 54vw); }
.hero-shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line-2); }
.hero-shot figcaption { display: none; }
.hero-note { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--tan); margin: 0; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.15fr .85fr; align-items: center; column-gap: 64px; }
  .hero-copy { display: grid; gap: 30px; }
  .hero-shot { grid-column: 2; grid-row: 1; width: min(420px, 100%); }
}

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 12vw, 150px) 0; border-top: 1px solid var(--line); }
.sec.dark { background: var(--espresso); }
.sec-head { display: grid; gap: 0; margin-bottom: clamp(28px, 6vw, 64px); }

/* five herbs: swipe row on phones, one line on desktop */
.herbs { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin: 0 calc(var(--gut) * -1); padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: none; list-style: none; }
.herbs::-webkit-scrollbar { display: none; }
.herb { scroll-snap-align: start; display: grid; justify-items: center; gap: 14px; padding: 22px 12px 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(239, 226, 200, .03), transparent); text-align: center; }
.herb-hex { width: 104px; aspect-ratio: 1 / 1.1547; display: grid; place-items: center; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 115.47'%3E%3Cpath d='M50 1l48.5 28v57.47L50 114.47 1.5 86.47V29z' fill='none' stroke='%23c98d45' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.herb-hex img { width: 64%; height: 64%; object-fit: contain; }
.herb-hex img.is-ph { width: 40%; height: 40%; opacity: .5; }
.herb-name { font: 500 clamp(17px, 1.8vw, 22px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.herbs-foot { margin: 36px 0 0; max-width: 40em; color: var(--cream-2); font-size: 18px; }
@media (min-width: 900px) { .herb-hex { width: 132px; } .herb { padding: 30px 14px 26px; gap: 18px; } .herbs { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; } }

/* label panel: directions and ingredients, set like the bottle */
.label { display: grid; border: 1px solid var(--line-2); background: var(--bark); }
.label > div { padding: clamp(26px, 4vw, 44px); }
.label > div + div { border-top: 1px solid var(--line-2); }
.label p { margin: 12px 0 0; font-size: 18px; color: var(--cream-2); }
.label .directions p { font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.45; color: var(--cream); }
.caution { margin: 0; padding: 18px; border-top: 1px solid var(--line-2); text-align: center; font: 600 13px/1.4 var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--amber-hi); }
@media (min-width: 900px) {
  .label { grid-template-columns: 1.3fr 1fr; }
  .label > div + div { border-top: 0; border-left: 1px solid var(--line-2); }
  .caution { grid-column: 1 / -1; }
}

/* buy panel */
.buy-wrap { display: grid; gap: clamp(28px, 5vw, 64px); }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.g-shot { margin: 0; grid-column: span 2; position: relative; background: var(--bark); }
.g-shot.is-main { grid-column: 1 / -1; }
.g-shot img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.g-shot.is-main img { aspect-ratio: 1; }
@media (min-width: 900px) { .g-shot.is-main img { aspect-ratio: 4 / 5; } }
.buybox { display: grid; gap: 20px; align-content: start; }
.buybox h2 { font-size: clamp(30px, 4.6vw, 46px); }
.buybox .size { margin: -6px 0 0; color: var(--tan); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; font-weight: 600; }
.stock { font-size: 14px; color: var(--muted); margin: 0; }
.qty { display: inline-grid; grid-template-columns: 48px 56px 48px; height: 52px; border: 1px solid var(--line-2); }
.qty button { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--cream); }
.qty output { display: grid; place-items: center; font-weight: 600; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-row .btn.buy { flex: 1 1 200px; }
.ship-notes { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; color: var(--cream-2); }
.ship-notes li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.ship-notes svg { width: 18px; height: 18px; margin-top: 3px; color: var(--amber); }
.soldout-note { display: none; color: var(--amber-hi); }
[data-soldout] .soldout-note { display: block; }
[data-soldout] .btn.buy { opacity: .45; pointer-events: none; }
@media (min-width: 900px) { .buy-wrap { grid-template-columns: 1.1fr .9fr; align-items: start; } .buybox { position: sticky; top: calc(var(--hdr) + 28px); } }

/* barn band: in-use photos */
.band { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.band figure { margin: 0; }
.band figure:first-child { grid-column: 1 / -1; }
.band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.band figure:not(:first-child) img { aspect-ratio: 1; }
@media (min-width: 900px) { .band { grid-template-columns: 2fr 1fr 1fr; } .band figure:first-child { grid-column: auto; } .band img, .band figure:not(:first-child) img { aspect-ratio: auto; height: clamp(360px, 36vw, 520px); } }

/* product grid (only shows with two or more products) */
.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pcard { display: grid; gap: 10px; text-decoration: none; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pcard-img img, .pcard-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bark); border: 1px solid var(--line); }
.pcard-ph { display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.pcard-name { font: 500 22px/1.15 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.pcard-meta { color: var(--tan); font-size: 14px; }

/* questions */
.ask { display: grid; gap: clamp(28px, 5vw, 64px); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font: 600 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--tan); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--ink); border: 1px solid var(--line-2); border-radius: 0; font-size: 17px; }
.field input:focus, .field textarea:focus { border-color: var(--amber); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-msg { margin: 0; font-size: 15px; }
.form-msg.ok { color: var(--amber-hi); }
.form-msg.bad { color: #f0a58a; }
.hp { position: absolute; left: -5000px; }
@media (min-width: 900px) { .ask { grid-template-columns: .9fr 1.1fr; } }

/* page heads (inner pages) */
.page-head { padding: clamp(56px, 10vw, 110px) 0 clamp(28px, 5vw, 48px); }
.page-head h1 { font-size: clamp(38px, 8vw, 76px); text-transform: uppercase; letter-spacing: .05em; }
.prose { max-width: 44em; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); margin: 48px 0 12px; }
.prose p, .prose li { color: var(--cream-2); }
.ph-flag { display: inline-block; padding: 2px 8px; border: 1px dashed var(--amber); color: var(--amber-hi); font-size: 13px; letter-spacing: .08em; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--espresso); padding: 64px 0 32px; font-size: 15px; color: var(--muted); }
.ftr-grid { display: grid; gap: 34px; }
.ftr-logo { width: 220px; height: auto; }
.ftr nav { display: grid; gap: 10px; }
.ftr nav a { text-decoration: none; color: var(--cream-2); }
.ftr nav a:hover { color: var(--cream); }
.ftr address { font-style: normal; display: grid; gap: 4px; }
.ftr-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: 13px; }
.ftr-caution { letter-spacing: .24em; text-transform: uppercase; color: var(--tan); }
.made-by { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); opacity: .8; }
.made-by img { width: 72px; height: auto; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(8, 6, 4, .7); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--espresso); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); }
.drawer.open { transform: none; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dr-head h2 { font-size: 22px; letter-spacing: .14em; }
.dr-x { width: 44px; height: 44px; border: 1px solid var(--line-2); background: none; color: var(--cream); font-size: 20px; cursor: pointer; }
.dr-body { flex: 1; overflow-y: auto; padding: 8px 22px 22px; -webkit-overflow-scrolling: touch; }
.dr-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dr-line img, .dr-thumb { width: 64px; height: 80px; object-fit: cover; background: var(--bark); border: 1px solid var(--line); }
.dr-name { font: 500 17px/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.dr-sub { font-size: 13px; color: var(--muted); }
.dr-line .qty { height: 40px; grid-template-columns: 36px 40px 36px; margin-top: 8px; }
.dr-rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 4px 0; }
.dr-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.ship-pick { display: grid; gap: 10px; margin: 20px 0 6px; }
.ship-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line-2); cursor: pointer; }
.ship-opt input { margin: 3px 0 0; accent-color: var(--amber); width: 18px; height: 18px; }
.ship-opt b { display: block; font-weight: 600; }
.ship-opt small { color: var(--muted); font-size: 13px; }
.ship-opt:has(input:checked) { border-color: var(--amber); background: rgba(201, 141, 69, .08); }
.totals { margin: 18px 0 0; display: grid; gap: 6px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 19px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.dr-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--espresso); }
.dr-note { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.dr-form { display: grid; gap: 12px; margin-top: 20px; }
.dr-form .field input, .dr-form .field textarea { min-height: 46px; font-size: 16px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--cream); color: var(--ink); padding: 14px 20px; font-weight: 600; font-size: 15px; display: flex; gap: 16px; align-items: center; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--ink); text-decoration: underline; font-weight: 700; cursor: pointer; }

/* order page */
.receipt { border: 1px solid var(--line-2); background: var(--bark); padding: clamp(22px, 4vw, 36px); max-width: 560px; }
.receipt .line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Phones: photo sets become one swipe row each (design rule 24: phone home under about 4,500 px) */
@media (max-width: 899px) {
  .gallery, .band { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar, .band::-webkit-scrollbar { display: none; }
  .g-shot, .g-shot.is-main, .band figure, .band figure:first-child { grid-column: auto; scroll-snap-align: start; }
  .g-shot img, .g-shot.is-main img, .band img, .band figure:not(:first-child) img { aspect-ratio: 4 / 5; }
  .hero { min-height: 0; }
}
