/* ══════════════════════════════════════════════════════════════════════
   LONGLAST CAPITAL — theme.css

   THE STYLE SHEET. Everything you would want to restyle lives in this
   one file: fonts, colors, type sizes, spacing, corners, motion.

   Change a value, save, refresh — every page follows.
   site.css holds the layout and only ever reads these variables, so you
   should not need to open it to re-skin the site.
   ══════════════════════════════════════════════════════════════════════ */


/* ── 1 · FONT FILES ─────────────────────────────────────────────────────
   To swap a typeface: drop the new .woff2 into /public/fonts, point the
   matching block below at it, then update the name in section 2.        */

@font-face {
    font-family: 'Satoshi';
    src: url('fonts/satoshi500.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/satoshi700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'General Sans';
    src: url('fonts/gensans500.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/jbmono.woff2') format('woff2');
    font-weight: 100 800; font-style: normal; font-display: swap;
}


:root {

    /* ── 2 · FONTS ──────────────────────────────────────────────────────
       Three voices: display = headlines, body = prose, mono = labels,
       numbers and data.                                                  */
    --font-display: 'Satoshi', 'General Sans', system-ui, sans-serif;
    --font-body:    'General Sans', 'Satoshi', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --weight-display: 500;      /* headlines — scale does the work, not boldness */
    --weight-body:    500;
    --weight-mono:    500;
    --weight-strong:  700;      /* <strong> text */


    /* ── 3 · TYPE SIZES ─────────────────────────────────────────────────
       clamp(smallest, fluid, largest): phones get the first number,
       wide screens the last.                                             */
    --size-base:  112.5%;                       /* body text. 112.5% = 18px, 100% = 16px */
    --size-hero:  clamp(44px, 8.2vw, 118px);    /* home page headline      */
    --size-h1:    clamp(38px, 5.4vw, 72px);     /* interior page titles    */
    --size-h2:    clamp(32px, 3.6vw, 50px);     /* band statements, years  */
    --size-display: clamp(36px, 4.4vw, 64px);   /* large names in lists    */
    --size-section: clamp(24px, 2.2vw, 30px);   /* section titles (left rail) */
    --size-h3:    clamp(22px, 2vw, 26px);       /* card and row titles     */
    --size-lede:  clamp(24px, 2.8vw, 40px);     /* large intro statements  */
    --size-label: 11px;                         /* small uppercase labels  */

    /* the Labs page has a few sizes of its own */
    --size-giant:     clamp(54px, 8.4vw, 128px);  /* the three platform names   */
    --size-read:      clamp(24px, 3vw, 44px);     /* the description beside them */
    --size-row:       clamp(26px, 3vw, 44px);     /* use case and case study titles */

    --line-body:    1.5;                        /* line height of body text */
    --line-heading: 1;                          /* line height of headlines */
    --track-display: -0.02em;                   /* headline letter spacing  */
    --track-label:   0.1em;                     /* label letter spacing     */


    /* ── 4 · COLORS ─────────────────────────────────────────────────────*/

    /* surfaces */
    --color-bg:        #ffffff;     /* page background                       */
    --color-panel:     #f4f7f6;     /* cards, callouts, diagrams             */
    --color-raised:    #e9f0ec;     /* card hover                            */
    --color-figure:    #f2f5f9;     /* the panel behind a diagram picture: keep it the same as the picture's own ground */

    /* the lilac banner that closes the Labs page: the colors of the Studio poster it was made from.
       They are the same on a dark page and a light one. */
    --color-poster:      #ebe7f9;   /* its ground. The hexagon drawing is filled with this same color */
    --color-poster-ink:  #1d1933;   /* its words                             */
    --color-poster-line: #67637a;   /* its dots                              */

    /* the band behind every page title */
    --color-band-top:    #e3ebe6;
    --color-band-bottom: #edf2ee;
    --color-band-mark:   #d7e3dc;   /* the large ghosted mark in the band    */

    /* text */
    --color-ink:       #17181c;     /* hero headline, logo                   */
    --color-heading:   #1e2124;     /* headings + primary text               */
    --color-body:      #1e2124;     /* paragraphs                            */
    --color-mid:       #636363;     /* secondary text                        */
    --color-muted:     #767676;     /* labels, captions                      */

    /* accent — one per site */
    --color-accent:      #2b5945;
    --color-accent-tint: rgba(43, 89, 69, .10);
    --color-on-solid:    #ffffff;   /* text on solid buttons                 */

    /* lines */
    --color-line:      #aaaaaa;     /* card edges, strong rules              */
    --color-line-soft: #dbdbdb;     /* row dividers                          */

    /* dark surfaces: the footer, and the dark bands on the Labs page */
    --color-dark:          #1e2124;
    --color-on-dark:       #ffffff;
    --color-on-dark-body:  #d8d8d8;
    --color-on-dark-muted: #9b9b9b;
    --color-on-dark-mid:    #b4b8bb;    /* secondary text on a dark band         */
    --color-on-dark-line:   #5a6066;    /* strong rules on a dark band           */
    --color-on-dark-soft:   #383c41;    /* row dividers on a dark band           */
    --color-on-dark-accent: #8fc9ad;    /* the accent, lightened for dark        */
    --color-on-dark-tint:   rgba(143, 201, 173, .16);

    /* live data + form states — never decoration */
    --color-up:    #2b5945;
    --color-down:  #b3261e;
    --color-error: #b3261e;


    /* ── 5 · SPACING & LAYOUT ───────────────────────────────────────────*/
    --max-width:     1440px;                    /* widest the content gets   */
    --page-pad:      clamp(20px, 2.1vw, 30px);  /* left/right page margin    */
    --gutter:        clamp(12px, 2.1vw, 30px);  /* gap between columns       */
    --section-space: clamp(72px, 9.5vw, 144px); /* air above and below every section */
    --block-gap:     clamp(32px, 4vw, 60px);    /* gap between blocks inside a section */
    --header-height: 68px;
    --text-width:    40rem;                     /* max width of long prose   */


    /* ── 6 · SHAPE ──────────────────────────────────────────────────────*/
    --radius:   4px;                            /* buttons, cards, inputs    */
    --hairline: 1px;                            /* every rule and border     */


    /* ── 7 · MOTION ─────────────────────────────────────────────────────*/
    --speed-hover:  .25s;                       /* links, underlines         */
    --speed-button: .3s;
    --speed-reveal: .7s;                        /* content fading in         */
    --speed-hero:   1.05s;                      /* hero headline wipe        */
    --speed-open:   .5s;                        /* rows opening and closing  */

    /* logo intro (intro.js): one continuous move, start to finish */
    --intro-time:       1.5s;                   /* first page of a visit     */
    --intro-quick-time: .6s;                    /* every page after that     */
    --ease:         cubic-bezier(.65, 0, .35, 1);
    --speed-turn:   5.5s;                       /* Labs page: how long each platform is shown before the next takes its turn */
}


/* ── 8 · DARK PAGES ─────────────────────────────────────────────────────
   A page is shown dark when the line near its top that begins <html reads

       <html lang="en" data-tone="dark">

   The Labs page does. To make a page light again, like the rest of the
   site, delete  data-tone="dark"  from that line. (To look before you
   change anything, add ?tone=light to the Labs address.)

   These are the dark versions of the colors in section 4.               */

html[data-tone="dark"] {
    --color-bg:          #131417;
    --color-panel:       #1a1c1f;
    --color-raised:      #22252a;
    --color-band-top:    #1d2023;
    --color-band-bottom: #17191c;
    --color-band-mark:   #282c30;

    --color-ink:         #ffffff;
    --color-heading:     #f3f4f4;
    --color-body:        #d9dbdc;
    --color-mid:         #a6abaf;
    --color-muted:       #8a9094;

    --color-accent:      #8fc9ad;
    --color-accent-tint: rgba(143, 201, 173, .16);
    --color-on-solid:    #17181c;

    --color-line:        #5a6066;
    --color-line-soft:   #32363a;

    --color-dark:        #0c0d0f;       /* on a dark page the dark bands and the footer go a shade deeper */
}
