/* Every colour, type, space and radius value lives here. Other stylesheets use only these variables. */
:root {
    /* light-dark() follows color-scheme: the OS preference by default, or the pull cord's choice via data-theme */
    --color-paper: light-dark(#f6f3ec, #0f0f0d);
    --color-ink: light-dark(#1b1915, #ecebe5);
    --color-dim: light-dark(#5c574d, #a3a097);
    --color-line: light-dark(#e3dfd3, #2b2a26);
    --color-focus: var(--color-ink);

    --font-serif: var(--gh-font-body, "Newsreader"), Georgia, "Times New Roman", serif;
    --font-display: var(--gh-font-heading, "Newsreader"), Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

    --text-base: clamp(1.125rem, 0.8vw + 0.95rem, 1.3rem);
    --text-small: 0.8125rem;
    --text-display: clamp(3rem, 10vw, 9rem);
    --text-value: clamp(4rem, 19.5vw, 52rem);    /* the value words (Craft, Care, Impact) */
    --text-copy: clamp(2rem, 3.2vw, 3.5rem);     /* the sentence under each value */
    --text-masthead: clamp(4rem, 19.5vw, 52rem);
    --text-mono: 0.6875rem;
    --weight-display: 200;
    --weight-sans: 300;
    --weight-sans-strong: 400;
    --text-h2: clamp(1.75rem, 3vw, 2.5rem);
    --leading-body: 1.62;
    --leading-display: 0.95;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 3rem;
    --space-6: 6rem;
    --gutter: clamp(1rem, 2.2vw, 2.25rem);
    --hero-height: 100svh;
    --shrink-at: 50vh;                           /* scroll distance before the big name condenses (read by the inline script and header.js) */
    --text-name: clamp(3.25rem, 9.5vw, 11rem);   /* name in the fixed header, at rest on the home page */
    --text-name-min: 1.75rem;                    /* name once scrolled, and on inner pages */
    --text-strap: clamp(1.1rem, 1.7vw, 1.75rem);
    --text-strap-min: 0.95rem;
    --text-strap-mobile: 2.2rem;
    --text-kicker: 1rem;                         /* "Staff Product Designer" tag */
    --nav-row-h: 2.25rem;
    --header-solid: 60%;                         /* desktop header: solid this far across from the left, then fades out */
    --header-top-pad: 1.75rem;                   /* extra top room for the big name (desktop) */
    --parallax: 3rem;                            /* total travel of the value words across the viewport (super subtle) */
    --accent-stroke: 1.6;                        /* stroke width of the value accents, in their own viewBox units */
    --dot-start: 0.1px;                          /* the full stop after "Impact": pops from start, to peak, settles at rest. */
    --dot-peak: 0.105em;                         /* Sizes are in em of the word, so the dot scales with it (about 8px / 6px on a phone). */
    --dot-rest: 0.08em;
    --dot-gap: 0.04em;                           /* space between the word and the dot */
    --woah-overshoot: 0.12em;                    /* the word jumps left this far to make room for the dot... */
    --woah-rest: 0.06em;                         /* ...then settles this far left (half the dot plus its gap) */
    --nod-angle: 3deg;                           /* "Care" tips like a hat: right side dips down, pivoting on the left middle */
    --nav-inset: 4px;                            /* nav left inset while the name is big; 0 once condensed */
    --nav-inset-mobile: 4px;
    --motion-slow: 0.6s;
    --motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --motion-shrink: 0.9s;                       /* name shrink: long slow start, then snap into place */
    --motion-shrink-ease: cubic-bezier(0.8, 0, 0.1, 1);
    --text-strap-hero: clamp(2rem, 3.2vw, 3.5rem);
    --hero-text-width: min(34rem, 50vw);
    --hero-slice-x: 30vw;                        /* desktop: diagonal slice off the hero's bottom-right corner, */
    --hero-slice-y: 18svh;                       /* sized to remove the Tech Circus mark from the stand-in photo */
    --header-height: 6.5rem;                     /* compact header height, used to offset inner pages */
    --split-wide: 62fr;          /* editorial split: wide image side, narrow text side */
    --split-narrow: 38fr;
    --split-media-ratio: 16 / 11;

    /* Pull cord (theme switch) */
    --color-cord: #fff;          /* drawn with mix-blend-mode: difference so it reads on paper and on photos */
    --cord-width: 420px;
    --cord-height: 250px;
    --cord-knob: 46px;
    --cord-clearance: 4rem;      /* space kept free on the right for the rope */

    --measure: 66ch;
    --container: none;   /* full width on desktop; prose keeps --measure */
    --radius: 0;

    --scrim: linear-gradient(to bottom, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0.1) 38%, rgb(0 0 0 / 0.08) 55%, rgb(0 0 0 / 0.62));
    --color-on-image: #f6f3ec;
}
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (min-width: 50rem) { :root { --gutter: clamp(1.5rem, 4vw, 5rem); --shrink-at: 60vh; --text-value: clamp(8rem, 27vw, 34rem); --text-copy: clamp(2rem, 3.8vw, 4.5rem); } }
@media (min-width: 64rem) { :root { --text-value: clamp(8rem, 17vw, 24rem); --text-copy: clamp(1.75rem, 2.6vw, 3.25rem); } }  /* desktop: value rows go side by side, so the word scales to a narrower panel */
