/* ===================================================
   LOQUM — RED TERMINAL STYLESHEET
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=VT323&display=swap');

:root {
  --black: #000000;
  --red: #ff1a1a;
  --red-dim: #b00000;
  --red-glow: rgba(255,26,26,0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px 10px;
  background-color: var(--black);
  font-family: 'Share Tech Mono', 'VT323', monospace;
  color: var(--red);
  font-size: 18px;
  min-height: 100vh;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

a {
  color: var(--red);
  text-decoration: underline;
}
a:hover {
  color: var(--black);
  background: var(--red);
  text-decoration: none;
}
a:focus-visible, button:focus-visible {
  outline: 2px dashed var(--red);
  outline-offset: 2px;
}

/* ============ PAGE FRAME ============ */
.page {
  max-width: 800px;
  margin: 0 auto;
  background: var(--black);
  border: 2px solid var(--red);
  box-shadow: 0 0 30px var(--red-glow);
  overflow: hidden;
}

/* ============ HEADER / STAR + LOGO ============ */
.site-header {
  position: relative;
  padding: 50px 20px 30px;
  text-align: center;
  background: var(--black);
  border-bottom: 2px solid var(--red);
  overflow: hidden;
}

/* the star, behind the logo */
.site-header::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(110px, 20vw, 170px);
  height: clamp(110px, 20vw, 170px);
  transform: translate(-50%, -50%);
  background: var(--red);
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
  opacity: 0.55;
  filter: blur(1px) drop-shadow(0 0 25px var(--red));
  z-index: 0;
}

.logo {
  position: relative;
  z-index: 2;
  font-family: 'Share Tech Mono', monospace;
  font-weight: normal;
  font-size: 64px;
  letter-spacing: 10px;
  margin: 0;
  line-height: 1;
  color: var(--red);
  text-shadow: 0 0 12px var(--red), 0 0 30px var(--red-glow);
}

/* equalizer bars */
.eq {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
  margin: 16px auto 0;
}
.eq span {
  display: block;
  width: 6px;
  background: var(--red);
  box-shadow: 0 0 6px var(--red-glow);
  animation: bounce 1.2s ease-in-out infinite;
}
.eq span:nth-child(1){height:40%;animation-delay:0s;}
.eq span:nth-child(2){height:80%;animation-delay:0.15s;}
.eq span:nth-child(3){height:55%;animation-delay:0.3s;}
.eq span:nth-child(4){height:100%;animation-delay:0.45s;}
.eq span:nth-child(5){height:65%;animation-delay:0.6s;}
.eq span:nth-child(6){height:90%;animation-delay:0.75s;}
.eq span:nth-child(7){height:35%;animation-delay:0.9s;}
@keyframes bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ============ MARQUEE TICKER ============ */
.ticker-wrap {
  background: var(--black);
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
}
.ticker {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite; /* lower = faster scroll */
}
.ticker span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  color: var(--red);
  flex-shrink: 0;
  padding-right: 90px; /* size of the pause between repeats, in pixels */
}
@keyframes ticker-scroll {
  0% { transform: translateX(60vw); }
  100% { transform: translateX(-100%); }
}

/* ============ TOP NAV BAR ============ */
.topnav {
  background: var(--black);
  border-bottom: 2px solid var(--red);
  padding: 10px 0;
}

.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.topnav li {
  display: block;
}

.topnav a {
  display: block;
  padding: 7px 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
}
.topnav a:hover {
  background: var(--red);
  color: var(--black);
}
.topnav a.active {
  border-color: var(--red);
  text-shadow: 0 0 8px var(--red-glow);
}

.content {
  padding: 24px 26px;
  position: relative;
}

.content h2 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 26px;
  color: var(--red);
  letter-spacing: 2px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  margin-top: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--red-glow);
}

.content p {
  line-height: 1.6;
  font-size: 19px;
  color: var(--red);
  text-align: justify;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--black);
  border: 1px solid var(--red);
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:hover {
  background: var(--red);
  color: var(--black);
  box-shadow: 0 0 14px var(--red-glow);
}
.btn:active {
  transform: translateY(2px);
}

/* ============ MODULE BOX (used for blog posts, panels) ============ */
.box {
  background: var(--black);
  border: 1px solid var(--red);
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
}

.box h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 17px;
  color: var(--red);
  margin-top: 0;
  text-transform: uppercase;
}

.post-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--red-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============ FOOTER ============ */
.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  color: var(--red-dim);
  border-top: 2px solid var(--red);
  background: var(--black);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 560px) {
  .logo { font-size: 34px; letter-spacing: 4px; }
  .topnav ul { gap: 0; }
  .topnav a { padding: 7px 9px; font-size: 11px; }
  .player-frame:not(.full-width) iframe { max-width: 100%; width: 100%; height: auto; aspect-ratio: 400 / 307; }
}

/* ============ BANDCAMP EMBED FRAME ============ */
.player-frame {
  display: inline-block;
  border: 1px solid var(--red);
  padding: 8px;
  background: var(--black);
  margin: 0 auto 18px;
  max-width: 100%;
  overflow: hidden;
}

.player-frame.full-width {
  display: block;
}

/* ============ COMING SOON STAMP ============ */
.stamp {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-weight: normal;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 4px 10px;
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--red-glow);
}
