/* Design tokens. Names and values mirror app/src/styles/tokens.css (Tactile UI v2). */
:root {
    color-scheme: light;

    /* Layout and shape */
    --contentWidth: 1160px;
    --narrowWidth: 820px;
    --pagePadding: 24px;
    --cardRadius: 22px;
    --faqRadius: 20px;
    --pillRadius: 999px;
    --staticEdgeWidth: 2px;
    --pressEdgeWidth: 2.5px;
    --ledgeWidth: 5px;

    /* Surfaces and edges */
    --appBackground: #f4f4f6;
    --surfaceColor: #ffffff;
    --borderColor: #d3d6dd;
    --strongBorderColor: #7d8394;

    /* Text */
    --textColor: #1b1f2a;
    --secondaryTextColor: #4a5060;
    --chipTextColor: #3d4352;
    --onSolidColor: #ffffff;

    /* Blue: primary actions, links, focus */
    --blueSolidColor: #1f6af0;
    --blueSolidEdgeColor: #0f43a8;
    --blueTintColor: #e3eeff;
    --blueTintEdgeColor: #1a6ef5;
    --blueInkColor: #1559d6;
    --blueInkHoverColor: #0f43a8;

    /* Violet: AI, tokens */
    --violetSolidColor: #7b45e6;
    --violetSolidEdgeColor: #4e22a8;
    --violetTintColor: #efe6ff;
    --violetTintEdgeColor: #8e5cf0;
    --violetInkColor: #6a34d4;
    --violetHeadingColor: #3a1789;

    /* Green: success, live */
    --greenSolidColor: #0b7149;
    --greenInkColor: #0b7149;
    --greenTintColor: #e0f6ee;
    --greenTintEdgeColor: #12a06a;
    --greenHeadingColor: #064e36;

    /* Cyan: featured content */
    --cyanTintColor: #e2f8fc;
    --cyanTintEdgeColor: #15b4cf;
    --cyanInkColor: #08697a;
    --cyanHeadingColor: #064e5b;

    /* Navy */
    --navyTintColor: #dce2f2;
    --navyTintEdgeColor: #233c8f;
    --navyInkColor: #14267a;

    /* Fixed physical watch colors (intentional exception, not a general pattern) */
    --watchBody: #12141a;
    --watchEdge: #000000;
    --watchRingTrack: #2a2e38;

    /* Type */
    --fontDisplay: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fontBody: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/*
 * Dark theme. Values come from app/src/styles/tokens.css and follow the system
 * setting (prefers-color-scheme). Solid colors, edges and fixed colors stay put.
 */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --appBackground: #0e1015;
        --surfaceColor: #1b1e26;
        --borderColor: #353a47;
        --strongBorderColor: #7a8191;

        --textColor: #f1f2f5;
        --secondaryTextColor: #a9aebb;
        --chipTextColor: #c3c7d1;

        --blueSolidEdgeColor: #0b3fa8;
        --blueTintColor: #132447;
        --blueTintEdgeColor: #3d84ff;
        --blueInkColor: #8ab8ff;
        --blueInkHoverColor: #c9dcff;

        --violetTintColor: #24183f;
        --violetInkColor: #c4a6ff;
        --violetHeadingColor: #e6daff;

        --greenTintColor: #0d2c21;
        --greenInkColor: #6fe0b3;
        --greenHeadingColor: #6fe0b3;

        --navyTintColor: #1a2142;
        --navyTintEdgeColor: #4a63c4;
        --navyInkColor: #a9b8f0;

        --cyanTintColor: #0b2a31;
        --cyanInkColor: #7fddee;
        --cyanHeadingColor: #b5f0fa;

        --watchBody: #05060a;
        --watchEdge: #353a47;
    }
}

