/* ============================================================
   Fabola — shared site stylesheet, linked from every page.
   Served from /assets/ (immutable, 1 year): after ANY edit,
   re-fingerprint the filename and update every <link> to it.
   See "Shared stylesheet" in CLAUDE.md.
   ============================================================ */
html,body{height:100%;margin:0;font-family:var(--font-serif)}#dc-root,#dc-root>.sc-host{height:100%}
.font-sans{font-family:var(--font-sans)}
/* ============================================================
   Fabola Design System — "Human Precision"
   Foundational tokens: color, type, spacing, radius, shadow.
   ============================================================ */

/* ---------- Fonts ---------- */
/* Hanken Grotesk — brand-licensed variable fonts (local). */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url("/fonts/hanken-grotesk.woff2") format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url("/fonts/hanken-grotesk-italic.woff2") format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Source Serif 4 — brand-licensed variable fonts (local). */
@font-face {
  font-family: 'Source Serif 4';
  src: url("/fonts/source-serif-4.woff2") format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url("/fonts/source-serif-4-italic.woff2") format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ===== Color: Surfaces ===== */
  --surface: #fbf8ff;
  --surface-dim: #d9d9e8;
  --surface-bright: #fbf8ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f4f2ff;
  --surface-container: #edecfd;
  --surface-container-high: #e7e7f7;
  --surface-container-highest: #e2e1f1;
  --surface-variant: #e2e1f1;
  --surface-tint: #206d05;
  --inverse-surface: #2e303c;
  --inverse-on-surface: #f0efff;

  /* On-surface (text) */
  --on-surface: #191b26;
  --on-surface-variant: #40493b;
  --on-background: #191b26;

  /* Background */
  --background: #fbf8ff;

  /* ===== Color: Primary (Fabola Green / moss) ===== */
  --primary: #1d6a02;
  --on-primary: #ffffff;
  --primary-container: #398420;
  --on-primary-container: #f8ffee;
  --inverse-primary: #89da6b;
  --primary-fixed: #a4f784;
  --primary-fixed-dim: #89da6b;
  --on-primary-fixed: #042100;
  --on-primary-fixed-variant: #145200;

  /* ===== Color: Secondary (Sand) ===== */
  --secondary: #615e57;
  --on-secondary: #ffffff;
  --secondary-container: #e8e2d9;
  --on-secondary-container: #67645d;
  --secondary-fixed: #e8e2d9;
  --secondary-fixed-dim: #cbc6bd;
  --on-secondary-fixed: #1d1b16;
  --on-secondary-fixed-variant: #494640;

  /* ===== Color: Tertiary (Teal accent) ===== */
  --tertiary: #00647f;
  --on-tertiary: #ffffff;
  --tertiary-container: #147e9e;
  --on-tertiary-container: #fafdff;
  --tertiary-fixed: #bbeaff;
  --tertiary-fixed-dim: #7cd2f4;
  --on-tertiary-fixed: #001f29;
  --on-tertiary-fixed-variant: #004d62;

  /* ===== Color: Status ===== */
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;

  /* ===== Color: Outlines ===== */
  --outline: #717a69;
  --outline-variant: #c0cab7;

  /* ===== Color: Brand-named aliases ===== */
  --warm-white: #F9F8F6;
  --slate-muted: #6B6D7A;
  --moss-dark: #2D631B;

  /* ===== Semantic aliases (use these in components) ===== */
  --fg-1: var(--on-surface);          /* primary text */
  --fg-2: var(--slate-muted);         /* secondary text */
  --fg-3: var(--on-secondary-container); /* tertiary / hint text */
  --fg-inverse: var(--inverse-on-surface);

  --bg-page: var(--warm-white);
  --bg-section-alt: var(--secondary-container); /* sand */
  --bg-card: var(--surface-container-lowest);
  --bg-inverse: var(--inverse-surface);

  --accent: var(--primary);
  --accent-hover: var(--moss-dark);
  --link: var(--tertiary);

  --border-soft: var(--outline-variant);
  --border-strong: var(--outline);
  --border-input: var(--slate-muted);

  /* ===== Type: Families ===== */
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ===== Type: Scale (from Human Precision spec) ===== */
  --display-lg-size: 56px;
  --display-lg-line: 64px;
  --display-lg-weight: 700;
  --display-lg-tracking: -0.02em;

  --headline-lg-size: 40px;
  --headline-lg-line: 48px;
  --headline-lg-weight: 600;
  --headline-lg-tracking: -0.01em;

  --headline-md-size: 32px;
  --headline-md-line: 40px;
  --headline-md-weight: 600;
  --headline-md-tracking: 0;

  --body-lg-size: 18px;
  --body-lg-line: 32px;
  --body-lg-weight: 400;

  --body-md-size: 16px;
  --body-md-line: 28px;
  --body-md-weight: 400;

  --label-md-size: 14px;
  --label-md-line: 20px;
  --label-md-weight: 600;
  --label-md-tracking: 0.05em;

  /* ===== Spacing ===== */
  --space-unit: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 120px;

  --container-max: 1200px;
  --gutter: 24px;
  --margin-desktop: 64px;
  --margin-mobile: 20px;
  --section-padding: 120px;
  --section-padding-mobile: 64px;

  /* ===== Radius ===== */
  --radius-sm: 4px;     /* 0.25rem — chips, tags */
  --radius: 8px;        /* 0.5rem  — buttons, inputs */
  --radius-md: 12px;    /* 0.75rem — compact cards */
  --radius-lg: 16px;    /* 1rem    — standard cards */
  --radius-xl: 24px;    /* 1.5rem  — hero containers */
  --radius-full: 9999px;

  /* ===== Shadow (warm-slate tinted, low opacity) ===== */
  --shadow-sm: 0 1px 2px rgba(107, 109, 122, 0.06);
  --shadow-md: 0 4px 12px rgba(107, 109, 122, 0.08);
  --shadow-lg: 0 12px 32px rgba(107, 109, 122, 0.10);
  --shadow-xl: 0 24px 64px rgba(107, 109, 122, 0.12);
  --focus-ring: 0 0 0 3px rgba(29, 106, 2, 0.18);

  /* ===== Motion ===== */
  --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.0, 0, 1);
  --duration-fast: 150ms;
  --duration-base: 240ms;
  --duration-slow: 400ms;
}

