:root {
  color-scheme: dark;
  --ink: #efeee7;
  --muted: #96978f;
  --paper: #121411;
  --panel: #1b1e19;
  --line: #3b4037;
  --acid: #d6ff3f;
  --danger: #ff6d4a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Georgia, 'Times New Roman', serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 10%, rgba(214,255,63,.08), transparent 28%);
}

.frame {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 34px;
}

.masthead, footer, .status-heading, .readout, .hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.masthead {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow, .serial, .label, dt, dd, footer, button {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow { color: var(--acid); }
.serial, .label, dt, footer { color: var(--muted); }

.hero {
  align-items: flex-end;
  min-height: 52vh;
  padding: 74px 0 58px;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.055em;
}

.lede {
  max-width: 600px;
  margin: 34px 0 0;
  color: #b9bab2;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}

.seal {
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 4px;
  flex: 0 0 auto;
  border: 1px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  transform: rotate(7deg);
}

.seal span { font-size: .6rem; letter-spacing: .16em; }
.seal strong { font-size: 1.45rem; letter-spacing: .04em; }

.status-panel {
  position: relative;
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(27,30,25,.92);
}

.status-panel::after {
  content: '12';
  position: absolute;
  right: -12px;
  bottom: -58px;
  color: rgba(255,255,255,.025);
  font-size: 14rem;
  line-height: 1;
}

h2 { margin: 8px 0 0; font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 400; }
.status-copy { max-width: 680px; margin: 20px 0 38px; color: #b9bab2; line-height: 1.55; }

.lamp {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 7px rgba(255,109,74,.1), 0 0 32px rgba(255,109,74,.3);
}

[data-state='ready'] .lamp {
  background: var(--acid);
  box-shadow: 0 0 0 7px rgba(214,255,63,.1), 0 0 32px rgba(214,255,63,.3);
}

.readout { justify-content: flex-start; flex-wrap: wrap; }
.readout div { min-width: 170px; padding-top: 12px; border-top: 1px solid var(--line); }
.readout dd { margin-top: 8px; color: var(--ink); text-transform: none; letter-spacing: .02em; }

footer { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
button { padding: 10px 14px; color: var(--ink); border: 1px solid var(--line); background: transparent; cursor: pointer; }
button:hover, button:focus-visible { color: var(--paper); border-color: var(--acid); background: var(--acid); outline: none; }

@media (max-width: 700px) {
  .frame { width: min(100% - 24px, 1120px); }
  .hero { min-height: auto; padding: 62px 0 42px; align-items: flex-start; }
  .seal { width: 88px; }
  .seal strong { font-size: 1rem; }
  .serial { display: none; }
  .status-heading { align-items: flex-start; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > *, .status-panel { animation: reveal .7s ease-out both; }
  .status-panel { animation-delay: .12s; }
  @keyframes reveal { from { opacity: 0; transform: translateY(16px); } }
}
