/* signaloverdrive.net: one page and a 404.
   The colors are the CORRUPT logo's, which are the game's (its embers
   palette): magenta #ff59d9, orange #ff9f1a, the greys #dbe0e6 and #8a8fa0,
   and cyan #4df2d9 only as the hairline of the logo's channel split, on a
   neutral near-black. Magenta leads (links, GET IN, focus, headings) and
   orange is the heat (the coming-soon badge, hover and active, the section
   markers). Body text is 6:1 or better on the ground. The face is JetBrains Mono (OFL
   1.1, fonts/OFL.txt), the subset the other Flux Harmonic game sites serve,
   so the sites read as siblings. */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/JetBrainsMono-Italic.woff2") format("woff2"); }

:root {
  --dark: #0a0a0c;      /* the ground: neutral near-black */
  --dark-2: #141418;    /* panels */
  --line: #2a2a31;      /* rules and borders */
  --ink: #dbe0e6;       /* body text, 15:1 */
  --ink-dim: #8a8fa0;   /* quieter text, 6:1 */
  --magenta: #ff59d9;
  --orange: #ff9f1a;
  --cyan: #4df2d9;
  --accent: var(--magenta);   /* magenta leads */
  --heat: var(--orange);      /* and orange is the heat */
  --echo: var(--cyan);        /* the logo's channel split, as a hairline */
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--dark); }
body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
a:hover { color: var(--heat); }

main, footer { max-width: 992px; margin: 0 auto; padding: 0 16px; }

/* The logo: the CORRUPT wordmark, drawn at 2x (696x96; logo-1x.png and
   logo-4x.png are the same art at 348x48 and 1392x192). Shown at a whole
   scale of its pixels: 348 px wide (1x) on a phone, 696 px from 728 CSS px.
   /logo-glitch.js steps it through logo-glitch-1..8.png now and then; the
   still logo.png stays with JS off and under prefers-reduced-motion. */
header { text-align: center; padding: 4rem 0 2rem; }
h1.logo { margin: 0; line-height: 0; }
h1.logo img {
  display: block;
  width: 348px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
@media (min-width: 728px) { h1.logo img { width: 696px; } }
.tagline { margin: 1.4rem 0 0; color: var(--ink-dim); font-style: italic; }

/* The pictures: 480x270 frames from the game, drawn crisp at a whole scale
   where the width allows (2x from 992 CSS px, 1x from 512), and the
   column's width on a narrower screen. */
.carousel { margin: 0 auto; width: 100%; }
@media (min-width: 512px) { .carousel { width: 480px; } }
@media (min-width: 992px) { .carousel { width: 960px; } }
.carousel .frames { position: relative; aspect-ratio: 480 / 270; background: #000; }
.shot {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.carousel .frames .shot { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.carousel .frames .shot.shown { opacity: 1; }
.carousel .caption { min-height: 1.7em; margin: 0.6rem 0 0; text-align: center; font-size: 0.85rem; color: var(--ink-dim); }
.carousel .dots { display: none; justify-content: center; gap: 0.2rem; margin-top: 0.3rem; }
.carousel.live .dots { display: flex; }
.carousel .dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel .dots button::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; background: var(--ink-dim); }   /* 6:1 on the ground */
.carousel .dots button[aria-current="true"]::before { background: var(--accent); }
.carousel .dots button:hover::before { background: var(--heat); }
.carousel .dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .carousel .frames .shot { transition: none; } }

.pitch, .music, .made, .early { max-width: 40em; margin-left: auto; margin-right: auto; }
.pitch { margin-top: 2.5rem; }
.pitch p, .music p { margin: 0 0 1em; }

/* GET IN: a link to the game at /drive/ (the .play a rules below; the
   disabled button's rules are for a time the game is not playable). No
   version number goes in the page's copy. */
.play { text-align: center; margin: 2.5rem 0 3rem; }
.play a, .play button {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.7;
  letter-spacing: 0.14em;
  padding: 0.45em 1.4em 0.45em 1.54em;
  border: 0;
  text-decoration: none;
}
.play a { color: var(--dark); background: var(--accent); }
.play a:hover, .play a:focus-visible, .play a:active { color: var(--dark); }
.play a:hover { box-shadow: 0 0 0 3px var(--dark), 0 0 0 5px var(--heat); }
.play a:active { background: var(--heat); }
.play a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* not out yet: the accent's outline, dashed, on a panel, not a filled button */
.play button[disabled] {
  color: var(--accent);
  background: var(--dark-2);
  box-shadow: inset 0 0 0 2px var(--dark-2);
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
  cursor: not-allowed;
}
.play .how { display: block; margin-top: 0.8rem; font-size: 0.9rem; font-style: italic; color: var(--ink-dim); }
.play .badge {
  display: inline-block;
  margin-right: 0.6em;
  padding: 0 0.5em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--heat);
}

h2 {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
/* the section marker: a small block of heat */
h2::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.6em; background: var(--heat); }
.music { margin-bottom: 3rem; }
.early { margin-bottom: 3rem; color: var(--ink-dim); }
.made { margin-bottom: 4rem; color: var(--ink-dim); }
.made p { margin: 0; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-dim);
}
footer .mark { display: inline-block; margin-bottom: 1.5rem; }
footer .mark img { display: block; width: 190px; height: auto; }
footer p { margin: 0 0 0.6em; }

/* 404: the number in the accent, with the logo's cyan split as a hairline */
.lost { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
h1.name {
  position: relative;
  align-self: center;
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-shadow: -0.06em 0 0 var(--echo);
}
.lost p { color: var(--ink-dim); }
