@font-face {
    font-family: "Divine Display";
    src: url("/fonts/divine-display.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
:root {
    color-scheme: dark;
    --bg: #08090b;
    --surface: #111315;
    --surface-alt: #1b1d20;
    --nav: #0c0e10;
    --text: #f3f4f5;
    --muted: #989da5;
    --line: #ffffff13;
    --line-strong: #ffffff2b;
    --hover: #202328;
    --focus-ring: #a6c6e7;
    --scrollbar: #555b62;
    --accent: #f3f4f5;
    --accent-soft: #ffffff0c;
    --primary: #f3f4f5;
    --primary-hover: #d9dcdf;
    --on-accent: #101214;
    --shadow: #00000024;
    --raised-shadow: 0 16px 48px #0007;
    --scrim: #0009;
    --green: #7dd6a5;
    --success-soft: #7dd6a513;
    --red: #f19a9a;
    --danger-soft: #f19a9a13;
    --warning: #e7c887;
    --warning-soft: #e7c88713;
    --info: #a6c6e7;
    --info-soft: #a6c6e713;
    --panel: color-mix(in srgb, var(--surface) 96%, transparent);
    --card-surface: color-mix(in srgb, var(--surface) 60%, transparent);
    --icon-filter: brightness(0) invert(1);
    --radius-control: 10px;
    --radius-panel: 14px;
    --control-height: 42px;
    --control-compact: 36px;
    --control-large: 48px;
    --control-motion: 180ms ease;
}

:root:has(> head > #site-theme[data-theme="light"]) {
    color-scheme: light;
    --bg: #f5f6f8;
    --surface: #fff;
    --surface-alt: #edf0f3;
    --nav: #f5f6f8;
    --text: #192128;
    --muted: #52606d;
    --line: #19212822;
    --line-strong: #19212838;
    --hover: #e9edf1;
    --focus-ring: #335f8e;
    --scrollbar: #929ba5;
    --accent: #192128;
    --accent-soft: #1921280c;
    --primary: #202832;
    --primary-hover: #354454;
    --on-accent: #fff;
    --shadow: #1b26361a;
    --raised-shadow: 0 16px 48px #1b263630;
    --scrim: #1b263650;
    --green: #21664b;
    --success-soft: #21664b14;
    --red: #a33b3b;
    --danger-soft: #a33b3b14;
    --warning: #79521c;
    --warning-soft: #79521c14;
    --info: #345f8c;
    --info-soft: #345f8c14;
    --icon-filter: brightness(0);
}

:root:has(> head > #site-theme[data-theme="client"]) {
    --bg: #1d1f23;
    --page-background:
        radial-gradient(ellipse 60rem 36rem at 15% 16rem, #8ea4ac2b, transparent 74%),
        radial-gradient(ellipse 65rem 44rem at 94% 45%, #68799132, transparent 76%),
        radial-gradient(ellipse 64rem 43rem at 6% 79%, #627c842b, transparent 75%),
        linear-gradient(155deg, #303237, var(--bg) 62%, #25282c);
    --surface: #292929;
    --surface-alt: #363636;
    --nav: #242424;
    --text: #f2f2f2;
    --muted: #b8b8b8;
    --line: #ffffff14;
    --line-strong: #ffffff32;
    --hover: #373737;
    --focus-ring: #78d8f1;
    --scrollbar: #636363;
    --accent: #78d8f1;
    --accent-soft: #67d4ef18;
    --primary: var(--accent);
    --primary-hover: #adeaf9;
    --on-accent: #11242b;
    --nav-active-background: #f3f4f5;
    --nav-active-text: #101214;
    --info: var(--accent);
    --info-soft: var(--accent-soft);
    --panel: color-mix(in srgb, var(--surface) 87%, transparent);
    --radius-control: 8px;
    --radius-panel: 10px;
}
