@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/*
  DISPLAY FONT NOTE:
  For the exact VHS OSD character look on large headings, install
  "Super-VCR Mono" by Asmolboy (free at asmolboy.itch.io/super-vcr-mono)
  and place it at: prodromal-records/fonts/SuperVCRMono.ttf
  Without it, Oswald is used — a condensed 80s broadcast style.
*/
@font-face {
  font-family: 'SuperVCRMono';
  src: url('https://hebbkx1anhila5yf.public.blob.vercel-storage.com/SUPER-VCR_MONO-Ifrp9YOlKx3EFzNrrE7M3eE68UujtJ.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --bg:      #0a0a12;   /* deep warm black — like a dark room with a CRT on */
  --bg2:     #12121a;   /* slightly raised surfaces */
  --fg:      #ffffff;   /* warm parchment — old phosphor off-white */
  --muted:   #a0a0a0;   /* warm mid-brown for secondary text */
  --border:  #2a2a3a;   /* barely-there warm separator */
  --amber:   #ff6b9d;   /* burned amber — the warm glow of 80s broadcast */
  --teal:    #00d4ff;   /* muted 80s teal */
  --red:     #b82820;   /* REC indicator */

  --font-disp: 'SuperVCRMono', 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Courier Prime', 'Courier New', monospace;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

body { min-height: 100vh; overflow-x: hidden; }

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

a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: #fff; }

::selection { background: var(--fg); color: var(--bg); text-shadow: none; }

/* ─── Overlay layers — effects ONLY, never touch .wrap ──────────────────── */

/* 1. Warm vignette — darkens corners like an old CRT tube */
#crt-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(
    ellipse at center,
    transparent 42%,
    rgba(4, 2, 0, 0.5) 78%,
    rgba(2, 1, 0, 0.88) 100%
  );
}

/* 2. VHS noise canvas — subtle warm grain */
#vhs-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* 3. Scanlines — barely visible, just gives texture */
#scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* 4. Bezel — hidden; vignette handles edge darkening */
#crt-bezel { display: none; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px 80px;
  /* No transforms, no filters — effects are overlays only */
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
#header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.logo-link { text-decoration: none; border: none; color: inherit; }

#logo {
  max-height: 68px;
  max-width: 240px;
  object-fit: contain;
}

#logo-text {
  display: none;
  font-family: var(--font-disp);
  font-size: 30px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
}

/* REC dot — minimal */
.now-playing {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  user-select: none;
}

.play-icon {
  font-size: 14px;
  color: var(--teal);
  animation: play-pulse 1.2s ease-in-out infinite;
}

@keyframes play-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
nav#main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}

nav#main-nav a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: none;
  padding: 0;
  transition: color 0.12s;
}

nav#main-nav a + a { margin-left: 24px; }
nav#main-nav a:hover { color: var(--fg); }
nav#main-nav a.active {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 56px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--border);
}

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--fg);
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* Glitch — stays on overlay pseudo-elements only, never moves content */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  text-transform: uppercase;
  pointer-events: none;
}
.glitch-text::before { color: var(--amber); clip-path: polygon(0 22%, 100% 22%, 100% 40%, 0 40%); }
.glitch-text::after  { color: var(--teal);  clip-path: polygon(0 62%, 100% 62%, 100% 80%, 0 80%); }

/* Glitch only fires when .is-glitching is added by JS to the element itself */
.glitch-text.is-glitching::before {
  opacity: 1;
  animation: glitch-top 0.3s steps(1) forwards;
}
.glitch-text.is-glitching::after {
  opacity: 1;
  animation: glitch-bottom 0.3s steps(1) forwards;
}

/* Subtle chromatic shift on hover — no movement, just color offset */
.glitch-text:hover::before { opacity: 0.4; transform: translate(-2px, 0); }
.glitch-text:hover::after  { opacity: 0.4; transform: translate(2px, 0); }

