:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #faf5fc;
  background: #151323;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(22 16 36 / 30%), rgb(19 14 31 / 76%)),
    url("observatory.jpg") center / cover no-repeat fixed;
}

.shell {
  width: min(100% - 48px, 1160px);
  margin: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 24px 0;
  border-bottom: 1px solid rgb(255 239 255 / 25%);
  text-shadow: 0 1px 10px #160d24;
}

.brand-mark, .lock {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(245 191 222 / 30%);
  border-radius: 12px;
  background: #2d203c;
  color: #f5badc;
}

.brand-mark { font-size: 24px; }
.brand, .subtitle { margin: 0; }
.brand { font-size: 1.15rem; font-weight: 650; }
.subtitle, footer { color: #e8d9ec; font-size: .85rem; }

main { margin: auto 0; padding: 28px 0; }

.section-head {
  margin-bottom: 15px;
  text-shadow: 0 1px 10px #160d24, 0 1px 4px #160d24;
}

h1, .access-card h2 {
  font-family: Georgia, serif;
  font-weight: 400;
}

h1 { margin: 0; font-size: clamp(1.85rem, 4vw, 2.7rem); }

.telemetry {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border: 1px solid rgb(255 239 255 / 23%);
  border-radius: 20px;
  background: rgb(29 22 43 / 40%);
}

.inventory {
  margin: 0;
  padding: 12px 16px 0;
  color: #c9b8ce;
  font-size: .82rem;
  letter-spacing: .01em;
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.node {
  min-height: 190px;
  padding: 16px;
  border: 1px solid #4e3f5c;
  border-radius: 12px;
  background: #2a2233;
  box-shadow: none;
}

.node[data-tone="idle"] {
  border-color: #564866;
  background: #2c2436;
}

.node[data-tone="warn"] {
  border-color: #8a6a32;
  background: #322819;
  box-shadow: 0 0 18px rgb(160 110 30 / 18%);
}

.node[data-tone="fault"] {
  border-color: #8a3942;
  background: #32191e;
  box-shadow: 0 0 18px rgb(150 40 50 / 22%);
}

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.node h2 { font-size: 1rem; margin: 0; color: #d8cde0; }

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6d6278;
  box-shadow: none;
  flex: none;
}

.node[data-tone="idle"] .status-dot { background: #7a6e86; }
.node[data-tone="warn"] .status-dot { background: #d4a02a; box-shadow: 0 0 6px rgb(212 160 42 / 55%); }
.node[data-tone="fault"] .status-dot { background: #d1545c; box-shadow: 0 0 6px rgb(209 84 92 / 55%); }

.hardware { margin: 4px 0; color: #9e8fa8; font-size: .75rem; }
dl { display: grid; gap: 6px; margin: 14px 0; font-size: .78rem; color: #c3b6c9; }
dl div { display: flex; justify-content: space-between; gap: 6px; }
dd { margin: 0; font-variant-numeric: tabular-nums; color: #ddd4e4; }

.gpu-bars {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  align-items: end;
  gap: 3px;
  height: 20px;
}

.gpu-bars span { background: #6a5d75; border-radius: 2px; }
.gpu-bars span[data-tone="idle"] { background: #6f627c; }
.gpu-bars span[data-tone="warn"] { background: #c4922c; }
.gpu-bars span[data-tone="fault"] { background: #c44d56; }

.access-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(35 26 49 / 32%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.access-card {
  width: min(100%, 400px);
  padding: 27px 22px;
  text-align: center;
  border: 1px solid rgb(246 215 249 / 27%);
  border-radius: 16px;
  background: rgb(30 22 44 / 91%);
  box-shadow: 0 12px 40px rgb(10 5 21 / 40%);
}

.lock { margin: 0 auto 15px; position: relative; }
.lock::before, .lock::after { content: ""; position: absolute; border: 1.5px solid currentColor; }
.lock::before { width: 8px; height: 8px; top: 9px; border-radius: 8px 8px 0 0; }
.lock::after { width: 14px; height: 11px; top: 17px; border-radius: 3px; background: #2d203c; }
.access-card h2 { margin: 0 0 10px; font-size: clamp(1.55rem, 5vw, 2.05rem); }
.access-card p { margin: 0 auto; max-width: 32ch; color: #e6d8eb; line-height: 1.55; }
footer { padding: 0 0 20px; }

@media (max-width: 800px) {
  .node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-layer { align-items: start; }
  .access-card { position: sticky; top: 16px; margin-top: 24px; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 28px); }
  .node-grid { grid-template-columns: 1fr; }
}
