/*
 * Landing page design tokens, scoped to .lp. The colours and fonts are the
 * pine/saffron Jobs by Fixdesk design system (jobs-by-fixdesk-brand/
 * tokens.json), the same as style.css; fonts are the former Geist set;
 * the layout tokens are the landing's
 * own. The old names are kept: --lp-white is surface-raised, --lp-paper is
 * surface, --lp-black is the pine-black dark ground.
 */
.lp {
    /* Colour */
    --lp-white: #ffffff;
    --lp-paper: #f7f5ef;
    --lp-black: #0e1a17;
    --lp-charcoal: #15251f;
    --lp-grey: #46554f;
    --lp-grey-light: #a9bab2;
    --lp-brand: #0b5d4b;
    --lp-brand-deep: #073b30;
    --lp-brand-tint: #d8ebe4;
    --lp-saffron: #f2a93b;

    /* Scene theme (light by default; [data-theme="dark"] swaps these). */
    --lp-bg: var(--lp-paper);
    --lp-fg: #10201c;
    --lp-fg-2: #46554f;
    --lp-fg-3: #46554f;
    --lp-line: #d9d4c6;
    --lp-line-strong: #7b8a82;
    --lp-surface: var(--lp-white);
    --lp-button-bg: var(--lp-brand);
    --lp-button-fg: #ffffff;
    --lp-focus: #1d5fa6;

    /* Type */
    --lp-font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --lp-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    /* Display sizes track the viewport so a headline keeps its shape. */
    --lp-size-display: clamp(2.75rem, 1.1rem + 6.2vw, 7.25rem);
    --lp-size-h2: clamp(2.25rem, 1rem + 4.2vw, 5.5rem);
    --lp-size-h3: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
    --lp-size-h4: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    --lp-size-lead: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
    --lp-size-body: 1rem;
    --lp-size-small: 0.875rem;
    --lp-size-label: 0.75rem;

    --lp-tracking-display: -0.052em;
    --lp-tracking-h2: -0.045em;
    --lp-tracking-h3: -0.03em;

    /* Space: an 8px rhythm, with fluid section padding. */
    --lp-space-1: 0.5rem;
    --lp-space-2: 1rem;
    --lp-space-3: 1.5rem;
    --lp-space-4: 2rem;
    --lp-space-5: 3rem;
    --lp-space-6: 4rem;
    --lp-space-7: 6rem;
    --lp-section-y: clamp(6rem, 4rem + 9vh, 11rem);

    /* Layout */
    --lp-max: 90rem;
    --lp-gutter: clamp(1.25rem, 0.5rem + 3.6vw, 4.5rem);
    --lp-nav-h: 4.5rem;
    --lp-radius: 1rem;
    --lp-radius-small: 0.625rem;

    /* Motion: long, soft decelerations. Nothing bounces. */
    --lp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --lp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --lp-fast: 180ms;
    --lp-slow: 900ms;
}

.lp [data-theme="dark"],
.lp-nav[data-theme="dark"] {
    --lp-bg: var(--lp-black);
    --lp-fg: #edf3f0;
    --lp-fg-2: #a9bab2;
    --lp-fg-3: #a9bab2;
    --lp-line: #26382f;
    --lp-line-strong: #6f8a7e;
    --lp-surface: var(--lp-charcoal);
    --lp-button-bg: #4fd1ae;
    --lp-button-fg: #07251d;
    --lp-focus: #7db4ee;
}

.lp [data-theme="paper"] {
    --lp-bg: #ece8dd;
    --lp-surface: var(--lp-white);
}
