:root {
  --bg: #000;
  --surf: #120808;
  --line: #3a1210;
  --text: #f2f2f2;
  --mid: #bdbdc4;
  --red: #ff2018;
  --red-dim: #b3150f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 19px/1.6 "IBM Plex Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--red); }
a:hover { color: #fff; }
header.top {
  border-bottom: 2px solid var(--red);
  padding: 14px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
header.top .logo {
  font: 800 26px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
}
header.top .logo b { color: var(--red); }
header.top nav { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
header.top nav a { text-decoration: none; font-weight: 600; }
main { max-width: 980px; margin: 0 auto; padding: 8px 16px 64px; }
h1 { font: 800 clamp(34px, 7vw, 64px)/1.05 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.06em; margin: 32px 0 8px; }
h1 .red, h2 .red { color: var(--red); }
h2 { font-size: 30px; margin: 48px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
h3 { font-size: 23px; margin: 28px 0 8px; color: var(--red); }
p, li { max-width: 72ch; }
.lead { font-size: 22px; color: var(--mid); }
code, kbd {
  font: 600 0.9em "IBM Plex Mono", ui-monospace, monospace;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: #fff;
}
kbd { border-color: var(--red-dim); }
table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 18px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--red); font-weight: 700; }
.tw { overflow-x: auto; }
figure { margin: 18px 0; }
audio { display: block; width: 100%; max-width: 440px; height: 36px; margin: 10px 0 2px; color-scheme: dark; }
.demo { display: block; font-size: 17px; color: var(--mid); margin-bottom: 6px; }
figure img {
  width: 100%;
  max-width: 480px;
  image-rendering: pixelated;
  border: 2px solid var(--line);
  border-radius: 6px;
  display: block;
}
figcaption { color: var(--mid); font-size: 17px; margin-top: 6px; max-width: 480px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.shots figure { margin: 0; }
.note { border-left: 4px solid var(--red); background: var(--surf); padding: 10px 14px; margin: 16px 0; }
.btn {
  display: inline-block;
  background: var(--red);
  color: #000;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  margin: 6px 10px 6px 0;
}
.btn:hover { background: #fff; color: #000; }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--red); }
.toc { columns: 2 260px; padding-left: 20px; }
footer { border-top: 1px solid var(--line); color: var(--mid); font-size: 16px; padding: 20px 16px; text-align: center; }
@media (max-width: 600px) {
  body { font-size: 18px; }
  th, td { padding: 6px; font-size: 16px; }
}

.hero { position: relative; margin: 0 -16px; background: #000; }
.hero img { display: block; width: 100%; height: auto; }
.hero h1 { position: absolute; left: 16px; bottom: 6%; margin: 0; text-shadow: 0 2px 12px #000; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 24px 0; }
.split img { width: 100%; height: auto; border-radius: 6px; }
.band { display: block; width: calc(100% + 32px); margin: 32px -16px 0; height: auto; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }

/* the demo player (krst.js) */
.kp {
  display: flex;
  gap: 12px;
  align-items: stretch;
  max-width: 640px;
  margin: 12px 0 4px;
  padding: 10px;
  background: linear-gradient(180deg, #0d0505, #050202);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.kp.on { border-color: var(--red-dim); box-shadow: 0 0 24px rgba(255, 32, 24, 0.18); }
.kp-play {
  flex: 0 0 56px;
  border: 2px solid var(--red);
  border-radius: 6px;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.kp-play svg { width: 26px; height: 26px; fill: currentColor; }
.kp-play .i-pause, .kp.on .kp-play .i-play { display: none; }
.kp.on .kp-play .i-pause { display: inline; }
.kp-play:hover, .kp.on .kp-play { background: var(--red); color: #000; }
.kp-play:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kp-body { flex: 1; min-width: 0; }
.kp-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font: 700 14px/1.2 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.kp-name { color: var(--text); }
.kp-part { color: var(--mid); }
.kp-part.fx { color: var(--red); }
.kp-bar { margin-left: auto; color: var(--mid); font-variant-numeric: tabular-nums; }
.kp canvas { display: block; width: 100%; height: 118px; cursor: pointer; touch-action: none; }
.kp + .demo { margin-top: 2px; }

/* the feature list on the landing pages */
ul.feats { list-style: none; padding: 0; }
ul.feats > li {
  max-width: none;
  margin: 0 0 14px;
  padding: 14px 18px;
  background: var(--surf);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 6px;
}
ul.feats > li > b:first-child { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.04em; }
ul.feats ul { padding-left: 20px; }

/* the screens, as screens */
.shots figure img {
  border: 2px solid #1d0907;
  border-radius: 10px;
  box-shadow: 0 0 0 6px #070303, 0 0 0 7px var(--line), 0 10px 30px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.25s, transform 0.25s;
}
.shots figure:hover img {
  box-shadow: 0 0 0 6px #070303, 0 0 0 7px var(--red-dim), 0 0 34px rgba(255, 32, 24, 0.3);
  transform: translateY(-2px);
}
.shots figcaption {
  font: 600 15px/1.4 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 14px;
}
h2::before { content: "// "; color: var(--red); font-family: "IBM Plex Mono", ui-monospace, monospace; }
header.top { position: sticky; top: 0; z-index: 5; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(6px); }
@media (max-width: 600px) {
  .kp { padding: 8px; gap: 8px; }
  .kp-play { flex-basis: 44px; }
  .kp canvas { height: 104px; }
  ul.feats > li { padding: 12px 12px; }
  header.top { position: static; }
}

/* KRIECHSTROM for VIBE FM: a full-width hero with the page's opening in it, a wider page, the screens as a wall */
main { max-width: 1180px; }
.hero { position: relative; margin: 0; overflow: hidden; background: #000; }
.hero .bolt { display: block; width: 100%; height: clamp(520px, 52vw, 760px); object-fit: cover; object-position: 62% 50%; }
/* the discharge strikes again now and then (twice, short), and when the pointer comes over it */
.hero .flash { position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; animation: strike 9s 2s infinite; }
.hero:hover .flash { animation: strike-now 0.7s 1; }
@keyframes strike { 0%, 90% { opacity: 0; } 91% { opacity: 0.95; } 92.5% { opacity: 0.15; } 94% { opacity: 0.8; } 100% { opacity: 0; } }
@keyframes strike-now { 0% { opacity: 0; } 12% { opacity: 0.95; } 25% { opacity: 0.15; } 40% { opacity: 0.8; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero .flash { animation: none; } }
.hero-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 max(16px, calc((100% - 1180px) / 2 + 16px)) 28px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 30%, rgba(0, 0, 0, 0)); }
.hero h1 { position: static; margin: 0; font-size: clamp(44px, 9vw, 104px); text-shadow: 0 2px 18px #000; }
.hero .sub { margin: 4px 0 14px; font: 700 clamp(15px, 2.2vw, 22px)/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.32em; color: var(--mid); }
.hero .lead { max-width: 62ch; margin: 0 0 10px; color: #d8d8de; text-shadow: 0 1px 8px #000; }
.hero .btns { margin: 0; }
.screen { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 10px;
  box-shadow: 0 0 0 6px #070303, 0 0 0 7px var(--line), 0 0 40px rgba(255, 32, 24, 0.22); }
.split.wear { grid-template-columns: 1.15fr 1fr; gap: 36px; margin: 36px 0; }
.split.wear h2 { margin-top: 0; border: 0; padding: 0; }
.shots { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 18px; margin: 28px 0; }
.shots figure img { max-width: none; }
.wide { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); margin: 18px 0 8px; }
.cap { color: var(--mid); font-size: 18px; margin: 0 0 18px; }
.also { border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--surf); border-radius: 6px;
  padding: 14px 18px; margin: 24px 0; }
ul.feats.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
ul.feats.grid > li { margin: 0; }
.cheat { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 16px; }
.cheat section { background: var(--surf); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 6px;
  padding: 4px 14px 2px; }
.cheat h3 { margin: 10px 0 2px; font: 800 18px/1.2 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.08em; }
.cheat table { font-size: 17px; margin: 6px 0 10px; }
.cheat td { padding: 5px 6px; }
.cheat td:first-child { font: 600 15px/1.5 "IBM Plex Mono", ui-monospace, monospace; color: #fff; white-space: nowrap;
  width: 1%; padding-right: 12px; }
.band { width: 100%; margin: 24px 0 0; }
@media (max-width: 760px) {
  .split.wear { grid-template-columns: 1fr; }
  .hero .bolt { height: 620px; object-position: 70% 30%; }
  .cheat { grid-template-columns: 1fr; }
  ul.feats.grid { grid-template-columns: 1fr; }
  .cheat td:first-child { white-space: normal; }
}

/* one time, as they come into view (vibe.js): nothing moves on its own after that */
.reveal { opacity: 0.35; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
ul.feats > li { transition: border-color 0.2s, background 0.2s; }
ul.feats > li:hover { border-left-color: #fff; background: #1a0a09; }
h2[id], [id] { scroll-margin-top: 70px; }
.split.fig { grid-template-columns: 1fr 1.2fr; margin: 40px 0; }
.split.fig img { border-radius: 8px; }
.screen.shot-m { max-width: 560px; margin: 16px 0 10px; }
