:root {
  --ink: #111211;
  --paper: #e8e3d9;
  --quiet: #a39f96;
  --rule: #44433e;
  --accent: #b84b3c;
  --photo-mat: #1c1b18;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--quiet);
  font-size: 0.85rem;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(54px, 9vw, 112px) 0 clamp(64px, 10vw, 128px);
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font: 700 0.7rem/1.4 "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.intro {
  max-width: 390px;
  margin: 24px 0 0;
  color: var(--quiet);
  font-size: 1rem;
  line-height: 1.75;
}

.build-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 20px;
  color: var(--paper);
  font-size: 0.88rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.build-link span {
  color: var(--accent);
}

.build-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 380px;
  margin: 34px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.build-facts li {
  display: grid;
  gap: 6px;
}

.build-facts span,
.part-card figcaption span {
  color: var(--quiet);
  font: 0.68rem/1.4 "Courier New", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.build-facts strong {
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 400;
}

.hero-photo,
.part-card,
.brain-photo {
  position: relative;
  margin: 0;
}

.hero-photo {
  padding: 8px;
  border: 1px solid var(--rule);
  background: var(--photo-mat);
  transform: rotate(0.6deg);
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  object-position: center;
}

.photo-stamp {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 8px;
  background: var(--ink);
  color: var(--paper);
  font: 0.66rem/1.3 "Courier New", monospace;
  letter-spacing: 0.08em;
}

.hero-photo figcaption {
  padding: 12px 5px 4px;
  color: var(--quiet);
  font: 0.72rem/1.4 "Courier New", monospace;
  text-transform: uppercase;
}

.parts-section {
  padding: 32px 0 76px;
  border-top: 1px solid var(--rule);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  flex: 0 0 auto;
  margin: 0;
}

.section-heading h2,
.brain-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.parts-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  align-items: start;
  gap: 22px;
}

.part-card {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.part-card:nth-child(2) {
  margin-top: 32px;
}

.part-card:nth-child(3) {
  margin-top: 64px;
}

.part-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
  background: var(--photo-mat);
}

.part-card figcaption {
  display: grid;
  gap: 6px;
  padding: 12px 2px 2px;
}

.part-card figcaption strong {
  font-size: 0.92rem;
  font-weight: 400;
}

.brain-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 8vw, 112px);
  padding: 46px 0 64px;
  border-top: 1px solid var(--rule);
}

.brain-photo {
  padding: 8px;
  border: 1px solid var(--rule);
  background: var(--photo-mat);
  transform: rotate(-0.5deg);
}

.brain-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.brain-photo figcaption {
  padding: 12px 4px 3px;
  color: var(--quiet);
  font: 0.68rem/1.4 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brain-copy {
  max-width: 360px;
}

.brain-copy h2 {
  max-width: 300px;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.footer {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font: 0.68rem/1.5 "Courier New", monospace;
  letter-spacing: 0.04em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 32px, 620px);
  }

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

  .nav {
    gap: 10px;
  }

  .nav a {
    padding: 0 5px;
    font-size: 0.76rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 60px 0 72px;
  }

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

  .hero h1 {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .hero-photo {
    width: calc(100% - 8px);
    margin-left: 8px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 10px;
  }

  .parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .part-card:nth-child(2),
  .part-card:nth-child(3) {
    margin-top: 0;
  }

  .part-card:first-child {
    grid-column: 1 / -1;
  }

  .part-card:first-child img {
    aspect-ratio: 1.5;
  }

  .brain-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 0 50px;
  }

  .brain-photo {
    width: calc(100% - 8px);
    margin-left: 8px;
  }

  .brain-copy {
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .topbar {
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 44px;
  }

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

  .part-card:first-child {
    grid-column: auto;
  }

  .part-card img,
  .part-card:first-child img {
    aspect-ratio: 1.35;
  }
}

/* Old desktop window chrome and a short boot sequence. */
body {
  background-color: #087e7a;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.035) 4px
  );
  color: #111;
  font-family: "Courier New", monospace;
}

.page-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 24px auto;
  padding: 6px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: 2px 2px 0 #000;
}

.topbar {
  min-height: 34px;
  padding: 5px 7px;
  background: #000080;
  border: 1px solid;
  border-color: #d8d8d8 #222 #222 #d8d8d8;
}

.brand {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border: 1px solid #fff;
  background: #00a6a6;
  transform: none;
}

.window-controls {
  display: flex;
  gap: 3px;
  color: #111;
  font: bold 0.75rem/1 Arial, sans-serif;
}

.window-controls span,
.boot-close {
  display: grid;
  width: 20px;
  height: 18px;
  place-items: center;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #fff #404040 #404040 #fff;
}

.menu-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 30px;
  padding: 4px 8px;
  border-bottom: 1px solid #808080;
  color: #111;
  font: 0.76rem/1.2 Arial, Helvetica, sans-serif;
}

