/* Dead Space Podcast — site styles
   Brand colors sampled from the logo; fonts are self-hosted (no outside requests). */

@font-face { font-family: "Creepster"; src: url("../fonts/creepster.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bungee"; src: url("../fonts/bungee.woff2") format("woff2"); font-display: swap; }

:root {
  --green: #9be22d;
  --pink: #f0457e;
  --cyan: #4fc9d8;
  --purple: #8a3fd1;
  --black: #000;
  --panel: #0c0914;
  --panel-2: #140f22;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ece9f5;
  --muted: #a9a3bd;
  --radius: 18px;
  --max: 1160px;
  --head: "Creepster", "Impact", sans-serif;
  --label: "Bungee", "Arial Black", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body); color: var(--text); background: var(--black);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
[hidden] { display: none !important; }

/* Starfield + nebula behind every page */
.space {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(138, 63, 209, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 30%, rgba(79, 201, 216, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 40% at 70% 90%, rgba(240, 69, 126, 0.14), transparent 70%),
    #000;
}
.space .stars { position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%; }
.space .stars.far { animation: drift 240s linear infinite; }
.space .stars.mid { animation: drift 160s linear infinite; }
.space .stars.near { animation: drift 100s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-400px); } }
@media (prefers-reduced-motion: reduce) { .space .stars { animation: none !important; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; width: min(var(--max), 100% - 32px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 18px rgba(138, 63, 209, 0.7); }
.brand span { font-family: var(--head); font-size: 1.7rem; letter-spacing: 0.02em; color: var(--green); text-shadow: 0 0 14px rgba(155, 226, 45, 0.45); line-height: 1; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-family: var(--label); font-size: 0.82rem; letter-spacing: 0.03em; color: var(--text); padding: 10px 14px; border-radius: 999px; }
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); text-shadow: 0 0 12px rgba(155, 226, 45, 0.5); }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: #fff; content: ""; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: rgba(0, 0, 0, 0.96); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px; text-align: center; }
  .brand span { font-size: 1.35rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--label); font-size: 0.9rem; letter-spacing: 0.02em;
  padding: 15px 30px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(90deg, var(--purple), var(--pink)); box-shadow: 0 6px 22px rgba(240, 69, 126, 0.28); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 30px rgba(240, 69, 126, 0.45); }
