/* ===========================================================
   Emma Reeve Nutrition — base.css
   Design tokens, reset, typography
   =========================================================== */

:root {
  /* Palette — warm editorial wellness */
  --bone:    #F6F1E7;   /* page base */
  --paper:   #FCF9F3;   /* raised surfaces */
  --paper-2: #EFE7D8;   /* tinted blocks */
  --ink:     #16271E;   /* near-black forest, primary text */
  --forest:  #1F3A2C;   /* brand dark */
  --forest-2:#2C503C;   /* lighter forest */
  --sage:    #8AA188;   /* muted green */
  --sage-soft:#D7E0D1;
  --coral:   #14232A;   /* accent is the ink; see journey.css */
  --coral-deep:#6E7C80; /* muted label grey */
  --clay:    #9FD8B4;   /* mint secondary (accents on dark) */
  --gold:    #C8A04A;   /* premium hairline */
  --cream-line: rgba(22,39,30,.12);

  /* Typography */
  --font-display: "Sentient", Georgia, "Times New Roman", serif;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  /* Labels, readouts and every number on the site. A lab instrument
     reads in mono; so does this. No extra webfont to download. */
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Roboto Mono", monospace;

  /* Spacing rhythm */
  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --maxw: 1240px;

  /* Radii + shadow */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(22,39,30,.06);
  --shadow-md: 0 18px 50px -24px rgba(22,39,30,.35);
  --shadow-lg: 0 40px 90px -40px rgba(22,39,30,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

* { margin: 0; padding: 0; }

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

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

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, .55vw + .9rem, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01" 1, "liga" 1;
  /* No global break-word: it will hyphenate ordinary words mid-way
     ("Performance prov / en"). Long unbreakable tokens are handled
     where they actually occur, in journey.css. */
  overflow-wrap: normal;
}

img, svg, video { display: block; max-width: 100%; }
/* Intrinsic width/height attributes reserve layout space and stop the
   page shifting as images load; height:auto keeps them in proportion.
   Rules that set an explicit height (e.g. .journey-stage img) still win. */
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

ul, ol { list-style: none; }

::selection { background: var(--coral); color: var(--bone); }

/* ---- Typography scale ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  /* Even out the line lengths so a heading never drops a single
     word onto a line of its own. js/journey.js also binds the last
     two words with a non-breaking space, for browsers without it. */
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p, .lede, li { text-wrap: pretty; }   /* no single-word last lines */

.serif { font-family: var(--font-display); }
.italic { font-style: italic; }

/* Eyebrow / kicker label */
.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--coral);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--coral);
  display: inline-block;
}

.lede {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  max-width: 56ch;
}

.muted { color: color-mix(in srgb, var(--ink) 64%, transparent); }
.accent { color: var(--coral-deep); }
