:root {
  --ink: #ffffe0;
  --muted: #d4c382;
  --dim: #a89f68;
  --space: #050505;
  --panel: #1a1811;
  --panel-soft: #332d1c;
  --line: rgba(212, 195, 130, 0.16);
  --signal: #d4c382;
  --signal-soft: rgba(212, 195, 130, 0.12);
  --rose: #a89f68;
  --measure: 72rem;
  color-scheme: dark;
}

html {
  background: #000;
  padding: 0;
  margin: 0;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 2rem auto;
  max-width: 960px;
  border: 2px dashed var(--signal);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(168, 159, 104, 0.08), transparent 28rem),
    var(--space);
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

html::after {
  content: " ";
  display: block;
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.6;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: 'VT323', monospace;
  font-weight: normal;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  
  margin-bottom: 1.5rem;
  font-size: clamp(3.4rem, 8.5vw, 8.5rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: .8rem;
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  letter-spacing: -0.025em;
}

p { color: var(--muted); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--signal);  font-weight: bold;
  
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }


.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  padding: 0 1.5rem;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--signal);
  background: var(--panel);
}


.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  text-decoration: none;
  letter-spacing: .11em;
}

.wordmark-main {
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
}

.wordmark-mark {
  color: var(--signal);
  font: 700 .68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2.2vw, 2rem);
}

.site-header nav a {
  color: rgba(255,255,255,.72);
  font-size: .73rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a:focus-visible { color: #fff; }

.site-header .nav-cta {
  padding: .65rem .9rem;
  border: 1px dashed rgba(255,255,255,.35);
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: 24rem;
  place-items: end start;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url("header.png") center / cover no-repeat;
  image-rendering: pixelated;
  transform: scale(1.012);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4,5,7,.96) 0%, rgba(4,5,7,.76) 40%, rgba(4,5,7,.2) 72%, rgba(4,5,7,.12)),
    linear-gradient(0deg, rgba(4,5,7,.86) 0%, transparent 38%, rgba(4,5,7,.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 3rem), 100%);
  margin: 0 auto;
  padding: 4rem 0 4rem;
}

.eyebrow,
.step-kicker,
.card-index {
  color: var(--signal);
  font: 700 .72rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 42rem;
  margin-bottom: 2.1rem;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.button { text-transform: uppercase; border: 1px dashed var(--signal);
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.25rem;
  border: 1px dashed var(--line);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}



.button-primary:hover,
.button-primary:focus-visible { background: #f1f5ad; }

.button-quiet { background: rgba(0,0,0,.35); }
.button-quiet:hover,
.button-quiet:focus-visible { border-color: rgba(255,255,255,.55); }

.hero-caption {
  position: absolute;
  z-index: 2;
  right: max(1.5rem, calc((100% - 100%) / 2));
  bottom: 1.25rem;
  margin: 0;
  color: rgba(255,255,255,.48);
  font: .65rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signal-strip {
  display: grid;
  max-width: 100%;
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
  border-right: 1px dashed var(--line);
  border-left: 1px dashed var(--line);
}

.signal-strip p {
  min-height: 8rem;
  margin: 0;
  padding: 1.75rem;
  border-right: 1px dashed var(--line);
}

.signal-strip p:last-child { border-right: 0; }

.signal-strip strong,
.signal-strip span { display: block; }

.signal-strip strong {
  margin-bottom: .35rem;
  color: var(--ink);
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  font-weight: normal;
}

.signal-strip span {
  color: var(--dim);
  font-size: .78rem;
}

.section {
  width: min(calc(100% - 3rem), var(--measure));
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 11rem) 0;
}

.section-heading { margin-bottom: clamp(3rem, 6vw, 5rem); }



.intro-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .65fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.intro-copy { max-width: 43rem; }

.large-copy {
  color: var(--ink);
  font-family: 'VT323', monospace;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.32;
}

.manifesto {
  padding: 2.2rem;
  border-top: 1px dashed var(--rose);
  background: linear-gradient(135deg, rgba(223,158,167,.11), transparent);
}

.manifesto p {
  color: var(--ink);
  font-family: 'VT323', monospace;
  font-size: 1.55rem;
  line-height: 1.3;
}

.manifesto .manifesto-answer {
  margin-bottom: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: .95rem;
}

.gallery {
  display: grid;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  grid-template-columns: 1.55fr .75fr .75fr;
  gap: .65rem;
}

.gallery figure {
  position: relative;
  min-height: 26rem;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(.8) contrast(1.06);
  transition: transform .7s ease, filter .7s ease;
}

.gallery figure:hover img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.03);
}

.gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.84));
  color: rgba(255,255,255,.8);
  font-size: .75rem;
}

.split-heading {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr minmax(18rem, .6fr);
  gap: 3rem;
}

.split-heading h2 { margin-bottom: 0; }
.split-heading > p { margin-bottom: .25rem; }

.first-flight { width: min(calc(100% - 3rem), 80rem); }

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--line);
}

.guide-steps > li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-bottom: 1px dashed var(--line);
}

.step-number {
  color: rgba(236,233,223,.18);
  font: 300 clamp(2.4rem, 5vw, 4.5rem)/1 'VT323', monospace;
}

.step-body { max-width: 100%; }
.step-body p:last-child { margin-bottom: 0; }

kbd,
code {
  border: 1px dashed rgba(216,223,138,.27);
  background: var(--signal-soft);
  color: var(--signal);
  font: .83em/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
}

kbd {
  display: inline-block;
  min-width: 1.8em;
  margin: 0 .08em;
  padding: .18em .38em;
  text-align: center;
  box-shadow: 0 2px 0 rgba(216,223,138,.15);
}

code { padding: .12em .3em; }

.guide-note {
  max-width: 52rem;
  margin: 4rem 0 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px dashed rgba(216,223,138,.22);
  background: linear-gradient(130deg, var(--signal-soft), transparent 62%);
}

.guide-note h3 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.guide-note p:last-child { margin-bottom: 0; }

.controls {
  width: min(calc(100% - 3rem), 100%);
  border-top: 1px dashed var(--line);
}

.control-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px dashed var(--line);
}

.control-card {
  padding: clamp(1.5rem, 4vw, 3.25rem);
  background: var(--panel);
}

.control-card dl { margin: 2rem 0 0; }

.control-card dl div {
  display: grid;
  grid-template-columns: minmax(7.5rem, .7fr) 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-top: 1px dashed var(--line);
}

.control-card dt,
.control-card dd { margin: 0; }
.control-card dd { color: var(--muted); font-size: .100%; }

.manual-link {
  display: flex;
  margin: 2.5rem 0 0;
  justify-content: space-between;
  gap: 2rem;
  color: var(--dim);
  font-size: .85rem;
}

.manual-link a,
.text-link {
  color: var(--signal);
  text-underline-offset: .25em;
}

.project {
  display: grid;
  width: min(calc(100% - 3rem), 100%);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .82fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.project-image {
  position: relative;
  min-height: 33rem;
  background: #050608;
  overflow: hidden;
}

.project-image::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 6rem 1rem #050608;
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 33rem;
  object-fit: cover;
  image-rendering: pixelated;
}

.project-copy h2 {  }
.project-actions { margin-top: 2rem; }
.text-link { padding: .6rem .2rem; font-size: .8rem; }

.closing {
  min-height: 65vh;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px dashed var(--line);
  background:
    linear-gradient(rgba(5,5,5,.7), rgba(5,5,5,.96)),
    url("screenshot.png") center / cover no-repeat;
  text-align: center;
}

.closing h2 { font-size: clamp(4rem, 11vw, 10rem); }

.site-footer {
  display: flex;
  max-width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  justify-content: space-between;
  gap: 3rem;
  border-top: 1px dashed var(--line);
}

.site-footer p {
  max-width: 48rem;
  margin: 0;
  color: var(--dim);
  font-size: .72rem;
}

.site-footer a { color: var(--muted); }

