@font-face {
    font-family: 'Obviously';
    src: url('/fonts/encode/obviously.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Obviously';
    src: url('/fonts/encode/obviously-light.otf') format('opentype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Obviously';
    src: url('/fonts/encode/obviously-semibold.otf') format('opentype');
    font-weight: 600;
    font-display: swap;
}

:root,
[data-bs-theme='light'] {
    --encode-primary: #f2572b;
    --encode-primary-hover: #cb4924;
    --encode-bg: #f5f5f7;
    --encode-bg-elevated: #f0f0f3;
    --encode-bg-muted: #e9e9ee;
    --encode-surface: #ffffff;
    --encode-text: #1d1d1f;
    --encode-text-muted: #6e6e73;
    --encode-text-faint: #86868b;
    --encode-line: rgba(0, 0, 0, 0.1);
    --encode-sidebar-width: 248px;
    --encode-sidebar-bg: #f5f5f7;
    --encode-sidebar-active-bg: #e0e0e6;
    --encode-topbar-bg: rgba(255, 255, 255, 0.8);
    --encode-radius-md: 14px;
    --encode-radius-pill: 40px;
    --encode-success: #1e9e5a;
    --bs-primary: #f2572b;
    --bs-primary-rgb: 242, 87, 43;
    --bs-success: #1e9e5a;
    --bs-body-bg: #f5f5f7;
    --bs-body-color: #1d1d1f;
    --bs-border-color: rgba(0, 0, 0, 0.1);
    --bs-font-sans-serif: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-border-radius: 0.875rem;
}

[data-bs-theme='dark'] {
    --encode-bg: #0a0a0a;
    --encode-bg-elevated: #121212;
    --encode-bg-muted: #1f1f1f;
    --encode-surface: #121212;
    --encode-text: #ffffff;
    --encode-text-muted: #8c8c8c;
    --encode-text-faint: #666666;
    --encode-line: rgba(255, 255, 255, 0.12);
    --encode-sidebar-bg: #0a0a0a;
    --encode-sidebar-active-bg: #1f1f1f;
    --encode-topbar-bg: rgba(18, 18, 18, 0.85);
    --bs-body-bg: #0a0a0a;
    --bs-body-color: #ffffff;
    --bs-border-color: #333333;
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--encode-bg);
    color: var(--encode-text);
}

h1, h2, h3, h4, .font-display {
    font-family: 'Obviously', var(--bs-font-sans-serif);
    font-weight: 600;
}

.encode-sidebar {
    width: var(--encode-sidebar-width);
    min-height: 100vh;
    background: var(--encode-sidebar-bg);
    border-right: 1px solid var(--encode-line);
}

.encode-main {
    min-height: 100vh;
    flex: 1;
}

.encode-topbar {
    background: var(--encode-topbar-bg);
    border-bottom: 1px solid var(--encode-line);
    min-height: 56px;
}

.btn-primary {
    --bs-btn-bg: var(--encode-primary);
    --bs-btn-border-color: var(--encode-primary);
    --bs-btn-hover-bg: var(--encode-primary-hover);
    --bs-btn-hover-border-color: var(--encode-primary-hover);
}

.btn {
    border-radius: var(--encode-radius-pill);
}

.card {
    background: var(--encode-surface);
    border-color: var(--encode-line);
    border-radius: var(--encode-radius-md);
}

.encode-logo-light { display: block; }
.encode-logo-dark { display: none; }
[data-bs-theme='dark'] .encode-logo-light { display: none; }
[data-bs-theme='dark'] .encode-logo-dark { display: block; }

.encode-sidebar__brand-wordmark {
    height: 1.15rem;
    width: auto;
    max-width: 8.1rem;
    object-fit: contain;
}

.encode-auth-wordmark__encode {
    display: block;
    height: 2.75rem;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}
