/*
 * STROM beta docs — single-page reference for testers.
 * Aesthetic: dark, slightly red-shifted background to nod at the
 * slice-pill colour; type stays clean and readable rather than
 * mimicking the wordmark's display lettering everywhere.
 */

:root {
  --bg: #0a0010;
  --bg-soft: #15071c;
  --bg-card: #1a0a25;
  --ink: #e9d8e8;
  --ink-dim: #9a8fa3;
  --rule: #2c1535;
  --accent: #f7c84d;     /* yellow — count-pill highlight */
  --accent-blue: #6a8eff; /* waveform / FN-pulse blue */
  --accent-red: #d24a4a;  /* slice-pill / DEL bubble */
  --max: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "ss01", "kern";
}

body {
  background:
    radial-gradient(ellipse at top, #2a0a36 0%, var(--bg) 55%) no-repeat,
    var(--bg);
  min-height: 100vh;
}

/* --- header --------------------------------------------------------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  text-align: center;
}

.wordmark {
  font: 700 56px/1 -apple-system-ui-serif, "SF Pro Display",
        Georgia, serif;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffd1de 0%, #f08eff 60%, #d24a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(240, 142, 255, 0.25);
  margin-bottom: 6px;
}

.tagline {
  margin: 0 0 28px;
  color: var(--ink-dim);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.install {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent-red);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(210, 74, 74, 0.35);
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.install:hover { transform: translateY(-1px); }
.install:active { transform: translateY(0); }

.install-hint {
  margin: 14px auto 0;
  max-width: 32em;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.5;
}

/* --- main ----------------------------------------------------------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}

section {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}

section:first-child { border-top: 0; padding-top: 8px; }

h2 {
  font: 600 22px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display",
        system-ui, sans-serif;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 14px;
}

p {
  margin: 0 0 14px;
  color: var(--ink);
}

p.note {
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
  padding: 12px 14px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-dim);
  border-radius: 0 8px 8px 0;
}

em { color: #fff; font-style: normal; border-bottom: 1px dotted var(--ink-dim); }
strong { color: #fff; font-weight: 600; }

/* --- figures -------------------------------------------------------- */

figure {
  margin: 16px 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  font-size: 13px;
  color: var(--ink-dim);
  padding: 10px 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--rule);
}

/* --- reference dl --------------------------------------------------- */

.ref dl {
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) 1fr;
  gap: 12px 18px;
  align-items: baseline;
}

.ref dt {
  font-weight: 600;
  color: #fff;
  font-feature-settings: "ss01", "tnum";
}

.ref dd {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 540px) {
  .ref dl { grid-template-columns: 1fr; gap: 6px 0; }
  .ref dt { padding-top: 12px; border-top: 1px solid var(--rule); }
  .ref dt:first-of-type { border-top: 0; padding-top: 0; }
  .ref dd { padding-bottom: 4px; }
}

.kbd {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 1px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  color: var(--accent);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.92em;
  vertical-align: 0.05em;
}

/* --- footer --------------------------------------------------------- */

footer {
  max-width: var(--max);
  margin: 32px auto 64px;
  padding: 20px 24px;
  border-top: 1px solid var(--rule);
  color: var(--ink-dim);
  font-size: 13px;
  text-align: center;
}

footer p { margin: 4px 0; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .hero { padding: 36px 20px 28px; }
  .wordmark { font-size: 44px; }
  main { padding: 16px; }
  section { padding: 24px 0; }
  h2 { font-size: 19px; }
}
