/* ============================================================
   PEPPY LITTLE SECRET — shared stylesheet
   Palette: ivory / oatmeal / taupe / espresso / charcoal / olive
   ============================================================ */

:root {
  --ivory: #F6F2EA;
  --oatmeal: #EDE6D8;
  --sand: #E3D9C6;
  --taupe: #B5A695;
  --stone: #8C7F6E;
  --espresso: #3A2B21;
  --charcoal: #2B2622;
  --olive: #6E7457;
  --olive-dim: #8A8F72;
  --line: rgba(58, 43, 33, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--espresso);
  margin: 0;
  letter-spacing: -0.01em;
}

.display-1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  font-weight: 450;
}

.display-2 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.08;
}

h3 { font-size: 1.5rem; line-height: 1.2; }

p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.18rem; color: var(--charcoal); max-width: 46ch; }

.label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
}

.script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--olive);
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Header (single header + single dropdown, all screen sizes) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-mark {
  font-family: var(--serif);
  line-height: 1.05;
}
.brand-mark .name {
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand-mark .sub {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-top: 2px;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav.primary-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}
nav.primary-nav a.current { color: var(--espresso); }
nav.primary-nav a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--olive);
}
nav.primary-nav a:hover { color: var(--olive); }

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 24px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--espresso);
  margin: 5px 0;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
}
.mobile-nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav.open { display: flex; }

.mobile-nav a.mobile-cta {
  font-weight: 700;
  color: var(--espresso);
  background: var(--oatmeal);
  border: 1px solid var(--espresso);
  border-radius: 2px;
  padding: 13px 16px;
  margin-top: 10px;
  text-align: center;
}
.mobile-nav a.mobile-cta:hover {
  background: var(--espresso);
  color: var(--ivory);
}

@media (max-width: 880px) {
  nav.primary-nav { display: none; }
  .site-header .wrap { height: 68px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 64px;
}
.hero .label { margin-bottom: 22px; display: block; }
.hero h1 { margin-bottom: 26px; }
.hero .lede { margin-bottom: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 15px 28px;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--espresso);
  color: var(--ivory);
  border: 1px solid var(--espresso);
}
.btn-primary:hover { background: var(--charcoal); }
.btn-outline {
  border: 1px solid var(--stone);
  color: var(--espresso);
}
.btn-outline:hover { border-color: var(--espresso); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.texture-panel {
  border-radius: 3px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(135deg, var(--sand), var(--taupe) 70%);
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.texture-panel::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(58,43,33,0.55);
  background: rgba(246,242,234,0.7);
  padding: 5px 9px;
  border-radius: 2px;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust-strip ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: space-between;
}
.trust-strip li {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--stone);
  font-weight: 600;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-header h2 { max-width: 30ch; }
.section-alt { background: var(--oatmeal); }

/* ---------- Cards grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.card .swatch {
  height: 180px;
  border-radius: 3px;
  margin-bottom: 18px;
  background: linear-gradient(150deg, var(--oatmeal), var(--taupe));
}
.card h3 { margin-bottom: 8px; font-size: 1.22rem; }
.card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.card p { font-size: 0.95rem; color: var(--charcoal); margin-bottom: 14px; }
.card .card-link { font-size: 0.86rem; font-weight: 600; border-bottom: 1px solid var(--espresso); padding-bottom: 2px; }
.card .card-link:hover { color: var(--olive); border-color: var(--olive); }

/* ---------- Journal cards ---------- */

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 28px;
}
@media (max-width: 700px) { .journal-grid { grid-template-columns: 1fr; } }

.journal-card { border-top: 1px solid var(--line); padding-top: 22px; }
.journal-card .swatch { height: 200px; border-radius: 3px; margin-bottom: 18px; background: linear-gradient(160deg, var(--sand), var(--oatmeal)); }
.journal-card h3 { margin-bottom: 8px; }
.journal-card .dek { color: var(--charcoal); font-size: 0.98rem; margin-bottom: 10px; }
.journal-card .meta { font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--stone); }

/* ---------- Disclaimer callouts ---------- */

.disclaimer {
  background: var(--oatmeal);
  border-left: 3px solid var(--olive);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--charcoal);
  border-radius: 2px;
  margin: 28px 0;
}
.disclaimer strong { color: var(--espresso); }

.flag-note {
  background: #F2EBDD;
  border: 1px dashed var(--stone);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--charcoal);
  border-radius: 2px;
  margin: 24px 0;
}

/* ---------- Topic page ---------- */

