:root {
    color-scheme: light;
    --background: #eef4f7;
    --surface: rgba(255, 255, 255, 0.92);
    --text: #152a35;
    --muted: #58707d;
    --accent: #087f8c;
    --accent-dark: #075d68;
    --success: #16a36a;
    --border: rgba(21, 42, 53, 0.12);
    --shadow: 0 24px 64px rgba(22, 62, 78, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(8, 127, 140, 0.18), transparent 32rem),
        radial-gradient(circle at 85% 85%, rgba(44, 178, 138, 0.14), transparent 28rem),
        var(--background);
}

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

.status-card {
    width: min(100%, 42rem);
    padding: clamp(2rem, 6vw, 4.5rem);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    transform: translateY(0);
    transition: transform 500ms ease, opacity 500ms ease;
}

.status-card--compact {
    width: min(100%, 36rem);
}

.brand-mark {
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem;
    border-radius: 1.25rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    box-shadow: 0 12px 30px rgba(8, 127, 140, 0.28);
}

.eyebrow,
.error-code {
    margin: 0 0 0.75rem;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.4rem, 8vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.status-card--compact h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
}

.lead {
    margin: 1.25rem auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.65;
}

.status {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 2rem auto 0;
    padding: 0.7rem 1rem;
    color: #116344;
    font-weight: 700;
    background: #e3f8ef;
    border: 1px solid #bcebd7;
    border-radius: 999px;
}

.status-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0.3rem rgba(22, 163, 106, 0.14);
}

.health-list {
    display: grid;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 0;
    text-align: left;
    list-style: none;
}

.health-list li {
    padding: 0.9rem 1rem;
    color: var(--muted);
    background: rgba(238, 244, 247, 0.74);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
}

.health-list strong {
    color: var(--text);
}

.back-link {
    display: inline-block;
    color: var(--accent-dark);
    font-weight: 750;
    text-underline-offset: 0.25rem;
}

.is-loading .status-card {
    opacity: 0;
    transform: translateY(0.75rem);
}

@media (max-width: 36rem) {
    .page-shell {
        padding: 1rem;
    }

    .status-card {
        border-radius: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-card {
        transition: none;
    }
}
