/* =====================================================================
   Storeyline: Builder Lite launch page prototype. DESIGN TOKENS.
   ---------------------------------------------------------------------
   SOURCE: Storeyline Brand Book & Guidelines v1.0 (Aug 2026),
   storeyline-brand-book.pdf, pp. 05-11 and 18-19. These replace the
   interim live-site values. Where the book is silent, the value is
   marked [derived] and built only from book values (tints, sizes on the
   book's fixed scale). styles.css uses nothing but these variables, so
   a token change is made here and nowhere else. If the product's
   docs/design.md disagrees, the book says the tokens win: update here.
   ===================================================================== */

/* Fonts: all on Google Fonts (book p.19). Newsreader is loaded for the
   book's "editorial accents only" role; this page doesn't use it yet. */
/* Fonts load from index.html (a <link>, so they start with the page). */

:root {
  /* ---- Base (book p.07) ---- */
  --c-ink: #1D2126;          /* primary text. Never pure black */
  --c-ink-deep: #101418;     /* dark surfaces and the mark */
  --c-paper: #F7F8F7;        /* base background */
  --c-paper-2: #EFF1F2;      /* sunken */
  --c-surface: #FFFFFF;      /* cards */
  --c-line: #E3E6E8;         /* hairlines */
  --c-stone: #6C7279;        /* secondary text, hairlines, "scheduled". AA 4.57:1, don't lighten */

  /* ---- Signals: each means exactly one thing (book p.07) ---- */
  --c-cobalt: #2E66C9;       /* action: buttons, links, focus, mark middle bar, "asset exists" */
  --c-cobalt-press: #285BB5; /* hover/press step (product token, as on the live site) */
  --c-clay: #E8623D;         /* attention: capture flags, editorial highlights */
  --c-clay-text: #C2431F;    /* small clay text (5.10:1) */
  --c-green: #00C875;        /* done: captured / delivered. Never decorative */
  --c-red: #E2445C;          /* error only. Not used on this page */
  --c-red-text: #D63552;     /* small red text (4.68:1) */
  --c-on-signal: #FFFFFF;    /* chip text on clay and green: the book's one knowing exception to AA */

  /* ---- Tints [derived from the book's chip specimens, p.08] ---- */
  --c-cobalt-tint: #E5ECF8;  /* "asset exists" chip fill */
  --c-stone-tint: #EEEFF1;   /* "scheduled" chip fill */

  /* ---- Dark surfaces (book p.08: token override, neutrals flip) ---- */
  --c-dark-paper: var(--c-ink-deep); /* closing band and footer use ink-deep (book: covers) */
  --c-dark-card: #1A1D21;
  --c-dark-text: #ECEEF0;    /* cool off-white, never pure white */
  --c-dark-stone: #9BA1A8;
  --c-dark-cobalt: #5B8DE8;
  --c-dark-line: #2A2F35;    /* [derived] hairline on ink-deep */

  /* ---- Graphics [derived: neutrals carry the surface, signals mean something] ---- */
  --c-bar: var(--c-ink);            /* programme bars */
  --c-bar-quiet: #C9CED2;           /* [derived] inactive bars in the hero strip */
  --c-gap: var(--c-clay);           /* the lone marketing bar: needs doing */
  --c-today: var(--c-ink);          /* "today" marker. Not clay: nothing to do */
  --c-drawing: var(--c-ink);        /* linework */
  --c-drawing-thin: var(--c-stone); /* hatching, dimensions */
  --c-cloud: var(--c-clay);         /* revision clouds = editorial highlight */
  --c-placeholder: var(--c-paper-2);/* photo slot fill (flat; no gradients anywhere) */

  /* ---- Type: four faces, four jobs (book p.09) ---- */
  --font-ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;   /* display + all UI */
  --font-wordmark: "Archivo", "Geist", system-ui, sans-serif;               /* the wordmark only */
  --font-editorial: "Newsreader", Georgia, serif;                           /* 1-2 story words, never sentences */
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; /* chips, tags, file rows, calendar figures */

  --fw-regular: 400;
  --fw-medium: 500;   /* headings: weight comes from size, not stroke */
  --fw-semibold: 600;
  --fw-wordmark: 800;

  /* Fixed scale (book p.10). Pick from the list; don't invent a size. */
  --fs-display-xl: 72px; /* hero, cover */
  --fs-display-l: 46px;  /* section openers */
  --fs-display-m: 32px;  /* sub-section headers */
  --fs-title: 24px;      /* card titles */
  --fs-body-l: 18px;     /* lede */
  --fs-body: 16px;
  --fs-body-s: 14px;
  --fs-meta: 13.5px;     /* metadata and section labels, in stone, sentence case */
  --fs-label: 11px;      /* mono uppercase: StatusChip and Tag only */
  /* [derived] Artwork only, inside the illustrative SVG drawings (scaled with
     the drawing, like annotation on a real sheet). Not UI type. */
  --fs-drawing: 8px;
  --fs-drawing-title: 9px;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-body: 1.6;
  --ls-display: -0.029em;
  --ls-title: -0.01em;
  --ls-mono: 1.5px;

  /* ---- Logo lockup (book p.05-06) ---- */
  --logo-mark: 32px;             /* 24px is the floor; 40px comfortable */
  --logo-mark-mobile: 28px;
  --logo-word-ratio: 0.68;       /* wordmark size = mark x 0.68 */
  --logo-gap-ratio: 0.32;        /* gap to mark = mark x 0.32 */
  --logo-track-small: -0.02em;   /* below 40px */
  --logo-track-large: -0.03em;   /* 40px and up */
  --logo-italic-pull: -0.06em;
  /* clear space = 1x mark height on every side (applied in styles.css) */

  /* ---- Spacing: 4px grid (book p.11) ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --card-pad: var(--s-5);        /* 24 */
  --stack-gap: var(--s-5);       /* 24 */
  --icon-gap: var(--s-3);        /* icon + label, 12 */
  --section-pad: var(--s-8);     /* [derived] 64 on phones */
  --section-pad-desktop: var(--s-9); /* 96 vertical (book) */
  --gutter: var(--s-5);          /* [derived] mobile page margin */
  --gutter-desktop: var(--s-7);  /* [derived] */

  /* ---- Widths: two only (book p.18) ---- */
  --w-reading: 75rem;
  --w-workbench: 100rem;
  --measure: 62ch;               /* [derived] body text measure */

  /* ---- Radii (book p.11) ---- */
  --r-chip: 6px;        /* tags, swatches */
  --r-input: 10px;      /* inputs, small buttons */
  --r-card: 16px;       /* cards, post cards */
  --r-large: 20px;      /* large surfaces */
  --r-pill: 999px;      /* status chips, primary buttons */

  /* ---- Elevation: two levels, ink-deep shadow (book p.11) ---- */
  --bw: 1px;            /* hairline */
  --bw-strong: 2px;     /* [derived] focus ring, phone frame accents */
  --shadow-card: 0 1px 1px rgba(16, 20, 24, 0.03), 0 2px 8px rgba(16, 20, 24, 0.05);
  --shadow-raised: 0 19px 48px rgba(16, 20, 24, 0.12);

  /* ---- Motion: calm, 120-200ms, no bounce (book p.11) ---- */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 160ms;
  --press-dip: 1px;     /* primary dips 1px on press */

  /* ---- Icons: line, 1.5px stroke, always with a label (book p.11) ---- */
  --icon-stroke: 1.5;

  /* ---- Product components (5 Nov 2026) ----------------------------------
     The page's product pictures are built from the app's own components
     (src/components/ui + features), so these values are copied from the
     app's src/app/globals.css and its component classes, not invented. */
  --c-cobalt-12: rgba(46, 102, 201, 0.12); /* booked calendar tile, active toggle */
  --c-clay-12: rgba(232, 98, 61, 0.14);    /* capture tile, Captures toggle */
  --c-ink-80: rgba(29, 33, 38, 0.82);      /* tile facts, brief text */
  --c-platform-linkedin: #0A66C2;          /* platform dots (globals.css --color-platform-*) */
  --c-platform-instagram: #E4405F;
  --r-xs: 2px;                             /* cadence bars (rounded-xs) */
  --c-stone-sunken: #666C73;               /* [derived] stone text on paper-2 (4.68:1); stone itself is 4.29:1 there */
  --c-cobalt-soft: #7FA6E8;                /* cobalt on the docket */
  --c-docket: #101418;                     /* Generator docket: dark in both themes */
  --c-on-docket: #F7F8F7;
  --fs-meta-s: 12px;     /* tile project line, ledger */
  --fs-caption: 12px;    /* tile topic, file names, day numbers */
  --fs-brief: 13px;      /* PostCard capture brief */
  --fs-card-head: 15px;  /* PostCard header: platform and milestone */
  --fs-card-copy: 17px;  /* PostCard drafted copy */

  /* ---- Product motion (app globals.css) ---- */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --ease-arrive: cubic-bezier(0.23, 1, 0.32, 1); /* the first-run unveil */
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);      /* [derived] a loop stepping back between runs (as the hero's JS) */
}
