/* taygeta_mood EP — muted gray-violet cosmic palette */

.tm-page {
  --tm-bg: #060608;
  --tm-bg-deep: #000000;
  --tm-panel: rgba(18, 17, 22, 0.78);
  --tm-panel-border: rgba(164, 156, 181, 0.14);
  --tm-text: #eceaf1;
  --tm-muted: #a9a3b8;
  --tm-dim: #6f6a7c;
  --tm-accent: #c4bdd6;
  --tm-accent-hot: #b0a8c4;
  --tm-border: rgba(164, 156, 181, 0.12);
  --tm-glow: rgba(164, 156, 181, 0.22);
  --tm-violet-soft: rgba(140, 132, 158, 0.35);
  --tm-violet-muted: rgba(120, 112, 138, 0.2);
  background: var(--tm-bg-deep);
  color: var(--tm-text);
  font-weight: 400;
}

.tm-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.tm-scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9997;
  opacity: 0.035;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.04) 2px,
    rgba(255, 255, 255, 0.04) 3px
  );
}

.tm-label {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tm-muted);
}

.tm-brand {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #f3f1f6 0%, #c4bdd6 52%, #8f889f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px var(--tm-glow));
}

.tm-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--tm-accent);
  text-shadow: 0 0 32px var(--tm-glow);
}

.tm-rule {
  height: 1px;
  width: 4rem;
  background: linear-gradient(90deg, var(--tm-accent), transparent);
  margin: 1.25rem 0 1.5rem;
}

.tm-date {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--tm-text);
  text-shadow: 0 0 24px var(--tm-glow);
}

.tm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #9d96b0, #7a7388);
  color: #f8f7fa;
  padding: 0.85rem 1.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(140, 132, 158, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tm-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(164, 156, 181, 0.35);
}

.tm-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(164, 156, 181, 0.35);
  color: var(--tm-text);
  padding: 0.85rem 1.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(80, 76, 92, 0.18);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tm-btn-outline:hover {
  border-color: var(--tm-accent);
  background: rgba(80, 76, 92, 0.28);
}

.tm-panel {
  background: var(--tm-panel);
  border: 1px solid var(--tm-panel-border);
  backdrop-filter: blur(12px);
}

.tm-track-row {
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.tm-track-row:hover,
.tm-track-row:focus-within {
  background: rgba(164, 156, 181, 0.06);
  padding-left: 0.5rem;
}

.tm-product-card {
  background: var(--tm-panel);
  border: 1px solid var(--tm-panel-border);
}

.tm-product-featured {
  border-color: rgba(180, 172, 196, 0.28);
  box-shadow: 0 0 36px rgba(140, 132, 158, 0.1);
}

.tm-barcode span {
  background: var(--tm-muted);
}

.tm-barcode {
  display: flex;
  gap: 2px;
  height: 28px;
  align-items: flex-end;
}

.tm-barcode span {
  display: block;
  width: 2px;
}

.tm-horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -2%;
  height: 45%;
  border-radius: 50% 50% 0 0 / 20% 20% 0 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    rgba(120, 112, 138, 0.28) 0%,
    rgba(28, 26, 34, 0.45) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.tm-star-core {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 20px 8px rgba(255, 255, 255, 0.75),
    0 0 60px 20px rgba(180, 172, 196, 0.35),
    0 0 120px 40px rgba(120, 112, 138, 0.18);
}

.tm-star-flare {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.12) 50%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.12) 50%, transparent 52%);
  pointer-events: none;
  opacity: 0.65;
}

.tm-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.tm-nebula--a {
  top: 5%;
  right: -5%;
  width: 55%;
  height: 45%;
  background: radial-gradient(circle, var(--tm-violet-soft), transparent 70%);
}

.tm-nebula--b {
  bottom: 20%;
  left: -10%;
  width: 50%;
  height: 40%;
  background: radial-gradient(circle, var(--tm-violet-muted), transparent 70%);
}