/* ============================================================
   Base typography — semantic element styling
   ============================================================ */

html, body {
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--font-serif);
  font-size: var(--body-md-size);
  line-height: var(--body-md-line);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--display-lg-size);
  line-height: var(--display-lg-line);
  font-weight: var(--display-lg-weight);
  letter-spacing: var(--display-lg-tracking);
}

h2 {
  font-size: var(--headline-lg-size);
  line-height: var(--headline-lg-line);
  font-weight: var(--headline-lg-weight);
  letter-spacing: var(--headline-lg-tracking);
}

h3 {
  font-size: var(--headline-md-size);
  line-height: var(--headline-md-line);
  font-weight: var(--headline-md-weight);
}

p {
  font-family: var(--font-serif);
  font-size: var(--body-md-size);
  line-height: var(--body-md-line);
  color: var(--fg-1);
  text-wrap: pretty;
  margin: 0;
}

.body-lg {
  font-size: var(--body-lg-size);
  line-height: var(--body-lg-line);
}

.label, .eyebrow {
  font-family: var(--font-sans);
  font-size: var(--label-md-size);
  line-height: var(--label-md-line);
  font-weight: var(--label-md-weight);
  letter-spacing: var(--label-md-tracking);
  text-transform: uppercase;
  color: var(--fg-2);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}
a:hover { text-decoration: underline; }