.hero-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.tune-in-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 10px 24px;
  transition: border-color 0.2s, color 0.2s;
}
.tune-in-btn:hover {
  border-color: var(--fg);
  color: #fff;
}

/* ─── Section labels + page titles ──────────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.page-title {
  font-family: var(--font-disp);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 36px;
  line-height: 1;
}

/* ─── Divider ────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

/* ─── Release grid ───────────────────────────────────────────────────────── */
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.release-card {
  display: flex;
  flex-direction: column;
}

.release-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg2);
}

.release-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05) brightness(0.9);
  transition: filter 0.4s;
  display: block;
}
.release-card:hover .release-cover img {
  filter: grayscale(5%) contrast(1.05) brightness(0.98);
}

/* Analog scan-line texture on cover */
.vhs-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.05) 3px,
    rgba(0, 0, 0, 0.05) 4px
  );
  z-index: 1;
}

/* Sweep highlight on hover */
.release-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(180, 150, 80, 0.06) 50%,
    transparent 100%
  );
  transform: translateY(-110%);
  pointer-events: none;
  z-index: 2;
  transition: none;
}
.release-card:hover .release-cover::after {
  animation: sweep 0.55s ease forwards;
}

.release-meta {
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-num {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.r-artist {
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}

.r-title {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 1px;
}

.r-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.r-year {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.r-genre {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--border);
  padding: 1px 5px;
}

.r-listen {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: none;
  margin-left: auto;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.r-listen:hover { opacity: 1; color: var(--fg); }

/* ─── Artist grid ────────────────────────────────────────────────────────── */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.artist-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.artist-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg2);
}

.artist-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(55%) contrast(1.1) brightness(0.82);
  transition: filter 0.4s;
  display: block;
}
.artist-card:hover .artist-img-wrap img {
  filter: grayscale(10%) contrast(1.05) brightness(0.95);
}

.artist-meta { padding: 0 2px; }

