/* ==========================================================================
   Vitalis — shared design system
   Everyday-wellness site. Palette: sage + warm clay on cream.
   Type: Fraunces (display) / Inter (body).
   ========================================================================== */

:root {
  --sage-900: #24352b;
  --sage-700: #3f5a49;
  --sage-500: #6f8f78;
  --sage-300: #a8c1ac;
  --sage-100: #e7efe8;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --clay: #cf7d5c;
  --clay-dark: #b3623f;
  --ink: #2b2b28;
  --muted: #5f6b62;
  --line: rgba(63, 90, 73, 0.12);
  --radius: 18px;
  --shadow-soft: 0 14px 34px rgba(36, 53, 43, 0.1);
  --wrap: 1100px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 600; line-height: 1.15; }
a { color: inherit; }
img, svg { max-width: 100%; }

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

/* Accessibility: skip link + visible focus ---------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--sage-900); color: var(--cream);
  padding: 10px 18px; border-radius: 10px; z-index: 100;
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header -------------------------------------------------------------------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 244, 236, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-size: 1.35rem;
  color: var(--sage-900); font-weight: 600; text-decoration: none;
}
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--clay); flex: none; }
.nav-links { display: flex; gap: 26px; font-size: 0.95rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--sage-700); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--clay); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--sage-700); color: var(--cream); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(63, 90, 73, 0.25); background: var(--sage-900); }
.btn-ghost { border-color: var(--sage-500); color: var(--sage-700); background: transparent; }
.btn-ghost:hover { background: var(--sage-100); }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

/* Hero ---------------------------------------------------------------------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero .tag {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage-500); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--sage-900); max-width: 16ch; }
.hero p { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.cta-row { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Sections & headings ------------------------------------------------------- */
.section { padding: 72px 0; }
.section-head { max-width: 48ch; margin-bottom: 44px; }
.section-head .eyebrow {
  display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay-dark); margin-bottom: 12px; font-weight: 600;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--sage-900); }
.section-head p { margin-top: 14px; color: var(--muted); }

/* Card grid ----------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 30px;
  border: 1px solid rgba(63, 90, 73, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--sage-100);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--sage-700);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.3rem; color: var(--sage-900); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Banded callout ------------------------------------------------------------ */
.band { background: var(--sage-900); color: var(--sage-100); border-radius: 26px; padding: 56px; }
.band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; max-width: 20ch; }
.band p { margin-top: 16px; color: rgba(231, 239, 232, 0.82); max-width: 56ch; }

/* Numbered notes ------------------------------------------------------------ */
.notes { display: grid; gap: 18px; }
.note {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px;
  background: var(--paper); border-radius: 14px; border: 1px solid rgba(63, 90, 73, 0.1);
}
.note .n { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--clay); min-width: 40px; }
.note h3 { font-size: 1.1rem; color: var(--sage-900); margin-bottom: 4px; }
.note p { color: var(--muted); font-size: 0.96rem; }

/* Disclaimer ---------------------------------------------------------------- */
.disclaimer {
  margin-top: 48px; padding: 26px 28px; background: var(--sage-100);
  border-radius: 16px; border-left: 4px solid var(--sage-500);
}
.disclaimer h3 { font-size: 1.05rem; color: var(--sage-900); margin-bottom: 8px; }
.disclaimer p { color: var(--sage-700); font-size: 0.92rem; }
.disclaimer p + p { margin-top: 10px; }

/* Sources ------------------------------------------------------------------- */
.sources { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.sources li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 16px 18px; background: var(--paper);
  border: 1px solid rgba(63, 90, 73, 0.1); border-radius: 12px;
  font-size: 0.94rem; color: var(--muted);
}
.sources li a { color: var(--sage-700); font-weight: 500; }
.sources li a:hover { color: var(--clay-dark); }
.sources .src-tag {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage-500); min-width: 84px; font-weight: 600;
}

/* Long-form article (legal / about pages) ----------------------------------- */
.article { padding: 56px 0 24px; }
.article .lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin-top: 18px; }
.article .updated { font-size: 0.85rem; color: var(--sage-500); margin-top: 14px; }
.prose { max-width: 68ch; margin-top: 8px; }
.prose h2 { font-size: 1.5rem; color: var(--sage-900); margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; color: var(--sage-900); margin: 26px 0 8px; }
.prose p { color: var(--ink); margin-top: 12px; }
.prose ul { margin: 14px 0 14px 20px; color: var(--ink); }
.prose li { margin-top: 8px; }
.prose a { color: var(--sage-700); font-weight: 500; text-underline-offset: 3px; }
.prose a:hover { color: var(--clay-dark); }
.pagehead { padding: 64px 0 8px; }
.pagehead .eyebrow {
  display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay-dark); margin-bottom: 12px; font-weight: 600;
}
.pagehead h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--sage-900); max-width: 20ch; }

/* Contact form -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--sage-900); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--sage-300); border-radius: 10px;
  background: var(--paper); transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--sage-500); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-aside h2 { font-size: 1.3rem; color: var(--sage-900); margin-bottom: 8px; }
.contact-aside p { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }
.contact-aside a { color: var(--sage-700); font-weight: 500; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* Footer -------------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 40px; margin-top: 48px; background: var(--sage-100); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 32px; }
.foot-brand { max-width: 34ch; }
.foot-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-family: 'Inter', sans-serif; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-500); margin-bottom: 14px; }
.foot-col a { display: block; text-decoration: none; color: var(--sage-700); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.2s; }
.foot-col a:hover { color: var(--clay-dark); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; color: var(--muted); font-size: 0.85rem;
  border-top: 1px solid var(--line); padding-top: 24px;
}

/* Motion preferences -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
