/* Strange is the Signal — Still Missing
   Cloudflare Pages static site */

:root {
  --bg: #0c0d10;
  --bg-elev: #14161c;
  --ink: #e8e6e1;
  --muted: #9a968c;
  --amber: #c48a3a;
  --amber-dim: #8a6228;
  --ash: #2a2d36;
  --line: #2e323c;
  --danger-cold: #6b7c8a;
  --font-display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  --max: 720px;
  --pulse: 0.86s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, #1a1520 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 80%, #121820 0%, transparent 50%);
}

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #e0b06a;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 2.5rem 0 4rem;
}

/* Pulse motif */
.pulse-bar {
  height: 2px;
  width: 100%;
  background: var(--ash);
  position: relative;
  overflow: hidden;
  margin: 1.25rem 0 2rem;
}

.pulse-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: pulse-scan var(--pulse) ease-in-out infinite;
}

@keyframes pulse-scan {
  0%,
  100% {
    transform: translateX(-20%);
    opacity: 0.35;
  }
  50% {
    transform: translateX(280%);
    opacity: 1;
  }
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--amber);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--amber);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.5rem;
}

.cover {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 1.5rem 0 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 560;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--bg-elev);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.btn:hover {
  border-color: var(--amber-dim);
  color: var(--amber);
}

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #140e08;
}

.btn-primary:hover {
  background: #d4a04e;
  color: #140e08;
}

.tracklist {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.tracklist li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.tracklist .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.15rem;
}

.meta-block {
  margin-top: 2.5rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--muted);
}

.meta-block strong {
  color: var(--ink);
  font-weight: 600;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--amber);
}

/* False Clear bureaucratic tone */
body.fcr {
  --amber: #8fa4b5;
  --amber-dim: #6b7c8a;
  background-image: none;
  background: #0a0b0c;
}

body.fcr .brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.fcr h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.fcr .lede {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.file-box {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  background: #0e1012;
  color: #b8c0c8;
  white-space: pre-wrap;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.5rem;
  padding: 0.75rem 0.9rem;
  border-left: 2px solid var(--danger-cold);
}

.grid-teaser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 1.25rem 0;
  max-width: 240px;
}

.grid-teaser span {
  aspect-ratio: 1;
  background: var(--ash);
  border: 1px solid var(--line);
}

.grid-teaser span.on {
  background: var(--amber-dim);
  box-shadow: inset 0 0 0 1px var(--amber);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-bar::after {
    animation: none;
    opacity: 0.6;
    width: 100%;
    transform: none;
  }
}
