:root {
  color-scheme: light dark;
  --background: #f6f7f8;
  --surface: #ffffff;
  --text: #19252b;
  --muted: #52616a;
  --line: #d9e0e4;
  --accent: #205b92;
  --success: #236340;
  --error: #9f352b;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
main { width: min(100% - 2rem, 42rem); margin: 3rem auto; }
.brand { margin: 0 0 1rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .125rem; }
h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.3; }
h2 { margin: 0 0 1rem; font-size: 1.125rem; }
h3 { margin: 0 0 .5rem; font-size: 1rem; }
p { margin: 0; overflow-wrap: anywhere; }
.intro { margin: 1rem 0 2rem; color: var(--muted); }
.connection { padding: 1.5rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); }
.state { font-size: 1.5rem; font-weight: 600; }
.state[data-state="online"] { color: var(--success); }
.state[data-state="unavailable"] { color: var(--error); }
.detail { margin: .5rem 0 1rem; color: var(--muted); }
button { min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: .375rem; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { cursor: wait; color: var(--muted); }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.instructions { margin-top: 2rem; }
ol { margin: 0; padding-left: 1.5rem; }
li { padding-left: .5rem; margin-bottom: 1.5rem; }
li::marker { font-weight: 600; color: var(--muted); }
li p { color: var(--muted); }
.note { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
footer { margin-top: 2rem; color: var(--muted); font-size: .875rem; }
footer a { display: inline-block; padding: .75rem 0; }
@media (max-width: 480px) {
  main { margin: 1.5rem auto; }
  .connection { padding: 1rem; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #151a1e;
    --surface: #1d252b;
    --text: #edf2f5;
    --muted: #b1c0c9;
    --line: #44515b;
    --accent: #8cc3f3;
    --success: #8fd2aa;
    --error: #ffaaa2;
  }
}
