/* Zito design tokens. The single source of truth for values.
   Pages get colours, fonts and spacing only from here.
   Colours use RGB channels ("31 31 28") to support Tailwind opacity (text-ink/85).
   Phone values are the default; desktop values apply from 768px. */

:root {
  /* Colours */
  --c-bg: 247 245 240;         /* #F7F5F0 page background */
  --c-ink: 31 31 28;           /* #1F1F1C text, buttons and diagram lines */
  --c-ink-muted: 68 71 74;     /* #44474A secondary text */
  --c-line: 197 198 202;       /* #C5C6CA thin dividers */
  --c-paper: 255 255 255;      /* #FFFFFF diagram panels and inputs */
  --c-marker: 244 163 11;      /* #F4A30B highlight: one hero word and findings in diagrams */
  --c-card-1: 240 212 198;     /* #F0D4C6 peach */
  --c-card-2: 210 221 230;     /* #D2DDE6 blue (also the final block) */
  --c-card-3: 207 221 215;     /* #CFDDD7 teal */
  --c-card-4: 233 223 205;     /* #E9DFCD sand */

  /* Fonts */
  --font-head: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Text sizes: phone */
  --fs-h1: 2rem;        --lh-h1: 1.15;
  --fs-h2: 1.75rem;     --lh-h2: 1.25;
  --fs-h3: 1.25rem;     --lh-h3: 1.4;
  --fs-lead: 1.0625rem; --lh-lead: 1.6;
  --fs-body: 1rem; --lh-body: 1.6;
  --fs-small: 0.8125rem;
  --fs-nav: 0.9375rem;
  --fs-diagram: 0.75rem;
  --fs-note: 0.6875rem;
  --fs-stat-caption: 1.25rem;
  --fs-stat: 4.5rem;

  --c-service-label: 102 105 108; /* #66696C subdued service label */
  --tracking-service-label: 0.08em;

  --space-paragraph: 0.5rem;

  /* Spacing: phone */
  --space-page-x: 1.25rem;     /* left and right page margins */
  --space-section: 3.15rem;       /* between sections: applied once, above each section */
  --space-hero: 3rem;          /* space around the hero */
  --space-card: 1.5rem;        /* card padding */
  --space-gap: 1rem;           /* space between cards */
  --space-stack: 1.5rem;       /* between heading, text and buttons within a block */

  /* Shared page and diagram measurements */
  --content-max-width: 72rem;
  --hero-max-width: 56rem;
  --reading-max-width: 44rem;
  --about-figure-width: 80%;
  --diagram-panel-height: auto;
  --diagram-panel-pad-y: 0.75rem;
  --visual-height: 12rem;
  --assurance-visual-height: 8rem;
  --founder-portrait-size: 6rem;
  --founder-portrait-max-share: 35%;
  --founder-credit-portrait-size: 3rem;
  --founder-credit-max-width: 38rem;
  --founder-credit-side-space: 1.1875rem;
  --fs-button: var(--fs-nav);
  --lh-button: 1.25rem;
  --mark-inset: 0.125rem;
  --opacity-panel: 0.8;
  --opacity-hover: 0.85;
  --opacity-quiet-hover: 0.05;
  --transition-fast: 0.15s;
  --diagram-icon-size: 1.25rem;
  --diagram-document-width: 6rem;
  --diagram-slider-position: 62%;

  /* Shapes */
  --radius-card: 0.75rem;
  --radius-btn: 0.5rem;
  --radius-inner: 0.5rem;      /* diagram panels inside cards */
  --header-h: 3.5rem;
  --btn-pad-y: 0.875rem;
  --btn-pad-x: 1.5rem;
  /* Shared component measurements and opacity */
  --border-width: 1px;
  --focus-width: 2px;
  --opacity-focus: 0.3;
  --opacity-header: 0.95;
  --opacity-divider: 0.4;
  --btn-row-gap: 0.75rem;
  --table-pad-y: 0.875rem;
  --table-pad-x: 1rem;
  --field-pad-y: 0.625rem;
  --field-pad-x: 1rem;
  --fs-field-phone: 16px;
  --weight-medium: 500;
  --component-line-height: 1.5;
  --header-max-width: 90rem;
  --header-layer: 50;
  --header-blur: 12px;
  --logo-height: 1.75rem;
  --logo-ratio: 2.47;
  --header-button-pad-y: 0.5rem;
  --header-button-pad-x: 1rem;
  --footer-pad-y: 1.5rem;
}

@media (min-width: 768px) {
  :root {
    --fs-h1: 3rem;        --lh-h1: 1.12;
    --fs-h2: 2.25rem;     --lh-h2: 1.22;
    --fs-h3: 1.25rem;
    --fs-lead: 1.125rem;
    --fs-stat: 8rem;
    --fs-stat-caption: 1.375rem;

    --founder-portrait-size: 8rem;
    --space-page-x: 2.5rem;
    --space-section: 4.725rem;
    --space-hero: 5rem;
    --space-card: 2.5rem;
    --space-gap: 2rem;
    --space-stack: 2rem;

    --diagram-panel-height: 34rem;
    --header-h: 4rem;
    --logo-height: 2rem;
    --btn-pad-x: 1.75rem;
  }
}

@media (min-width: 1024px) {
  :root { --diagram-panel-height: 25rem; }
}
