/*
 * MOMO Report System, tokens (2026-11-05).
 *
 * A design system for long reports and company profiles, built from two
 * references the client supplied: the Nayture report "Building a brand like
 * Patagonia" (2000 x 1125 pages) and the SPACE10 Brand Guidelines 2022
 * (1000 x 563 pages). Measurements were read off those pages and are tagged:
 *
 *   [extracted]  measured on the reference pages
 *   [derived]    worked out from an extracted value
 *   [theme]      a MOMO D'ECLAT choice, swappable per report
 *
 * A page is 16:9 and is its own container, so every size here is in cqw:
 * 1cqw is 1% of the page's width. The whole page scales as one, like a PDF.
 */

@font-face {
  font-family: 'RP Sans';
  src: url('./fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* One family, a grotesk, for everything (client, 2026-11-06: "dont use serif").
     The references pair a serif with a grotesk; this system keeps only the
     grotesk, the SPACE10 way, and makes hierarchy with size and weight. */
  --rp-sans: 'RP Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* [extracted] SPACE10 Helvetica, Nayture body grotesk */
  --rp-display: var(--rp-sans);                                            /* [derived] display = the same grotesk */

  /* Format */
  --rp-page-h: 56.25cqw;   /* [derived] 16:9 */

  /* Grid (client, 2026-11-06: "all text must sit on the column"). Twelve
     columns with gutters between the margins. Text starts on a column and
     ends on a column; rules, panel edges and frames sit in the middle of a
     gutter, so text is always one half gutter from them. The Nayture three
     columns are 1-4, 5-8 and 9-12; the SPACE10 half line is the gutter
     between 6 and 7. */
  --rp-margin: 3.1cqw;     /* [extracted] Nayture 62 / 2000 */
  --rp-gutter: 2cqw;       /* [derived] 32px on a 1600 page */
  --rp-col: calc((100cqw - 2 * var(--rp-margin) - 11 * var(--rp-gutter)) / 12);  /* [derived] 5.983cqw */
  --rp-step: calc(var(--rp-col) + var(--rp-gutter));                               /* [derived] one column and its gutter */
  --rp-x1: calc(var(--rp-margin) + 4 * var(--rp-step) - var(--rp-gutter) / 2);    /* [derived] gutter between columns 4 and 5 */
  --rp-x2: calc(var(--rp-margin) + 8 * var(--rp-step) - var(--rp-gutter) / 2);    /* [derived] gutter between columns 8 and 9 */
  --rp-half: 50cqw;        /* [extracted] the gutter between 6 and 7, SPACE10's half line */
  --rp-head-h: 7.25cqw;    /* [extracted] Nayture header rule, 145 / 2000 */
  --rp-foot-y: 53cqw;      /* [extracted] Nayture bottom rule, 1060 / 2000 */
  --rp-foot-gap: 3.25cqw;  /* [derived] page height less the bottom rule */
  /* Rows (client, 2026-11-06: "create grid lines for rows"; "equal top and
     bottom padding"). Six rows A to F with the column gutter fill a frame
     inside the two rules. The frame keeps the same space, --rp-pad, between
     the header rule and the first line's capitals and between the last block
     and the bottom rule. --rp-cap-off is how far body capitals sit below their
     line's top; viewer.js measures it and sets it, this is its first guess. */
  --rp-rows: 6;
  --rp-pad: 2cqw;
  --rp-row-gap: 1.6cqw;   /* the gap between rows: under a quarter of a row step, so body at four lines a row step always ends inside a row */
  --rp-cap-off: 0.75cqw;
  --rp-frame-top: calc(var(--rp-head-h) + var(--rp-pad) - var(--rp-cap-off));
  --rp-frame-bottom: calc(var(--rp-foot-y) - var(--rp-pad));
  --rp-row: calc((var(--rp-frame-bottom) - var(--rp-frame-top) - 5 * var(--rp-row-gap)) / 6);
  --rp-row-step: calc(var(--rp-row) + var(--rp-row-gap));
  --rp-row-a: var(--rp-frame-top);
  --rp-row-b: calc(var(--rp-frame-top) + var(--rp-row-step));
  --rp-row-c: calc(var(--rp-frame-top) + 2 * var(--rp-row-step));
  --rp-row-d: calc(var(--rp-frame-top) + 3 * var(--rp-row-step));
  --rp-row-e: calc(var(--rp-frame-top) + 4 * var(--rp-row-step));
  --rp-row-f: calc(var(--rp-frame-top) + 5 * var(--rp-row-step));
  --rp-region-pt: 0cqw;    /* [derived] a column's first block starts on row A's top line (client, 2026-11-06) */
  --rp-region-pb: 2.1cqw;  /* [extracted] a button's foot sits 42 / 2000 above the bottom rule */

  /* Lines */
  --rp-hair: max(1px, 0.06cqw);      /* [extracted] 1px at 1600 */
  --rp-hair-strong: max(1px, 0.08cqw);

  /* Type scale (client, 2026-11-06: "unified the text token"). Six steps, and
     every text in a report uses one of them: nothing else sets a size, a line
     height, a weight or a letter spacing. Sizes are the client's, set in the
     Type panel. Heading, lead and body line heights are tied to the grid: a
     whole number of lines fills one row and its gutter (--rp-row-step), so a
     block that starts on a row's line always ends inside a row, never in a
     gutter, with no adjusting. Change --rp-n-* (lines a row) to set them.
     Try values live with the Type panel (T), then copy them back here. */
  --rp-n-heading: 1.5;  --rp-n-lead: 3;  --rp-n-body: 4;   /* lines a row step; 1.5 lands a heading's lines on thirds of a row step, all inside rows */
  --rp-type-display: 6cqw;     --rp-lh-display: var(--rp-row);                                            --rp-track-display: -0.03em;  /* titles: cover, page, section opener, divider */
  --rp-type-heading: 4cqw;     --rp-lh-heading: calc(var(--rp-row-step) / var(--rp-n-heading));  --rp-track-heading: -0.02em;  /* headlines, statements, quotes, step titles, page titles */
  --rp-type-lead: 2cqw;        --rp-lh-lead: calc(var(--rp-row-step) / var(--rp-n-lead));        --rp-track-lead: -0.01em;     /* lead text, intros, labels, lists, facts, buttons, links, card titles */
  --rp-type-body: 1.15cqw;     --rp-lh-body: calc(var(--rp-row-step) / var(--rp-n-body));        --rp-track-body: 0em;         /* body text, tables, promises, card and step text */
  --rp-type-small: 1cqw;       --rp-lh-small: 1.3;                                              --rp-track-small: 0em;        /* pills, the foot, the back cover notes; spaced capitals add --rp-track-caps */
  --rp-type-micro: 0.5cqw;     --rp-lh-micro: 1;                                              --rp-track-micro: 0.22em;     /* picture credits */
  --rp-weight-regular: 400;
  --rp-weight-medium: 500;    /* spaced capitals only */
  --rp-track-caps: 0.32em;    /* spaced capitals, one spacing everywhere */

  /* Radius. Nayture is square; SPACE10 rounds its tiles and panels. */
  --rp-r-tile: 1.25cqw;      /* [extracted] SPACE10 image tile, 12 / 1000 */
  --rp-r-panel: 0.8cqw;      /* [extracted] SPACE10 grey panel, 8 / 1000 */
  --rp-r-row: 0.5cqw;        /* [extracted] SPACE10 principle row, 5 / 1000 */

  /* Colour, the neutral system. A report's theme overrides the accents. */
  --rp-paper: #FFFFFF;
  --rp-ink: #0D0D0D;          /* [extracted] Nayture near black */
  --rp-cream: #F2F2EE;        /* [extracted] Nayture first column panel */
  --rp-grey: #F2F2F2;         /* [extracted] SPACE10 panel */
  --rp-night: #0D0D0D;        /* [extracted] Nayture black page */
  --rp-rule: #9C9C9C;         /* [derived] one grey that reads on paper, colour and night */
  --rp-rule-strong: #4A4A4A;
  --rp-dots: rgba(13, 13, 13, 0.35);
  --rp-a1: #FF6B00; --rp-a1-ink: #0D0D0D;  /* [extracted] Nayture orange */
  --rp-a2: #7A00D6; --rp-a2-ink: #FFFFFF;  /* [extracted] Nayture purple */
  --rp-a3: #0024E0; --rp-a3-ink: #FFFFFF;  /* [extracted] Nayture blue */
  --rp-a4: #FAD04B; --rp-a4-ink: #0D0D0D;  /* [extracted] SPACE10 yellow */

  /* The viewer around the pages */
  --rp-desk: #0B0D10;
  --rp-desk-gap: 1.25rem;
}

/* MOMO D'ECLAT theme [theme]: the brand's own ink and accents. */
.rp-theme-momo {
  --rp-ink: #0B1320;           /* near black, in the brand's blue family */
  --rp-night: #0B1320;
  --rp-cream: #F1F4F6;         /* the site's cool ground, not Nayture's warm cream */
  --rp-grey: #EEF2F5;
  --rp-dots: rgba(11, 19, 32, 0.35);
  --rp-a1: #008AC7; --rp-a1-ink: #0B1320;  /* brand blue: ink on it is 4.8:1 */
  --rp-a2: #FEB012; --rp-a2-ink: #0B1320;  /* brand gold */
  --rp-a3: #0F4275; --rp-a3-ink: #FFFFFF;  /* brand navy */
  --rp-a4: #FEB012; --rp-a4-ink: #0B1320;
}
