/* ============================================================
   Hayley Rose — Foundations
   Colors + Type tokens. Import this once at the top of any HTML.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,0..100&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ----- Color: Core ----- */
  --hr-ink:        #0E1414;   /* near-black, body + display */
  --hr-paper:      #FFFFFF;   /* base canvas */
  --hr-bone:       #F0EDE6;   /* warm cream — secondary surface */
  --hr-stone:      #E5E0D5;   /* deeper cream — cards, panels */

  /* ----- Color: Sage scale (signature) ----- */
  --hr-sage-900:   #2A3530;
  --hr-sage-700:   #4A5D52;   /* primary accent — CTAs, links */
  --hr-sage-500:   #748073;
  --hr-sage-300:   #A8B5A0;   /* soft accent */
  --hr-sage-100:   #D9DFD3;   /* tinted surface */
  --hr-sage-50:    #ECEFE9;

  /* ----- Color: Editorial accents ----- */
  --hr-clay:       #B85B3D;   /* warm rust — used sparingly, editorial */
  --hr-ochre:      #C9A063;   /* honey/data accent */
  --hr-ink-blue:   #1F2A3A;   /* depth alt — quotes, footers */

  /* ----- Color: Semantic ----- */
  --hr-fg-1:       var(--hr-ink);          /* primary text */
  --hr-fg-2:       #3A4540;                /* secondary text */
  --hr-fg-3:       #6B7570;                /* tertiary / meta */
  --hr-fg-muted:   #9AA39E;                /* placeholder, captions */
  --hr-bg-1:       var(--hr-paper);
  --hr-bg-2:       var(--hr-bone);
  --hr-bg-3:       var(--hr-stone);
  --hr-bg-dark:    var(--hr-sage-900);
  --hr-border:     #DDD9D0;
  --hr-border-strong: #BCB7AC;
  --hr-link:       var(--hr-sage-700);
  --hr-success:    #4A7A5C;
  --hr-warning:    var(--hr-ochre);
  --hr-danger:     var(--hr-clay);

  /* ----- Type: Families ----- */
  --hr-serif:      'Fraunces', 'Editorial New', Georgia, serif;
  --hr-sans:       'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --hr-mono:       'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ----- Type: Scale (fluid) ----- */
  --hr-text-xs:    0.75rem;     /* 12 — meta, labels */
  --hr-text-sm:    0.875rem;    /* 14 — caption, ui */
  --hr-text-base:  1rem;        /* 16 — body */
  --hr-text-lg:    1.125rem;    /* 18 — lede */
  --hr-text-xl:    1.375rem;    /* 22 — sub-display */
  --hr-text-2xl:   clamp(1.625rem, 1.4rem + 1vw, 2rem);     /* h3 */
  --hr-text-3xl:   clamp(2.25rem, 1.8rem + 2vw, 3rem);      /* h2 */
  --hr-text-4xl:   clamp(3rem, 2rem + 4vw, 4.5rem);         /* h1 */
  --hr-text-5xl:   clamp(4rem, 2.5rem + 6vw, 7rem);         /* hero */
  --hr-text-6xl:   clamp(5rem, 3rem + 9vw, 10rem);          /* mega */

  /* ----- Type: Properties ----- */
  --hr-tracking-tight: -0.025em;
  --hr-tracking-snug:  -0.012em;
  --hr-tracking-wide:  0.04em;
  --hr-tracking-mega:  0.18em;   /* eyebrows, all-caps labels */
  --hr-leading-tight:  1.02;
  --hr-leading-snug:   1.15;
  --hr-leading-body:   1.5;
  --hr-leading-loose:  1.7;

  /* ----- Spacing scale (4-pt-ish, generous) ----- */
  --hr-space-1: 4px;
  --hr-space-2: 8px;
  --hr-space-3: 12px;
  --hr-space-4: 16px;
  --hr-space-5: 24px;
  --hr-space-6: 32px;
  --hr-space-7: 48px;
  --hr-space-8: 64px;
  --hr-space-9: 96px;
  --hr-space-10: 128px;
  --hr-space-11: 192px;

  /* ----- Radii (subtle, editorial — NEVER pill-y on cards) ----- */
  --hr-radius-xs: 2px;
  --hr-radius-sm: 4px;
  --hr-radius-md: 8px;
  --hr-radius-lg: 16px;
  --hr-radius-pill: 999px;

  /* ----- Shadow (very restrained — paper/print feel) ----- */
  --hr-shadow-1: 0 1px 2px rgba(14, 20, 20, 0.04);
  --hr-shadow-2: 0 6px 24px -8px rgba(14, 20, 20, 0.08);
  --hr-shadow-3: 0 24px 60px -20px rgba(14, 20, 20, 0.18);

  /* ----- Motion ----- */
  --hr-ease:        cubic-bezier(.2, .7, .2, 1);
  --hr-ease-out:    cubic-bezier(.16, 1, .3, 1);
  --hr-dur-fast:    160ms;
  --hr-dur-base:    280ms;
  --hr-dur-slow:    520ms;

  /* ----- Layout ----- */
  --hr-container:    min(1280px, 100% - 48px);
  --hr-container-narrow: min(880px, 100% - 48px);
  --hr-container-wide:   min(1440px, 100% - 32px);
  --hr-grid-gap: 32px;
}

