/* Week 04, Set 2: Flight deck. Monochrome instruments straight on a black desk ruled with a faint grid.
   White hairlines, small mono type, square handles; no colour at all. What your hand is on turns inverted, white with black type. Shared by altitude, thrust, docking. */
:root {
  --space: #000000;      /* the desk and the windows */
  --frame: #ffffff;      /* window frames, title bars */
  --grid: #161616;       /* the desk grid */
  --line: #2e2e2e;       /* unlit rules inside a window */
  --dim: #6e6e6e;        /* quiet ticks and labels */
  --hud: #d6d6d6;        /* instruments */
  --text: #ffffff;       /* readouts */
  --amber: #ffffff;      /* held: shown by inverting, not by colour */

  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --tag-size: 9px; --tag-line: 12px; --tag-track: .12em;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--space); color: var(--text); font-family: var(--mono); -webkit-font-smoothing: antialiased; }
.stage { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 16px; user-select: none; -webkit-user-select: none; overflow: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center center; }
.sky { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
[role="slider"] { touch-action: none; outline: none; }
[role="slider"]:focus-visible { box-shadow: 0 0 0 1px var(--space), 0 0 0 2px var(--frame); }
.tag { font: 500 var(--tag-size)/var(--tag-line) var(--mono); letter-spacing: var(--tag-track); text-transform: uppercase; color: var(--dim); }

/* a view inside a window: a black pane with a hairline edge */
.window { position: relative; overflow: hidden; background: var(--space); box-shadow: inset 0 0 0 1px var(--line); }
.window svg.view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud span { position: absolute; z-index: 2; font: 500 var(--tag-size)/var(--tag-line) var(--mono); letter-spacing: .08em; color: var(--hud); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* held readouts invert */
.chip { padding: 1px 3px; margin: -1px -3px; transition: background .1s, color .1s; }

/* Spec, below the fold */
.spec { position: relative; max-width: 620px; margin: 0 auto; padding: 32px 20px 64px; border-top: 1px solid var(--line); font: 12px/1.55 var(--mono); background: var(--space); }
.spec h2 { font: 600 16px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; color: var(--text); }
.spec h3 { font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 24px 0 8px; }
.spec p { color: #a0a0a0; margin: 0 0 8px; }
.spec table { width: 100%; border-collapse: collapse; }
.spec td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td:first-child { width: 40%; color: #a0a0a0; padding-right: 12px; }
.spec .swatch { display: inline-block; width: 10px; height: 10px; margin-right: 7px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.back-pill { position: fixed; z-index: 5; left: 12px; bottom: 12px; font: 11px/1 var(--mono); letter-spacing: .08em; color: var(--text); background: var(--space); border: 1px solid var(--frame); padding: 7px 11px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