/* Mobile reflow */
@media (max-width: 768px) {
  h1 {
    font-size: var(--headline-md-size);
    line-height: var(--headline-md-line);
  }
  h2 {
    font-size: 28px;
    line-height: 36px;
  }
}


  html, body { margin:0; padding:0; background:#F9F8F6; }
  * { box-sizing:border-box; }
  ::selection { background:#a4f784; color:#042100; }
  @keyframes fb-rise { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
  .fb-reveal { animation: fb-rise both linear; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  @media (prefers-reduced-motion: reduce) { .fb-reveal { animation: none; } }
  @media (max-width: 860px) { .fb-navlinks { display: none !important; } }
  @media (max-width: 960px) {
    .fb-step { grid-template-columns: 64px 1fr !important; column-gap: 24px !important; row-gap: 4px !important; }
    .fb-step > span:first-child { grid-row: span 2; }
  }


/* ============================================================
   Shared component classes (extracted from repeated inline styles).
   Declarations verbatim; one-off styles remain inline.
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0px auto;
  padding: 0px 64px;
  box-sizing: border-box;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgb(64, 73, 59);
  text-decoration: none;
}
.work-step {
  display: grid;
  grid-template-columns: 140px 280px 1fr;
  gap: 32px;
  padding: 38px 0px;
  border-bottom: 1px solid var(--outline-variant);
  align-items: start;
}
.step-number {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent,#1d6a02);
}
.step-title {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: rgb(25, 27, 38);
  margin: 6px 0px 0px;
}
.step-body {
  font-size: 18px;
  line-height: 1.66;
  color: rgb(64, 73, 59);
  margin: 6px 0px 0px;
  max-width: 62ch;
}
.em-accent {
  font-style: italic;
  font-weight: 600;
  color: var(--accent,#1d6a02);
}
.path-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 30px 0px;
  border-bottom: 1px solid rgba(64, 73, 59, 0.22);
  align-items: start;
}
.path-row-label {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(25, 27, 38);
}
.path-row-body {
  font-size: 18px;
  line-height: 1.66;
  color: rgb(64, 73, 59);
  margin: 0px;
  max-width: 64ch;
}
.em-accent-soft {
  font-style: italic;
  color: var(--accent,#1d6a02);
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.section-sand {
  scroll-margin-top: 90px;
  padding: 120px 0px;
  background: rgb(232, 226, 217);
}
.section-title {
  font-weight: 600;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.022em;
  color: rgb(25, 27, 38);
  margin: 0px 0px 22px;
  text-wrap: balance;
}
.section-lead {
  font-size: 20px;
  line-height: 1.62;
  color: rgb(25, 27, 38);
  max-width: 62ch;
  margin: 0px;
}
.section-warm {
  scroll-margin-top: 90px;
  padding: 120px 0px;
  background: rgb(249, 248, 246);
}
.footer-link {
  font-size: 14px;
  color: rgb(240, 239, 255);
  text-decoration: none;
  opacity: 0.85;
}

/* FAQ (both pages): question beside answer, wrapping to stacked. */
.faq-list {
  border-top: 1px solid rgba(64, 73, 59, 0.22);
}
.faq-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  padding: 30px 0px;
  border-bottom: 1px solid rgba(64, 73, 59, 0.22);
}
.faq-q {
  flex: 0 0 300px;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
  color: rgb(25, 27, 38);
  margin: 0px;
}
.faq-a {
  flex: 1 1 320px;
}
.faq-a p {
  font-size: 18px;
  line-height: 1.66;
  color: rgb(64, 73, 59);
  margin: 0px;
}
.faq-a p + p {
  margin-top: 14px;
}

/* ============================================================
   Mobile reflow (<=768px): stack multi-column grids, tighten
   page gutters & vertical rhythm, shrink footer text.
   ============================================================ */
@media (max-width: 768px) {
  .container, .nav-inner, .hero-inner { padding-left: 24px !important; padding-right: 24px !important; }
  .hero { padding-top: 72px !important; padding-bottom: 80px !important; }
  .section-sand, .section-warm { padding-top: 72px !important; padding-bottom: 72px !important; }
  .path-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .founder-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .founder-grid figure { max-width: 280px; }
  .callout { grid-template-columns: 1fr !important; gap: 18px !important; padding: 28px 24px !important; }
  .footer-top { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-bottom { font-size: 13px; }
}
