:root {
    color-scheme: light;
    --site-bg: #fbfbfa;
    --site-surface: #ffffff;
    --site-surface-muted: #f1f1ef;
    --site-ink: #37352f;
    --site-muted: #787774;
    --site-line: rgba(55, 53, 47, 0.16);
    --site-accent: #37352f;
    --site-accent-strong: #2f3437;
    --site-nav-bg: #37352f;
    --site-nav-ink: #fbfbfa;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --site-bg: #191919;
    --site-surface: #202020;
    --site-surface-muted: #2f2f2f;
    --site-ink: #f1f1ef;
    --site-muted: #b8b8b8;
    --site-line: rgba(255, 255, 255, 0.14);
    --site-accent: #f1f1ef;
    --site-accent-strong: #ffffff;
    --site-nav-bg: #202020;
    --site-nav-ink: #f1f1ef;
}

html,
body {
    background: var(--site-bg);
    color: var(--site-ink);
}

body,
button,
input,
select,
textarea {
    color: var(--site-ink);
}

a {
    color: inherit;
}

input,
select,
textarea {
    border-color: var(--site-line);
    background: var(--site-surface);
    color: var(--site-ink);
}

::placeholder {
    color: var(--site-muted);
}

::selection {
    background: var(--site-accent);
    color: var(--site-surface);
}

.bg-gray-100,
.bg-white {
    background-color: var(--site-bg) !important;
}

.bg-gray-200,
.bg-indigo-50 {
    background-color: var(--site-surface-muted) !important;
}

.bg-blue-600 {
    background-color: var(--site-nav-bg) !important;
}

.text-white {
    color: var(--site-nav-ink) !important;
}

.text-gray-800,
.text-indigo-700 {
    color: var(--site-ink) !important;
}

.border-indigo-200,
.border-indigo-300 {
    border-color: var(--site-line) !important;
}

.hover\:bg-indigo-50:hover {
    background-color: var(--site-surface-muted) !important;
}

.hover\:border-indigo-300:hover {
    border-color: var(--site-accent) !important;
}

.theme-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-surface) 88%, transparent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    color: var(--site-ink);
    cursor: pointer;
    backdrop-filter: blur(14px);
}

.theme-toggle:hover {
    border-color: var(--site-accent);
    color: var(--site-accent-strong);
}

:root[data-theme="dark"] .shadow-sm {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28) !important;
}
