:root {
  --sage: #dfe6dc; --bottle: #14342c; --amber: #a85a12; --paper: #f5f7f2;
  --serif: 'Spectral', Georgia, serif; --mono: 'DM Mono', 'Courier New', monospace;
  --cx-bg: #fff; --cx-surface: #eef1ea; --cx-text: var(--bottle); --cx-muted: #4a6058; --cx-line: #a5b4ab;
  --cx-accent: var(--bottle); --cx-on-accent: #fff; --cx-radius: 2px; --cx-font: var(--serif); --cx-head-font: var(--serif); --cx-head-weight: 500;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sage); color: var(--bottle); font: 400 1.0625rem/1.55 var(--serif); }
a { color: inherit; }
main { display: block; outline: none; min-height: 60vh; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.top { display: flex; gap: 24px; align-items: baseline; padding: 14px clamp(16px, 4vw, 48px); font-family: var(--mono); font-size: 0.9375rem; }
.mark { margin-right: auto; font: 500 1.375rem/1 var(--serif); text-decoration: none; }
.label-wrap { padding: clamp(24px, 6vw, 72px) 16px clamp(56px, 9vw, 112px); display: grid; place-items: center; }
.label { width: min(100%, 640px); padding: clamp(24px, 5vw, 48px); background: var(--paper); border: 2px solid var(--bottle); outline: 1px solid var(--bottle); outline-offset: -10px; text-align: center; }
.l-top { margin: 0; font-family: var(--mono); font-size: 0.9375rem; }
.label h1 { margin: 12px 0; font: 500 clamp(3.5rem, 13vw, 7.5rem)/1 var(--serif); letter-spacing: -0.02em; }
.l-dose { margin: 0 auto 20px; max-width: 34ch; font-style: italic; font-size: 1.1875rem; }
.dose-link { display: inline-block; padding: 10px 22px; background: var(--bottle); color: #fff; font-family: var(--mono); text-decoration: none; }
.ledger { padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px); background: var(--paper); scroll-margin-top: 0; }
.ledger h2 { margin: 0; font: 500 clamp(2.25rem, 6vw, 4rem)/1.05 var(--serif); }
.cabinets { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 14px 0 28px; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.9375rem; }
.cabinets a[aria-current] { color: var(--amber); font-weight: 500; }
.entries { border-top: 2px solid var(--bottle); }
.entry { display: grid; grid-template-columns: 72px 64px minmax(0, 1fr) 170px 130px; gap: 16px; align-items: center; min-height: 80px; padding: 8px 0; color: var(--bottle); text-decoration: none; border-bottom: 1px solid #a5b4ab; }
.entry:hover { background: var(--sage); }
.e-no, .e-note { font-family: var(--mono); font-size: 0.875rem; }
.entry img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.e-name { font-size: 1.3125rem; line-height: 1.2; overflow-wrap: break-word; }
.e-note { color: #4a6058; }
.e-price { font-family: var(--mono); text-align: right; }
.cx-related .entry { grid-template-columns: 64px minmax(0, 1fr); }
.cx-related .e-no, .cx-related .e-note { display: none; }
.cx-related .e-price { grid-column: 2; text-align: left; }
.cx-related { grid-template-columns: 1fr; gap: 0; }
.pdp-photo { background: #fff; border: 2px solid var(--bottle); outline: 1px solid var(--bottle); outline-offset: -8px; padding: 16px; }
.pdp h1, .bag h1 { font: 500 clamp(2.25rem, 5vw, 3.75rem)/1.05 var(--serif); }
.pdp-add { background: var(--bottle); border-color: var(--bottle); font-family: var(--mono); font-weight: 400; }
.opt { font-family: var(--mono); font-size: 0.9375rem; }
.opt[aria-pressed='true'] { background: var(--bottle); border-color: var(--bottle); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 28px clamp(16px, 4vw, 48px); background: var(--bottle); color: #e7ece6; }
.foot [data-footer-links] { width: 100%; }
.foot p { margin: 0; max-width: 60ch; }
@media (max-width: 760px) {
  .entry { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 12px; }
  .e-no, .e-note { display: none; }
  .entry img { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