/* The diary can stay intentionally simple and readable when hosted alone. */
.dev-diary-page .site-header {
  position: relative;
  left: auto;
  transform: none;
  margin: 0 auto;
}

.dev-diary {
  width: min(calc(100% - 3rem), 48rem);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.dev-diary > header {
  margin-bottom: 5rem;
  padding-bottom: 3rem;
  border-bottom: 1px dashed var(--line);
}

.dev-diary h1 {  font-size: clamp(3rem, 8vw, 6.5rem); }
.dev-diary h2 { margin-top: 4.5rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.dev-diary .date { color: var(--signal); font-family: ui-monospace, monospace; }
.dev-diary li { margin-bottom: .5rem; color: var(--muted); }
.dev-diary hr { margin: 5rem 0; border: 0; border-top: 1px dashed var(--line); }
.dev-diary-update h2 { margin-top: 0; }

@media (max-width: 800px) {
  .site-header { align-items: flex-start; padding: 1rem 0; }
  .site-header nav { justify-content: flex-end; flex-wrap: wrap; gap: .65rem 1rem; }
  .site-header nav a:nth-child(-n+3) { display: none; }
  .hero { min-height: 24rem; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,5,7,.96), rgba(4,5,7,.55) 75%, rgba(4,5,7,.55)); }
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .signal-strip p:nth-child(2) { border-right: 0; }
  .signal-strip p:nth-child(-n+2) { border-bottom: 1px dashed var(--line); }
  .intro-grid,
  .split-heading,
  .project { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-wide { grid-column: 1 / -1; }
  .gallery figure { min-height: 19rem; }
  .control-groups { grid-template-columns: 1fr; }
  .manual-link,
  .site-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header,
  .hero-content { width: min(calc(100% - 2rem), 100%); }
  .wordmark-main { font-size: 1rem; }
  .site-header nav a { font-size: .64rem; }
  .hero-content { padding-bottom: 5.5rem; }
  .hero-caption { display: none; }
  .signal-strip { grid-template-columns: 1fr; }
  .signal-strip p { min-height: 0; border-right: 0; border-bottom: 1px dashed var(--line); }
  .section { width: min(calc(100% - 2rem), var(--measure)); }
  .gallery { grid-template-columns: 1fr; padding: 0 1rem; }
  .gallery-wide { grid-column: auto; }
  .guide-steps > li { grid-template-columns: 3.5rem 1fr; }
  .control-card dl div { grid-template-columns: 1fr; gap: .35rem; }
  .project { width: min(calc(100% - 2rem), 100%); }
  .project-image,
  .project-image img { min-height: 22rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'VT323', monospace;
}

.button-primary {
  background: transparent;
  color: var(--signal);
  border: 1px dashed var(--signal);
  transition: all 0.2s ease;
}

.button-primary:hover {
  background: var(--signal);
  color: var(--space);
  text-shadow: none;
  box-shadow: 0 0 10px var(--signal-soft);
}

h1, h2, h3, h4, .wordmark-main {
  text-shadow: 2px 0 0 rgba(255, 0, 0, 0.4), -2px 0 0 rgba(0, 0, 255, 0.4);
}

@keyframes flicker {
  0% { opacity: 1; }
  3% { opacity: 0.4; }
  6% { opacity: 1; }
  7% { opacity: 0.4; }
  8% { opacity: 1; }
  9% { opacity: 1; }
  10% { opacity: 0.3; }
  11% { opacity: 1; }
  100% { opacity: 1; }
}

.hero-title, h1 {
  animation: flicker 4s infinite;
}

.signal-strip p span {
  color: var(--signal);
  text-shadow: 0 0 5px var(--signal-soft);
}

.window-title-bar {
  display: flex;
  justify-content: space-between;
  background: var(--signal);
  color: var(--space);
  padding: 0.2rem 0.5rem;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  border-bottom: 2px dashed var(--space);
  text-transform: uppercase;
}
.window-title-bar span {
  font-weight: bold;
}