.topic-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.topic-hero .label { margin-bottom: 16px; }
.topic-hero h1 { margin-bottom: 14px; }
.topic-hero .subtitle { color: var(--charcoal); font-size: 1.08rem; max-width: 56ch; }

.status-badges { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.badge {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--charcoal);
}
.badge.investigational { border-color: var(--olive); color: var(--olive); }
.badge.approved { border-color: var(--espresso); color: var(--espresso); }
.badge.unregulated { border-color: var(--stone); color: var(--stone); }

.topic-body { padding: 52px 0; }
.topic-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.topic-section:first-child { border-top: none; }
.topic-section .side { font-family: var(--serif); font-size: 1.05rem; color: var(--stone); }
.topic-section .content h4 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 10px;
}
@media (max-width: 760px) {
  .topic-section { grid-template-columns: 1fr; gap: 10px; }
}

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.92rem;
}
.evidence-table th, .evidence-table td {
  text-align: left;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.evidence-table th { font-weight: 600; color: var(--stone); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

.refs { font-size: 0.86rem; color: var(--charcoal); }
.refs li { margin-bottom: 8px; }

.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--espresso);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--stone); transition: transform 0.15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { margin-top: 12px; color: var(--charcoal); font-size: 0.96rem; }

.end-cta {
  text-align: left;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.end-cta .script { font-size: 1.6rem; display: block; margin-bottom: 18px; }

/* ---------- Library filter ---------- */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--espresso); background: var(--espresso); color: var(--ivory); }

.search-input {
  width: 100%;
  max-width: 340px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-family: var(--sans);
  font-size: 0.92rem;
  background: var(--oatmeal);
  margin-bottom: 28px;
}
.search-input:focus { outline: 2px solid var(--olive); outline-offset: 1px; }

.category-block { margin-bottom: 60px; }
.category-block h2 { font-size: 1.5rem; margin-bottom: 6px; }
.category-block .cat-desc { color: var(--stone); font-size: 0.92rem; margin-bottom: 26px; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--espresso);
  color: var(--oatmeal);
  padding: 56px 0 36px;
  margin-top: 40px;
}
footer.site-footer .foot-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
footer.site-footer .brand-mark .name { color: var(--ivory); }
footer.site-footer .brand-mark .sub { color: var(--taupe); }
footer.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer.site-footer nav a { font-size: 0.88rem; color: var(--oatmeal); }
footer.site-footer nav a:hover { color: var(--taupe); }
footer.site-footer .foot-legal {
  border-top: 1px solid rgba(246,242,234,0.15);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--taupe);
  line-height: 1.7;
}
footer.site-footer .foot-legal strong { color: var(--oatmeal); }
footer.site-footer .foot-bottom {
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--taupe);
  font-size: 0.95rem;
}

/* ---------- Contact page ---------- */

.contact-hero { padding: 90px 0; text-align: left; }
.contact-hero .script { display: block; font-size: 1.8rem; margin-bottom: 20px; }
.contact-hero h1 { margin-bottom: 20px; }
.contact-hero .lede { margin-bottom: 36px; }
.contact-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
@media (max-width: 640px) { .contact-methods { grid-template-columns: 1fr; } }
.contact-method { border-top: 1px solid var(--line); padding-top: 18px; }
.contact-method h4 { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.contact-method a.value { font-family: var(--serif); font-size: 1.3rem; color: var(--espresso); }
.contact-method a.value:hover { color: var(--olive); }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.placeholder-note {
  font-size: 0.78rem;
  color: var(--stone);
  font-style: italic;
  margin-top: 10px;
}

/* ============================================================
   MOBILE RESPONSIVE FIXES — additive only, desktop untouched
   ============================================================ */

@media (max-width: 880px) {
  .hero .wrap[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column;
    gap: 32px !important;
  }

  .texture-panel,
  .hero img {
    min-height: 220px !important;
    max-height: 280px;
    width: 100%;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .hero .display-1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .wrap { padding: 0 16px; }
  .brand-mark .name { font-size: 1.15rem; }
  .site-header .wrap { height: 60px; }
  .display-1 { font-size: clamp(1.8rem, 10vw, 2.4rem); }
  .lede { font-size: 1.05rem; }
  .section { padding: 56px 0; }
}

@media (max-width: 375px) {
  .wrap { padding: 0 14px; }
  .display-1 { font-size: 1.7rem; }
}

@media (max-width: 320px) {
  .wrap { padding: 0 12px; }
  .display-1 { font-size: 1.55rem; }
  .btn { padding: 13px 20px; font-size: 0.82rem; }
}

@media (max-width: 880px) {
  body { overflow-x: hidden; }
  img, .texture-panel { max-width: 100%; }
}
