/* multiplayer.tech: Blackbird's avionics identity.
   Colors come from the pixel-art SR-71: cockpit-panel slate, titanium airframe,
   placard white, afterburner orange. Orange marks only lit "works today" lamps
   and the primary action. */

@font-face { font-family: "B612"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/b612-400.woff2") format("woff2"); }
@font-face { font-family: "B612"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("/fonts/b612-400-italic.woff2") format("woff2"); }
@font-face { font-family: "B612"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/b612-700.woff2") format("woff2"); }
@font-face { font-family: "B612 Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/b612-mono-400.woff2") format("woff2"); }
@font-face { font-family: "B612 Mono"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/b612-mono-700.woff2") format("woff2"); }

:root {
  --panel: #23272d;        /* cockpit panel */
  --panel-deep: #1b1e23;   /* recessed bezel */
  --rule: #3a414b;         /* panel seams */
  --placard: #e4e7ec;      /* engraved legend white */
  --muted: #9ba5b3;        /* secondary text */
  --titanium: #8f9cb0;     /* airframe */
  --titanium-lit: #b9c7dc; /* lamp, being built */
  --burner: #f28c3a;       /* afterburner: lamp, works today; primary action */
  --burner-hot: #ffc37a;
  --focus: #ffd08f;

  --measure: 38rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--panel);
  color: var(--placard);
  font-family: "B612", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--placard); text-decoration-color: var(--titanium); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--burner); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
code, pre, kbd { font-family: "B612 Mono", ui-monospace, monospace; font-size: 0.92em; }

.wrap { width: min(100% - 2rem, 64rem); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* Masthead: the jet is the brand mark; navigation is plain placard text. */
.masthead { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.masthead .home { display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.masthead .home img { width: 2.75rem; image-rendering: pixelated; }
.masthead nav { display: flex; gap: 1.25rem; font-size: var(--step--1); }
.masthead nav a { text-decoration: none; color: var(--muted); }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--placard); }

/* Hero */
.hero { padding-block: 3.5rem 0.5rem; }
/* The art sits in a cockpit display: its own #1e1e1e screen inside a bezel. */
.hero .art { width: min(100%, 35rem); image-rendering: pixelated; display: block; margin-bottom: 2.25rem;
  background: #1e1e1e; padding: 0.75rem; border: 1px solid #0f1114; border-radius: 8px;
  box-shadow: 0 0 0 6px var(--panel-deep), 0 0 0 7px var(--rule); }
h1 { font-size: var(--step-3); line-height: 1.15; margin: 0 0 1rem; font-weight: 700;
  max-width: 18ch; letter-spacing: -0.01em; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--placard); margin: 0; max-width: 34rem; }

h2 { font-size: var(--step-2); line-height: 1.25; margin: 3rem 0 0.75rem; }
h3 { font-size: var(--step-1); line-height: 1.3; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1rem; }
.prose p, .prose li { color: var(--placard); }
.note { color: var(--muted); font-size: var(--step--1); }

section { padding-block: 1rem; }

/* Annunciator panel: each capability is a lamp. */
.panel { margin-top: 1.5rem; padding: 1rem; background: var(--panel-deep);
  border: 1px solid var(--rule); border-radius: 6px; }
