/* ----------------------------------------------------------
   Annie's All Natural — shared site styles
   Used across /lab/annies-all-natural and its sub-pages.
---------------------------------------------------------- */

:root {
  --navy: #153c70;
  --mid: #4971a6;
  --soft: #a4b8d2;
  --paper: #f2e2ce;
  --paper-deep: #ebd7bb;
  --cream: #faf3e6;
  --white: #fffdfb;
  --yellow: #f2b705;
  --rule: rgba(21, 60, 112, 0.18);
  --rule-strong: rgba(21, 60, 112, 0.4);
  --ink-soft: rgba(21, 60, 112, 0.78);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--navy);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--navy); color: var(--paper); }

.serif { font-family: "Fraunces", Georgia, serif; font-weight: 400; }
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
}
.kicker {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--mid);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy); color: var(--paper);
  padding: 10px clamp(20px, 3vw, 56px);
  display: flex; justify-content: space-between; align-items: center;
  font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
}
.topbar a { color: var(--paper); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---------- container ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 56px); }
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 880px; }

/* ---------- site nav ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; padding-bottom: 4px;
}
.nav__logo { height: 44px; }
.nav__links { display: none; gap: 26px; align-items: center; }
.nav__links a {
  text-decoration: none;
  font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav__links a:hover { border-bottom-color: var(--navy); }
.nav__links a.is-current { border-bottom-color: var(--navy); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--paper);
  padding: 10px 16px; border-radius: 999px;
  text-decoration: none;
  font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.nav__cta:hover { background: #0f2c55; }
@media (min-width: 860px) { .nav__links { display: flex; } }

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--navy); color: var(--paper);
  padding: 14px 24px; border-radius: 999px;
  text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary:hover { transform: scale(1.02); background: #0f2c55; }
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  text-decoration: underline; text-underline-offset: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: inherit;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 13px 24px; border-radius: 999px;
  text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
}
.btn-ghost:hover { background: var(--navy); color: var(--paper); }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  overflow: hidden;
}
.marquee__track {
  display: flex; gap: 48px;
  padding: 22px 0;
  width: max-content;
  animation: scroll 32s linear infinite;
  font-family: ui-monospace, monospace;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); display: inline-block; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
.section { padding: 100px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--navy); color: var(--paper); }
.section--dark .kicker { color: var(--soft); }
.section--soft { background: var(--soft); }
.section--cream { background: var(--cream); }
.section--paper-deep { background: var(--paper-deep); }

.section h2,
.h2 {
  font-family: "Fraunces", Georgia, serif;
  margin-top: 16px;
  font-size: clamp(38px, 5vw, 64px); line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.section h2 em, .h2 em { font-style: italic; color: var(--mid); }
.section--dark h2 em { color: var(--yellow); }

/* ---------- pill switch (the toggle UI) ---------- */
.pill-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 28px 0;
  padding: 6px;
  background: rgba(21, 60, 112, 0.08);
  border-radius: 999px;
  align-self: flex-start;
  max-width: 100%;
}
.section--dark .pill-bar { background: rgba(255, 253, 251, 0.1); }
.pill {
  border: 0; background: transparent;
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.section--dark .pill { color: var(--paper); }
.pill:hover { background: rgba(21, 60, 112, 0.12); }
.section--dark .pill:hover { background: rgba(255, 253, 251, 0.12); }
.pill.is-active { background: var(--navy); color: var(--paper); }
.section--dark .pill.is-active { background: var(--paper); color: var(--navy); }

.pill-label {
  display: inline-flex; align-items: center;
  padding: 10px 6px 10px 14px;
  font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--mid);
}
.section--dark .pill-label { color: var(--soft); }

.variants { position: relative; }
.variant { display: none; }
.variant.is-active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- footer ---------- */
.footer { border-top: 2px solid var(--navy); padding: 40px 0; background: var(--paper); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__logo { width: 72px; }
.footer__credit { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid); }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

/* ---------- small reusable bits ---------- */
.lede { max-width: 520px; font-size: 18px; line-height: 1.6; }
.lede--lg { font-size: 22px; }
.note-row {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mid);
}
