/* ==========================================================================
   BLOODLINE — shared stylesheet
   Design system derived from supplement label panels:
   thick/thin rule pairs, condensed label chrome, dose-style numerals.
   ========================================================================== */

:root {
  --ink:      #17110F;
  --paper:    #F3F2EF;
  --card:     #FFFFFF;
  --blood:    #8A1A1E;
  --foil:     #C9A227;
  --muted:    #6B6660;
  --hairline: #D8D4CD;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --label:   "Archivo Narrow", "Arial Narrow", Arial, sans-serif;

  --gutter: 1.5rem;
  --maxw:   1280px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  font-synthesis-weight: none;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blood);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Label rule system ---------------------------------------------------
   A Supplement Facts panel separates its bands with a heavy rule followed by
   a hairline. Every major section boundary on this site uses that pair.      */

.band { padding: 4.5rem 0; }

.band--ruled { border-top: 7px solid var(--ink); }
.band--ruled::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--ink);
  margin-top: 4px;
  margin-bottom: 4rem;
}

/* --- Section headings ----------------------------------------------------- */

.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.band-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.band-head p {
  font-family: var(--label);
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
}

/* --- Counter: the "servings per container" numeral ------------------------ */

.count {
  font-family: var(--label);
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.2rem;
}
.count b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.ticker {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--label);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}
.ticker .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.ticker a { color: var(--foil); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ==========================================================================
   Header
   ========================================================================== */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 40;
}

.masthead .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.wordmark {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.wordmark .drop { color: var(--blood); }

.mainnav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.mainnav a {
  font-family: var(--label);
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover,
.mainnav a[aria-current="page"] { border-bottom-color: var(--blood); }

.utility {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--label);
  font-size: 0.95rem;
}
.utility a, .utility button {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: 0.35rem 0;
}
.cart-pill {
  border: 1.5px solid var(--ink) !important;
  border-radius: 999px;
  padding: 0.3rem 0.85rem !important;
}
.cart-pill span { font-weight: 700; }

.navtoggle { display: none; }

/* ==========================================================================
   Hero — built as a label panel
   ========================================================================== */

.hero {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 7px solid var(--blood);
}

.hero .wrap {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4rem;
  align-items: end;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 7.25rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  text-transform: none;
}

.hero .kicker {
  font-family: var(--label);
  font-size: 1rem;
  color: var(--foil);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(243, 242, 239, 0.28);
  max-width: 46ch;
}

.hero .lede {
  font-family: var(--label);
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 48ch;
  margin: 0 0 2rem;
  color: rgba(243, 242, 239, 0.86);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Panel of facts, set like the right column of a Supplement Facts box */
.facts {
  border-top: 7px solid var(--paper);
  padding-top: 0.75rem;
}
.facts dl { margin: 0; }
.facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(243, 242, 239, 0.22);
}
.facts dt {
  font-family: var(--label);
  font-size: 1rem;
  color: rgba(243, 242, 239, 0.8);
}
.facts dd {
  margin: 0;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.15rem;
  text-align: right;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--label);
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border: 2px solid currentColor;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.12s linear, color 0.12s linear;
}
.btn--fill {
  background: var(--blood);
  border-color: var(--blood);
  color: #fff;
}
.btn--fill:hover { background: #6E1317; border-color: #6E1317; }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--block { display: block; width: 100%; text-align: center; }

/* ==========================================================================
   Category doors
   ========================================================================== */

.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.door {
  background: var(--paper);
  padding: 1.75rem 1.5rem 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 150px;
  transition: background-color 0.12s linear;
}
.door:hover { background: var(--card); }

.door .n {
  font-family: var(--label);
  font-size: 0.9rem;
  color: var(--blood);
}
.door h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.015em;
}
.door p {
  margin: 0;
  font-family: var(--label);
  font-size: 0.98rem;
  color: var(--muted);
}