.btn-outline { color: var(--cyan); border-color: var(--cyan); background: rgba(79, 201, 216, 0.06); }
.btn-outline:hover { color: #000; background: var(--cyan); box-shadow: 0 6px 22px rgba(79, 201, 216, 0.35); }
.btn-green { color: #000; background: var(--green); box-shadow: 0 6px 20px rgba(155, 226, 45, 0.25); }
.btn-green:hover { color: #000; box-shadow: 0 8px 28px rgba(155, 226, 45, 0.45); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center { text-align: center; }
.center .btn-row { justify-content: center; }

/* Type */
h1, h2 { font-family: var(--head); font-weight: 400; line-height: 1.02; letter-spacing: 0.01em; }
h1 { font-size: clamp(3rem, 9vw, 6.2rem); color: var(--green); text-shadow: 0 0 18px rgba(155, 226, 45, 0.28); }
h2 { font-size: clamp(2.3rem, 6vw, 3.8rem); color: var(--green); text-shadow: 0 0 14px rgba(155, 226, 45, 0.25); }
h3 { font-family: var(--label); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.02em; color: #fff; }
.pink { color: var(--pink); text-shadow: 0 0 16px rgba(240, 69, 126, 0.3); }
.eyebrow { font-family: var(--label); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.lead + .lead { margin-top: 14px; }

/* Sections */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section-alt { background: linear-gradient(180deg, rgba(20, 15, 34, 0.75), rgba(12, 9, 20, 0.75)); border-block: 1px solid var(--line); }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin-top: 12px; }

/* Hero */
.hero { padding: clamp(48px, 9vw, 100px) 0 clamp(56px, 9vw, 100px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-logo { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; margin-inline: auto; animation: float 6s ease-in-out infinite; }
.hero-logo img { width: 100%; height: 100%; border-radius: 50%; }
.hero-logo::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  box-shadow: 0 0 60px 12px rgba(138, 63, 209, 0.6), 0 0 140px 30px rgba(240, 69, 126, 0.22);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero-logo::before { animation: none; } }
.hero-copy h1 + .lead { margin-top: 20px; }
.hero-copy .hosts-line { font-family: var(--label); font-size: clamp(0.95rem, 2.2vw, 1.15rem); color: var(--cyan); margin: 18px 0 30px; text-shadow: 0 0 14px rgba(79, 201, 216, 0.45); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-logo { max-width: 320px; }
  .hero .btn-row { justify-content: center; }
}

/* Home hero: the show's intro video, then the buttons */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-video { position: relative; }
/* The intro's "hit", recreated in CSS: white flash, logo slams in with a shake, then floats */
.hero-video { overflow: hidden; }
.hero-slam {
  width: min(420px, 78vw); margin: clamp(40px, 6vw, 72px) auto 0;
  animation: slam 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both, shake 0.4s linear 0.95s;
}
.hero-flash {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; background: #fff; opacity: 0;
  animation: flash 0.7s ease-out 0.5s;
}
@keyframes slam { from { transform: scale(1.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes shake {
  0%, 100% { translate: 0 0; } 20% { translate: -7px 4px; } 40% { translate: 6px -5px; }
  60% { translate: -4px 3px; } 80% { translate: 3px -2px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slam, .hero-flash { animation: none; } }.hero-cta { position: relative; text-align: center; margin-top: 40px; padding-bottom: clamp(56px, 8vw, 90px); }
.hero-cta .hosts-line {
  font-family: var(--label); font-size: clamp(0.85rem, 2vw, 1rem); letter-spacing: 0.08em;
  color: var(--cyan); margin-bottom: 26px; text-shadow: 0 0 10px rgba(79, 201, 216, 0.35);
}
.hero-cta .btn-row { justify-content: center; }
@media (max-width: 520px) { .hero-cta { margin-top: 18px; } .hero-cta .btn { width: 100%; } }

/* Platform links */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.platform {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: #fff; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.platform:hover { color: #fff; transform: translateY(-3px); border-color: var(--pink); box-shadow: 0 0 30px rgba(240, 69, 126, 0.25); }
.platform svg { width: 40px; height: 40px; fill: var(--pink); flex: none; }
.platform small { display: block; font-size: 0.8rem; color: var(--muted); }
.platform strong { font-family: var(--label); font-weight: 400; font-size: 1rem; }

/* Latest episode embed */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 60px rgba(138, 63, 209, 0.35); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Host cards */
.hosts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.host-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.host-card:hover { transform: translateY(-4px); }
.host-card.c-green:hover { border-color: var(--green); box-shadow: 0 0 36px rgba(155, 226, 45, 0.22); }
.host-card.c-pink:hover { border-color: var(--pink); box-shadow: 0 0 36px rgba(240, 69, 126, 0.22); }
.host-card.c-cyan:hover { border-color: var(--cyan); box-shadow: 0 0 36px rgba(79, 201, 216, 0.22); }
.host-photo {
  position: relative; width: 170px; height: 170px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden; background: var(--panel-2);
  font-family: var(--head); font-size: 4.4rem; line-height: 1;
}
.host-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-green .host-photo { color: var(--green); box-shadow: 0 0 0 3px var(--green), 0 0 34px rgba(155, 226, 45, 0.5); }
.c-pink .host-photo { color: var(--pink); box-shadow: 0 0 0 3px var(--pink), 0 0 34px rgba(240, 69, 126, 0.5); }
.c-cyan .host-photo { color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan), 0 0 34px rgba(79, 201, 216, 0.5); }
.host-card h3 { font-family: var(--head); font-size: 2.6rem; font-weight: 400; line-height: 1; }
.c-green h3 { color: var(--green); }
.c-pink h3 { color: var(--pink); }
.c-cyan h3 { color: var(--cyan); }
.host-role { font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 8px 0 16px; }
.host-bio { color: var(--muted); text-align: left; }
.host-bio + .host-bio { margin-top: 12px; }
.host-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.host-links a { font-family: var(--label); font-size: 0.75rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.host-links a:hover { border-color: var(--cyan); color: var(--cyan); }

/* Merch */
.merch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.merch-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.merch-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 0 34px rgba(138, 63, 209, 0.3); }
.merch-card .thumb { aspect-ratio: 1; background: var(--panel-2); display: grid; place-items: center; }
.merch-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.merch-card .info { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.merch-card .price { font-family: var(--label); color: var(--green); }
.merch-card .btn { margin-top: auto; align-self: flex-start; padding: 11px 20px; font-size: 0.8rem; }
.merch-card.soon .thumb { position: relative; }
.merch-card.soon .thumb img { width: 46%; height: auto; opacity: 0.35; filter: grayscale(0.4); border-radius: 50%; }
.merch-card.soon .info h3 { color: var(--muted); }

/* Callout panel */
.panel {
  background: linear-gradient(135deg, rgba(138, 63, 209, 0.18), rgba(240, 69, 126, 0.1));
  border: 1px solid rgba(240, 69, 126, 0.3); border-radius: calc(var(--radius) + 6px);
  padding: clamp(32px, 6vw, 56px); text-align: center;
}
.panel h2 { margin-bottom: 14px; }
.panel .lead { margin: 0 auto 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.85); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 22px rgba(138, 63, 209, 0.6); }
.footer-brand p { font-family: var(--head); font-size: 1.8rem; color: var(--green); line-height: 1.05; }
.footer-brand p span { display: block; font-size: 1.1rem; color: var(--pink); }
.site-footer h3 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { flex-direction: column; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal-date { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal h2 { font-family: var(--label); font-size: 1.1rem; letter-spacing: 0.04em; color: var(--cyan); text-shadow: none; margin: 34px 0 10px; }
.legal p { color: var(--text); max-width: 68ch; }
.legal p + p { margin-top: 12px; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.not-found img { width: 200px; margin: 0 auto 26px; border-radius: 50%; box-shadow: 0 0 50px rgba(138, 63, 209, 0.6); }
.not-found .lead { margin: 14px auto 28px; }

/* Site credit */
.site-credit { flex-basis: 100%; margin: 0; font-size: .78rem; opacity: .7; }
.site-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
