:root {
    --bg-deep: #1a1410;
    --bg-mid: #2a2018;
    --parchment: #f3e6c8;
    --parchment-2: #e8d4a8;
    --ink: #2b1810;
    --accent: #8b1a22;
    --accent-2: #a12830;
    --gold: #c9a227;
    --muted: #5a4a3a;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Crimson Text', Georgia, serif;
    color: var(--ink);
    background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: linear-gradient(180deg, #0f0c08 0%, #1a1410 100%);
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    color: var(--parchment);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
}

.brand-icon { font-size: 1.4rem; }
.brand-text { font-size: 1.1rem; }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-user {
    color: var(--parchment-2);
    font-style: italic;
}

.topbar-link {
    color: var(--parchment);
    text-decoration: none;
    font-size: 0.95rem;
}

.topbar-link:hover {
    color: var(--gold);
    text-decoration: none;
}

.page-body {
    flex: 1;
}

/* ---------- Landing ---------- */
.landing {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.landing-card {
    width: 100%;
    max-width: 560px;
    text-align: center;
    background: linear-gradient(145deg, var(--parchment) 0%, var(--parchment-2) 100%);
    border-radius: 8px;
    padding: 48px 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(139, 90, 43, 0.3),
                inset 0 0 60px rgba(139, 90, 43, 0.08);
}

.landing-seal {
    font-size: 3rem;
    margin-bottom: 6px;
}

.landing-title {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    color: var(--ink);
    margin: 0 0 6px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.landing-subtitle {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 28px;
}

.landing-welcome {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.landing-help {
    color: var(--muted);
    margin-bottom: 24px;
}

.landing-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    color: var(--parchment);
    background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
    box-shadow: 0 4px 12px rgba(139, 26, 34, 0.4);
}

.btn-primary:hover {
    color: var(--parchment);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 26, 34, 0.55);
    text-decoration: none;
}

.btn-secondary {
    color: var(--ink);
    background: transparent;
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(139, 26, 34, 0.08);
    text-decoration: none;
}

/* Blazor error UI */
#blazor-error-ui {
    background: var(--accent);
    color: var(--parchment);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    color: var(--parchment);
}
