/* CommitFence website: every colour and every font of the site, in this one file. Values and jobs are those of the app's
   design (look B, notes/DESIGN.md), light first; the dark theme follows the system (or data-theme="dark" on <html>). Each colour
   has one job, written beside it. No gradients, no semi-transparent colours, no blur: solid colours only. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Inter-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Inter-Bold.ttf") format("truetype"); }

:root {
    color-scheme: light dark;

    /* paper and ink */
    --page: #FFFFFF;          /* the page; fields, code boxes, menus, the add button */
    --side: #F5F5F5;          /* bands, the footer, the docs sidebar edge, the table head */
    --well: #F7F7F7;          /* the sentence panel, the head of a code box */
    --hover: #EBEBEB;         /* under the pointer; inline code; a tag */
    --line: #E4E4E4;          /* hairlines */
    --line-strong: #CDCDCD;   /* the border of a control you can use; a code box */
    --ink: #1C1C1C;           /* text, links, the main button, the focus ring */
    --ink-2: #3A3A3A;         /* second-rank text */
    --ink-3: #525252;         /* third rank: notes, line numbers, breadcrumbs */
    --solid: #1C1C1C;         /* the main button */
    --solid-hover: #3A3A3A;   /* the main button under the pointer */
    --on-solid: #FFFFFF;      /* text on the main button */
    --shadow: #D0D0D0;        /* the colour of the two small shadows, nothing else */
    --here: #2450E6;          /* current: the page you are on in the header and the docs menu. Nothing else */
    --on-here: #FFFFFF;

    /* the words of a rule, wherever a rule is written */
    --for: #E6DCFF;           /* what the rule is for */
    --for-ink: #4B22B8;
    --where: #CFECFF;         /* where it applies */
    --where-ink: #0B5884;
    --req: #CFF3E0;           /* what it requires; code that meets the rule */
    --req-ink: #0F6640;
    --forbid: #FFDDD0;        /* what must not hold */
    --forbid-ink: #A02E17;

    /* what happens to a push */
    --block: #D42B38;         /* blocks: the mark and the word "error" */
    --on-block: #FFFFFF;
    --block-ink: #A51C24;     /* text on block-tint; a removed line's sign */
    --block-tint: #FFDAD6;    /* a callout about something that blocks */
    --warn: #F0A000;          /* only warns: the mark and the word "warning" */
    --on-warn: #1C1C1C;
    --warn-tint: #FFF1C2;     /* a callout that warns */

    /* C# and JSON in a code box */
    --code-keyword: #8E24AA;
    --code-type: #0A6577;
    --code-string: #B3401A;
    --code-comment: #5E6B5E;
    --code-number: #7A5200;

    /* the logo's tile */
    --logo-tile: #1C1C1C;

    /* the two small shadows of the app: a raised panel, and a menu or dialog */
    --shadow-raised: 0 1px 3px 0 var(--shadow);
    --shadow-popup: 0 2px 6px 0 var(--shadow);

    /* type */
    --sans: "Inter", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
    --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --page: #262626;
        --side: #202020;
        --well: #2E2E2E;
        --hover: #353535;
        --line: #3A3A3A;
        --line-strong: #555555;
        --ink: #EDEDED;
        --ink-2: #C8C8C8;
        --ink-3: #B0B0B0;
        --solid: #EDEDED;
        --solid-hover: #D6D6D6;
        --on-solid: #1F1F1F;
        --shadow: #1A1A1A;
        --here: #8FA8FF;
        --on-here: #1F1F1F;
        --for: #44298F;
        --for-ink: #DDD3FF;
        --where: #1E4257;
        --where-ink: #AEE0FA;
        --req: #1F4A37;
        --req-ink: #A6E5C5;
        --forbid: #5A2C20;
        --forbid-ink: #FFC6B3;
        --block: #D13B40;
        --block-ink: #FFB8B3;
        --block-tint: #55262A;
        --warn: #E8A317;
        --warn-tint: #4D3D10;
        --code-keyword: #DDAAF5;
        --code-type: #6FCBDD;
        --code-string: #F2A07E;
        --code-comment: #8FA38F;
        --code-number: #E5C07B;
        --logo-tile: #3A3A3A;
    }
}

:root[data-theme="dark"] {
    --page: #262626;
    --side: #202020;
    --well: #2E2E2E;
    --hover: #353535;
    --line: #3A3A3A;
    --line-strong: #555555;
    --ink: #EDEDED;
    --ink-2: #C8C8C8;
    --ink-3: #B0B0B0;
    --solid: #EDEDED;
    --solid-hover: #D6D6D6;
    --on-solid: #1F1F1F;
    --shadow: #1A1A1A;
    --here: #8FA8FF;
    --on-here: #1F1F1F;
    --for: #44298F;
    --for-ink: #DDD3FF;
    --where: #1E4257;
    --where-ink: #AEE0FA;
    --req: #1F4A37;
    --req-ink: #A6E5C5;
    --forbid: #5A2C20;
    --forbid-ink: #FFC6B3;
    --block: #D13B40;
    --block-ink: #FFB8B3;
    --block-tint: #55262A;
    --warn: #E8A317;
    --warn-tint: #4D3D10;
    --code-keyword: #DDAAF5;
    --code-type: #6FCBDD;
    --code-string: #F2A07E;
    --code-comment: #8FA38F;
    --code-number: #E5C07B;
    --logo-tile: #3A3A3A;
}
