:root {
  --subnet-black: #101314;
  --rack-smoke: #232a2b;
  --patch-white: #f7f8f4;
  --paper-tag: #ece7d8;
  --route-green: #238b63;
  --server-blue: #245d91;
  --notice-copper: #b96e42;
  --lamp-red: #c54f5a;
  --socket-line: #c9d0c8;
  --terminal-glow: #d8f26f;
  --wire-lift: 0 22px 70px rgba(13, 22, 24, 0.22);
  --socket-curve: 18px;
  --course-measure: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.subnetlab-signal {
  margin: 0;
  color: var(--subnet-black);
  background:
    linear-gradient(90deg, rgba(35, 139, 99, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 93, 145, 0.08) 1px, transparent 1px),
    var(--patch-white);
  background-size: 44px 44px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

course-gate,
compare-bay,
enroll-socket,
studio-register,
record-cover,
contact-slab {
  display: block;
}

.packet-skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--terminal-glow);
  color: var(--subnet-black);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.packet-skip:focus {
  transform: translateY(0);
}

.network-inlet {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(0, 720px) minmax(20px, 1fr);
  grid-template-rows: minmax(46px, 0.42fr) auto auto auto;
  color: white;
  overflow: hidden;
}

.server-room-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.server-room-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.network-inlet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 13, 14, 0.86), rgba(10, 13, 14, 0.46) 55%, rgba(10, 13, 14, 0.18)),
    linear-gradient(180deg, rgba(16, 19, 20, 0.4), rgba(16, 19, 20, 0.15) 48%, rgba(16, 19, 20, 0.72));
}

.patch-coordinate {
  grid-column: 2;
  grid-row: 2;
  width: min(700px, 100%);
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.subnetlab-wordmark {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  color: var(--terminal-glow);
}

.patch-coordinate h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.65rem);
  line-height: 1;
  max-width: 11.8em;
}

.signal-brief {
  margin: 18px 0 0;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.jack-strip {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.jack-strip a {
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-left: 6px solid var(--terminal-glow);
  background: rgba(16, 19, 20, 0.54);
  backdrop-filter: blur(8px);
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.jack-strip a:focus-visible,
.jack-strip a:hover {
  background: rgba(216, 242, 111, 0.18);
}

.offer-readings {
  grid-column: 1 / -1;
  grid-row: 4;
  width: var(--course-measure);
  justify-self: center;
  margin: 20px 0 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(9, 12, 13, 0.62);
  backdrop-filter: blur(10px);
}

.offer-readings div {
  padding: 15px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.offer-readings div:last-child {
  border-right: 0;
}

.offer-readings dt {
  color: var(--terminal-glow);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.offer-readings dd {
  margin: 4px 0 0;
  font-weight: 750;
}

@media (max-width: 860px) {
  .network-inlet {
    min-height: 92vh;
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    grid-template-rows: minmax(64px, 0.6fr) auto auto auto;
  }

  .offer-readings {
    grid-template-columns: 1fr 1fr;
    width: calc(100vw - 24px);
  }

  .offer-readings div:nth-child(2) {
    border-right: 0;
  }

  .offer-readings div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
}

@media (max-width: 540px) {
  .patch-coordinate h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .jack-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .jack-strip a {
    justify-content: center;
    padding-inline: 10px;
  }

  .offer-readings {
    grid-template-columns: 1fr;
  }

  .offer-readings div {
    border-right: 0;
  }
}
