/* GlycoHarmony official store - Vermilion Press
   Editorial luxe: warm newsprint stock, vermilion accent, literary serif display.
   Sections: tokens / base / masthead / cover + till / editorial blocks / foot / dock */

:root {
  --paper: #f8f6f1;
  --panel: #efeae1;
  --card: #ffffff;
  --ink: #14110e;
  --ink-2: #403830;
  --ink-3: #6d6459;
  --rule: #ddd4c6;
  --rule-2: #c6b9a4;
  --red: #c2261d;
  --red-deep: #8f150f;
  --red-dark: #6d0f0a;
  --red-wash: #fbeeec;
  --gold: #e5a417;
  --gold-deep: #8a5e05;
  --gold-wash: #f9edd2;
  --serif: "Brygada 1918", Georgia, "Times New Roman", serif;
  --sans: "Assistant", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --r: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.2em; }
li { margin-bottom: .38em; }
s { color: var(--ink-3); }
sup { font-size: .5em; top: -.9em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
}
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; color: var(--red-deep);
  margin: 0 0 .9em;
}
.stars { color: var(--gold); letter-spacing: .07em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  background: var(--red); color: #fffaf8; text-decoration: none;
  font-family: var(--sans); font-weight: 700; font-size: 1.02rem;
  padding: .78em 1.5em; border-radius: var(--r);
  border: 0; box-shadow: 0 2px 0 var(--red-dark);
  transition: background .16s ease, transform .16s ease;
}
.btn:hover { background: var(--red-deep); color: #fffaf8; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 0 0 var(--red-dark); }
.btn--lg { width: 100%; font-size: 1.15rem; padding: .95em 1.4em; letter-spacing: .01em; }
.btn--sm { font-size: .92rem; padding: .55em 1.1em; }
.btn__tag {
  font-family: var(--serif); font-weight: 700; font-size: 1.05em;
  border-left: 1px solid rgba(255, 250, 248, .38); padding-left: .7em;
}

/* ---------- masthead ---------- */
.strip {
  background: var(--ink); color: #efe7dc; text-align: center;
  font-size: .85rem; padding: 9px 20px; letter-spacing: .01em;
}
.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 40; }
.masthead__in { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo .mark { width: 28px; height: 28px; flex: 0 0 28px; }
.logo__word { font-family: var(--serif); font-weight: 700; font-size: 1.42rem; letter-spacing: -.01em; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 600;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.nav__list a:hover, .nav__list a.on { color: var(--red-deep); border-bottom-color: var(--red); }
.burger { display: none; }

/* ---------- cover ---------- */
.cover {
  background:
    radial-gradient(900px 460px at 78% 18%, rgba(255, 145, 120, .3), transparent 62%),
    linear-gradient(155deg, #a51a12 0%, #7c1109 55%, #5c0c07 100%);
  color: #fdeceb; padding: 40px 0 30px; position: relative;
}
.cover__in { position: relative; z-index: 2; display: grid; gap: 30px; grid-template-columns: 1fr; align-items: start; }
.cover__buy { margin-bottom: -104px; }
.cover__lead h1 { color: #fffaf8; margin-bottom: .18em; }
.cover__kicker {
  font-size: .74rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
  color: #f6c6b6; margin: 0 0 1.1em;
}
.cover__tag {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-style: italic;
  color: #ffd9ac; margin: 0 0 1.1em;
}
.cover__def {
  font-size: 1.06rem; line-height: 1.6; max-width: 46ch;
  border-left: 3px solid #ffb08a; padding-left: 18px; color: #fbe3df;
}
.cover__def b { color: #fff; }
.cover__rate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .95rem; color: #f7d5cf; margin-top: 16px; }
.cover__rate a { color: #ffd9ac; }
.cover__shot { position: relative; z-index: 2; margin: 22px auto 0; max-width: 400px; }
.cover__shot img { filter: drop-shadow(0 26px 34px rgba(50, 6, 3, .45)); }

/* ---------- till (buy card) ---------- */
.till {
  position: relative; z-index: 6; background: var(--card); color: var(--ink);
  border: 1px solid var(--rule-2); border-top: 4px solid var(--red);
  padding: 24px 24px 24px; box-shadow: 14px 14px 0 rgba(109, 15, 10, .12);
  margin: 0;
}
.till__head, .row__name, .row__price b, .till__big, .till__line { color: var(--ink); }
.till__head { font-size: 1.6rem; margin-bottom: .22em; }
.till__note { font-size: .9rem; color: var(--ink-3); margin-bottom: 1em; }
.till__rows { display: grid; gap: 0; border-top: 1px solid var(--rule); margin-bottom: 18px; }
.row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  padding: 11px 14px 11px 10px; border-bottom: 1px solid var(--rule);
  cursor: pointer; position: relative; transition: background .14s ease;
}
.row:hover { background: #faf7f2; }
.row input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.row__num {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  color: #9a8c78; text-align: center; transition: color .14s ease;
}
.row__name { display: block; font-weight: 700; font-size: 1.06rem; }
.row__sub { display: block; font-size: .88rem; color: var(--ink-3); }
.row__price { text-align: right; line-height: 1.2; }
.row__price b { font-family: var(--serif); font-size: 1.5rem; display: block; }
.row__price span { font-size: .78rem; color: var(--ink-3); }
.row:has(input:checked) { background: var(--red-wash); }
.row:has(input:checked)::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 4px; background: var(--red);
}
.row:has(input:checked) .row__num { color: var(--red); }
.row:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: -2px; }
.flag {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; background: var(--red); color: #fffaf8; padding: 3px 8px; border-radius: var(--r);
}
.flag--gold { background: var(--gold-wash); color: var(--gold-deep); }
.till__price { border-top: 1px solid var(--rule); padding-top: 14px; margin-bottom: 14px; }
.till__big { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 .34em; }
.till__big b { font-size: 3.1rem; line-height: 1; }
.till__big span { font-family: var(--sans); font-size: .95rem; color: var(--ink-3); }
.till__line { font-size: .98rem; margin: 0 0 .3em; }
.till__line b { font-family: var(--serif); font-size: 1.16rem; }
.save {
  display: inline-block; background: var(--gold-wash); color: var(--gold-deep);
  font-size: .82rem; font-weight: 700; padding: 2px 9px; border-radius: var(--r); margin-left: 6px;
}
.till__ship { font-size: .93rem; color: var(--ink-3); margin: 0; }
.till__micro { list-style: none; padding: 0; margin: 14px 0 0; font-size: .85rem; color: var(--ink-3); }
.till__micro li { padding-left: 22px; position: relative; margin-bottom: .5em; }
.till__micro li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 7px; height: 7px;
  background: var(--red); border-radius: 50%;
}

/* ---------- standards ---------- */
.marks { background: var(--panel); border-block: 1px solid var(--rule); margin-top: 122px; }
.marks__list {
  list-style: none; padding: 30px 0; margin: 0; display: grid; gap: 26px 20px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  justify-items: center; text-align: center;
}
.marks__list li { margin: 0; padding-top: 13px; border-top: 2px solid var(--red); max-width: 220px; width: 100%; }
.marks__list b { display: block; font-size: .98rem; }
.marks__list span { display: block; font-size: .86rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- editorial sections ---------- */
.sect { padding: 62px 0; border-bottom: 1px solid var(--rule); }
.sect:last-of-type { border-bottom: 0; }
.sect__head { max-width: 62ch; }
.sect--tint { background: var(--panel); }
.lede { font-size: 1.12rem; }
.lede--cap::first-letter {
  font-family: var(--serif); font-size: 3.5em; line-height: .8; float: left;
  margin: .07em .1em 0 0; color: var(--red); font-weight: 700;
}
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
.trio { display: grid; gap: 28px; grid-template-columns: 1fr; }
.pane {
  background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--red);
  padding: 24px 22px;
}
.pane h3 { margin-bottom: .35em; }
.pane p:last-child { margin-bottom: 0; }
.pane__num { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-deep); display: block; margin-bottom: .3em; }

.spec { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); }
.spec caption {
  text-align: left; font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  padding: 0 0 .6em; color: var(--ink-3);
}
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: .97rem; vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 38%; font-family: var(--sans); font-weight: 700; background: #fbf9f5; }

.gist {
  background: var(--ink); color: #f2e9dd; padding: 30px 28px; border-left: 5px solid var(--red);
}
.gist h2 { color: #fff; font-size: 1.35rem; }
.gist p:last-child { margin-bottom: 0; }
.gist b { color: #ffd9ac; }

.recap { background: var(--card); border: 1px solid var(--rule-2); padding: 26px 26px 20px; }
.recap ul { list-style: none; padding: 0; margin: 0; }
.recap li { padding-left: 26px; position: relative; margin-bottom: .7em; }
.recap li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 12px; height: 2px; background: var(--red);
}

.qa { max-width: 74ch; }
.qa h3 { font-size: 1.22rem; margin-top: 1.6em; }
.qa h3:first-of-type { margin-top: 0; }
.qa p { margin-bottom: .9em; }

.cite { font-size: .72em; vertical-align: super; line-height: 0; }
.cite a { text-decoration: none; font-weight: 700; }

.sources { padding: 46px 0 56px; }
.sources__list { font-size: .9rem; color: var(--ink-3); columns: 2; column-gap: 40px; }
.sources__list li { margin-bottom: .65em; break-inside: avoid; }

/* guarantee band */
.pledge {
  background: linear-gradient(150deg, #a51a12, #6d0f0a); color: #fbe3df;
  padding: 52px 0; text-align: center;
}
.pledge__num { font-family: var(--serif); font-size: clamp(3.6rem, 11vw, 6.4rem); line-height: .9; color: #fff; margin: 0; }
.pledge__lab { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #ffc9a8; margin: .3em 0 1.2em; }
.pledge p { max-width: 64ch; margin-inline: auto; }
.pledge a { color: #ffd9ac; }

.band { background: var(--ink); color: #ece2d6; padding: 46px 0; }
.band__in { display: grid; gap: 26px; align-items: center; }
.band h2 { color: #fff; margin-bottom: .3em; }
.band p { margin: 0; color: #cbbfaf; }
.band .btn { max-width: 320px; }

/* reviews */
.score { display: grid; gap: 30px; align-items: center; }
.score__big { font-family: var(--serif); font-size: 4.6rem; line-height: 1; margin: 0; }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 54px 1fr 46px; gap: 12px; align-items: center; font-size: .9rem; }
.bars__track { background: var(--panel); height: 12px; border: 1px solid var(--rule); }
.bars__fill { background: var(--red); height: 100%; display: block; }
.stat { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; padding: 0; margin: 0; }
.stat li { border-top: 3px solid var(--red); padding-top: 12px; }
.stat b { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; }
.stat span { font-size: .86rem; color: var(--ink-3); }
.wall { display: grid; gap: 22px; grid-template-columns: 1fr; }
.rev { background: var(--card); border: 1px solid var(--rule); padding: 20px 20px 16px; }
.rev__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: .5em; }
.rev__who { font-weight: 700; }
.rev__where { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 400; }
.rev__stars { color: var(--gold); font-size: .95rem; white-space: nowrap; }
.rev p { font-size: .96rem; margin-bottom: .6em; }
.rev__badge { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }

/* supplement facts label */
.facts {
  background: #fffdf7; border: 3px solid var(--ink); max-width: 480px; padding: 14px 16px 16px;
  font-family: var(--sans);
}
.facts__title { font-family: var(--serif); font-size: 1.9rem; margin: 0 0 .1em; letter-spacing: -.02em; }
.facts hr { border: 0; border-top: 9px solid var(--ink); margin: 6px 0; }
.facts hr.thin { border-top: 1px solid var(--ink); }
.facts table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.facts th, .facts td { padding: 5px 0; border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; }
.facts td.amt, .facts th.amt { text-align: right; white-space: nowrap; }
.facts .hdr th { font-size: .78rem; font-weight: 700; border-bottom: 1px solid var(--ink); }
.facts__serv { font-size: .9rem; margin: 0; }
.facts__note { font-size: .78rem; color: var(--ink-2); margin: 8px 0 0; line-height: 1.45; }

/* faq */
.faq__group { margin-bottom: 42px; }
.faq details {
  background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--rule-2);
  margin-bottom: 10px; padding: 0;
}
.faq details[open] { border-left-color: var(--red); }
.faq summary {
  cursor: pointer; padding: 15px 44px 15px 18px; font-weight: 700; font-size: 1.02rem;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.5rem; color: var(--red); line-height: 1;
}
.faq details[open] summary::after { content: "-"; }
.faq__a { padding: 0 18px 16px; font-size: .97rem; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }

/* misc content */
.crumb { font-size: .84rem; color: var(--ink-3); padding: 16px 0 0; }
.crumb a { color: var(--ink-3); }
.pagehead { padding: 40px 0 12px; }
.byline { font-size: .88rem; color: var(--ink-3); border-left: 3px solid var(--gold); padding-left: 14px; margin-bottom: 26px; }
.updated { font-size: .84rem; color: var(--ink-3); letter-spacing: .04em; }
.gloss dt { font-weight: 700; margin-top: 1em; font-family: var(--serif); font-size: 1.06rem; }
.gloss dd { margin: .2em 0 0; color: var(--ink-2); font-size: .96rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal { max-width: 76ch; }
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding-left: 56px; position: relative; margin-bottom: 1.2em; }
.steps li::before {
  content: "0" counter(s); position: absolute; left: 0; top: -2px;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--red);
}
.form { display: grid; gap: 14px; max-width: 480px; background: var(--card); border: 1px solid var(--rule); padding: 22px; }
.form label { font-size: .88rem; font-weight: 700; display: block; margin-bottom: .3em; }
.form input, .form textarea {
  width: 100%; font-family: var(--sans); font-size: .97rem; padding: 10px 12px;
  border: 1px solid var(--rule-2); background: var(--paper); border-radius: var(--r); color: var(--ink);
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #b9ad9d; padding: 54px 0 104px; font-size: .92rem; }
.foot__top { display: grid; gap: 38px; grid-template-columns: 1fr; padding-bottom: 30px; border-bottom: 1px solid #322b23; }
.foot__logo { font-family: var(--serif); font-size: 1.5rem; color: #f4ece1; display: block; margin-bottom: .5em; }
.foot__brand p { max-width: 52ch; }
.foot__firm { color: #8f8577; font-size: .87rem; line-height: 1.7; }
.foot a { color: #e0d5c6; }
.foot a:hover { color: #fff; }
.foot__cols { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.foot__cols h2 { font-family: var(--sans); font-size: .74rem; letter-spacing: .17em; text-transform: uppercase; color: #f4ece1; margin-bottom: 1em; }
.foot__cols ul { list-style: none; padding: 0; margin: 0; }
.foot__cols li { margin-bottom: .55em; }
.foot__pay { font-size: .84rem; color: #8f8577; padding-top: 22px; margin-bottom: 22px; }
.foot__legal { border-top: 1px solid #322b23; padding-top: 22px; font-size: .84rem; line-height: 1.65; color: #938878; }
.foot__legal strong { color: #cdbfae; }
.foot__meta { color: #6f6558; }

/* ---------- dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink); border-top: 3px solid var(--red); padding: 10px 0;
  transform: translateY(105%); transition: transform .24s ease;
}
.dock.on { transform: translateY(0); }
.dock__in { display: flex; align-items: center; gap: 16px; }
.dock__name { color: #f4ece1; font-family: var(--serif); font-size: 1.05rem; }
.dock__pack { color: #b9ad9d; font-family: var(--sans); font-size: .86rem; display: block; }
.dock__price { color: #cdbfae; font-size: .92rem; margin-left: auto; }
.dock__price b { font-family: var(--serif); font-size: 1.3rem; color: #fff; }

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
  .wall { grid-template-columns: repeat(2, 1fr); }
  .band__in { grid-template-columns: 1fr auto; }
  .score { grid-template-columns: 220px 1fr; }
}
@media (min-width: 1000px) {
  body { font-size: 17.5px; }
  .cover { padding: 52px 0 34px; }
  /* the paper strip the purchase card floats onto; the band ends 44px above the section box */
  .cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 79px; background: var(--paper); z-index: 1; }
  .cover__in { grid-template-columns: 1.02fr .98fr; gap: 52px; }
  .cover__shot { max-width: 400px; margin: 10px 0 0; }
  /* card bottom lands just under the bottle bases, both crossing onto the paper */
  .cover__buy { align-self: end; margin-bottom: -26px; }
  .marks { margin-top: 50px; }
  .split { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 999px) {
  .burger {
    display: block; margin-left: auto; width: 44px; height: 44px; background: none;
    border: 1px solid var(--rule-2); border-radius: var(--r); cursor: pointer; padding: 11px 10px;
  }
  .burger span { display: block; height: 2px; background: var(--ink); margin: 0 0 5px; }
  .burger span:last-child { margin-bottom: 0; }
  .masthead__cta { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--rule); box-shadow: 0 14px 26px rgba(20, 17, 14, .12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .2s ease, transform .2s ease, visibility 0s; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav__list li:last-child a { border-bottom: 0; }
  .sources__list { columns: 1; }
}
@media (max-width: 560px) {
  .till { padding: 24px 18px 22px; box-shadow: 8px 8px 0 rgba(109, 15, 10, .12); }
  .cover__buy { margin-bottom: -80px; }
  .marks { margin-top: 108px; }
  .row { grid-template-columns: 30px 1fr; row-gap: 4px; padding-left: 8px; }
  .row__price { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .row__price b { font-size: 1.3rem; }
  .dock__price { display: none; }
  .dock__in { gap: 10px; }
  .stat { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