.menu-version {
  margin-left: auto;
  color: #404040;
  font: 0.68rem/1 "Courier New", monospace;
}

.nav {
  gap: 4px;
  padding: 5px 5px 0;
  border-bottom: 1px solid #808080;
}

.nav a {
  min-height: 30px;
  padding: 0 12px;
  color: #111;
  font: 0.76rem/1 Arial, Helvetica, sans-serif;
}

.nav a:hover,
.nav a:focus-visible {
  color: #000080;
  background: #d8d8d8;
}

.hero {
  gap: 30px;
  padding: clamp(34px, 6vw, 76px) clamp(20px, 4vw, 54px);
  background: #c0c0c0;
}

.eyebrow {
  color: #000080;
  font: bold 0.72rem/1.4 "Courier New", monospace;
  letter-spacing: 0.04em;
}

.hero h1,
.section-heading h2,
.brain-copy h2 {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.04;
}

.intro {
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
}

.build-link {
  color: #000080;
  font-family: Arial, Helvetica, sans-serif;
}

.build-link span {
  color: #000080;
}

.build-facts {
  border-color: #808080;
}

.build-facts li + li {
  border-color: #808080;
}

.build-facts span,
.part-card figcaption span {
  color: #404040;
}

.build-facts strong,
.part-card figcaption strong {
  color: #111;
}

.hero-photo,
.brain-photo {
  padding: 6px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  transform: none;
}

.hero-photo img,
.brain-photo img {
  border: 1px solid #404040;
}

.photo-stamp {
  top: 14px;
  left: 14px;
  background: #000080;
  color: #fff;
  font: bold 0.65rem/1.3 "Courier New", monospace;
}

.hero-photo figcaption,
.brain-photo figcaption {
  color: #222;
}

.parts-section,
.brain-section {
  border-color: #808080;
}

.parts-section {
  padding: 26px clamp(20px, 4vw, 54px) 58px;
}

.section-heading {
  align-items: center;
}

.section-heading h2,
.brain-copy h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.8rem);
  line-height: 1.08;
}

.section-heading .eyebrow,
.brain-copy .eyebrow {
  color: #000080;
}

.part-card {
  padding: 6px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
}

.part-card:nth-child(2),
.part-card:nth-child(3) {
  transform: none;
}

.part-card img {
  border: 1px solid #404040;
}

.part-card figcaption {
  padding: 10px 5px 4px;
}

.brain-section {
  padding: 36px clamp(20px, 4vw, 54px) 48px;
  background: #c0c0c0;
}

.brain-photo figcaption {
  border-color: #808080;
  font-family: "Courier New", monospace;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
  margin-top: 0;
  padding: 6px 8px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  color: #333;
  font: 0.67rem/1.2 "Courier New", monospace;
}

.boot-screen {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #087e7a;
  color: #111;
  opacity: 1;
  transition: opacity 220ms linear;
}

.js .boot-screen {
  display: flex;
}

.boot-screen[hidden] {
  display: none;
}

.boot-screen.is-dismissed {
  opacity: 0;
  pointer-events: none;
}

.boot-window {
  width: min(420px, 100%);
  padding: 3px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: 2px 2px 0 #000;
}

.boot-titlebar {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 5px 4px 9px;
  background: #000080;
  color: #fff;
  font: bold 0.76rem/1 Arial, Helvetica, sans-serif;
}

.boot-close {
  color: #111;
  font: bold 0.9rem/1 Arial, sans-serif;
}

.boot-content {
  padding: 16px 14px 12px;
  font: 0.7rem/1.55 "Courier New", monospace;
}

.boot-content p {
  margin: 0 0 13px;
}

.boot-track {
  height: 18px;
  padding: 3px;
  background: #fff;
  border: 1px solid;
  border-color: #404040 #fff #fff #404040;
}

.boot-track span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, #000080 0 10px, transparent 10px 13px);
  animation: boot-progress 950ms steps(8, end) forwards;
}

.boot-prompt {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  color: #404040;
  font-size: 0.62rem;
}

.cursor {
  color: #000080;
  animation: cursor-blink 700ms steps(2, start) infinite;
}

@keyframes boot-progress {
  to {
    width: 100%;
  }
}

@keyframes cursor-blink {
  to {
    visibility: hidden;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, 620px);
    padding: 5px;
  }

  .topbar {
    align-items: center;
  }

  .nav a {
    min-height: 44px;
  }

  .hero {
    text-align: left;
  }

  .hero-copy {
    max-width: none;
  }

  .parts-section,
  .brain-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .brain-copy {
    max-width: none;
  }

  .footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav a {
    min-height: 44px;
    padding: 0 9px;
  }

  .hero {
    padding: 42px 18px 50px;
  }

  .parts-section {
    padding-top: 22px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
