:root {
    --color-bg: #ffffff;
    --color-bg-soft: #f6f8fb;

    --color-black: #0b1120;
    --color-text: #0b1120;
    --color-text-soft: #475569;
    --color-text-muted: #94a3b8;
    /* small text that must stay readable (4.5:1 on white and on --color-bg-soft); muted is for lines, icons and placeholders */
    --color-text-quiet: #64748b;

    --color-border: #e2e8f0;
    --color-border-soft: #eef2f6;

    --color-green: #22c55e;
    --color-green-dark: #16a34a;
    --color-green-ink: #052e16;
    --color-green-soft: #ecfdf3;

    /* the green hero at the top of a page: gradient, the text colour on it, and the accent for small icons */
    --hero-top: var(--color-green);
    --hero-bottom: color-mix(in srgb, var(--color-green) 58%, #ffffff);
    --on-hero: var(--color-green-ink);
    --on-hero-accent: #ffffff;

    --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* page width: content never gets wider than this; side padding grows with the screen */
    --container-width: 1440px;
    --container-pad: clamp(20px, 4vw, 56px);
    --header-height: 76px;
    --breakpoint-nav: 1160px;

    --radius: 10px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);

    color-scheme: light;
}

:root[data-theme="dark"] {
    --color-bg: #0b1120;
    --color-bg-soft: #131c2e;

    --color-black: #f8fafc;
    --color-text: #f1f5f9;
    --color-text-soft: #a3b1c6;
    --color-text-muted: #64748b;
    --color-text-quiet: #7c8aa0;

    --color-border: #243044;
    --color-border-soft: #1a2436;

    --color-green-soft: rgba(34, 197, 94, .14);

    /* in the dark theme the hero is a deep green, so light text stays readable on it */
    --hero-top: color-mix(in srgb, var(--color-green) 36%, var(--color-bg));
    --hero-bottom: color-mix(in srgb, var(--color-green) 12%, var(--color-bg));
    --on-hero: var(--color-text);
    --on-hero-accent: var(--color-green);

    /* the lines of the waves: white in the light theme, dark (the page colour) in the dark one */
    --wave-stroke: var(--color-bg);
    --wave-stroke-opacity: .22;

    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);

    color-scheme: dark;
}