.tm-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(164, 156, 181, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 156, 181, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}

@keyframes tm-twinkle {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.tm-page a:focus-visible,
.tm-page button:focus-visible,
.tm-page input:focus-visible {
  outline: 1px solid var(--tm-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .tm-star-core,
  .tm-nebula,
  .tm-comet,
  .tm-phosphor {
    animation: none;
  }
}

/* —— pixel / retro effects —— */

.tm-pixel-art {
  image-rendering: auto;
}

.tm-pixel-art--crisp {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.tm-pixel-label {
  letter-spacing: 0.28em;
  text-shadow: 0 0 12px var(--tm-glow);
}

.tm-pixel-frame {
  position: relative;
  border: 1px solid rgba(164, 156, 181, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 0 48px rgba(120, 112, 138, 0.12),
    0 0 32px rgba(140, 132, 158, 0.18);
}

.tm-pixel-frame--wide {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(140, 132, 158, 0.12);
}

.tm-cover-scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0.12;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
}

.tm-cover-glow {
  pointer-events: none;
  position: absolute;
  inset: -8%;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 55%,
    rgba(180, 172, 196, 0.25),
    transparent 62%
  );
  animation: tm-pulse-glow 6s ease-in-out infinite;
}

.tm-grid--pixel {
  background-size: 24px 24px;
  opacity: 0.85;
}

.tm-star-pixel {
  box-shadow: 0 0 8px rgba(196, 189, 214, 0.6);
}

.tm-star-flare--soft {
  opacity: 0.35;
  width: 220px;
  height: 220px;
}

.tm-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 65% at 50% 45%,
    transparent 35%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.tm-comet {
  position: absolute;
  top: 18%;
  left: -8%;
  width: 140px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(220, 215, 232, 0.85),
    transparent
  );
  transform: rotate(-24deg);
  filter: blur(0.5px);
  animation: tm-comet-drift 14s linear infinite;
  opacity: 0.55;
}

.tm-scanlines--crt {
  opacity: 0.055;
  z-index: 9996;
}

.tm-phosphor {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9995;
  opacity: 0.04;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(196, 189, 214, 0.35),
    transparent 55%
  );
  animation: tm-phosphor-drift 10s ease-in-out infinite alternate;
}

@keyframes tm-comet-drift {
  0% {
    transform: translate(-10vw, 0) rotate(-24deg);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  45% {
    transform: translate(110vw, 28vh) rotate(-24deg);
    opacity: 0.45;
  }
  100% {
    transform: translate(110vw, 28vh) rotate(-24deg);
    opacity: 0;
  }
}

@keyframes tm-pulse-glow {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes tm-phosphor-drift {
  0% {
    opacity: 0.03;
    transform: scale(1);
  }
  100% {
    opacity: 0.06;
    transform: scale(1.08);
  }
}

/* —— WordPress layout fixes (match Next.js hero) —— */

.tm-page {
  font-family: var(--font-inter);
}

.tm-page .font-display,
.tm-page .tm-brand {
  font-family: var(--font-display), var(--font-inter), system-ui, sans-serif;
}

.tm-page main {
  position: relative;
  z-index: 1;
}

.tm-hero-grid {
  min-height: calc(100vh - 3rem);
}

.tm-backdrop-photo {
  overflow: hidden;
}

.tm-backdrop-photo .tm-backdrop-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: blur(40px) saturate(0.65);
  transform: scale(1.1);
}

.tm-pixel-frame {
  position: relative;
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 1 / 1;
}

.tm-pixel-frame .tm-cover-img,
.tm-pixel-frame > img.tm-cover-img {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.tm-page .relative.aspect-square .tm-cover-img,
.tm-page .relative.aspect-square .img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.tm-cover-glow {
  z-index: 0;
}

.tm-header nav.hidden.md\:flex {
  align-items: center;
  gap: 2rem;
}
