@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: #faf9f5;
    --encode-surface: #ffffff;
    --encode-text: #0a0a0a;
    --encode-text-muted: #666666;
    --encode-success: #1e9e5a;
    --encode-sidebar-width: 260px;
    --bs-primary: #f2572b;
    --bs-primary-rgb: 242, 87, 43;
    --bs-success: #1e9e5a;
    --bs-body-bg: #faf9f5;
    --bs-body-color: #0a0a0a;
    --bs-font-sans-serif: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-border-radius: 0.5rem;
}

[data-bs-theme='dark'] {
    --encode-bg: #0a0a0a;
    --encode-surface: #121212;
    --encode-text: #ffffff;
    --encode-text-muted: #8c8c8c;
    --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);
}

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-surface);
    border-right: 1px solid var(--bs-border-color);
}

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

.encode-topbar {
    background: var(--encode-surface);
    border-bottom: 1px solid var(--bs-border-color);
    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);
}

.card {
    background: var(--encode-surface);
    border-color: var(--bs-border-color);
}

.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 .encode-brand-wordmark {
    height: 1.75rem;
    width: auto;
    max-width: 140px;
    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;
}
