:root {
  --base: #0b1220;
  --surface: #111c34;
  --line: #22304f;
  --ink: #e6ecf7;
  --muted: #8aa0c6;
  --brand: #3b82f6;
  --critical: #f43f5e;
  --high: #fb923c;
  --warn: #f59e0b;
  --ok: #22c55e;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 30px rgba(2, 8, 23, 0.55);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(59, 130, 246, 0.1), transparent 60%),
    var(--base);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0;
}

/* The header shares the content column, so logo and title line up. */
header {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
/* White on the dark ground, whatever the colours of the file. */
.logo {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.session {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.session[hidden] {
  display: none;
}
.session button {
  font: inherit;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 11px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.session button:hover,
.session button:focus-visible {
  border-color: var(--critical);
  color: var(--critical);
  outline: none;
}

main {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 38px 32px 60px;
}
h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.lede {
  color: var(--muted);
  max-width: 66ch;
  font-size: 1.02rem;
  margin: 0 0 34px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* Two columns at most: with an automatic fit a tile would be left alone on a row of its own. */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tile {
  --accent: var(--brand);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}
a.tile:hover,
a.tile:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tile h2 {
  font-size: 1.16rem;
  font-weight: 700;
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.foot {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.dot.ok {
  background: var(--ok);
}
.dot.off {
  background: #3b4a6b;
}

/* A shortcut is something to open on another device too: its address comes with a code to frame. */
.shortcuts {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.shortcut {
  --accent: var(--warn);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.shortcut::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}
.shortcut .code {
  flex: none;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
}
.shortcut .code img,
.shortcut .code canvas {
  display: block;
}
.shortcut .text {
  display: grid;
  gap: 6px;
}
.shortcut h3 {
  font-size: 1.05rem;
}
.shortcut p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 52ch;
}
.shortcut .address {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand);
  word-break: break-all;
}
a.shortcut:hover .address {
  text-decoration: underline;
}
@media (max-width: 560px) {
  .shortcut .code {
    display: none;
  }
}

.services {
  margin-top: 34px;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.service {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.service .note {
  color: var(--muted);
  margin-left: auto;
}
.status {
  color: var(--muted);
}

footer {
  padding: 20px 32px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
/* On a phone the header keeps the mark and the sign-out: the name of the user would push them past the edge. */
@media (max-width: 560px) {
  header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand {
    font-size: 0.7rem;
    min-width: 0;
  }
  #user {
    display: none;
  }
}
@media (max-width: 900px) {
  .logo {
    height: 22px;
  }
  header,
  main {
    padding-left: 20px;
    padding-right: 20px;
  }
}