/* ==========================================================================
   Product grid
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tile {
  background: var(--card);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tile__flag {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--foil);
  color: var(--ink);
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  z-index: 2;
}

.tile__art {
  display: block;
  border-bottom: 1px solid var(--hairline);
  background: #FAF9F7;
}
.tile__art img,
.tile__art svg {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
}

.tile__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.tile__brand {
  font-family: var(--label);
  font-size: 0.86rem;
  color: var(--muted);
}

.tile__name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.tile__name a { text-decoration: none; }
.tile__name a:hover { text-decoration: underline; text-underline-offset: 3px; }

.tile__meta {
  font-family: var(--label);
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.65rem;
}
.price b {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blood);
}
.price s {
  font-family: var(--label);
  font-size: 0.95rem;
  color: var(--muted);
}

.tile .btn { margin-top: 0.85rem; font-size: 0.98rem; padding: 0.6rem 1rem; }

/* ==========================================================================
   Position band — three stated commitments
   ========================================================================== */

.position {
  background: var(--ink);
  color: var(--paper);
}
.position .band-head h2 { color: var(--paper); }
.position .band-head p { color: rgba(243, 242, 239, 0.7); }

.stance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.stance > div { border-top: 7px solid var(--foil); padding-top: 1rem; }
.stance h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 112%;
}
.stance p {
  margin: 0;
  font-family: var(--label);
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(243, 242, 239, 0.82);
}

/* ==========================================================================
   Apparel strip
   ========================================================================== */

.apparel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.apparel-art {
  background: var(--ink);
  display: block;
  overflow: hidden;
}
.apparel-art img,
.apparel-art svg {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}
.apparel h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0 0 1rem;
}
.apparel p {
  font-family: var(--label);
  font-size: 1.1rem;
  max-width: 44ch;
  margin: 0 0 1.75rem;
  color: var(--muted);
}

/* ==========================================================================
   Store / visit band
   ========================================================================== */

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--label);
  font-size: 1.02rem;
}
.hours th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
}
.hours td {
  text-align: right;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--display);
  font-weight: 700;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.address {
  font-family: var(--label);
  font-size: 1.15rem;
  font-style: normal;
  line-height: 1.6;
}
.address a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ==========================================================================
   Signup
   ========================================================================== */

.signup {
  background: var(--blood);
  color: #fff;
  padding: 3.25rem 0;
}
.signup .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.signup h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.signup p {
  margin: 0;
  font-family: var(--label);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
}
.signup-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.signup-form input {
  flex: 1 1 15rem;
  font-family: var(--label);
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}
.signup-form input::placeholder { color: rgba(255, 255, 255, 0.65); }
.signup-form .btn { background: #fff; color: var(--blood); border-color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink);
  color: rgba(243, 242, 239, 0.78);
  padding: 3.5rem 0 2rem;
  font-family: var(--label);
  font-size: 1rem;
}
.footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(243, 242, 239, 0.2);
}
.footer h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--paper);
  margin: 0 0 0.9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer .wordmark { color: var(--paper); font-size: 1.3rem; margin-bottom: 0.75rem; }

.colophon {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(243, 242, 239, 0.6);
}
.pay { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pay span {
  border: 1px solid rgba(243, 242, 239, 0.35);
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
}

.disclaimer {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(243, 242, 239, 0.55);
  max-width: 90ch;
}

/* ==========================================================================
   Collection page
   ========================================================================== */

.crumbs {
  font-family: var(--label);
  font-size: 0.95rem;
  color: var(--muted);
  padding: 1.25rem 0;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.collection-head {
  border-top: 7px solid var(--ink);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}
.collection-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 0.75rem;
}
.collection-head p {
  font-family: var(--label);
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.85rem 0;
  margin-bottom: 2.5rem;
  font-family: var(--label);
  font-size: 0.98rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font: inherit;
  background: none;
  border: 1.5px solid var(--hairline);
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  border-radius: 999px;
}
.chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* ==========================================================================
   Product page
   ========================================================================== */

.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
}
.pdp-art {
  background: var(--card);
  border: 1px solid var(--ink);
  display: block;
  position: sticky;
  top: 100px;
}
.pdp-art img,
.pdp-art svg {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
}
.pdp h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0.5rem 0 1rem;
}
.pdp .brandline {
  font-family: var(--label);
  font-size: 1.05rem;
  color: var(--blood);
}
.pdp .price { font-size: 1.4rem; padding-top: 0; margin-bottom: 1.5rem; }
.pdp .price b { font-size: 2rem; }

