/* The health page: a plain white page with the app's state, checked after each deploy. */

:root {
    --page: #ffffff;
    --text-strong: #1f1c18;
    --text-muted: #6b655c;
    --line: #ebe6dc;
    --brand: #b8902e;
    --good: #1f7a4d;
    --bad: #b3261e;
}

* {
    box-sizing: border-box;
}

body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    margin: 0;
    background: var(--page);
    color: var(--text-strong);
    font:
        15px/1.5 -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

.health {
    width: min(420px, 100% - 32px);
    padding: 32px 0;
}

.health-brand {
    margin: 0;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.health-title {
    margin: 6px 0 16px;
    font-size: 28px;
    font-weight: 600;
}

.health-state {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    color: var(--good);
    font-weight: 600;
}

.health-state::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.health-state.is-down {
    color: var(--bad);
}

.health-checks {
    margin: 0 0 20px;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.health-check {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.health-result {
    color: var(--good);
    font-weight: 600;
}

.health-check.is-down .health-result {
    color: var(--bad);
}

.health-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}
