/*
 * The site's design tokens since the pivot of 2026-11-24: near-black with a violet cast, one hue for each
 * service, three typefaces, and the space, radius, depth and motion scales. Every value comes from the
 * brand designer's specification (Design/pivot-2026-11-24/DESIGN.md, sections 3 and 4). The typefaces
 * themselves are declared in fonts.css.
 */

:root {
    color-scheme: dark;

    /* ---------- Surfaces: near-black with a violet cast, stepped in tone ---------- */
    --color-ink: #07060B;
    --color-ink-deep: #030206;
    --color-surface: #0C0A13;
    --color-raised: #14111D;
    --color-raised-high: #1C1828;
    --color-violet-depth: #1A0A26;

    /* ---------- Lines ---------- */
    --color-line: rgba(242, 239, 250, 0.10);
    --color-line-strong: rgba(242, 239, 250, 0.22);
    --color-field-edge: #6E6884;
    --color-field-edge-hover: #8F89A6;

    /* ---------- Text ---------- */
    --color-text: #F2EFFA;
    --color-text-muted: #B6B0C8;
    --color-text-faint: #8C86A0;

    /* ---------- Service hues: one for each service, taken from the metallic ribbon ---------- */
    --color-ai-automations: #D07BFF;
    --color-website-services: #62D2FF;
    --color-software-engineering: #B8D4EA;
    --color-ember: #FF7A52;

    /* ---------- Signals ---------- */
    --color-focus: #8FE3FF;
    --color-error: #FF8F85;
    --color-success: #7EE2B8;

    /* ---------- The ribbon gradient: hairlines and glows only, never behind text ---------- */
    --gradient-ribbon: linear-gradient(100deg, #7B5CFF 0%, #D07BFF 34%, #FF7A52 66%, #62D2FF 100%);

    /* ---------- Type ---------- */
    --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
    --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    --text-display-1: clamp(2.625rem, 1.05rem + 6.4vw, 7rem);
    --text-display-2: clamp(2.25rem, 1.2rem + 2.6vw, 4rem);
    --text-heading-1: clamp(2.5rem, 1.3rem + 4.4vw, 5.5rem);
    --text-heading-2: clamp(1.875rem, 1.3rem + 2vw, 3rem);
    --text-heading-3: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
    --text-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
    --text-body: 1.0625rem;
    --text-small: 0.9375rem;
    --text-label: 0.8125rem;

    /*
     * Type for scannable selling lists (plan and option lists, checkout card lines): one step under body,
     * tight leading and a tick in the service hue. Spec: Design/mobile-list-type-spec-2026-12-02.md.
     * 15 px at 375, 16 px from 750 up; never under 15.
     */
    --text-list: clamp(0.9375rem, 0.875rem + 0.2667vw, 1rem);
    --leading-list: 1.35;
    --list-item-gap: clamp(8px, 7.17px + 0.2210vw, 10px);
    --list-mark-size: 1em;
    --list-mark-gap: 0.5em;
    --list-measure: 36em;
    /* The site's tick (the checkout's add-on line icon), drawn as a mask so it takes the service hue */
    --list-mark-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");

    /* ---------- Space (4 px base) ---------- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;
    --space-11: 160px;
    --page-gutter: clamp(20px, 5vw, 64px);
    --content-width: 1240px;
    --measure: 62ch;
    --section-padding: clamp(96px, 12vh, 160px);
    --header-height: 72px;

    /* ---------- Radius ---------- */
    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;
    --radius-pill: 999px;

    /* ---------- Depth ---------- */
    --shadow-raised: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 60px -24px rgba(0, 0, 0, 0.75);
    --shadow-floating: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 90px -30px rgba(0, 0, 0, 0.85);
    --glow-ai-automations: 0 0 120px -20px rgba(208, 123, 255, 0.40);
    --glow-website-services: 0 0 120px -20px rgba(98, 210, 255, 0.35);
    --glow-software-engineering: 0 0 120px -20px rgba(184, 212, 234, 0.28);

    /* ---------- Motion ---------- */
    --duration-quick: 160ms;
    --duration-standard: 240ms;
    --duration-gentle: 480ms;
    --duration-slow: 800ms;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Phones: a shorter header and less space between sections ---------- */

@media (max-width: 767px) {
    :root {
        --header-height: 60px;
        --section-padding: 80px;
    }
}

/* ---------- Each service's hue, for whatever names the service ---------- */

[data-service="ai-automations"] {
    --service-hue: var(--color-ai-automations);
    --service-glow: var(--glow-ai-automations);
}

[data-service="website-services"] {
    --service-hue: var(--color-website-services);
    --service-glow: var(--glow-website-services);
}

[data-service="software-engineering"] {
    --service-hue: var(--color-software-engineering);
    --service-glow: var(--glow-software-engineering);
}
