/* Just Peptides — shared styles.
   Light, calm, generous whitespace. Modelled on talktofrank.com.
   Palette is deliberately not the rsbiolabs.com palette — this site is
   editorial/information, not a storefront. */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f6f4ee;     /* warm off-white, page sections */
  --bg-tint:      #eef6f3;     /* faint teal tint for callouts */
  --ink:          #1a2a2f;     /* near-black with a touch of teal */
  --ink-soft:     #4a5a60;
  --muted:        #6b7a80;
  --line:         #e2ddd3;
  --line-soft:    #ece8de;
  --accent:       #1d7a6c;     /* calm teal */
  --accent-dark:  #155a50;
  --accent-soft:  #d6ebe6;
  --warn:         #b9531f;
  --warn-soft:    #faecde;
  --good:         #2d6a4f;
  --bad:          #a02828;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 2px rgba(20,30,35,.04), 0 2px 6px rgba(20,30,35,.04);
  --shadow-md:    0 4px 12px rgba(20,30,35,.08);
  --maxw:         1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.15;
}
h1 {
  font-weight: 700;
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -.025em;
  margin: 0 0 20px;
}
h2 {
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.015em;
  margin: 0 0 22px;
  padding-bottom: 14px;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
}
h3 {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.005em;
  color: var(--accent-dark);
  margin: 0 0 10px;
}
h4 {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
  margin: 0 0 8px;
}

/* Hero H1 — bigger and more dramatic */
.hero h1 {
  font-size: clamp(44px, 6vw, 68px);
  letter-spacing: -.03em;
}

/* Callouts: tone down — no underline bar, calmer colours */
.callout h2, .callout h3 { padding-bottom: 0; }
.callout h2::after, .callout h3::after { display: none; }
.callout h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.callout.warn h3 { color: var(--warn); }

/* Peptide body H2s — already separated by a top border, suppress the underline bar */
.peptide-body h2 { padding-bottom: 0; }
.peptide-body h2::after { display: none; }

/* Footer H4 — small, no underline */
.footer-grid h4 { color: var(--ink); }
.footer-grid h4::after { display: none; }

p { margin: 0 0 14px; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex; align-items: baseline; gap: 8px;
  font-family: 'Lora', Georgia, serif;
  font-size: 26px; font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand .dot { color: var(--accent); }
.brand-tag {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
  margin-left: 10px;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 15px; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 9px 16px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-burger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--ink);
}
.nav-burger svg { width: 24px; height: 24px; display: block; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .site-nav.open .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav.open .nav-links a:last-child { border-bottom: 0; }
  .brand-tag { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 760px; }
.hero p.lede {
  font-size: 20px; line-height: 1.55; color: var(--ink-soft);
  max-width: 680px; margin: 0 0 24px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 22px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-dark); color: #fff !important; }
.btn-secondary {
  background: #fff; color: var(--accent) !important;
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--ink-soft) !important; border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 0 36px; }
.section-head .eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}

/* ---------- Peptide A-Z grid ---------- */
.az-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.az-card {
  display: block; background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.az-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.az-card .name { font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.az-card .tagline { font-size: 13px; color: var(--muted); line-height: 1.4; }
.az-card .pill {
  display: inline-block; margin-top: 8px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg-tint); color: var(--accent-dark);
  padding: 2px 8px; border-radius: 999px; font-weight: 600;
}

/* A-Z anchor strip */
.az-anchors {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 28px;
}
.az-anchors a {
  display: inline-block; min-width: 32px; text-align: center;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px;
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 14px;
}
.az-anchors a:hover { border-color: var(--accent); color: var(--accent); }
.az-anchors a.disabled { color: var(--line); border-color: var(--line-soft); pointer-events: none; }

.az-letter-head {
  font-family: 'Lora', serif; font-size: 32px; color: var(--accent);
  margin: 28px 0 12px;
  border-bottom: 2px solid var(--accent-soft); padding-bottom: 6px;
}

/* ---------- Sellers table ---------- */
.sellers-wrap { background: #fff; }
.sellers {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.sellers th, .sellers td {
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.sellers th {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; background: var(--bg-soft);
}
.sellers tr:last-child td { border-bottom: 0; }
.sellers .rank { width: 50px; font-weight: 700; color: var(--muted); font-size: 18px; }
.sellers .seller-name { font-weight: 600; font-size: 17px; }
.sellers .seller-blurb { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.sellers .empty { color: var(--muted); font-style: italic; }
.sellers .visit { white-space: nowrap; }
.sellers-note {
  font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.55;
}

/* ---------- Callouts ---------- */
.callout {
  background: var(--bg-tint);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 4px;
  margin: 18px 0;
}
.callout.warn {
  background: var(--warn-soft);
  border-left-color: var(--warn);
}
.callout.warn h3, .callout.warn strong { color: var(--warn); }
.callout h3 { font-size: 17px; margin-bottom: 6px; }
.callout p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Ad slots ---------- */
/* Wrapper for AdSense <ins> banner units. Provides vertical spacing and
   centres the unit; the <ins> itself controls its own dimensions. */
.ad-slot { margin: 36px 0; text-align: center; }
.ad-slot ins.adsbygoogle { display: block; }
.ad-slot-banner { /* full-width banner; nothing extra needed today */ }

/* ---------- Peptide page ---------- */
.peptide-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 36px;
}
.peptide-eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 6px;
}
.peptide-aka {
  font-size: 14px; color: var(--muted); margin-top: -8px; margin-bottom: 14px;
}
.peptide-lede { font-size: 19px; color: var(--ink-soft); max-width: 720px; }

.peptide-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.peptide-tags .tag {
  font-size: 12px; letter-spacing: .04em; padding: 4px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft);
}

.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0 4px;
}
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px;
}
.fact .k {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 4px;
}
.fact .v { font-size: 15px; color: var(--ink); font-weight: 500; }

.peptide-body { padding: 40px 0 64px; }
.peptide-body h2 {
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.peptide-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.peptide-body ul, .peptide-body ol {
  padding-left: 22px; margin: 0 0 14px;
}
.peptide-body li { margin-bottom: 6px; }

/* TOC / sticky side rail */
@media (min-width: 980px) {
  .peptide-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
  }
  .toc {
    position: sticky; top: 80px;
    border-left: 2px solid var(--line);
    padding: 4px 0 4px 16px;
    font-size: 14px;
  }
  .toc a {
    display: block; padding: 4px 0;
    color: var(--ink-soft); text-decoration: none;
  }
  .toc a:hover, .toc a.active { color: var(--accent); }
}
.toc-mobile { display: block; }
@media (min-width: 980px) { .toc-mobile { display: none; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  font-size: 14px; color: var(--muted);
  line-height: 1.6;
}
.site-footer a { color: var(--ink-soft); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  margin-bottom: 24px;
}
.footer-grid h4 {
  font-family: 'Source Sans 3', sans-serif; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 10px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bot {
  border-top: 1px solid var(--line); padding-top: 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