/* ============================================================
   Semantic element styles — apply to bare HTML inside .hr-typography
   or use the utility classes below.
   ============================================================ */

.hr-typography {
  font-family: var(--hr-sans);
  font-size: var(--hr-text-base);
  line-height: var(--hr-leading-body);
  color: var(--hr-fg-1);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hr-typography h1, .hr-h1 {
  font-family: var(--hr-serif);
  font-weight: 360;
  font-size: var(--hr-text-4xl);
  line-height: var(--hr-leading-tight);
  letter-spacing: var(--hr-tracking-tight);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
.hr-typography h2, .hr-h2 {
  font-family: var(--hr-serif);
  font-weight: 380;
  font-size: var(--hr-text-3xl);
  line-height: var(--hr-leading-snug);
  letter-spacing: var(--hr-tracking-snug);
  font-variation-settings: "opsz" 144, "SOFT" 20;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.hr-typography h3, .hr-h3 {
  font-family: var(--hr-serif);
  font-weight: 420;
  font-size: var(--hr-text-2xl);
  line-height: 1.2;
  letter-spacing: var(--hr-tracking-snug);
  margin: 0 0 0.5em;
}
.hr-typography h4, .hr-h4 {
  font-family: var(--hr-sans);
  font-weight: 600;
  font-size: var(--hr-text-lg);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 0.6em;
}

.hr-typography p, .hr-p {
  margin: 0 0 1em;
  font-size: var(--hr-text-base);
  line-height: var(--hr-leading-body);
  color: var(--hr-fg-1);
  text-wrap: pretty;
}
.hr-lede {
  font-size: var(--hr-text-lg);
  line-height: var(--hr-leading-loose);
  color: var(--hr-fg-2);
  font-weight: 400;
  text-wrap: pretty;
}

/* Editorial display — used for hero declarations like "I turn good
   health into good business" or "THIS IS biological intelligence" */
.hr-display {
  font-family: var(--hr-serif);
  font-weight: 320;
  font-size: var(--hr-text-5xl);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  text-wrap: balance;
}
.hr-display-italic {
  font-family: var(--hr-serif);
  font-style: italic;
  font-weight: 320;
  font-size: var(--hr-text-5xl);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}

/* Eyebrow / overline — always all-caps, wide-tracked, small */
.hr-eyebrow {
  font-family: var(--hr-sans);
  font-size: var(--hr-text-xs);
  font-weight: 500;
  letter-spacing: var(--hr-tracking-mega);
  text-transform: uppercase;
  color: var(--hr-fg-3);
}

/* Numerics — for stats, biomarkers, results */
.hr-stat {
  font-family: var(--hr-serif);
  font-weight: 300;
  font-size: clamp(3rem, 2rem + 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
  font-feature-settings: 'tnum';
}

/* Caption / micro */
.hr-caption {
  font-family: var(--hr-sans);
  font-size: var(--hr-text-sm);
  line-height: 1.45;
  color: var(--hr-fg-3);
}

/* Inline */
.hr-typography a, .hr-link {
  color: var(--hr-link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--hr-dur-fast) var(--hr-ease);
}
.hr-typography a:hover, .hr-link:hover { opacity: 0.65; }

/* Quote */
.hr-quote {
  font-family: var(--hr-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--hr-text-2xl);
  line-height: 1.35;
  color: var(--hr-fg-1);
  letter-spacing: -0.01em;
}

/* Body utilities */
.hr-body-bg { background: var(--hr-bg-1); color: var(--hr-fg-1); }
.hr-bone-bg { background: var(--hr-bg-2); color: var(--hr-fg-1); }
.hr-dark-bg { background: var(--hr-bg-dark); color: var(--hr-bone); }
.hr-sage-bg { background: var(--hr-sage-100); color: var(--hr-fg-1); }
