/* VitSync content-page styles. Shared across privacy-policy, terms,
   accessibility, and supplements. Matches the main Next.js site's
   tokens so content pages feel like the same brand.
   --------------------------------------------------------------- */
:root {
  --cream:       #F3EFE3;
  --cream-soft:  #F8F5EC;
  --cream-deep:  #EAE4D1;
  --ink:         #1A1A18;
  --ink-soft:    #3A3A36;
  --muted:       #6B6B62;
  --faint:       #A09A8C;
  --accent:      #5F6640;
  --accent-soft: #D8DAB4;
  --line:        rgba(26, 26, 24, 0.10);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle organic background — mirrors the homepage's warm gradient so
   legal/content pages feel part of the same brand surface. Fixed on the
   viewport, very low intensity so long-form body text stays legible. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60vw 60vw at 10% 0%, rgba(200, 206, 150, 0.22), transparent 60%),
    radial-gradient(ellipse 70vw 50vw at 100% 30%, rgba(216, 214, 180, 0.28), transparent 65%),
    radial-gradient(ellipse 80vw 50vw at 50% 110%, rgba(154, 160, 120, 0.14), transparent 65%);
}
body > * { position: relative; z-index: 1; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

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

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ========== Nav / header ========== */
header.nav {
  padding: 24px clamp(20px, 4vw, 56px);
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.nav a.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
header.nav a.logo img {
  /* Match the hero logo scale from the homepage — legal pages used a
     very small nav-logo which felt under-branded. */
  height: 34px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  header.nav a.logo img { height: 26px; }
}
header.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-left: 22px;
}
header.nav nav a:hover { color: var(--ink); }

/* ========== Main content area ========== */
main.page {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px) clamp(64px, 10vw, 120px);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw + 16px, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
h1 em { font-style: italic; color: var(--accent); font-weight: 400; }

.last-updated,
.lede {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 36px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 1vw + 18px, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 14px;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 8px;
}

p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 68ch;
}

ul, ol {
  color: var(--ink-soft);
  margin: 0 0 20px 22px;
  max-width: 66ch;
}
li { margin-bottom: 8px; }
li::marker { color: var(--accent); }

strong { color: var(--ink); font-weight: 600; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* Editorial emphasis — subtle olive pull-quote */
blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
}

/* ========== Ingredient cards (supplements page) ==========
   The existing supplements.html markup uses `.grid` + `.card` +
   `.dose` + `.amazon-btn` classes. Style them to match the main site's
   glass-soft-cream aesthetic. */

.highlight, .lead, .grid, .card, .amazon-btn, .dose { /* placeholder */ }

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 64ch;
  margin-bottom: 32px;
  line-height: 1.6;
}

.highlight {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0 36px;
}
.highlight p { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); max-width: none; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(26,26,24,0.12);
}
.card h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.card .dose {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 4px 0 12px;
  width: fit-content;
}
.card p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--ink-soft);
  flex: 1;
}
.card .amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  width: fit-content;
  margin-top: auto;
}
.card .amazon-btn:hover {
  background: var(--accent);
  color: var(--cream);
}

/* ========== Footer ========== */
footer.page-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 32px clamp(24px, 5vw, 56px);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
footer.page-footer img { height: 18px; width: auto; }
footer.page-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer.page-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
footer.page-footer nav a:hover { color: var(--ink); }
footer.page-footer .disclosure {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.6;
  max-width: 80ch;
}

/* Some static pages put the Amazon Associates disclosure OUTSIDE the
   footer as a standalone div.footer-disclosure — style it to match the
   in-footer variant so it doesn't inherit body defaults (17px). */
.footer-disclosure {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px clamp(24px, 5vw, 56px) 40px;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.6;
  border-top: 1px solid var(--line);
}
.footer-disclosure strong { color: var(--muted); font-weight: 600; }

@media (max-width: 640px) {
  header.nav { padding: 20px 24px; }
  header.nav nav a { margin-left: 14px; font-size: 12px; }
  main.page { padding-top: 32px; }
}
