/* Ephor Intelligence — the website's design system: every size, space, edge,
   radius, shadow and colour the pages use (owner, 2026-10-08: "Create a
   design system for the Ephor Website, I want consistency").

   The look is still the owner's approved one (the 2026-08-24 Replit build,
   de-Thor'd at the token level: Manrope, our own hexes, logical properties
   only — CLAUDE.md §6). What changed is that the values are now a SYSTEM:
   the page used 21 font sizes and ~66 spacing values, typed file by file, and
   the hero title came out smaller than the section titles on a laptop.

   The rules, which web/tests/ephorDesignSystem.test.js holds:
   · every font-size, line-height, letter-spacing, spacing, radius, shadow and
     text colour in ephor/css/ is a token from this file (consent.css is the
     one exception: identical on all three sites, it carries its own values);
   · the type scale keeps its order at every width — display > h2 > title >
     h3 > lede > body-lg > body > small > caption > micro;
   · every var() a stylesheet reads is defined here, or is one of the few the
     page sets at runtime.
   The browsable version is the "Ephor Website Design System" artifact. */

:root {
  color-scheme: light;

  /* ---- type: Manrope, three weights (400, 500, 600) ----
     Fluid where the size should follow the screen; the clamp() ends are the
     phone and the desktop sizes. */
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.75rem, 1.6rem + 4.2vw, 5.25rem); /* 44 → 84: the hero title, one per page */
  --fs-h2: clamp(2.25rem, 1.5rem + 2.8vw, 4rem);         /* 36 → 64: section titles, the closing call */
  --fs-title: clamp(2rem, 1.7rem + 1vw, 2.5rem);         /* 32 → 40: dialog titles, and the big figures */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);       /* 20 → 24: card and column titles, sub-heads */
  --fs-lede: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);  /* 18 → 20: the paragraph under a section title */
  --fs-body-lg: 1.125rem;  /* 18: an answer, a closing line, the FAQ's questions */
  --fs-body: 1rem;         /* 16: running text, a column's description, buttons, links, form fields */
  --fs-small: 0.875rem;    /* 14: card rows, chips, captions, form labels */
  --fs-caption: 0.75rem;   /* 12: eyebrows, meta lines, "→ who it goes to" */
  --fs-micro: 0.6875rem;   /* 11: capital labels and tags — the floor; nothing smaller */
  --micro: var(--fs-micro);
  --fs-brand: 1.1875rem;   /* 19: the EPHOR wordmark in the lockup, and only there */

  --lh-display: 1.04;
  --lh-heading: 1.2;
  --lh-tight: 1.1;   /* figures, stacked labels */
  --lh-snug: 1.3;    /* card titles, sub-heads */
  --lh-body: 1.5;

  --ls-display: -0.035em;  /* the hero title */
  --ls-tight: -0.03em;     /* big figures */
  --ls-heading: -0.02em;   /* h1–h3 */
  --ls-caps: 0.1em;        /* every uppercase label */
  --ls-brand: 0.08em;      /* EPHOR, in the lockup */
  --ls-brand-tag: 0.24em;  /* INTELLIGENCE, in the lockup */

  /* ---- space: a 4px grid ---- */
  --s-0: 0.125rem;  /*  2 */
  --s-1: 0.25rem;   /*  4 */
  --s-2: 0.5rem;    /*  8 */
  --s-3: 0.75rem;   /* 12 */
  --s-4: 1rem;      /* 16 */
  --s-5: 1.25rem;   /* 20 */
  --s-6: 1.5rem;    /* 24 */
  --s-8: 2rem;      /* 32 */
  --s-10: 2.5rem;   /* 40 */
  --s-12: 3rem;     /* 48 */
  --s-16: 4rem;     /* 64 */
  --s-20: 5rem;     /* 80 */
  --s-32: 8rem;     /* 128 */
  --section-pad: clamp(5rem, 3rem + 5vw, 7.5rem);  /* 80 → 120: above and below every section */
  --head-gap: clamp(3rem, 1.5rem + 4vw, 5rem);     /* 48 → 80: a section's title block to its content */

  /* ---- layout: ONE page edge ----
     The capsule header, every rounded panel and the footer frame share the
     SHELL's outer edges; every line of text starts at the shell edge plus
     the INSET — the same line the logo sits on. Bands (the deployment photo,
     the FAQ) run full width, their text on that same line. */
  --shell: min(90%, 80rem);
  --inset: var(--s-6);
  --gutter: calc((100% - var(--shell)) / 2);           /* page edge to the shell */
  --edge: calc(var(--gutter) + var(--inset));          /* page edge to text, for full-width bands */
  --measure: 52rem;        /* the widest a title block or lede runs */
  --measure-text: 42rem;   /* the widest running text runs */

  /* ---- radius ---- */
  --r-xs: 0.25rem;   /* the smallest tags */
  --r-sm: 0.5rem;    /* inputs, small tags, inner tables */
  --r-md: 0.75rem;   /* tiles, chips, inner cards */
  --r-card: 1rem;    /* cards */
  --r-panel: 1.25rem;  /* panels, menus, the briefing */
  --r-lg: 1.5rem;    /* large panels, dialogs */
  --r-xl: 2rem;      /* the scenic panels */
  --r-shell: 2.75rem;  /* the capsule header */
  --r-pill: 100vw;   /* pills and round buttons */

  /* ---- shadow: four depths ---- */
  --shadow-soft: -7px -5px 26px #0000000f;          /* glass cards resting on a panel */
  --shadow-card: 0 4px 6px -4px #0000001a, 0 10px 15px -3px #0000001a;  /* a card above the page */
  --shadow-float: 0 18px 40px -18px #16294e66;      /* pills and chips that float */
  --shadow-lift: 0 30px 70px #16294e2e;             /* the hero briefing, menus, dialogs */
  --card-shadow: var(--shadow-soft);

  /* ---- colour: the core family ---- */
  --white: #fff;
  --ice: #e8f0f0;
  --mist: #dde5e5;
  --carbon: #000;
  --navy: #16294e;
  --navy-dark: #0d1a30;
  --sky: #c6e8fb;
  --teal: #0a5854;
  --green: #21c36c;
  --blue: #2b8fd9;
  --wire: #2a8593;   /* the engine's connector accent */
  --ink-ground: #070c0b;  /* the FAQ band */

  /* text, by ground */
  --slate: #37424f;   /* body text on white and ice */
  --grey: #667284;    /* soft labels */
  --stone: #94938f;   /* scene references only, never text */
  --mutek: #0009;     /* the 60% black the ledes use */
  --on-navy: #dfe7f3;     /* body text on navy */
  --on-navy-soft: #9fb0c8;
  --on-dark: #fff;
  --on-dark-2: #ffffffcc; /* 80% */
  --on-dark-3: #ffffffb3; /* 70% */
  --on-dark-4: #ffffff99; /* 60%: the floor for words on a dark ground */
  --on-dark-5: #ffffff66; /* 40%: separators and marks only, never words */
  --mute-on-ink: #ffffff8c;

  /* tinted surfaces */
  --panel-ice: #e8eef0;   /* ask wrapper, module story */
  --warm: #f8ecdf;        /* amber tint rows/chips */
  --warm-text: #a8602f;
  --alert: #fdefec;
  --alert-text: #c04a31;
  --alert-dot: #e26e66;
  --meta-dot: #e86045;
  --mint: #eff7f6;
  --paper: #f7f6f4;
  --haze: #fbfbfa;        /* levels panel ground, unlit seats */
  --line: #eaeaea;        /* card hairlines */
  --line-soft: #e6e8ec;
  --line-strong: #c9d0d8; /* the connector between the module story's steps */
  --line-input: #ccd5d8;
  --glass: #ffffffd9;
  --glass-on-dark: #ffffff14;
  --glass-on-dark-2: #ffffff1f;
  --line-on-dark: #ffffff26;
  --ring-on-dark: #ffffff17;   /* the footer's Watch Ring */
  --nav-tint: linear-gradient(#16294e2e, #c6e8fb2e);
  --hero-veil: #f4f9fa;

  /* the brand's own colours (docs/brand-mark.md) */
  --belt: #ffb84d;          /* Orion's three stars */
  --watcher: #2a46d4;       /* the cobalt dot in the Watch Ring */
  --watcher-on-dark: #5b9dff;

  /* Orion's six seats, one accent per MEANING (CLAUDE.md §7), in the Day
     Command values because this page is light. The cockpit's own map is
     web/src/lib/agents.js + web/src/theme/tokens.js; this site cannot import
     it, so web/tests/ephorPage.test.js holds these equal to it. */
  --seat-sage: #6d4ac7;
  --seat-echo: #c53726;
  --seat-anchor: #0a7687;
  --seat-sentinel: #965f0e;
  --seat-pulse: #b93a7e;
  --seat-orbit: #1f60ed;
  --found: #0b7b53;  /* green: value found */
}

/* phones: the shell nearly fills the screen and the inset tightens, so the
   text still starts on the logo's line */
@media (max-width: 767px) {
  :root { --shell: calc(100% - 1.5rem); --inset: var(--s-5); }
}
