/* Styling for the two pages a browser can reach without credentials: the
   landing page at / and the status page at /health.

   Served as a file rather than inlined in a <style> block. The server sends
   `default-src 'none'` on every response, which blocks inline styles outright —
   /health had a <style> block for months and rendered unstyled in every
   browser, because nothing looks at an API host in one. A stylesheet at its own
   URL works under `style-src 'self'` and needs no 'unsafe-inline'. */

:root {
  color-scheme: light dark;

  --bg:      #fbfbfa;
  --surface: #ffffff;
  --text:    #1b1b19;
  --muted:   #6b6b66;
  --line:    #e4e4e0;
  --accent:  #1f5fa8;
  --ok:      #2e6b46;
  --danger:  #a3302b;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0f1012;
    --surface: #17181b;
    --text:    #e8e8e4;
    --muted:   #9a9a93;
    --line:    #26282d;
    --accent:  #8ab4f8;
    --ok:      #6ee7a8;
    --danger:  #dd9089;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, sans-serif;
}

main {
  width: 100%;
  max-width: 34rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 2.25rem;
}

h1 {
  margin: 0 0 .35rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.lede { margin: 0 0 1.5rem; color: var(--muted); }

a { color: var(--accent); }
a:hover { text-decoration: underline; }

dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1.25rem;
}
dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  align-self: center;
}
dd { margin: 0; word-break: break-word; }

/* One row per link, so the list reads as a set of destinations rather than a
   paragraph with links buried in it. */
.links { margin: 0; padding: 0; list-style: none; }
.links li {
  display: flex;
  gap: .9rem;
  align-items: baseline;
  padding: .55rem 0;
  border-top: 1px solid var(--line);
}
.links li:last-child { padding-bottom: 0; }
.links a { font-family: var(--mono); font-size: 13.5px; min-width: 7rem; }
.links span { color: var(--muted); font-size: 13.5px; }

.pill {
  display: inline-block;
  padding: .1rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
}
.pill.ok  { color: var(--ok);     border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

code { font-family: var(--mono); font-size: 13px; }

footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
