:root {
    --theme-page: #f2f2f2;
    --theme-panel: #fff;
    --theme-subtle: #e7e7e7;
    --theme-wash: #ebe8f4;
    --theme-text: #2c2c2c;
    --theme-muted: #616161;
    --theme-accent: #412c9f;
    --theme-action: #412c9f;
    --theme-action-hover: #372484;
    --theme-action-text: #fff;
    --theme-rule: #d0d0d0;
    --theme-control: #777480;
    --theme-focus: #412c9f;
    --theme-overlay: rgb(35 33 38 / .72);
    --design-title: clamp(2.5rem, 5vw, 4rem);
    --design-heading: clamp(1.875rem, 3.4vw, 2.75rem);
    --design-heading-leading: 1.12;
    --design-measure: 68ch;
    --design-hero-space: clamp(30px, 5vw, 64px);
    --design-hero-gap: clamp(24px, 6vw, 76px);
    --design-section-gap: 30px;
    --design-review-space: 16px;
    --design-control-size: 44px;
    --design-control-radius: 6px;
    --design-canvas: #e9e8ec;
    --design-dialog-border: #c9c7ce;
    --design-dialog-control: #8e879d;
    --design-dialog-hover: #e4def4;
    --design-dialog-overlay: rgb(28 24 38 / .72);
}

:root[data-theme] { color-scheme: light; }

@media screen {
    :root[data-theme="dark"] {
        color-scheme: dark;
        --theme-page: #2b2b2b;
        --theme-panel: #353535;
        --theme-subtle: #3f3f3f;
        --theme-wash: #463a59;
        --theme-text: #f5f5f5;
        --theme-muted: #d1d1d1;
        --theme-accent: #cec0ff;
        --theme-action: #cec0ff;
        --theme-action-hover: #e0d7ff;
        --theme-action-text: #201732;
        --theme-rule: #595959;
        --theme-control: #a39ca9;
        --theme-focus: #e0d7ff;
        --theme-overlay: rgb(0 0 0 / .74);
    }
}
