/* Yusuf & Friends: pilot landing page. Plain CSS, mobile first, light "dawn" / dark "night". */
@font-face {
  font-family: "Baloo Bhaijaan 2";
  src: url("/fonts/baloo-bhaijaan-2.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --font: "Baloo Bhaijaan 2", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;

  --bg: #fff7ea;
  --bg-2: #fdecd2;
  --card: #fffdf7;
  --ink: #1f2a44;
  --ink-soft: #46506a;
  --line: #ecd9bb;
  --teal: #0b7a75;
  --teal-ink: #08605c;
  --sun: #f07a1a;
  --sun-ink: #a64a08;
  --sun-soft: #ffc85a;
  --on-teal: #fffdf7;
  --wash-sun: rgba(255, 200, 90, .45);
  --wash-teal: rgba(11, 122, 117, .14);
  --teal-tint: rgba(11, 122, 117, .14);

  /* hero stage */
  --sky-top: #ffe3b3;
  --sky-bot: #fff4df;
  --hill-1: #9ed3b7;
  --hill-2: #5fb393;
  --orb: #ffc85a;
  --star-o: 0;

  /* placeholder slot colours (real signature colours come from the cast bible) */
  --c-maryam: #d9506e;
  --c-yusuf: #2a72c0;
  --c-fatimah: #7f57c2;
  --c-ibrahim: #2a8a58;
  --c-friend: #e8961f;

  --radius: 28px;
  --shadow: 0 2px 0 rgba(31, 42, 68, .06), 0 18px 40px -18px rgba(31, 42, 68, .28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a36;
    --bg-2: #18234a;
    --card: #1b2750;
    --ink: #f8efdf;
    --ink-soft: #cfc9db;
    --line: #34447a;
    --teal: #5fd3c8;
    --teal-ink: #7fe0d6;
    --sun: #ffb25c;
    --sun-ink: #ffc27e;
    --on-teal: #0d1530;
    --wash-sun: rgba(255, 241, 201, .10);
    --wash-teal: rgba(95, 211, 200, .10);
    --teal-tint: rgba(95, 211, 200, .16);
    --sky-top: #0c1430;
    --sky-bot: #24346a;
    --hill-1: #23406a;
    --hill-2: #1a3157;
    --orb: #fff1c9;
    --star-o: 1;
    --shadow: 0 2px 0 rgba(0, 0, 0, .2), 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--card); padding: .5rem 1rem; border-radius: 12px; }

/* ---------- header ---------- */
.top { padding-block: 1rem; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-home { flex: none; border-radius: 50%; }
.top-mark { width: 52px; height: auto; }
.top nav { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { font-weight: 700; text-decoration: none; color: var(--ink); padding: .25rem .1rem; }
.top nav a:hover { color: var(--teal-ink); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: .5rem 3.5rem; }
.hero::before { /* soft dawn wash behind everything */
  content: ""; position: absolute; inset: -6rem 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 15%, var(--wash-sun), transparent 70%),
    radial-gradient(50% 40% at 0% 65%, var(--wash-teal), transparent 70%);
}
.hero .wrap { display: grid; gap: 2.25rem; align-items: center; }

.salam {
  display: inline-flex; align-items: baseline; gap: .6rem; margin: 0 0 .9rem;
  padding: .2rem 1rem .1rem; border-radius: 999px; background: var(--card);
  box-shadow: var(--shadow); font-weight: 600; color: var(--ink-soft);
}
.salam bdi { font-size: 1.35rem; font-weight: 700; color: var(--teal-ink); }

.hero h1 { margin: 0; line-height: 1; }
.hero h1 img { width: min(100%, 560px); height: auto; }
.tagline {
  margin: .9rem 0 0; font-size: clamp(1.6rem, 5.5vw, 2.4rem); font-weight: 800; line-height: 1.1;
  color: var(--sun-ink); letter-spacing: -.01em;
}
.lede { margin: .75rem 0 0; max-width: 32rem; color: var(--ink-soft); font-size: 1.2rem; }

.watch { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 30rem; }
.watch a {
  display: flex; align-items: center; gap: .6rem; min-height: 56px; padding: .55rem 1rem .45rem;
  border-radius: 18px; font-weight: 700; line-height: 1.15; text-decoration: none;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  border: 2px solid var(--line);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), border-color .18s;
}
.watch a small { display: block; font-weight: 600; font-size: .8rem; color: var(--ink-soft); }
.watch a svg { width: 26px; height: 26px; flex: none; fill: currentColor; color: var(--teal-ink); }
.watch a:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--teal); }
.watch li:first-child a { background: var(--teal); color: var(--on-teal); border-color: var(--teal); }
.watch li:first-child a small, .watch li:first-child a svg { color: var(--on-teal); }
@media (prefers-reduced-motion: reduce) { .watch a { transition: none; } .watch a:hover { transform: none; } }

