:root {
    color-scheme: dark;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #07101d;
    color: #e5edf7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            #12213a 0,
            #08111f 36%,
            #050b14 100%
        );
}

.public-shell {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 36px;
}

.public-header {
    margin-bottom: 28px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: #cbd5e1;
}

.public-brand > div:last-child {
    display: grid;
    gap: 1px;
}

.public-brand span {
    color: #718096;
    font-size: 12px;
}

.public-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #111d31;
    border: 1px solid rgba(148, 163, 184, .2);
    font-weight: 800;
}

h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
}

.overall {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, .15);
    background: rgba(15, 23, 42, .68);
}

.overall-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 18px rgba(148, 163, 184, .4);
}

.overall.operational .overall-dot {
    background: #34d399;
    box-shadow: 0 0 18px rgba(52, 211, 153, .45);
}

.overall.down .overall-dot {
    background: #fb7185;
    box-shadow: 0 0 18px rgba(251, 113, 133, .45);
}

.overall.investigating .overall-dot {
    background: #fbbf24;
    box-shadow: 0 0 18px rgba(251, 191, 36, .45);
}

.overall strong {
    font-size: 18px;
}

.overall p {
    margin: 5px 0 0;
    color: #94a3b8;
    line-height: 1.5;
}

.public-panel {
    margin-top: 18px;
    padding: 22px;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, .13);
    background: rgba(7, 16, 29, .76);
}

.public-panel header {
    margin-bottom: 13px;
}

.public-panel h2 {
    margin: 4px 0 0;
    font-size: 20px;
}

.eyebrow {
    color: #718096;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.service-list,
.incident-list {
    display: grid;
}

.service-row,
.incident-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(148, 163, 184, .1);
}

.service-row:first-child,
.incident-row:first-child {
    border-top: 0;
}

.service-row > div:first-child,
.incident-row > div:first-child {
    display: grid;
    gap: 4px;
}

.availability,
.incident-row span,
.incident-row time {
    color: #8ea0b6;
    font-size: 12px;
}

.public-badge {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .1);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.public-badge.operational {
    background: rgba(16, 185, 129, .12);
    color: #6ee7b7;
}

.public-badge.down {
    background: rgba(244, 63, 94, .12);
    color: #fda4af;
}

.public-badge.investigating {
    background: rgba(245, 158, 11, .12);
    color: #fcd34d;
}

.public-badge.maintenance {
    background: rgba(99, 102, 241, .12);
    color: #a5b4fc;
}

.incident-copy {
    display: grid;
    gap: 4px;
    text-align: right;
    max-width: 410px;
}

.public-empty {
    padding: 20px 0 8px;
    color: #718096;
}

footer {
    margin-top: 26px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 620px) {
    .public-shell {
        padding-top: 26px;
    }

    .service-row,
    .incident-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .incident-copy {
        text-align: left;
    }
}

/* v0.10 page appearance */

body.accent-indigo {
    --page-accent: #818cf8;
    --page-accent-soft: rgba(99, 102, 241, .16);
}

body.accent-blue {
    --page-accent: #60a5fa;
    --page-accent-soft: rgba(59, 130, 246, .16);
}

body.accent-emerald {
    --page-accent: #34d399;
    --page-accent-soft: rgba(16, 185, 129, .16);
}

body.accent-amber {
    --page-accent: #fbbf24;
    --page-accent-soft: rgba(245, 158, 11, .16);
}

body.accent-rose {
    --page-accent: #fb7185;
    --page-accent-soft: rgba(244, 63, 94, .16);
}

body.accent-violet {
    --page-accent: #a78bfa;
    --page-accent-soft: rgba(139, 92, 246, .16);
}

.public-mark {
    color: var(--page-accent, #818cf8);
    background: var(
        --page-accent-soft,
        rgba(99, 102, 241, .16)
    );
}

.public-header h1 {
    text-wrap: balance;
}

.public-header-copy {
    margin: 12px 0 0;
    max-width: 680px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
}

.public-panel .eyebrow {
    color: var(
        --page-accent,
        #818cf8
    );
}

footer {
    display: grid;
    gap: 5px;
}

.public-footer-copy {
    color: #94a3b8;
}

.powered-by {
    color: #64748b;
}

body.theme-light {
    color-scheme: light;
    background:
        radial-gradient(
            circle at top,
            #ffffff 0,
            #f8fafc 38%,
            #eef2f7 100%
        );
    color: #172033;
}

body.theme-light .public-brand {
    color: #334155;
}

body.theme-light .public-brand span,
body.theme-light .public-header-copy,
body.theme-light .overall p,
body.theme-light .availability,
body.theme-light .incident-row span,
body.theme-light .incident-row time,
body.theme-light .public-footer-copy {
    color: #64748b;
}

body.theme-light .overall,
body.theme-light .public-panel {
    border-color: rgba(15, 23, 42, .1);
    background: rgba(255, 255, 255, .86);
    box-shadow:
        0 12px 32px
        rgba(15, 23, 42, .05);
}

body.theme-light .service-row,
body.theme-light .incident-row {
    border-top-color:
        rgba(15, 23, 42, .08);
}

body.theme-light .public-mark {
    border-color:
        rgba(15, 23, 42, .1);
}

body.theme-light .public-empty,
body.theme-light footer,
body.theme-light .powered-by {
    color: #64748b;
}

