:root {
    color-scheme: light dark;
    font-family: system-ui, sans-serif;
    color: #1f2937;
    background: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.page {
    width: min(100% - 2rem, 48rem);
    margin: 0 auto;
    padding: 3rem 0;
}

.header {
    margin-bottom: 1.5rem;
}

.brand {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

h1 {
    margin: 1rem 0 .5rem;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
}

h2 {
    margin: 0;
    font-size: 1.125rem;
}

p {
    line-height: 1.5;
    color: #4b5563;
}

.summary,
.card {
    margin: 1rem 0;
    padding: 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: .75rem;
    background: #fff;
}

.summary.operational {
    border-color: #15803d;
    background: #15803d;
}

.summary.degraded {
    border-color: #b45309;
    background: #b45309;
}

.summary.outage,
.summary.error {
    border-color: #b91c1c;
    background: #b91c1c;
}

.service-list {
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
}

.service-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-top: 1px solid #e5e7eb;
}

.service-list li:first-child {
    border-top: 0;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    white-space: nowrap;
}

.status::before {
    content: "";
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: currentColor;
}

.operational .status,
.status.operational {
    color: #15803d;
}

.degraded .status,
.status.degraded {
    color: #b45309;
}

.outage .status,
.status.outage {
    color: #b91c1c;
}

.last-updated {
    font-size: .875rem;
}

button {
    padding: .6rem .9rem;
    border: 1px solid #6b7280;
    border-radius: .5rem;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

button:hover {
    background: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
    :root {
        color: #f3f4f6;
        background: #111827;
    }

    p {
        color: #d1d5db;
    }

    .summary,
    .card {
        border-color: #4b5563;
        background: #1f2937;
    }

    .service-list li {
        border-color: #4b5563;
    }

    button:hover {
        background: #374151;
    }
}