/* Twisted Flame Kids — first-draft site styles
   Self-contained. No webfonts, analytics, or third-party requests. */

:root {
  --ink: #1a1240;
  --ink-soft: #3a2e68;
  --purple: #6b2ae8;
  --purple-deep: #3b1578;
  --purple-mid: #7b3ff0;
  --sapphire: #1452d9;
  --glow: #6ec8ff;
  --sky: #eaf4ff;
  --lavender: #f4efff;
  --cream: #fffaf0;
  --sun: #ffe56a;
  --sun-deep: #f0c61a;
  --silver: #c8d0e0;
  --white: #ffffff;
  --card: #ffffff;
  --line: rgba(26, 18, 64, 0.12);
  --shadow: 0 16px 40px rgba(59, 21, 120, 0.12);
  --radius: 24px;
  --max: 1120px;
  --font: "Trebuchet MS", "Segoe UI", "Avenir Next", "Century Gothic", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.0625rem;
}

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

a { color: var(--sapphire); }
a:hover { color: var(--purple); }

:focus-visible {
  outline: 3px solid var(--purple-mid);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* Preview banner */
.banner {
  background: var(--purple-deep);
  color: var(--white);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
}
.banner strong { color: var(--sun); }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--purple-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.wordmark:hover { color: var(--purple); }
.wordmark small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sapphire);
  font-weight: 800;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.15rem;
}
nav a:hover,
nav a[aria-current="page"] { color: var(--purple); }

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sapphire);
  margin: 0 0 0.6rem;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.75rem; color: var(--purple-deep); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 38rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--sun-deep);
  min-height: 44px;
}
.btn:hover { color: var(--ink); background: #fff1a0; }

.btn-ghost {
  display: inline-block;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  min-height: 44px;
}
.btn-ghost:hover { color: var(--sun); border-color: var(--sun); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(110, 200, 255, 0.45), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(255, 229, 106, 0.35), transparent 45%),
    linear-gradient(160deg, #2a0d66 0%, #4b1aa8 42%, #1452d9 100%);
  color: var(--white);
  padding: 2.5rem 0 0;
}
.hero h1,
.hero .kicker { color: var(--white); }
.hero .kicker { color: var(--sun); }
.hero .lede { color: #eef3ff; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: end;
}

.hero-copy { padding: 2rem 0 3.5rem; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 320px;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: min(420px, 90%);
  height: min(420px, 90%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 229, 106, 0.35), transparent 60%),
    radial-gradient(circle, rgba(110, 200, 255, 0.4), transparent 70%);
  bottom: 8%;
}
.portal-ring {
  position: absolute;
  width: min(380px, 86%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid rgba(255, 229, 106, 0.55);
  box-shadow: 0 0 0 10px rgba(110, 200, 255, 0.2), 0 0 40px rgba(255, 255, 255, 0.25);
  bottom: 12%;
}
.hero-art img {
  position: relative;
  width: min(420px, 100%);
  filter: drop-shadow(0 18px 28px rgba(10, 6, 40, 0.45));
}

/* Theme chips / cards */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 800;
  font-size: 0.9rem;
}
.chip-light {
  background: var(--lavender);
  border: 1px solid #d9c8ff;
  color: var(--purple-deep);
}

/* Meet section */
.meet { background: var(--white); }
.meet-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}
.meet-art {
  background:
    radial-gradient(circle at 50% 80%, rgba(110, 200, 255, 0.35), transparent 55%),
    linear-gradient(180deg, #efe7ff, #e8f4ff);
  border-radius: 32px;
  padding: 1.5rem 1rem 0;
  text-align: center;
}
.meet-art img {
  margin: 0 auto;
  width: min(360px, 100%);
  filter: drop-shadow(0 12px 20px rgba(59, 21, 120, 0.2));
}

.themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.theme {
  background: var(--lavender);
  border-radius: 16px;
  padding: 0.9rem 0.85rem;
  text-align: center;
  font-weight: 800;
  color: var(--purple-deep);
}
.theme span {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

/* Songs & episodes */
.shows { background: var(--lavender); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}
.stage {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(160deg, #4b1aa8, #1452d9);
  color: var(--white);
  position: relative;
}
.stage-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple-deep);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
}
.badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.card-body { padding: 1.2rem 1.25rem 1.4rem; }
.card-body p { margin: 0; color: var(--ink-soft); }
.note {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Books */
.books { background: var(--sky); }
.book-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.book {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.book-cover {
  width: 110px;
  height: 148px;
  border-radius: 6px 12px 12px 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 8px, transparent 8px),
    linear-gradient(160deg, #7b3ff0, #1452d9);
  margin-bottom: 1rem;
  box-shadow: 6px 8px 0 rgba(26, 18, 64, 0.12);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.soon-pill {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

/* Parents */
.parents { background: var(--white); }
.parents-box {
  background: var(--cream);
  border: 2px solid #ffe9a0;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  max-width: 46rem;
}
.parents ul { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.parents li { margin: 0.35rem 0; }

/* About */
.about {
  background:
    linear-gradient(180deg, var(--lavender), var(--cream));
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  max-width: 36rem;
}
.placeholder-label {
  display: inline-block;
  background: #fff3bf;
  color: #5a4300;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.5rem;
}
.email {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--purple-deep);
  text-decoration: none;
  word-break: break-word;
}
.email:hover { color: var(--sapphire); }

/* Privacy page */
.page-hero {
  background: linear-gradient(160deg, #2a0d66, #1452d9);
  color: var(--white);
  padding: 3.5rem 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: #e8f0ff; max-width: 36rem; }
.prose { max-width: 42rem; padding: 3rem 0 4.5rem; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }

/* Footer */
footer {
  background: var(--purple-deep);
  color: #efe7ff;
  padding: 2rem 0;
  text-align: center;
}
footer .wordmark { color: var(--white); display: inline-block; margin-bottom: 0.6rem; }
footer .wordmark small { color: var(--glow); }
footer a { color: var(--sun); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--white); }
footer nav {
  justify-content: center;
  margin: 0.5rem 0 1rem;
}
footer nav a { color: #efe7ff; }
footer small { display: block; color: #cbbbe8; }

/* Decorative dots — CSS only */
.sparkles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, #fff 1.5px, transparent 2px),
    radial-gradient(circle, var(--sun) 1.5px, transparent 2px),
    radial-gradient(circle, var(--glow) 1.5px, transparent 2px);
  background-size: 120px 120px, 160px 160px, 90px 90px;
  background-position: 10% 20%, 70% 30%, 40% 80%;
  opacity: 0.35;
}

@media (max-width: 800px) {
  .hero-grid,
  .meet-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 1.25rem; }
  .hero-copy { padding: 1rem 0 0.5rem; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .meet-art { order: -1; }
  .section { padding: 3.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