.panel-group + .panel-group { margin-top: 1.5rem; }
.panel-group h3 { margin: 0 0 0.75rem; font-size: var(--step-0); color: var(--muted); font-weight: 400; }
.lamps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.lamp { display: grid; grid-template-rows: auto 1fr; gap: 0.5rem; }
.lamp .face { display: flex; align-items: center; min-height: 3.25rem; padding: 0.5rem 0.75rem;
  border-radius: 3px; border: 1px solid #0f1114; font-weight: 700; font-size: var(--step--1);
  line-height: 1.3; background: #15171b; color: #59616d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -2px 0 rgba(0,0,0,0.35); }
.lamp .detail { margin: 0; font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.lamp.ships .face { background: radial-gradient(ellipse at 50% 40%, var(--burner-hot), var(--burner) 70%);
  color: #2a1606; border-color: #8a4a17;
  box-shadow: 0 0 14px rgba(242,140,58,0.45), inset 0 1px 0 rgba(255,255,255,0.35); }
.lamp.building .face { background: radial-gradient(ellipse at 50% 40%, #dbe6f5, var(--titanium-lit) 70%);
  color: #18202c; border-color: #5d6a7d;
  box-shadow: 0 0 12px rgba(185,199,220,0.3), inset 0 1px 0 rgba(255,255,255,0.4); }

/* Lamp test: on load every lamp lights, then each settles to its real state. */
@media (prefers-reduced-motion: no-preference) {
  .panel .lamp .face { animation: lamp-test 1.6s steps(1, end) 0.4s backwards; }
}
@keyframes lamp-test {
  0% { background: #fff4e3; color: #2a1606; box-shadow: 0 0 16px rgba(255,220,170,0.6); }
  100% { }
}

.legend { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin: 0 0 1.25rem; padding: 0;
  list-style: none; font-size: var(--step--1); color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 0.5rem; }
.legend .swatch { width: 1.5rem; height: 0.9rem; border-radius: 2px; border: 1px solid #0f1114; background: #15171b; }
.legend .swatch.ships { background: var(--burner); }
.legend .swatch.building { background: var(--titanium-lit); }

/* Waitlist form */
.invite { margin-top: 1rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--panel-deep); max-width: var(--measure); }
.invite label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.invite .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.invite input[type="email"], .invite textarea { width: 100%; font: inherit; color: var(--placard);
  background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 0.6rem 0.75rem;
  margin-bottom: 1.1rem; }
.invite textarea { min-height: 6rem; resize: vertical; }
.invite .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button.primary { font: inherit; font-weight: 700; cursor: pointer; color: #2a1606;
  background: var(--burner); border: 1px solid #8a4a17; border-radius: 3px; padding: 0.65rem 1.25rem; }
button.primary:hover { background: var(--burner-hot); }
.result { display: none; margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 3px; }
.result:target { display: block; }
#noted { border: 1px solid #8a4a17; color: var(--burner-hot); }
#check { border: 1px solid var(--titanium); color: var(--titanium-lit); }

/* Documentation */
.docs { display: grid; grid-template-columns: 13rem 1fr; gap: 3rem; padding-block: 2.5rem 4rem; }
.docs nav ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 1.5rem; }
.docs nav li { margin-bottom: 0.4rem; }
.docs nav a { text-decoration: none; color: var(--muted); font-size: var(--step--1); }
.docs nav a[aria-current="page"], .docs nav a:hover { color: var(--placard); }
.docs article { max-width: var(--measure); min-width: 0; }
.docs article h1 { font-size: var(--step-2); max-width: none; }
pre { background: var(--panel-deep); border: 1px solid var(--rule); border-radius: 4px;
  padding: 0.9rem 1rem; overflow-x: auto; line-height: 1.5; }
:not(pre) > code { background: var(--panel-deep); padding: 0.1em 0.35em; border-radius: 3px; }
.status { border-left: 3px solid var(--titanium); padding: 0.25rem 0 0.25rem 1rem; color: var(--muted); }
.status.ships { border-color: var(--burner); }

footer { border-top: 1px solid var(--rule); padding-block: 1.5rem 3rem; margin-top: 3rem;
  color: var(--muted); font-size: var(--step--1); }
footer a { color: var(--muted); }

@media (max-width: 44rem) {
  :root { --step-3: 2rem; --step-2: 1.5rem; }
  .docs { grid-template-columns: 1fr; gap: 1.5rem; }
  .docs nav ul { position: static; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
  .masthead .home span { display: none; }
}

/* Hero truth line and the design-principle panel. */
.truth { margin: 1.25rem 0 0; max-width: 34rem; color: var(--muted); font-size: var(--step--1); }
.principle { margin: 2rem 0 0.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--rule);
  border-left: 3px solid var(--titanium); border-radius: 4px; background: var(--panel-deep); }
.principle h3 { margin-top: 0; }
.principle p:last-child { margin-bottom: 0; }
.form-note { margin: 1rem 0 0; }
