:root {
  color-scheme: dark;
  --background: #080909;
  --panel: #0d0f0e;
  --line: #303430;
  --text: #e7e9e4;
  --muted: #8c938c;
  --signal: #a8c09b;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--background);
  background-size: 3rem 3rem;
  font-family: "Courier New", Courier, monospace;
}

.shell {
  display: grid;
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
  place-items: center;
}

.frame {
  position: relative;
  width: min(100%, 68rem);
  min-height: min(42rem, calc(100vh - 2rem));
  border: 1px solid var(--line);
  background: rgba(13, 15, 14, 0.84);
}

.frame::before,
.frame::after {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  content: "";
}

.frame::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--signal);
  border-left: 1px solid var(--signal);
}

.frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--signal);
  border-bottom: 1px solid var(--signal);
}

.frame__marker,
.frame__footer {
  position: absolute;
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
}

.frame__marker {
  top: 1.25rem;
  right: 1.25rem;
}

.frame__footer {
  right: 1.25rem;
  bottom: 1.25rem;
}

.system-card {
  display: flex;
  min-height: inherit;
  padding: clamp(4.5rem, 12vw, 9rem) clamp(1.5rem, 8vw, 7rem);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  letter-spacing: 0.18em;
  line-height: 1.6;
}

h1 {
  margin: 0;
  font-size: clamp(4.5rem, 18vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.82;
}

.status {
  display: inline-flex;
  margin-top: clamp(3rem, 7vw, 5rem);
  align-items: center;
  gap: 0.75rem;
  color: var(--signal);
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.status__light {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
}

.js .status__light {
  animation: pulse 2.4s ease-in-out infinite;
}

.note {
  margin: 1rem 0 0 1.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 40rem) {
  .frame {
    min-height: calc(100vh - 2rem);
  }

  .system-card {
    padding-inline: 1.5rem;
  }

  .status {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .status__light {
    animation: none;
  }
}