/* stage: the 9:16 hero card with placeholder cast slots */
.stage {
  margin: 0; justify-self: center; width: min(100%, 400px); aspect-ratio: 9 / 16;
  border-radius: 36px; overflow: hidden; background: var(--sky-bot);
  box-shadow: var(--shadow), 0 0 0 8px var(--card);
  transform: rotate(1.5deg);
}
.stage svg { width: 100%; height: 100%; }
.stage .sky-a { stop-color: var(--sky-top); }
.stage .sky-b { stop-color: var(--sky-bot); }
.stage .orb { fill: var(--orb); }
.stage .hill-1 { fill: var(--hill-1); }
.stage .hill-2 { fill: var(--hill-2); }
.stage .f-sun { fill: var(--sun); }
.stage .f-teal { fill: var(--teal); }
.stage .f--c-maryam { fill: var(--c-maryam); }
.stage .f--c-yusuf { fill: var(--c-yusuf); }
.stage .f--c-fatimah { fill: var(--c-fatimah); }
.stage .f--c-ibrahim { fill: var(--c-ibrahim); }
.stage .f--c-friend { fill: var(--c-friend); }
.stage .star { opacity: var(--star-o); }
.stage text { font-family: var(--font); font-weight: 800; }
.stage .slot { animation: bob 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.stage .s2 { animation-delay: -1.2s; }
.stage .s3 { animation-delay: -2.4s; }
.stage .s4 { animation-delay: -3.6s; }
.stage .s5 { animation-delay: -.6s; }
.stage .note { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.stage .n2 { animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(.6deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .stage .slot, .stage .note { animation: none; } }

.hero-in > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-in > *:nth-child(2) { animation-delay: .06s; }
.hero-in > *:nth-child(3) { animation-delay: .12s; }
.hero-in > *:nth-child(4) { animation-delay: .18s; }
.hero-in > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .hero-in > * { animation: none; } }

@media (min-width: 880px) {
  .hero { padding-block: 1.5rem 5rem; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .stage { justify-self: end; width: 100%; max-width: 380px; }
}

/* ---------- wave divider ---------- */
.wave { display: block; width: 100%; height: 48px; color: var(--bg-2); margin-bottom: -1px; }
.wave path { fill: currentColor; }

/* ---------- sections ---------- */
section { scroll-margin-top: 1rem; }
.band { background: var(--bg-2); padding-block: 2.5rem 4rem; }
.eyebrow { margin: 0; font-size: .95rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-ink); }
h2 { margin: .25rem 0 1rem; font-size: clamp(1.9rem, 6vw, 2.75rem); line-height: 1.05; letter-spacing: -.015em; }
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1rem; }
.names { font-weight: 700; color: var(--ink); }

.ai-line {
  display: inline-flex; align-items: center; gap: .6rem; margin: .5rem 0 0; padding: .55rem 1.1rem .45rem;
  border-radius: 16px; background: var(--card); border: 2px dashed var(--line); font-weight: 700;
}
.ai-line svg { width: 22px; height: 22px; flex: none; color: var(--sun-ink); fill: currentColor; }

.about .wrap { display: grid; gap: 2rem; }
@media (min-width: 880px) { .about .wrap { grid-template-columns: 1.15fr .85fr; align-items: start; } }

.parents { background: var(--card); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: var(--shadow); }
.parents h2 { font-size: 1.85rem; margin-top: 0; }
.parents ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 1rem; }
.parents li { display: grid; grid-template-columns: 40px 1fr; gap: .85rem; align-items: start; line-height: 1.45; }
.parents li b { display: block; }
.parents li p { margin: 0; }
.parents li p span { display: block; color: var(--ink-soft); font-size: 1rem; }
.parents .ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-ink); }
.parents .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.contact { margin: 0; padding-top: 1rem; border-top: 2px dashed var(--line); font-size: 1rem; }
.contact a { font-weight: 800; overflow-wrap: anywhere; }

/* latest shorts (hidden until a playlist id is set) */
.shorts { padding-block: 3.5rem 1rem; }
.shorts .frame {
  position: relative; width: min(100%, 360px); aspect-ratio: 9 / 16; margin-top: 1.25rem;
  border-radius: 28px; overflow: hidden; background: #0b2c2b; box-shadow: var(--shadow);
}
.shorts .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shorts .play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; width: 100%;
  border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.2rem; color: #fffdf7;
  background: radial-gradient(80% 60% at 50% 35%, #1a8f89, #0b4f4c);
}
.shorts .play svg { width: 84px; height: 84px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.shorts .play:hover svg { transform: scale(1.08); }
.shorts .play small { font-weight: 600; font-size: .85rem; max-width: 16rem; text-align: center; padding-inline: 1rem; }

/* ---------- footer ---------- */
.foot { padding-block: 2.5rem 3rem; font-size: 1rem; color: var(--ink-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* ---------- privacy / simple pages ---------- */
.doc { padding-block: 1rem 3rem; }
.doc article { max-width: 44rem; background: var(--card); border-radius: var(--radius); padding: 1.75rem 1.4rem 2rem; box-shadow: var(--shadow); }
.doc h1 { font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.05; margin: 0 0 .5rem; }
.doc h2 { font-size: 1.45rem; margin: 2rem 0 .4rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: .35rem; }
.doc .meta { color: var(--ink-soft); margin-top: 0; }
@media (min-width: 700px) { .doc article { padding: 2.5rem 3rem 3rem; } }
