/* Usable Nutrition — editorial wellness styles */
:root {
  --cream: #F7F4EF;
  --charcoal: #1C1917;
  --sage: #3F6F65;
  --sage-dark: #2F554D;
  --clay: #C4A484;
  --clay-soft: #D4B896;
  --border: #E7E2DA;
  --muted: #57534E;
  --white: #FFFFFF;
  --focus: #3F6F65;
  --max: 1120px;
  --header-h: 4.25rem;
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--sage-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo:hover { color: var(--sage); }

.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.1rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--sage); }

.site-nav a[aria-current="page"] {
  color: var(--sage);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: var(--white);
}

.btn-clay {
  background: var(--clay);
  color: var(--charcoal);
  border-color: var(--clay);
}

.btn-clay:hover {
  background: var(--clay-soft);
  border-color: var(--clay-soft);
  color: var(--charcoal);
}

.btn-nav {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(63, 111, 101, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(196, 164, 132, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(247, 244, 239, 0.8), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: clamp(16rem, 36vw, 28rem);
  object-fit: cover;
  border-radius: calc(var(--radius) + 0.65rem);
  box-shadow: var(--shadow-md);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); margin: 0 0 0.85rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); margin: 0 0 0.65rem; }

.page-header {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-header p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 0.75rem 0 0;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.prose {
  max-width: 42rem;
}

.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }

.disclaimer {
  font-size: 0.875rem;
  color: var(--muted);
  border-left: 3px solid var(--clay);
  padding: 0.85rem 1rem;
  background: rgba(196, 164, 132, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

/* Cards / grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

a.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d8d1c6;
  transform: translateY(-2px);
  color: inherit;
}

.card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.65rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.975rem;
  margin: 0;
  flex-grow: 1;
}

.card-with-media {
  padding: 0;
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

.card-with-media .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem 1.35rem;
}

.card-link {
  margin-top: 1.15rem;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--sage);
}

/* Split / feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.35rem);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.feature-box.sage-tint {
  background: linear-gradient(145deg, rgba(63, 111, 101, 0.08), rgba(247, 244, 239, 0.5));
  border-color: rgba(63, 111, 101, 0.15);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--sage);
  margin-bottom: 0.25rem;
}

.stat-row span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(2.75rem, 5vw, 4rem) 0;
  margin-top: 2rem;
}

.cta-band h2 { color: var(--cream); }
.cta-band p {
  color: rgba(247, 244, 239, 0.78);
  max-width: 36rem;
  margin: 0.75rem 0 1.5rem;
}

.cta-band .btn-primary {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}

.cta-band .btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
}

.cta-band .btn-secondary {
  color: var(--cream);
  border-color: rgba(247, 244, 239, 0.35);
}

.cta-band .btn-secondary:hover {
  background: rgba(247, 244, 239, 0.08);
  border-color: var(--cream);
  color: var(--cream);
}

/* Forms */
.form-wrap {
  max-width: 32rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 550;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: #d0c9be;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Pricing / product */
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.35rem);
  padding: 2rem;
  max-width: 28rem;
  box-shadow: var(--shadow-md);
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--sage);
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
}

.price-card .price span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: rgba(63, 111, 101, 0.15);
  box-shadow: inset 0 0 0 3px var(--sage);
}

/* Guide article */
.article-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.5rem;
  color: var(--sage);
}

.related-guides {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 22rem;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--charcoal);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--sage); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--sage); }

/* Start-here path cards */
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.path-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.35rem 1.5rem 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

a.path-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d8d1c6;
  transform: translateY(-2px);
  color: inherit;
}

.path-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.path-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
}

.path-card .card-link {
  margin-top: 1rem;
}

/* FAQ accordion */
.faq-list {
  max-width: 44rem;
  margin: 0 0 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.25rem;
  font-weight: 550;
  color: var(--charcoal);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.45;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--sage);
  margin-top: 0.1rem;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item summary:hover { color: var(--sage-dark); }

.faq-answer {
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.faq-answer p { margin: 0 0 0.85rem; }
.faq-answer p:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .path-grid { grid-template-columns: 1fr; }
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }

/* Mobile nav */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open { display: flex; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
  }

  .site-nav .btn-nav {
    margin-top: 0.85rem;
    width: 100%;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: 2; }
  .hero-figure img { height: 16rem; }
  .split { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 1.75rem, var(--max)); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

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