.pdp .summary {
  font-family: var(--label);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}

.option { margin-bottom: 1.75rem; }
.option h2 {
  font-family: var(--label);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch {
  font-family: var(--label);
  font-size: 1rem;
  background: none;
  border: 1.5px solid var(--hairline);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}
.swatch[aria-pressed="true"] { border-color: var(--ink); border-width: 2px; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  margin-right: 0.75rem;
}
.qty button {
  font: inherit;
  font-size: 1.2rem;
  background: none;
  border: 0;
  width: 2.75rem;
  height: 3.1rem;
  cursor: pointer;
}
.qty output {
  width: 2.5rem;
  text-align: center;
  font-weight: 800;
}

.buybar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; margin-bottom: 2rem; }
.buybar .btn { flex: 1 1 14rem; }

/* Supplement Facts panel — the real thing, ruled to spec */
.panel {
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 0.85rem 1rem 1rem;
  font-family: var(--label);
  max-width: 30rem;
}
.panel h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.panel .serving {
  font-size: 0.95rem;
  border-bottom: 7px solid var(--ink);
  padding-bottom: 0.45rem;
}
.panel table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.panel th {
  text-align: left;
  font-weight: 400;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ink);
}
.panel td {
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ink);
}
.panel tr:last-child th, .panel tr:last-child td { border-bottom: 3px solid var(--ink); }
.panel .note { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0; }

.accordion { border-top: 1px solid var(--ink); margin-top: 2rem; }
.accordion details { border-bottom: 1px solid var(--hairline); }
.accordion summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; }
.accordion details[open] summary::after { content: "\2013"; }
.accordion .inner {
  font-family: var(--label);
  font-size: 1.05rem;
  line-height: 1.6;
  padding-bottom: 1.25rem;
  max-width: 62ch;
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 3rem; }
  .doors { grid-template-columns: repeat(2, 1fr); }
  .stance { grid-template-columns: 1fr; gap: 2rem; }
  .apparel, .visit, .signup .wrap, .pdp { grid-template-columns: 1fr; gap: 2.5rem; }
  .pdp-art { position: static; }
  .mainnav { display: none; }
  .mainnav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 1rem var(--gutter) 1.5rem;
  }
  .mainnav.open ul { flex-direction: column; gap: 0; }
  .mainnav.open li { border-bottom: 1px solid var(--hairline); }
  .mainnav.open a { display: block; padding: 0.85rem 0; font-size: 1.15rem; }
  .navtoggle {
    display: inline-block;
    font-family: var(--label);
    font-size: 1rem;
    background: none;
    border: 1.5px solid var(--ink);
    padding: 0.4rem 0.85rem;
    cursor: pointer;
  }
  .masthead .wrap { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 640px) {
  :root { --gutter: 1.1rem; }
  .band { padding: 3rem 0; }
  .band--ruled::before { margin-bottom: 2.5rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .doors { grid-template-columns: 1fr; }
  .tile__body { padding: 0.85rem 0.85rem 1rem; }
  .tile__name { font-size: 1rem; }
  .footer .cols { grid-template-columns: 1fr; gap: 2rem; }
  .ticker .wrap { justify-content: flex-start; }
  .hero .wrap { padding-top: 3rem; padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Logo mark ------------------------------------------------------------
   The logo carries its own chrome and red on a transparent field, so it needs
   no backing plate on either the paper header or the ink footer.             */

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 46px;
  width: auto;
  display: block;
}
.brand--footer img {
  height: 62px;
  margin-bottom: 0.9rem;
}

@media (max-width: 640px) {
  .brand img { height: 36px; }
  .brand--footer img { height: 50px; }
}
