@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  font-family: "InterVariable", system-ui, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  --canvas: #000;
  --text: #f4f7fb;
  --muted: #9ba9bc;
  --line: rgb(255 255 255 / 10%);
  --cyan: #79ddff;
  --green: #68e6a3;
  --amber: #f5c86a;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
}

a {
  color: inherit;
}

code {
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.site-shell {
  isolation: isolate;
  width: min(100%, 100rem);
  min-height: 100svh;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3.5vw, 3.25rem);
}

.deployment-summary {
  position: absolute;
  inset: clamp(0.5rem, 1.5vw, 1rem) 0 auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 1rem;
  color: var(--text);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0.25rem rgb(245 200 106 / 10%);
}

.status-dot[data-state="live"] {
  background: var(--green);
  box-shadow: 0 0 0 0.25rem rgb(104 230 163 / 10%);
}

.status-dot[data-state="degraded"] {
  background: var(--amber);
}

.status-dot[data-state="offline"] {
  background: var(--muted);
  box-shadow: 0 0 0 0.25rem rgb(155 169 188 / 10%);
}

.deployment-copy {
  display: grid;
  gap: 0.125rem;
  text-align: left;
}

.instance-name {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.page-main {
  display: grid;
  min-height: 100svh;
  align-content: center;
  justify-items: center;
  gap: clamp(0.75rem, 1.7vh, 1rem);
  padding-block: clamp(1rem, 2.5vh, 1.5rem);
}

.deployment-summary h1 {
  max-width: 40ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.flight-visual {
  position: relative;
  width: min(100%, 70rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.flight-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.flight-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(4rem, 12%, 6rem) clamp(1rem, 4vw, 4rem) clamp(1rem, 2.5vh, 1.5rem);
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0%),
    rgb(0 0 0 / 72%) 45%,
    rgb(0 0 0 / 96%) 100%
  );
}

.release-facts {
  display: grid;
  width: min(100%, 62rem);
  grid-template-columns: 1.1fr 1fr 1.7fr 1.1fr 0.75fr;
  margin: 0;
}

.release-facts > div {
  min-width: 0;
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
  border-left: 1px solid var(--line);
}

.release-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.release-facts > div:last-child {
  padding-right: 0;
}

.release-facts dt {
  color: #d8e1ec;
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.release-facts dd {
  margin: 0.375rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 430;
  overflow-wrap: anywhere;
}

.release-facts .slot {
  color: var(--green);
  font-weight: 560;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.node-network {
  width: min(100%, 62rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(0.875rem, 2vw, 1.25rem);
}

.node-network-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
}

.node-network-title {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.node-network-title h2,
.node-network-title p {
  margin: 0;
}

.node-network-title h2,
.live-telemetry dt {
  color: #d8e1ec;
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.node-network-title p {
  color: var(--muted);
  font-size: 1rem;
}

.live-telemetry {
  display: grid;
  min-width: min(100%, 24rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.live-telemetry > div {
  min-width: 0;
  padding-inline: clamp(0.75rem, 2vw, 1.25rem);
  border-left: 1px solid var(--line);
}

.live-telemetry > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.live-telemetry > div:last-child {
  padding-right: 0;
}

.live-telemetry dt {
  white-space: nowrap;
}

.live-telemetry dd {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  white-space: nowrap;
}

.connection-state[data-state="live"] {
  color: var(--green);
}

.connection-state[data-state="degraded"] {
  color: var(--amber);
}

.node-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.node-list li {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.node-list code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.node-name-compact {
  display: none;
}

.node-role {
  color: var(--muted);
  white-space: nowrap;
}

.node-role.serving {
  color: var(--green);
  font-weight: 560;
}

.node-latency {
  color: var(--cyan);
  font-size: 0.875rem;
  white-space: nowrap;
}

.latency-label {
  margin-right: 0.375rem;
  color: var(--muted);
}

.health-button {
  display: inline-flex;
  min-width: min(100%, 18rem);
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  background: var(--text);
  color: var(--canvas);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease-out;
}

.health-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .health-button:hover {
    transform: translateY(-2px);
  }
}

@media (min-width: 40rem) {
  .flight-visual {
    aspect-ratio: 1586 / 992;
  }

  .flight-visual img {
    object-fit: contain;
  }

  .health-button {
    font-size: 0.9375rem;
  }

  .release-facts dd {
    font-size: 0.9375rem;
  }

  .node-network-heading p,
  .node-list li,
  .live-telemetry dd {
    font-size: 0.875rem;
  }
}

@media (max-width: 42rem) {
  .flight-visual {
    height: min(34rem, calc(100svh - 6rem));
    aspect-ratio: auto;
  }

  .deployment-summary h1 {
    font-size: clamp(1.25rem, 6vw, 1.375rem);
    line-height: 1.08;
  }

  .flight-overlay {
    gap: 0.75rem;
    padding: 3rem 1rem 0;
  }

  .release-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "deployment host"
      "nodes slot";
  }

  .deployment-fact {
    grid-area: deployment;
  }

  .host-fact {
    grid-area: host;
  }

  .nodes-fact {
    grid-area: nodes;
  }

  .slot-fact {
    grid-area: slot;
  }

  .serving-node-fact {
    display: none;
  }

  .release-facts > div,
  .release-facts > div:first-child,
  .release-facts > div:last-child {
    padding: 0.5rem 0.75rem;
    border-top: 0;
    border-left: 0;
  }

  .release-facts > .deployment-fact,
  .release-facts > .nodes-fact {
    padding-left: 0;
  }

  .release-facts > .host-fact,
  .release-facts > .slot-fact {
    padding-right: 0;
    border-left: 1px solid var(--line);
  }

  .release-facts > .nodes-fact,
  .release-facts > .slot-fact {
    border-top: 1px solid var(--line);
  }

  .node-network {
    padding-top: 0.75rem;
  }

  .node-network-heading {
    display: grid;
    gap: 0.75rem;
  }

  .node-network-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .live-telemetry {
    width: 100%;
    min-width: 0;
  }

  .live-telemetry > div {
    padding-inline: 0.5rem;
  }

  .live-telemetry dt {
    font-size: 0.625rem;
    letter-spacing: 0.055em;
  }

  .live-telemetry dd {
    font-size: 1rem;
  }

  .node-list {
    gap: 0.375rem;
    margin-top: 0.625rem;
  }

  .node-list li {
    grid-template-columns: minmax(6.75rem, auto) minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .node-latency {
    font-size: 0.75rem;
  }

  .latency-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .node-name-full {
    display: none;
  }

  .node-name-compact {
    display: inline;
  }
}

@media (max-width: 22rem) {
  .live-telemetry > div {
    padding-inline: 0.375rem;
  }

  .live-telemetry dt {
    display: flex;
    min-height: 2.2em;
    align-items: end;
    font-size: 0.5625rem;
    letter-spacing: 0.035em;
    line-height: 1.1;
    white-space: normal;
  }

  .node-list li:not(:first-child) {
    grid-template-columns: minmax(5rem, auto) minmax(0, 1fr) auto;
    gap: 0.375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .health-button {
    transition: none;
  }

  .health-button:hover {
    transform: none;
  }
}
