/* ==========================================================================
   Incredible Man design system 1.0 (2026-11-13)
   tokens.css: every value the system uses, as custom properties.

   Round: faithful. Source: the capture of www.incredibleman.org at 1440 and
   390 (material/styles.css :root, computed-type.txt, boxes.json, screenshots).

   Naming: --{group}-{name}. Primitives (--yellow-500, --ink-900 ...) hold raw
   values; semantic names (--color-bg, --color-text ...) point at primitives
   and are re-pointed by the tone classes in base.css. Page CSS uses semantic
   names only. Load order: tokens.css, base.css, components.css.

   Fluid values: the live site scales sizes between a 352 px and a 1680 px
   viewport (its own --viewport-min 22rem and --viewport-max 105rem). Every
   fluid token below keeps that exact curve, written as
   clamp(min, intercept + slope * 100vw, max), so 1440 and 390 match the
   capture to the pixel.
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     COLOR PRIMITIVES
     Measured: the site's own variables (--_colors---*), all eleven kept.
     Decided: one extra grey (--grey-500) for small text and field lines that
     failed contrast; the Instagram strip's stray #FFD400 folds into the
     brand yellow.
     ------------------------------------------------------------------------ */
  --yellow-500: #ffc70b;      /* measured --_colors---yellow. The accent. */
  --yellow-300: #ffd854;      /* measured --_colors---yellow-active. Hover on yellow. */
  --black: #000000;           /* measured --_colors---black-100. Text on light tones; Instagram band. */
  --ink-900: #0a0a0a;         /* measured --_colors---black-90. The page: dark is the default. */
  --ink-800: #1a1a1a;         /* measured --_colors---black-60. Raised panel (form panel). */
  --ink-600: #4f4c4c;         /* measured --_colors---black-32. Chips, muted text on sand and yellow. */
  --ink-500: #585858;         /* measured --_colors---white-32. Dividers only (fails as text: 2.78:1 on ink-900). */
  --grey-500: #808080;        /* decided. Pillar numbers: 5.01:1 on ink-900 (was ink-500 at 2.78:1). */
  --grey-450: #767676;        /* decided. Field underline on ink-800: 3.83:1 (was ink-500 at 2.45:1). */
  --grey-400: #9d9d9d;        /* measured --_colors---white-60. Muted text on dark: 7.30:1 on ink-900, 6.42:1 on ink-800. */
  --grey-100: #e6e6e6;        /* measured --_colors---white-90. Secondary headings on dark: 15.86:1. */
  --white: #ffffff;           /* measured --_colors---white-100. 19.80:1 on ink-900. */
  --sand-100: #efe3d4;        /* measured --_colors---neutral-bg. The light tone. */
  --red-500: #ef4444;         /* measured --_colors---error-red. 4.62:1 on ink-800, 5.26:1 on ink-900. */
  --white-a08: #ffffff14;     /* measured --_colors---white-8-opacity. Hairlines on dark. */
  --white-a32: #ffffff52;     /* measured --_colors---white-32-opacity. Header divider. */
  --black-a08: #0a0a0a14;     /* measured --_colors---black-8-opacity. Hairlines on light. */
  --scrim-32: #00000052;      /* measured: hero photo overlay, black at .32. */
  --scrim-header: #00000099;  /* measured: header gradient once scrolled (#0009). */

  /* ------------------------------------------------------------------------
     SEMANTIC COLOR (default tone: dark). Re-pointed by .tone-* in base.css.
     Contrast, dark tone: text 19.80, muted 7.30, accent 12.66, focus 19.80.
     Large text threshold: 24 px regular or 18.66 px bold (3:1).
     ------------------------------------------------------------------------ */
  --color-bg: var(--ink-900);
  --color-surface: var(--ink-800);          /* panels inside a band */
  --color-text: var(--white);
  --color-text-strong: var(--white);
  --color-text-soft: var(--grey-100);       /* 15.86:1 */
  --color-text-muted: var(--grey-400);      /* 7.30:1 */
  --color-text-number: var(--grey-500);     /* 5.01:1 */
  --color-accent: var(--yellow-500);        /* 12.66:1 on ink-900 */
  --color-on-accent: var(--ink-900);        /* 12.66:1 on yellow */
  --color-accent-hover: var(--yellow-300);  /* 14.33:1 with ink-900 on it */
  --color-line: var(--ink-500);             /* decorative dividers, not control edges */
  --color-line-strong: var(--grey-450);     /* control edges: 3.83:1 on ink-800 */
  --color-line-accent: var(--yellow-500);
  --color-chip-bg: var(--ink-600);          /* white on it 8.50:1 */
  --color-error: var(--red-500);
  --color-focus: var(--white);              /* 19.80:1 on ink-900, 17.40:1 on ink-800 */

  /* ------------------------------------------------------------------------
     TYPE FAMILIES. Measured: Anton (headings, labels), Inter Variable (body,
     loaded 100 to 900, used at 400/450/500/600/700/800), Reenie Beanie (the
     handwritten scripture and quotes). Files self-hosted in ../assets/fonts.
     Licenses: all three are SIL Open Font License 1.1.
     ------------------------------------------------------------------------ */
  --font-display: Anton, Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter Variable", Inter, Arial, sans-serif;
  --font-script: "Reenie Beanie", "Segoe Print", "Bradley Hand", cursive;

  --weight-regular: 400;
  --weight-body: 450;       /* measured: every paragraph on the site */
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;

  /* ------------------------------------------------------------------------
     TYPE SIZES. Each role keeps the live curve. "1440 / 390" is what the
     capture measured (computed-type.txt and computed-type-390.txt); the token
     reproduces it.
     ------------------------------------------------------------------------ */
  --size-display: clamp(4.25rem, 3.1977rem + 4.7831vw, 8.22rem);       /* 120.04 / 69.82  hero h1, Let's Connect */
  --size-h2: clamp(3.125rem, 2.3192rem + 3.6627vw, 6.165rem);          /* 89.85 / 51.39   band headings */
  --size-h3: clamp(1.875rem, 1.6457rem + 1.0422vw, 2.74rem);           /* 41.34 / 30.40   pillar titles, panel headings */
  --size-h4: clamp(1.5rem, 1.3542rem + .6627vw, 2.05rem);              /* 31.21 / 24.25   resource titles, Watch My Story */
  --size-h5: clamp(1.25rem, 1.1456rem + .4747vw, 1.644rem);            /* 25.2 / 20.2    testimonial names */
  --size-h6: clamp(1.125rem, 1.0601rem + .2952vw, 1.37rem);            /* 21.2 / 18.1     pillar numbers */
  --size-quote: clamp(2.1875rem, 1.8958rem + 1.3259vw, 3.288rem);      /* 49.4 / 35.5     testimonial quote */
  --size-script-xl: clamp(2.125rem, 1.5962rem + 2.4036vw, 4.12rem);    /* 60.1 / 34.9     closing script quote */
  --size-script-l: clamp(2.125rem, 1.8167rem + 1.4012vw, 3.288rem);    /* 49.2 / 34.5     intro script quotes */
  --size-script-m: 1.875rem;                                            /* 30              scripture in pillars */
  --size-lead: clamp(1.375rem, 1.3037rem + .3241vw, 1.644rem);         /* 25.53 / 22.12   hero line, intro copy */
  --size-body-l: clamp(1.125rem, 1.0601rem + .2952vw, 1.37rem);        /* 21.21 / 18.11   section intros */
  --size-body: clamp(1rem, .9382rem + .2807vw, 1.233rem);              /* 19.05 / 16.11   running text */
  --size-body-s: clamp(.875rem, .8164rem + .2663vw, 1.096rem);         /* 16.90 / 14.10   resource notes, footer */
  --size-small: .875rem;                                                /* 14              chips, captions */
  --size-micro: .75rem;                                                 /* 12              eyebrow over the Instagram handle */
  --size-nav: 1.1875rem;                                                /* 19              header nav */
  --size-label: 1.25rem;                                                /* 20              button labels */
  --size-label-l: 1.5rem;                                               /* 24              footer nav, tabs, Sign Up */
  --size-field-l: clamp(1.25rem, 1.1456rem + .4747vw, 1.644rem);       /* 25.2 / 20.2     subscribe fields */
  --size-field: 1.25rem;                                                /* 20              contact fields */
  --size-handle: clamp(1.75rem, 4vw, 2.75rem);                          /* 44 / 28         Instagram handle (measured 44 / 28) */

  --leading-none: 1;        /* measured: every Anton heading */
  --leading-tight: 1.12;
  --leading-quote: 1.2;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-body: 1.6;      /* measured: paragraphs */
  --leading-nav: 1.9;

  --tracking-tight: -.01em; /* measured: headings and body */
  --tracking-none: 0;
  --tracking-label: .01em;
  --tracking-nav: .015em;
  --tracking-caps: .04em;
  --tracking-eyebrow: .2em;

  --measure-body: 34em;     /* about 70 characters: the intro and story columns */

  /* ------------------------------------------------------------------------
     SPACING. Measured: the site's paired spacing scale (--spacing--30-22 is
     30 px at wide screens, 22 px at small ones). Kept as is, named by the
     wide value.
     ------------------------------------------------------------------------ */
  --space-2: .125rem;
  --space-4: .25rem;
  --space-6: .375rem;
  --space-8: .5rem;
  --space-12: clamp(.625rem, .5919rem + .1506vw, .75rem);
  --space-16: clamp(.75rem, .6837rem + .3012vw, 1rem);
  --space-20: clamp(1rem, .9337rem + .3012vw, 1.25rem);
  --space-24: clamp(1.125rem, 1.0256rem + .4518vw, 1.5rem);
  --space-30: clamp(1.375rem, 1.2425rem + .6024vw, 1.875rem);
  --space-36: clamp(1.75rem, 1.6837rem + .3012vw, 2rem);
  --space-44: clamp(2rem, 1.8012rem + .9036vw, 2.75rem);
  --space-52: clamp(2.375rem, 2.1431rem + 1.0542vw, 3.25rem);
  --space-64: clamp(2.75rem, 2.4187rem + 1.506vw, 4rem);
  --space-80: clamp(3.125rem, 2.628rem + 2.259vw, 5rem);
  --space-128: clamp(4rem, 2.9398rem + 4.8193vw, 8rem);
  --space-156: clamp(4.5rem, 3.1084rem + 6.3253vw, 9.75rem);

  /* ------------------------------------------------------------------------
     LAYOUT. Measured: container 103rem; page margin 6.25% each side (on a
     16-column feel: one column of margin); header block 5.625rem.
     Breakpoints (media queries cannot read variables; use these numbers):
       tablet     max-width 991px
       landscape  max-width 767px
       phone      max-width 479px
     ------------------------------------------------------------------------ */
  --container: 103rem;
  --gutter: 6.25%;
  --header-block: 5.625rem;        /* 90 px: logo height, header CTA, arrow buttons, author photo */
  --header-block-phone: 14.28vw;   /* logo square on phones */
  --col-heading: 57.14%;           /* band headings span 8 of 14 */
  --col-copy: 50%;                 /* intro copy sits in the right half */
  --col-side: 42.85%;              /* 6 of 14 */

  /* ------------------------------------------------------------------------
     RADII, RULES, SHADOWS. Measured: square corners everywhere; the only
     round shape is the play button. No shadows on the site; none added.
     ------------------------------------------------------------------------ */
  --radius-none: 0;
  --radius-round: 100vh;
  --rule-hair: 1px;
  --rule-accent: 2px;     /* yellow rule over script quotes */
  --rule-tab: 3px;        /* active tab */
  --rule-heavy: 4px;      /* subscribe field, Instagram band top */
  --frame-teaser: 6px;    /* white frame on the hero video teaser */

  /* ------------------------------------------------------------------------
     FOCUS. Measured: 2 px outline in the tone's text color, 3 px outside.
     Kept: it is already 3:1 or better on every tone (see base.css).
     ------------------------------------------------------------------------ */
  --focus-width: .125rem;
  --focus-offset: .1875rem;
  --focus-offset-inset: -.125rem;

  /* ------------------------------------------------------------------------
     MOTION. Measured durations .2s to .44s and the ease-out cubic the site
     uses for labels and links. Signature motions: the heading letter rise
     (letters slide up into place) and the copy word reveal (words brighten
     as you scroll). Under reduced motion both are off and text shows at rest.
     ------------------------------------------------------------------------ */
  --ease-out: cubic-bezier(.215, .61, .355, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);
  --duration-fast: .2s;
  --duration-base: .3s;
  --duration-slow: .4s;

  /* ------------------------------------------------------------------------
     LAYERS
     ------------------------------------------------------------------------ */
  --layer-header: 99;
  --layer-modal: 100;
  --layer-skip: 120;
}
