:root {
    color-scheme: light;
    --paper: #fdfcf8;
    --ink: #0f1514;
    --muted: #4e5a58;
    --rule: #dce7e2;
    --accent: #0a5a54;
    --warning: #8b510b;
    --danger: #a0362e;
    font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
::selection { background: #cfe7e3; color: var(--ink); }
body { margin: 0; }
main { width: min(100% - 3rem, 42rem); margin: clamp(3rem, 11vw, 7rem) auto 3rem; }
h1 { margin: 0; font-size: clamp(2.35rem, 7vw, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; }
h2 { margin: 0 0 .75rem; font-size: 1.18rem; }
p { margin: 0; }
header p { margin: .8rem 0 2rem; color: var(--muted); }
#summary[data-state="operational"] { color: var(--accent); }
#summary[data-state="degraded"] { color: var(--warning); }
.checks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.checks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 4rem; padding: .7rem .15rem; border-bottom: 1px solid var(--rule); font-weight: 600; }
small { display: block; margin-top: .15rem; color: var(--muted); font-size: .8rem; font-weight: 400; }
.state { color: var(--muted); font-size: .875rem; font-weight: 550; white-space: nowrap; }
.state::before { content: ""; display: inline-block; width: .43rem; height: .43rem; border-radius: 50%; background: currentColor; margin-right: .45rem; vertical-align: .12em; }
.state[data-state="operational"] { color: var(--accent); }
.state[data-state="degraded"] { color: var(--warning); }
.state[data-state="unavailable"] { color: var(--danger); }
section { margin-top: 2.5rem; }
footer { color: var(--muted); margin-top: 1.3rem; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; }
footer time { font-variant-numeric: tabular-nums; }
footer a { color: var(--accent); text-underline-offset: .2em; padding-block: .3rem; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: .25rem; }
#operator-message { flex-basis: 100%; }
noscript p { margin-top: 1rem; color: var(--muted); }

@media (max-width: 360px) {
    main { width: calc(100% - 2rem); }
    .state { font-size: .8rem; }
}
