/* SPECTRA page. Takes the SPECTRA app brand (night vision for your ears): midnight blue,
   one dull phosphor-green accent, the image-intensifier honeycomb instead of gradients.
   It re-points the shared site.css variables, so the shared header follows along.
   Previous version: spectra.css.pre-brand-20261117. */

@font-face { font-family: "SPECTRA Display"; src: url("fonts/BarlowSemiCondensed-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "SPECTRA Display"; src: url("fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

body.spectra-brand {
  --bg: #0b1120;
  --panel: #10192b;
  --panel-raised: #15203a;
  --line: #1c2840;
  --line-hot: #2b3b59;
  --text: #dde4ec;
  --ash: #8995aa;
  --ember: #86a98a;
  --flame: #a6c6a4;
  --phosphor: #c4ecb4;
  --sans: "SPECTRA Display", "Bahnschrift", "DIN Alternate", system-ui, sans-serif;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20.78' height='36' viewBox='0 0 20.78 36'%3E%3Cpath d='M0 12 L10.39 6 L20.78 12 M10.39 6 V0 M0 12 V24 M20.78 12 V24 M0 24 L10.39 30 L20.78 24 M10.39 30 V36' fill='none' stroke='%2386a98a' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");
  background: var(--hex) 0 0 / 20.78px 36px, var(--bg);
}
html:has(body.spectra-brand) { background: #0b1120; }
.spectra-brand .button.primary { color: #08130d; font-weight: 600; }
.spectra-brand .button.primary:hover { color: #08130d; }
.spectra-brand .skip-link { color: #08130d; }
.spectra-brand h1, .spectra-brand h2 { text-transform: none; letter-spacing: 0.01em; }
.sp { font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
.sp .button { text-transform: none; letter-spacing: 0.01em; font-size: 0.95rem; }
.sp code, .sp pre { font-family: var(--mono); }

/* ---------- hero ---------- */
.sp-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start; max-width: 46rem; margin-bottom: 3rem; }
.sp-mark .mark-ring { fill: var(--panel); stroke: rgb(134 169 138 / 0.42); stroke-width: 1.25; }
.sp-mark .mark-wave { fill: none; stroke: var(--flame); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-hero h1 { font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--sans); letter-spacing: 0.2em; }
.sp-tagline { margin: 0.5rem 0 0; color: var(--flame); font: 500 clamp(1.25rem, 2.4vw, 1.6rem)/1.2 var(--sans); }
.sp-lede { max-width: 52ch; margin: 1rem 0 0; color: var(--ash); line-height: 1.55; }
.sp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 1.4rem 0 0; color: var(--ash); font-size: 0.9rem; }

/* ---------- demos ---------- */
.sp-demos { margin-bottom: 3rem; }
.sp-demos h2 { font: 600 1.5rem/1.2 var(--sans); }
.sp-note { max-width: 62ch; margin: 0 0 1.2rem; color: var(--ash); font-size: 0.92rem; line-height: 1.5; }
.sp-fine { margin: 1rem 0 0 !important; font-size: 0.85rem !important; }

/* One player: the clip list on the left, the selected clip on the right. */
.demo { display: grid; grid-template-columns: 12rem minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; background: rgb(16 25 43 / 0.88); overflow: hidden; }
.demo-tracks { display: flex; flex-direction: column; padding: 0.6rem 0; border-right: 1px solid var(--line); background: rgb(8 13 25 / 0.6); }
.track { position: relative; padding: 0.6rem 1.1rem; border: 0; background: none; color: var(--ash); font: 500 1rem/1.3 var(--sans); text-align: left; cursor: pointer; }
.track:hover { color: var(--text); }
.track[aria-pressed="true"] { color: var(--text); background: rgb(134 169 138 / 0.08); }
.track[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 0.45rem; bottom: 0.45rem; width: 3px; background: var(--ember); }
.demo-stage { padding: 1.2rem 1.4rem 1.3rem; min-width: 0; }
.demo-stage h3 { margin: 0; font: 600 1.3rem/1.25 var(--sans); }
.demo-where { margin: 0.1rem 0 0; color: var(--ash); font-size: 0.85rem; }
.demo-caption { min-height: 3em; max-width: 56ch; margin: 0.6rem 0 0.9rem; color: var(--text); line-height: 1.5; }
.demo-wave { display: block; width: 100%; height: 72px; }
.demo-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }

.demo-play { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line-hot); border-radius: 50%; background: var(--panel-raised); color: var(--text); cursor: pointer; }
.demo-play:hover { border-color: var(--ember); }
.demo-play svg { fill: currentColor; }
.demo-play .i-stop, .demo.playing .demo-play .i-play { display: none; }
.demo.playing .demo-play .i-stop { display: inline; }

/* The switch is a night-vision tube: dark glass that blooms green when the processor is on. */
.demo-tube { display: flex; align-items: center; gap: 0.7rem; padding: 0; border: 0; background: none; color: var(--ash); font: 500 1rem var(--sans); cursor: pointer; }
.demo-tube .tube { position: relative; display: grid; place-items: center; width: 3.8rem; height: 3.8rem; border-radius: 50%;
  border: 2px solid var(--line-hot); background: var(--hex) 0 0 / 10.39px 18px, #060a14;
  box-shadow: inset 0 0 0 5px #060a14, inset 0 0 0 6px var(--line); transition: border-color .25s, background .25s; }
.demo-tube .tube i { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--line-hot); transition: background .25s, box-shadow .25s; }
.demo-tube:hover .tube { border-color: rgb(134 169 138 / 0.6); }
.demo-tube[aria-pressed="true"] { color: var(--flame); }
.demo-tube[aria-pressed="true"] .tube { border-color: var(--ember);
  background: radial-gradient(circle, rgb(196 236 180 / .5), rgb(134 169 138 / .2) 45%, transparent 72%), var(--hex) 0 0 / 10.39px 18px, #071109; }
.demo-tube[aria-pressed="true"] .tube i { background: var(--phosphor); box-shadow: 0 0 14px 4px rgb(196 236 180 / .55); }

.sp-body h2 { margin-top: 1.6rem; font: 600 1.2rem/1.2 var(--sans); }
.sp-body h2:first-child { margin-top: 0; }

@media (max-width: 40rem) {
  .sp-hero { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo-tracks { flex-direction: row; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .track { flex: none; padding: 0.7rem 0.9rem; }
  .track[aria-pressed="true"]::before { top: auto; left: 0.6rem; right: 0.6rem; bottom: 0; width: auto; height: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-tube .tube, .demo-tube .tube i { transition: none; }
}
