:root {
  color-scheme: light;
  --ink: #17211f;
  --muted-ink: #596561;
  --line: #d8ded9;
  --paper: #f7f7f2;
  --panel: #ffffff;
  --green: #176b58;
  --green-2: #0e4f43;
  --amber: #c7892b;
  --red: #b44d43;
  --blue: #2d668f;
  --shadow: 0 18px 60px rgba(16, 37, 32, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 247, 242, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 3px 8px;
  background: var(--ink);
  color: #f5f1dc;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  color: var(--muted-ink);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--green);
}

.hero {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(36px, 7vw, 86px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 112px);
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: .95;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted-ink);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 740;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #fffdf2;
}

.button.secondary {
  background: transparent;
}

.hero-art {
  display: grid;
  place-items: center;
  min-height: 480px;
}

.crt {
  width: min(95vw, 560px);
  transform: rotate(-2deg);
}

.crt-screen {
  display: grid;
  gap: 12px;
  min-height: 310px;
  padding: 42px;
  background:
    linear-gradient(rgba(255, 255, 255, .06) 50%, rgba(0, 0, 0, .09) 50%) 0 0 / 100% 8px,
    radial-gradient(circle at 35% 30%, #38b48c, #0f5546 58%, #072a25);
  border: 18px solid #2c302d;
  border-radius: 20px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .4), var(--shadow);
  color: #d7ffe8;
  font-family: "Courier New", monospace;
}

.crt-screen span,
.crt-screen small {
  font-size: 17px;
}

.crt-screen strong {
  align-self: center;
  font-size: clamp(38px, 7vw, 72px);
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.keyboard {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin: 12px 22px 0;
  padding: 22px;
  background: #d8d0bd;
  border: 1px solid #a99f8c;
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.keyboard i {
  height: 22px;
  background: #292c2a;
  border-radius: 3px;
}

.intro-band,
.content-section,
.board-section {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  color: #f7f7f2;
}

.intro-band article {
  padding: 28px;
  background: rgba(255, 255, 255, .06);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band span {
  margin-top: 10px;
  color: rgba(247, 247, 242, .74);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 72px);
}

.prose {
  color: var(--muted-ink);
  font-size: 18px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.spec-grid div {
  min-height: 118px;
  padding: 18px;
  background: var(--panel);
}

dt {
  color: var(--green);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

dd {
  margin: 8px 0 0;
  font-weight: 680;
}

.muted {
  background: #e9eee8;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.research-card {
  min-height: 250px;
  padding: 24px;
  background: var(--panel);
}

.research-card span {
  color: var(--amber);
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.research-card h3 {
  margin-top: 28px;
}

.research-card p {
  color: var(--muted-ink);
}

.board-section {
  background: #102520;
  color: #f5f5ec;
}

.board-section .eyebrow {
  color: #83d2b3;
}

.board-layout {
  display: grid;
  grid-template-columns: 240px minmax(420px, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.board-tools,
.part-panel {
  padding: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
}

.board-tools label,
.board-tools legend {
  color: rgba(245, 245, 236, .82);
  font-size: 13px;
  font-weight: 720;
}

.board-tools input[type="search"] {
  width: 100%;
  min-height: 40px;
  margin: 8px 0 20px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 5px;
  background: rgba(0, 0, 0, .2);
  color: #fff;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 520;
}

.hint {
  margin-top: 22px;
  color: rgba(245, 245, 236, .66);
  font-size: 13px;
}

.board-stage {
  min-width: 0;
  overflow: auto;
  padding: 12px;
  background: #0a1714;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
}

.board-map {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}

.pcb {
  fill: #165945;
  stroke: #5ab893;
  stroke-width: 4;
}

.tracks path {
  stroke: #80dbc0;
  stroke-width: 6;
  opacity: .38;
}

.hotspot rect {
  fill: #f3eed3;
  stroke: #13231f;
  stroke-width: 3;
  transition: fill .15s ease, stroke .15s ease, opacity .15s ease;
}

.hotspot text {
  fill: #13231f;
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: 700;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
}

.hotspot button,
.hotspot {
  cursor: pointer;
}

.hotspot[data-kind="video"] rect {
  fill: #d4e5f4;
}

.hotspot[data-kind="audio"] rect {
  fill: #f3d7c9;
}

.hotspot[data-kind="memory"] rect {
  fill: #e9dfb7;
}

.hotspot[data-kind="io"] rect {
  fill: #d8ddd7;
}

.hotspot[data-kind="power"] rect {
  fill: #f2c7bd;
}

.hotspot.is-selected rect {
  fill: #ffd66d;
  stroke: #fff8dd;
  stroke-width: 5;
}

.hotspot.is-hidden {
  opacity: .15;
}

.ports rect {
  fill: #27332f;
  stroke: #9db0a5;
  stroke-width: 2;
}

.ports text {
  fill: #f5f5ec;
  font-family: "Courier New", monospace;
  font-size: 16px;
  text-anchor: middle;
  dominant-baseline: central;
}

.part-panel h3 {
  margin-bottom: 10px;
}

.part-panel p,
.part-panel li,
.part-panel dd {
  color: rgba(245, 245, 236, .74);
}

.part-panel dl {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.part-panel dl div {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.part-panel h4 {
  margin: 18px 0 8px;
}

.part-panel ul {
  margin: 0;
  padding-left: 18px;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.archive-list a {
  min-height: 150px;
  padding: 22px;
  background: var(--panel);
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  text-decoration: none;
}

.archive-list a:hover {
  color: var(--green);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: rgba(245, 245, 236, .74);
}

@media (max-width: 1060px) {
  .hero,
  .two-column,
  .board-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .board-tools {
    order: -2;
  }

  .part-panel {
    order: -1;
  }

  .research-grid,
  .archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  nav {
    justify-content: flex-start;
  }

  .hero-art {
    min-height: auto;
  }

  .crt-screen {
    min-height: 240px;
    padding: 28px;
    border-width: 12px;
  }

  .intro-band,
  .spec-grid,
  .research-grid,
  .archive-list {
    grid-template-columns: 1fr;
  }

  .board-stage {
    margin-inline: -18px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}
