/* Pure Pep Essentials — colors and fonts taken from the Squarespace site */
:root {
  --red: #840303;
  --black: #212020;
  --gray: #dedede;
  --silver: #bfbfbf;
  --white: #ffffff;
  --head: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1260px;
  --gutter: clamp(14px, 3vw, 36px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-weight: 500; font-size: 16px; line-height: 1.6; color: var(--black); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5.5vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
h4 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1.page-title-sm { font-size: clamp(28px, 3.4vw, 40px); }
.features h3, .card h3 { font-size: 22px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Header */
.site-header { background: var(--red); color: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { font-family: var(--body); font-weight: 700; font-size: 22px; letter-spacing: .02em; text-decoration: none; text-transform: uppercase; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--gray); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; background: none; border: 0; color: var(--white); font: 600 15px var(--body); text-transform: uppercase; cursor: pointer; padding: 8px 0; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--red); padding: 8px var(--gutter) 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; font-size: 18px; }
  .brand { font-size: 17px; }
}

/* Buttons */
.btn { display: inline-block; font: 600 14px var(--body); text-transform: uppercase; text-decoration: none; text-align: center; border-radius: 300px; padding: 14px 32px; border: 1px solid var(--black); background: var(--black); color: var(--white); cursor: pointer; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn-light { background: var(--silver); border-color: var(--silver); color: var(--black); }
.btn-outline { background: transparent; color: var(--black); }
.dark .btn-outline { color: var(--gray); border-color: var(--gray); }
.btn-sm { padding: 3px 26px; font-size: 13px; }

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
.dark { background: var(--black); color: var(--gray); }
.gray { background: var(--gray); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.red-text { color: var(--red); }

/* Hero */
.hero { position: relative; background: #0b0b0b url("images/hero.webp") center / cover no-repeat; color: var(--silver); min-height: min(620px, 80vh); display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%); }
.hero .wrap { position: relative; width: 100%; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 span { color: var(--red); display: block; }
.hero p { max-width: 460px; font-weight: 600; }
@media (max-width: 760px) { .hero { background-position: 83% center; } }

/* Feature strip */
.features { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr; column-gap: 32px; }
.features > div { min-width: 0; }
.features-divider { background: var(--black); }
.features p { font-size: 15px; }
@media (max-width: 860px) {
  .features { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .features-divider { display: none; }
  .features > div { padding: 0 28px; border-left: 1px solid var(--black); }
  .features > div:nth-of-type(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; gap: 0; }
  .features > div { border-left: 0; padding: 22px 0; border-top: 1px solid var(--black); }
  .features > div:first-child { border-top: 0; padding-top: 0; }
  .features > div:last-child { padding-bottom: 0; }
  .features p { max-width: none; }
  .features h3 br { display: none; }
}

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 12px; }
.product-media { aspect-ratio: 7 / 8; overflow: hidden; background: #e9e9e9; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.product h3 { font-family: var(--body); font-weight: 600; font-size: 14px; letter-spacing: 0; margin: 14px 0 10px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }

/* Clickable product cards: the name button covers the whole card; Order stays on top */
.product { position: relative; }
.product-open { all: unset; cursor: pointer; }
.product-open::after { content: ""; position: absolute; inset: 0; }
.product-open:focus-visible::after { outline: 2px solid var(--red); outline-offset: 4px; }
.product .product-media img { transition: transform .25s; }
.product:hover .product-media img { transform: scale(1.18); }
.product:hover .product-open { text-decoration: underline; text-underline-offset: 3px; }
.product > .btn { position: relative; z-index: 1; }

/* Product pop-up */
.product-dialog { padding: 0; border: 0; background: var(--white); color: var(--black); width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.product-dialog::backdrop { background: rgba(0,0,0,.82); }
.product-dialog-close { position: absolute; top: 8px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--black); color: var(--white); font: 400 26px/1 var(--body); cursor: pointer; }
.product-dialog-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.product-dialog .product-media { aspect-ratio: auto; position: relative; min-height: 420px; }
.product-dialog .product-media img { position: absolute; inset: 0; transform: none; }
.product-dialog-info { padding: 36px 32px 28px; }
.product-dialog-info h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 40px .4em 0; }
.product-ruo { font-style: italic; font-weight: 600; color: var(--red); margin: 0 0 1em; }
.product-dialog-info h3 { font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: 0; margin: 1.4em 0 .5em; }
.product-dialog-info ul { margin: 0; padding-left: 1.2em; }
.product-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.product-dialog-actions .btn-sm { padding: 8px 26px; }
.product-compliance { font-size: 12.5px; line-height: 1.5; color: #555; border-top: 1px solid var(--gray); padding-top: 14px; margin: 22px 0 0; }
@media (max-width: 720px) {
  .product-dialog-grid { grid-template-columns: 1fr; }
  .product-dialog .product-media { aspect-ratio: 4 / 3; min-height: 0; }
  .product-dialog .product-media img { position: static; object-fit: contain; transform: none; }
  .product-dialog-info { padding: 24px 20px 22px; }
}

/* Two image cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.card { display: grid; grid-template-columns: 170px 1fr; gap: 56px; align-items: center; }
.card img { width: 170px; height: 220px; object-fit: cover; }
.card-note { font-size: 13px; line-height: 1.5; color: #4a4a4a; border-left: 2px solid var(--red); padding-left: 12px; margin: 0 0 1.4em; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .card { grid-template-columns: 1fr; gap: 16px; } .card img { width: 100%; height: 240px; } }

/* Text pages */
.prose { max-width: 760px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
/* About page: image stretches to the height of the text beside it */
.split-fill { align-items: stretch; }
.split-fill img { height: 100%; object-fit: cover; object-position: center; }
.split-fill .prose { container-type: inline-size; align-self: center; }
.about-title { font-size: clamp(26px, 8cqi, 60px); }
.nowrap { white-space: nowrap; }
@media (max-width: 860px) { .split-fill img { height: auto; } }

/* Accordion (COAs / FAQ) */
details { border-bottom: 1px solid var(--black); }
details:first-of-type { border-top: 1px solid var(--black); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font: 600 20px var(--body); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 24px; max-width: 760px; }
details ul { margin: 0 0 1em; padding-left: 1.2em; }

/* COA buttons and viewer */
.coa-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 32px; }
.coa-list .btn { padding: 14px 20px; }
.coa-list .btn:hover { background: var(--black); color: var(--white); opacity: 1; }
.coa-viewer { padding: 0; border: 0; background: var(--white); width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.coa-viewer::backdrop { background: rgba(0,0,0,.82); }
.coa-viewer-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; background: var(--black); color: var(--white); }
.coa-viewer img { display: block; width: 100%; height: auto; }
.coa-viewer-label { margin: 0; padding: 10px 16px; background: #eee; font-weight: 600; font-size: 14px; }

/* Forms */
form.stack { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
input, textarea { font: 500 16px var(--body); padding: 12px 14px; border: 1px solid #8a8a8a; border-radius: 0; background: var(--white); color: var(--black); width: 100%; }
textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--black); color: var(--gray); padding: clamp(56px, 8vw, 96px) 0 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.site-footer h2 { color: var(--gray); }
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.subscribe input { flex: 1 1 220px; background: transparent; color: var(--white); border-color: var(--gray); }
.subscribe .btn { background: var(--gray); color: var(--black); border-color: var(--gray); }
.footer-brand { text-align: right; }
.footer-brand .big { font-family: var(--head); color: var(--red); font-size: clamp(36px, 5vw, 60px); line-height: 1; text-transform: uppercase; margin-bottom: 18px; }
.footer-brand a { font-family: var(--head); text-decoration: none; text-transform: uppercase; font-size: 18px; word-break: break-all; }
.fineprint { grid-column: 1 / -1; border-top: 1px solid #3a3a3a; padding-top: 20px; font-size: 13px; color: #9a9a9a; }
.subscribe-note { margin-top: 10px; font-size: 13px; color: #9a9a9a; }
.subscribe-note a, .footer-legal a { color: inherit; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: -32px; font-size: 13px; color: #9a9a9a; }
.legal h2 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal-updated { font-size: 14px; color: #666; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } .footer-brand { text-align: left; } }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.age-box { display: grid; grid-template-columns: 1fr 1fr; max-width: 860px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; background: #1b1b1b; color: #cfcfcf; }
.age-box .logo { background: #000 url("images/logo-badge.png") center / cover no-repeat; min-height: 420px; }
.age-box .form { padding: 36px 28px; text-align: center; }
.age-box h2 { color: var(--white); font-size: 30px; }
.age-box .dob { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; margin: 20px 0 14px; }
.age-box .dob input { background: transparent; border: 1px solid #b00000; color: var(--white); text-align: center; padding: 12px 6px; }
.age-box .btn { width: 100%; background: #8d0000; border-color: #8d0000; border-radius: 0; color: var(--white); font-weight: 700; }
.age-box .err { color: #ff6b6b; min-height: 1.4em; font-size: 14px; margin: 8px 0 0; }
.age-box small { display: block; margin-top: 18px; font-size: 12px; line-height: 1.6; }
@media (max-width: 680px) { .age-box { grid-template-columns: 1fr; } .age-box .logo { min-height: 180px; background-size: contain; } }
.coa-head { width: fit-content; max-width: 100%; }
.coa-intro { font-size: 15px; width: 0; min-width: 100%; margin: -0.25em 0 1.5em; opacity: .85; }
.coa-help { max-width: none; }
@media (min-width: 900px) { .coa-help { white-space: nowrap; } }
