:root {
    --rosewater: #f5e0dc;
    --flamingo: #f2cdcd;
    --pink: #f5c2e7;
    --mauve: #cba6f7;
    --red: #f38ba8;
    --maroon: #eba0ac;
    --peach: #fab387;
    --yellow: #f9e2af;
    --green: #a6e3a1;
    --teal: #94e2d5;
    --sky: #89dceb;
    --sapphire: #74c7ec;
    --blue: #89b4fa;
    --lavender: #b4befe;

    --text: #cdd6f4;
    --subtext: #bac2de;
    --muted: #a6adc8;

    --surface: #313244;
    --surface-1: #45475a;

    --base: #1e1e2e;
    --mantle: #181825;
    --crust: #11111b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    background: var(--base);
    color: var(--text);

    font-family:
        "Geist Mono",
        "JetBrains Mono",
        "IBM Plex Mono",
        monospace;

    line-height: 1.6;

    display: flex;
    justify-content: center;

    padding: 4rem 1.5rem;
}

.container {
    width: 100%;
    max-width: 680px;
}

header {
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
}

header p {
    margin-top: .35rem;
    color: var(--muted);
}

.status > div:first-child {
    margin-bottom: 1rem;
}

.status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.label {
    color: var(--subtext);
    white-space: nowrap;
}

.value {
    color: var(--text);
    text-align: right;
}

.inline {
    display: flex;
    align-items: center;
    gap: .75rem;
}

button {
    color: var(--blue);
    margin-left: .75rem;
}

button:hover {
    color: var(--lavender);
}

button {
    appearance: none;
    border: none;
    background: transparent;

    color: var(--blue);

    font: inherit;

    cursor: pointer;

    padding: 0;
}

button:hover {
    text-decoration: underline;
}

button:focus-visible {
    outline: none;
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid var(--surface-1);

    margin: 2rem 0;
}

.footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.actions {
    display: flex;
    justify-content: flex-start;
}

footer {
    margin-top: 2rem;
}

footer small {
    color: var(--muted);
}

#rtt {
    margin-top: .25rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

#quality.excellent {
    color: var(--green);
}

#quality.good {
    color: var(--yellow);
}

#quality.fair {
    color: var(--peach);
}

#quality.poor {
    color: var(--red);
}

@media (max-width: 640px) {
    body {
        padding: 2rem 1rem;
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
    }

    .inline {
        width: 100%;
        justify-content: space-between;
    }

    #rtt {
        font-size: 1.7rem;
    }
}