:root {
    --story-radius: 1.25rem;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(13, 110, 253, .08), transparent 30rem),
        var(--bs-body-bg);
}

.navbar {
    backdrop-filter: blur(14px);
}

.story-card,
.admin-story-card,
.auth-card,
.editor-shell,
.empty-state {
    border: 1px solid var(--bs-border-color);
    background: color-mix(in srgb, var(--bs-body-bg) 94%, var(--bs-primary) 6%);
    border-radius: var(--story-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .06);
}

.story-card {
    max-width: 820px;
    padding: clamp(1.5rem, 5vw, 4rem);
}

.story-meta {
    color: var(--bs-primary);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.story-text {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.9;
    white-space: normal;
}

.empty-state {
    max-width: 620px;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.admin-story-card {
    padding: 1.25rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.admin-story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .08);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.auth-card {
    width: min(100%, 420px);
    padding: 2rem;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: auto;
    border-radius: 18px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 .75rem 1.5rem rgba(13, 110, 253, .25);
}

.editor-shell {
    max-width: 960px;
    margin: auto;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.story-editor {
    line-height: 1.7;
    resize: vertical;
}

@media (max-width: 575.98px) {
    .story-card {
        border-radius: 1rem;
    }

    .admin-story-card {
        padding: 1rem;
    }
}

[data-bs-theme="dark"] body {
    background:
        radial-gradient(circle at 10% 0%, rgba(13, 110, 253, .12), transparent 30rem),
        var(--bs-body-bg);
}

[data-bs-theme="dark"] .story-card,
[data-bs-theme="dark"] .admin-story-card,
[data-bs-theme="dark"] .auth-card,
[data-bs-theme="dark"] .editor-shell,
[data-bs-theme="dark"] .empty-state {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .22);
}
