:root {
  color-scheme: dark;
  font-family: "IBM Plex Mono", "Cascadia Mono", ui-monospace, monospace;
  background: #090b0c;
  color: #d9e1dc;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -20%, #26322d 0, #090b0c 48%); }
main { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 48px; }
header { border-left: 2px solid #a7f3c4; padding-left: 22px; }
.eyebrow, .label, dt { color: #8b9d94; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
h1 { font-size: clamp(3rem, 11vw, 7rem); line-height: .85; margin: 18px 0 24px; letter-spacing: -.08em; }
.lede { max-width: 62ch; line-height: 1.65; color: #aebbb4; }
.instrument { margin: 56px 0; border: 1px solid #3d4b44; background: #101512; box-shadow: 0 18px 80px #0008; }
form { display: grid; grid-template-columns: 1fr 11rem 1fr auto; gap: 16px; align-items: end; padding: 24px; border-bottom: 1px solid #2e3933; }
label { display: grid; gap: 8px; color: #8b9d94; font-size: .8rem; }
input, select, button { font: inherit; color: inherit; border: 1px solid #46564d; background: #080b09; padding: 12px; }
input { width: 100%; }
button { cursor: pointer; color: #08100b; background: #a7f3c4; border-color: #a7f3c4; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
button:hover { background: #c2ffd8; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 28px 24px 20px; }
#result { font-size: clamp(2rem, 8vw, 4.5rem); color: #a7f3c4; }
.flags { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0 24px 24px; gap: 8px; }
.register-file { grid-template-columns: repeat(8, 1fr); }
.flags div { border: 1px solid #2e3933; padding: 12px; text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0 24px 24px; }
.metrics div { border-top: 1px solid #2e3933; padding-top: 12px; }
.metrics dd { font-size: .86rem; color: #a7f3c4; }
dt { margin-bottom: 8px; }
dd { margin: 0; font-size: 1.3rem; }
#status { margin: 0; border-top: 1px solid #2e3933; padding: 14px 24px; color: #8b9d94; font-size: .8rem; }
.rom-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 20px 24px; border-bottom: 1px solid #2e3933; }
.rom-row code { overflow-wrap: anywhere; color: #a7f3c4; }
#cpu-mount { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; }
#trace { margin: 0; padding: 20px 24px; border-top: 1px solid #2e3933; color: #a7f3c4; line-height: 1.55; overflow: auto; }
a { color: #a7f3c4; }
footer { display: grid; gap: 10px; color: #829088; line-height: 1.6; font-size: .82rem; }
footer p { margin: 0; }
code { color: #a7f3c4; }
@media (max-width: 680px) {
  main { padding-top: 36px; }
  form, .rom-row { grid-template-columns: 1fr; }
  .flags, .register-file { grid-template-columns: repeat(3, 1fr); }
  .metrics { grid-template-columns: 1fr; }
}