.artist-name {
  font-family: var(--font-disp);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.artist-genre {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ─── About — CRT screen ──────────────────────────────────────────────────── */
.crt-screen {
  border: 1px solid var(--border);
  background: #09080500;
  padding: 26px 30px 30px;
  margin-bottom: 36px;
  position: relative;
  max-width: 600px;
  background: var(--bg2);
}

.screen-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.7;
  margin-bottom: 18px;
}

.screen-text p {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.85;
  margin-bottom: 14px;
  opacity: 0.88;
}

.screen-prompt {
  font-family: var(--font-disp);
  font-size: 22px;
  color: var(--fg);
  animation: cursor-blink 1s step-end infinite;
  margin-bottom: 0 !important;
  display: inline-block;
  opacity: 0.7;
}

.about-block {
  max-width: 580px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fg);
  opacity: 0.88;
}
.about-block p { margin-bottom: 16px; }
.about-block a { color: var(--fg); border-bottom: 1px solid var(--border); }
.about-block a:hover { color: #fff; border-color: #fff; }

/* ─── Transmission log ───────────────────────────────────────────────────── */
.transmission-log { display: flex; flex-direction: column; }

.tape-entry {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.tape-entry:last-child { border-bottom: none; }

.tape-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.tape-date {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.tape-side {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 1px 6px;
}

.tape-title {
  font-family: var(--font-disp);
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.tape-title a { color: inherit; border: none; }
.tape-title a:hover { color: #fff; }

.tape-body {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.8;
  max-width: 560px;
  opacity: 0.82;
}
.tape-body p { margin-bottom: 10px; }
.tape-body p:last-child { margin-bottom: 0; }

/* ─── News posts ─────────────────────────────────────────────────────────── */
.post {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.post:last-child { border-bottom: none; }

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.post-title {
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-title a { border: none; color: inherit; }
.post-title a:hover { color: #fff; }

.post-date {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.post-body {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.8;
  opacity: 0.84;
}
.post-body p { margin-bottom: 10px; }

/* ─── Contact form ───────────────────────────────────────────────────────── */
.demo-form fieldset {
  border: 1px solid var(--border);
  padding: 26px 26px 22px;
  max-width: 520px;
  margin-bottom: 24px;
}

.demo-form legend {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}

.form-row label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 6px 2px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
  caret-color: var(--fg);
}

.form-row input:focus,
.form-row textarea:focus {
  border-bottom-color: var(--fg);
}

.form-row textarea {
  resize: vertical;
  min-height: 90px;
  border: 1px solid var(--border);
  padding: 8px;
}
.form-row textarea:focus { border-color: var(--fg); }

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--border);
  font-style: italic;
}

.submit-btn {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px 26px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.submit-btn:hover { border-color: var(--fg); }

.signal-received {
  display: none;
  padding: 26px;
  border: 1px solid var(--border);
  max-width: 520px;
}
.signal-received.is-visible {
  display: block;
  animation: fade-in 0.5s ease;
}

.signal-received .glitch-text {
  font-family: var(--font-disp);
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.signal-received p {
  font-size: 12px;
  color: var(--muted);
}

/* ─── Contact links ──────────────────────────────────────────────────────── */
.contact-links {
  list-style: none;
  margin-bottom: 40px;
  max-width: 500px;
}

.contact-links li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.contact-links li:last-child { border-bottom: none; }

.contact-links .lbl {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 100px;
  flex-shrink: 0;
}

.contact-links a { color: var(--fg); border: none; }
.contact-links a:hover { color: #fff; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
#footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#footer a { color: var(--muted); border: none; }
#footer a:hover { color: var(--fg); }

#footer-clock {
  letter-spacing: 0.12em;
  font-size: 12px;
}

/* Signal / VU meter — analog bars */
.signal-meter {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}
.signal-meter .bar {
  display: inline-block;
  width: 4px;
  background: var(--amber);
  opacity: 0.5;
  transition: height 0.3s ease, opacity 0.3s ease;
}
.signal-meter .bar:nth-child(1) { height: 25%; }
.signal-meter .bar:nth-child(2) { height: 45%; }
.signal-meter .bar:nth-child(3) { height: 65%; }
.signal-meter .bar:nth-child(4) { height: 82%; }
.signal-meter .bar:nth-child(5) { height: 100%; }

/* ─── Keyframes ──────────────────────────────────────────────────────────── */

/* Glitch clip — on individual elements only, never the page */
@keyframes glitch-top {
  0%, 100% { transform: translate(0,0);    clip-path: polygon(0 22%, 100% 22%, 100% 40%, 0 40%); }
  25%       { transform: translate(-4px,0); }
  50%       { transform: translate(3px,0);  clip-path: polygon(0 20%, 100% 20%, 100% 44%, 0 44%); }
  75%       { transform: translate(-2px,0); }
}

@keyframes glitch-bottom {
  0%, 100% { transform: translate(0,0);   clip-path: polygon(0 62%, 100% 62%, 100% 80%, 0 80%); }
  30%       { transform: translate(4px,0); }
  55%       { transform: translate(-3px,0); clip-path: polygon(0 60%, 100% 60%, 100% 82%, 0 82%); }
  80%       { transform: translate(2px,0); }
}

/* Sweep — on .release-cover::after pseudo only */
@keyframes sweep {
  0%   { transform: translateY(-110%); }
  100% { transform: translateY(420%); }
}

/* Flicker — on the dedicated #flicker-overlay only, not .wrap */
@keyframes overlay-flicker {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.1; }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .wrap { padding: 0 18px 60px; }
  #header { padding: 24px 0 16px; }
  .hero { min-height: 55vh; padding-bottom: 36px; }
  .hero-title { font-size: 46px; }
  .release-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 16px; }
  .artist-grid  { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 18px; }
  .demo-form fieldset { padding: 18px 14px; }
  #footer { flex-direction: column; align-items: flex-start; }
}
