:root {
  --ink: #2c0f33;
  --accent: #6e2478;
  --accent-soft: #f1e4f4;
  --paper: #fbf8fc;
  --muted: #6b5871;
  --card: #ffffff;
  --max: 920px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(110, 36, 120, 0.16), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(44, 15, 51, 0.1), transparent 55%),
    var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Poster collage backdrop, dimmed heavily so foreground copy keeps its contrast. */
body.home {
  background-color: #180721;
  background-image:
    linear-gradient(rgba(24, 7, 33, 0.86), rgba(24, 7, 33, 0.93)),
    url('/assets/cooltv-posters.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Logo files ship with a white background; multiply drops it on light surfaces. */
.brand img, .hero-logo, .site-footer img { mix-blend-mode: multiply; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(44, 15, 51, 0.08);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); font-size: 0.95rem; }
.site-header nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.brand img { display: block; height: auto; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  gap: 1rem;
}
.hero-card {
  width: min(100%, 40rem);
  background: var(--card);
  border-radius: 26px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}
.hero-logo { margin-bottom: 0.25rem; height: auto; max-width: 100%; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.eyebrow {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.6;
}

.store-row { margin-top: 1.25rem; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.4rem 0.7rem 1.1rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(44, 15, 51, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(44, 15, 51, 0.28);
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .store-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-btn .store-label small { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.store-btn .store-label strong { font-size: 1.15rem; font-weight: 600; }

.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.75rem; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(44, 15, 51, 0.22);
}
.btn-ghost:hover { background: rgba(110, 36, 120, 0.06); opacity: 1; }

.legal {
  flex: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.legal h1 { margin-top: 0; }
.cms-content {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 40px rgba(44, 15, 51, 0.06);
  line-height: 1.65;
}
.cms-content img { max-width: 100%; height: auto; }
.cms-content h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
  line-height: 1.3;
}
.cms-content h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}
.cms-content p { margin: 0 0 0.85rem; }
.cms-content ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.cms-content li { margin: 0.3rem 0; }
.cms-content .updated { margin-bottom: 1.35rem; }
.muted { color: var(--muted); }

.site-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(44, 15, 51, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer img { margin: 0 auto 0.5rem; display: block; height: auto; }
.footer-brand {
  margin: 0 0 0.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.home .site-footer {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.75);
}
.home .site-footer a,
.home .footer-brand { color: #fff; }

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .cta-row { margin-top: 1.25rem; }
  .hero { padding: 2.25rem 1rem; }
  .hero-card { padding: 2rem 1.25rem; border-radius: 20px; }
}
