@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
    color-scheme: dark;
    --site-purple: #a87bff;
    --site-purple-dark: #12081d;
    --site-yellow: #f2d35b;
    --site-yellow-deep: #d1ab17;
    --site-ink: #f5efff;
    --site-muted: rgba(245, 239, 255, 0.74);
    --site-bg: #0d0717;
    --site-surface: rgba(26, 15, 40, 0.9);
    --site-surface-strong: #201031;
    --site-border: rgba(168, 123, 255, 0.18);
    --site-border-strong: rgba(242, 211, 91, 0.24);
    --site-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    --site-shadow-strong: 0 26px 60px rgba(0, 0, 0, 0.46);
    --site-focus: rgba(242, 211, 91, 0.28);
    --site-purple-rgb: 168, 123, 255;
    --site-purple-dark-rgb: 18, 8, 29;
    --site-yellow-rgb: 242, 211, 91;
    --site-space-xs: 0.25rem;
    --site-space-sm: 0.5rem;
    --site-space-md: 1rem;
    --site-space-lg: 1.5rem;
    --site-space-xl: 2rem;

    --purple: var(--site-purple);
    --purple-dark: var(--site-purple-dark);
    --yellow: var(--site-yellow);
    --ink: var(--site-ink);
    --bg: var(--site-bg);
    --surface: var(--site-surface);
    --muted: var(--site-muted);
    --purple-rgb: var(--site-purple-rgb);
    --purple-dark-rgb: var(--site-purple-dark-rgb);
    --yellow-rgb: var(--site-yellow-rgb);
    --border: var(--site-border);
    --shadow: var(--site-shadow);
    --space-xs: var(--site-space-xs);
    --space-sm: var(--site-space-sm);
    --space-md: var(--site-space-md);
    --space-lg: var(--site-space-lg);
    --font-base: 16px;
    --font-lg: 1.25rem;
    --font-xl: 2rem;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(20, 11, 32, 0.98) 0%, rgba(13, 7, 23, 1) 100%);
    color: var(--site-ink);
}

body {
    position: relative;
    line-height: 1.5;
    background-color: var(--site-bg);
}

html.media-lightbox-scroll-locked,
body.media-lightbox-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    height: 100% !important;
}

body.media-lightbox-scroll-locked {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(var(--site-purple-rgb), 0.11) 0%, transparent 28%),
        linear-gradient(295deg, rgba(var(--site-yellow-rgb), 0.06) 0%, transparent 34%);
    opacity: 0.9;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: var(--site-yellow);
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

.btn {
    border-radius: 10px;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn-primary {
    --bs-btn-bg: var(--site-purple);
    --bs-btn-border-color: var(--site-purple);
    --bs-btn-hover-bg: #bd9cff;
    --bs-btn-hover-border-color: #bd9cff;
    --bs-btn-color: #140b20;
    --bs-btn-hover-color: #140b20;
    --bs-btn-focus-shadow-rgb: var(--site-purple-rgb);
}

.btn-outline-secondary {
    --bs-btn-color: var(--site-yellow);
    --bs-btn-border-color: var(--site-border-strong);
    --bs-btn-hover-bg: rgba(var(--site-purple-rgb), 0.14);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-border-color: rgba(var(--site-yellow-rgb), 0.3);
    --bs-btn-focus-shadow-rgb: var(--site-purple-rgb);
}

.btn-dark {
    --bs-btn-bg: var(--site-purple-dark);
    --bs-btn-border-color: var(--site-purple-dark);
    --bs-btn-color: var(--site-ink);
    --bs-btn-hover-color: var(--site-ink);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.18rem var(--site-focus);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Sora", "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--site-ink);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

code {
    color: var(--site-yellow);
}

.form-control,
.form-check-input {
    border-radius: 10px;
    border-color: var(--site-border);
    color: var(--site-ink);
}

.form-control {
    background: rgba(17, 10, 28, 0.92);
}

.form-control::placeholder {
    color: rgba(245, 239, 255, 0.5);
}

.form-control:focus {
    border-color: rgba(var(--site-yellow-rgb), 0.42);
}

::selection {
    background: rgba(var(--site-yellow-rgb), 0.3);
    color: var(--site-ink);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
