@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&family=Oxanium:wght@400;500;600;700&display=swap');

:root {
  --black: #070a0b;
  --panel: #111719;
  --line: rgba(141, 240, 211, 0.17);
  --green: #8df0d3;
  --orange: #ff7043;
  --white: #e9f0ed;
  --muted: #91a19c;
  --warning: #ffd166;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Geist Mono', monospace;
}

header {
  padding: 20px clamp(18px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.signal-brand {
  color: var(--green);
  text-decoration: none;
}

header ul,
footer ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  list-style: none;
}

header a,
footer a {
  color: inherit;
  text-decoration: none;
}

header nav a[aria-current='page'],
header nav a:hover {
  color: var(--orange);
}

main {
  width: min(1300px, calc(100% - 40px));
  margin: 0 auto;
}

.system-intro {
  padding: 90px 0 60px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  align-items: end;
}

.terminal-label {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: 'Oxanium', sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.system-intro > p,
.communication-copy > p,
.design-note p {
  color: var(--muted);
  line-height: 1.8;
}

.status-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
  gap: 14px;
}

.status-grid article {
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.card-top strong {
  color: var(--green);
}

.network-visual {
  height: 110px;
  margin: 45px 0 28px;
  display: flex;
  align-items: end;
  gap: 7px;
}

.network-visual i {
  width: 10%;
  background: var(--green);
  transition: height 200ms ease, background 200ms ease, opacity 200ms ease;
}

.network-visual i:nth-child(1) { height: 25%; }
.network-visual i:nth-child(2) { height: 48%; }
.network-visual i:nth-child(3) { height: 36%; }
.network-visual i:nth-child(4) { height: 72%; }
.network-visual i:nth-child(5) { height: 52%; }
.network-visual i:nth-child(6) { height: 88%; }
.network-visual i:nth-child(7) { height: 62%; }
.network-visual i:nth-child(8) { height: 76%; }
.network-visual i:nth-child(9) { height: 43%; }
.network-visual i:nth-child(10) { height: 67%; }

.network-visual.is-limited i {
  background: var(--warning);
  opacity: 0.65;
}

.network-visual.is-offline i {
  height: 8%;
  background: var(--orange);
  opacity: 0.45;
}

.network-card > p,
.metric-card p,
.channel-list p {
  color: var(--muted);
  line-height: 1.65;
}

.network-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.network-controls button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font: inherit;
}

.network-controls button:hover,
.network-controls button.is-active {
  background: var(--green);
  color: var(--black);
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-card > span {
  color: var(--orange);
}

.metric-card strong {
  margin: auto 0 20px;
  font-family: 'Oxanium', sans-serif;
  font-size: 3.4rem;
  font-weight: 500;
}

.communication,
.incident-log,
.design-note {
  margin: 100px 0;
}

.communication {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 65px;
}

.communication h2,
.design-note h2,
.log-heading h2 {
  margin: 0 0 24px;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 0.92;
}

.channel-list {
  display: grid;
  gap: 10px;
}

.channel-list article {
  padding: 24px;
  border: 1px solid var(--line);
}

.channel-list span {
  color: var(--green);
}

.channel-list h3 {
  margin: 18px 0 12px;
  font-size: 1.7rem;
}

.incident-log {
  padding: clamp(28px, 6vw, 68px);
  background: var(--white);
  color: var(--black);
}

.incident-log {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.log-content {
  border-top: 1px solid rgba(7, 10, 11, 0.25);
}

.log-content p {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(7, 10, 11, 0.25);
  line-height: 1.65;
}

.log-content span {
  color: #b13c20;
  font-weight: 600;
}

.design-note {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

footer {
  padding: 36px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 1020px) {
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .network-card {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-intro,
  .communication,
  .incident-log {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .network-card {
    grid-column: auto;
  }
}
