/* Dark theme: the dark icon's black plate, lit by its crimson m.
   Don't forget to update the theme colors in scripts/dark-mode.js if --bg changes,
   and re-render images/og-image.png, which bakes it in as its canvas. */

:root {
    color-scheme: dark;

    /* A near-black tinted with the icon's crimson. */
    --bg: #150d0e;
    --fg: #f8eff0;
    /* 9.8:1 on --bg, and 5.1:1 on the ghost button's glass at the glow's
       strongest point. */
    --secondary: #c9b4b6;
    /* AccentColor's dark variant on main (#eb4e53). */
    --accent: #eb4e53;
    /* 5.2:1 on --accent. White would hold only 3.6:1. */
    --on-accent: #150d0e;
    /* AccentColor lifted: 8.1:1 on --bg and 5.1:1 at the glow's strongest
       point, where AccentColor itself holds only 3.3:1. */
    --accent-text: #f58a8d;
    --hairline: rgba(248, 239, 240, .12);
    --surface: rgba(255, 255, 255, .04);
    --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: #05070d;
    --glass: rgba(255, 255, 255, .07);
    --glass-border: rgba(255, 255, 255, .14);
    --glass-shadow: rgba(0, 0, 0, .35);
    --icon-shadow: rgba(0, 0, 0, .45);
    --media-shadow: rgba(0, 0, 0, .55);
    --window-rim-shadow: rgba(0, 0, 0, .5);
    /* The hero's Markdown marks: what you type in chalk gray, what it becomes
       in AccentColor. Both are decoration behind nothing. */
    --mark-raw: rgba(248, 239, 240, .16);
    --mark: rgba(235, 78, 83, .3);
    /* A pale tint of the icon's highlight through the lifted accent to
       AccentColor; the deepest stop holds 3.3:1 at the glow's strongest point. */
    --title-gradient: linear-gradient(100deg, #ffe3e0 5%, #f58a8d 50%, #eb4e53 95%);
}

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

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

/* The light AccentColor (#c22232) glowing down from the top, and a faint haze
   of the icon's highlight (#ff4553) to the right. */
.hero-sky {
    background:
        radial-gradient(ellipse 1100px 560px at 50% 0%, rgba(194, 34, 50, .4) 0%, rgba(194, 34, 50, 0) 100%),
        radial-gradient(ellipse 700px 420px at 82% 18%, rgba(255, 69, 83, .08) 0%, rgba(255, 69, 83, 0) 100%);
}
