/* Light theme: red ink on a fresh page, under a crimson wash.
   Don't forget to update the theme colors in scripts/dark-mode.js if --bg changes. */

:root {
    color-scheme: light;

    /* A near-white tinted with the icon's crimson. */
    --bg: #fdf8f7;
    --fg: #2d1417;
    /* 6.8:1 on --bg, 4.9:1 at the glow's strongest point. */
    --secondary: #6a5153;
    /* AccentColor on main (#c22232), which is the icon's own crimson. */
    --accent: #c22232;
    /* 5.9:1 on --accent. */
    --on-accent: #ffffff;
    /* AccentColor deepened, since it holds only 4:1 on the glow: 6.9:1 on
       --bg, 4.9:1 at the glow's strongest point. */
    --accent-text: #aa1a29;
    --hairline: rgba(45, 20, 23, .12);
    --surface: #ffffff;
    --chip-bg: var(--accent);
    --chip-fg: var(--on-accent);
    /* Behind the logo, at least 3:1 with its main blues, #0057d5 and #0186fb.
       Matches af.codes. */
    --logo-circle: #ffffff;
    --glass: rgba(255, 255, 255, .55);
    --glass-border: rgba(45, 20, 23, .1);
    /* The shadows take the icon's deepest shade, #970111. */
    --glass-shadow: rgba(151, 1, 17, .18);
    --icon-shadow: rgba(151, 1, 17, .22);
    --media-shadow: rgba(151, 1, 17, .3);
    --window-rim-shadow: rgba(45, 20, 23, .2);
    /* The hero's Markdown marks: what you type in pencil gray, what it
       becomes in the icon's crimson. Both are decoration behind nothing. */
    --mark-raw: rgba(45, 20, 23, .2);
    --mark: rgba(194, 34, 50, .3);
    /* The icon's deepest shade (#970111) through AccentColor to its bevel
       (#d22d3b); the lightest stop holds 3.4:1 at the glow's strongest point. */
    --title-gradient: linear-gradient(100deg, #970111 5%, #c22232 50%, #d22d3b 95%);
}

html {
    background: var(--bg);
}

.theme-toggle .icon-moon {
    display: block;
}

/* The icon's bevel washing down from the top, and its highlight (#f64e59)
   warming the right, where the marks turn into formatting. */
.hero-sky {
    background:
        radial-gradient(ellipse 1100px 520px at 50% 0%, rgba(210, 45, 59, .16) 0%, rgba(210, 45, 59, 0) 100%),
        radial-gradient(ellipse 700px 420px at 82% 18%, rgba(246, 78, 89, .1) 0%, rgba(246, 78, 89, 0) 100%);
}
