/* Jesus and Me | Bible stories for kids */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --sky: #dcefff; --sky-deep: #b9dcf7; --cream: #fff9ec; --paper: #ffffff;
  --navy: #1f3a5f; --ink: #2b3f5c; --muted: #5b6f8a;
  --gold: #f2b33d; --gold-deep: #d9961a; --green: #5fb36b; --rose: #f08a7b;
  --line: #e4eaf2; --radius: 22px; --shadow: 0 10px 30px rgba(31, 58, 95, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: #1b6fb8; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(740px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 10; border-radius: 8px; }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.35rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky); color: var(--navy); }
.btn { display: inline-block; text-decoration: none; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem; padding: 12px 24px; border-radius: 999px; background: var(--gold); color: var(--navy); box-shadow: 0 4px 0 var(--gold-deep); transition: transform .08s; }
.btn:hover { color: var(--navy); transform: translateY(-1px); }
.btn.alt { background: var(--paper); box-shadow: 0 4px 0 var(--sky-deep); border: 2px solid var(--sky-deep); }
.nav .btn { padding: 8px 18px; font-size: .95rem; box-shadow: 0 3px 0 var(--gold-deep); }

/* hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #eaf5ff 70%, var(--cream) 100%); padding: 54px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.25rem; color: var(--ink); max-width: 34ch; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero .art { justify-self: center; }
.hero .art img { width: min(340px, 70vw); border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow); }
.eyebrow { font-family: "Fredoka", sans-serif; font-weight: 600; letter-spacing: .04em; color: #8a5a00; text-transform: uppercase; font-size: .9rem; margin-bottom: .4em; }

/* sections */
section.block { padding: 56px 0; }
section.block.tint { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .3em; }
.card.step .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: "Fredoka", sans-serif; font-weight: 700; margin-bottom: 12px; }
.unit { display: block; text-decoration: none; color: inherit; position: relative; }
.unit:hover { border-color: var(--sky-deep); transform: translateY(-2px); }
.unit .tag { font-family: "Fredoka", sans-serif; font-weight: 600; color: #8a5a00; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.unit .dates { color: var(--muted); font-size: .95rem; }
.unit.is-now { border: 2px solid var(--gold); }
.now-badge { display: none; position: absolute; top: -12px; right: 18px; background: var(--gold); color: var(--navy); font-family: "Fredoka", sans-serif; font-weight: 700; font-size: .85rem; padding: 3px 14px; border-radius: 999px; }
.is-now .now-badge { display: block; }

/* video facade */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0d2340; box-shadow: var(--shadow); }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play span { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 6px 0 var(--gold-deep); }
.video .play span::after { content: ""; border-left: 26px solid var(--navy); border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 8px; }
.video-note { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* episode and lists */
.crumbs { font-size: .95rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.meta { color: var(--muted); font-weight: 700; margin-bottom: 1.2em; }
.story p { font-size: 1.12rem; }
.verse { background: var(--sky); border-left: 6px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 24px; margin: 28px 0; font-size: 1.05rem; }
.verse cite { display: block; margin-top: 6px; font-style: normal; font-weight: 800; color: var(--navy); }
.ask { background: #fff4d6; border: 2px dashed var(--gold); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.ask h3 { margin-bottom: .3em; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .when { font-family: "Fredoka", sans-serif; font-weight: 600; color: #8a5a00; }
.list .title { font-weight: 800; color: var(--navy); }
.list .sub { color: var(--muted); font-size: .95rem; }
.pill { display: inline-block; font-size: .8rem; font-weight: 800; padding: 2px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); white-space: nowrap; }
.pill.live { background: #d9f3dd; color: #236b2f; }
.sunday { background: linear-gradient(135deg, #fff4d6, #ffe9b3); border-radius: var(--radius); padding: 28px; border: 1px solid #f3d98b; }
.sunday .q { font-family: "Fredoka", sans-serif; font-size: 1.35rem; color: var(--navy); }
.sunday .prayer { font-style: italic; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.faq p { margin: .6em 0 0; }

/* footer */
.site-footer { background: var(--navy); color: #dbe7f6; padding: 40px 0 30px; margin-top: 40px; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.site-footer h4 { font-family: "Fredoka", sans-serif; color: #fff; margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .fine { margin-top: 26px; font-size: .88rem; color: #a9bdd6; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .hero .art { order: -1; }
  .nav { margin-left: 0; width: 100%; }
  .list li { grid-template-columns: 1fr; gap: 2px; }
}
@media print {
  .site-header, .site-footer, .hero .cta, .video, .btn { display: none !important; }
  body { background: #fff; font-size: 14pt; }
  .sunday { break-inside: avoid; }
}

/* ---- playful layer: characters, hills, chunkier shapes ---- */
.char { height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 8px 10px rgba(31, 58, 95, .18)); }
.hero { position: relative; overflow: hidden; padding: 46px 0 120px; background: linear-gradient(180deg, #bfe3ff 0%, #dcefff 55%, #f1f9ff 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70px 26px at 62% 14%, #fff 98%, transparent), radial-gradient(110px 36px at 69% 17%, #fff 98%, transparent),
    radial-gradient(60px 22px at 93% 40%, rgba(255,255,255,.95) 98%, transparent), radial-gradient(90px 28px at 88% 43%, rgba(255,255,255,.95) 98%, transparent); opacity: .9; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 110px; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0 70 C240 10 420 20 640 62 C860 104 1080 20 1440 58 L1440 120 L0 120Z' fill='%23a9d98a'/><path d='M0 92 C300 40 560 50 800 86 C1040 122 1240 60 1440 84 L1440 120 L0 120Z' fill='%23fff9ec'/></svg>") bottom / 100% 100% no-repeat; }
.hero .wrap { position: relative; z-index: 1; }
.hero .art { justify-self: center; }
.hero .art img.hero-chars { height: 400px; width: auto; max-width: 92vw; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 14px 14px rgba(31, 58, 95, .22)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero .art img.hero-chars { animation: none; } html { scroll-behavior: auto; } }
h1, h2 { text-shadow: 0 2px 0 rgba(255, 255, 255, .7); }
.btn { font-size: 1.15rem; padding: 14px 28px; box-shadow: 0 5px 0 var(--gold-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-deep); }
.card { border-width: 2px; border-radius: 26px; }
.grid > .card.unit:nth-child(4n+1) { background: #fff4d6; border-color: #f3d98b; }
.grid > .card.unit:nth-child(4n+2) { background: #e3f4e6; border-color: #bfe3c6; }
.grid > .card.unit:nth-child(4n+3) { background: #e2f1ff; border-color: #b9dcf7; }
.grid > .card.unit:nth-child(4n+4) { background: #ffe9e4; border-color: #f6c5bb; }
.grid > .card.unit:hover { transform: translateY(-4px) rotate(-.4deg); }
.grid > .card.unit.is-now { border: 3px solid var(--gold); }
.grid > .card.step:nth-child(1) .num { background: var(--gold); } .grid > .card.step:nth-child(2) .num { background: #8fd29a; } .grid > .card.step:nth-child(3) .num { background: #f6a99a; }
section.block { position: relative; }
section.block.tint { background: #f3faff; }
.stage { position: relative; padding-top: 164px; }
.stage .char.stand { position: absolute; right: 28px; height: 156px; z-index: 2; top: 4px; }
.stage .video { z-index: 1; }
.stage2 { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; width: min(1080px, 100% - 40px) !important; margin-inline: auto !important; }
.stage2 #sunday-next { flex: 1 1 380px; max-width: 640px; }
.stage2 .pray { flex: 0 1 280px; width: 280px; height: auto; margin: 0 auto; }
.corner { position: absolute; top: -26px; height: 210px; width: auto; }
.corner.right { right: 4%; } .corner.left { right: 4%; transform: scaleX(-1); }
.ask { position: relative; padding-right: 150px; }
.ask-char { position: absolute; right: 14px; bottom: 6px; height: 150px; width: auto; }
.about { position: relative; } .about-char { float: right; height: 210px; width: auto; margin: 0 0 10px 20px; }
.sunday-pray { display: block; margin: 20px auto 0; width: min(260px, 60%); }
.sunday { box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .hero { padding: 24px 0 90px; }
  .hero .art img.hero-chars { height: 290px; }
  .corner { display: none; }
  .stage { padding-top: 130px; } .stage .char.stand { height: 124px; right: 10px; top: 2px; }
  .ask { padding-right: 22px; padding-bottom: 130px; } .ask-char { height: 112px; right: 8px; }
  .about-char { height: 150px; }
}

.card.unit p { font-size: .98rem; line-height: 1.55; }

@media (max-width: 820px) { .site-header { position: static; } .site-header .wrap { gap: 6px; } }

/* ---- evergreen cards ---- */
.story-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.story-card { display: block; background: var(--paper); border: 2px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .1s; }
.story-card:hover { transform: translateY(-4px) rotate(-.3deg); border-color: var(--sky-deep); }
.story-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sc-body { display: block; padding: 14px 18px 18px; }
.sc-title { display: block; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--navy); line-height: 1.25; }
.sc-ref { display: block; font-size: .88rem; color: var(--muted); font-weight: 700; margin: 2px 0 6px; }
.sc-line { display: block; font-size: .98rem; line-height: 1.5; }
.chip { display: inline-block; margin-top: 4px; font-size: .82rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--navy); border: 1px solid rgba(31,58,95,.15); }
.chip.soon { background: transparent; color: var(--muted); }
.card.unit.soon { opacity: .72; border-style: dashed; }
.card.unit.soon:hover { transform: none; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; margin: 22px 0 0; }
.trust li { background: rgba(255,255,255,.8); border: 1px solid rgba(31,58,95,.12); color: var(--navy); font-weight: 800; font-size: .9rem; padding: 4px 14px; border-radius: 999px; }
.soon-note { margin-top: 18px; color: var(--muted); font-weight: 700; }
.eyebrow a { color: inherit; }
@media (max-width: 820px) { .trust { justify-content: center; } }

/* ---- growing soon (seeds) ---- */
.card.unit.soon { opacity: 1; border-style: dashed; text-decoration: none; }
.card.unit.soon:hover { transform: translateY(-3px); }
.seed-wrap { display: block; height: 96px; margin-bottom: 6px; }
img.seed { height: 100%; width: auto; max-height: 96px; filter: drop-shadow(0 6px 6px rgba(31,58,95,.15)); }
.story-card.soon { border-style: dashed; background: #fbfdf7; box-shadow: none; }
.story-card.soon:hover { transform: none; border-color: var(--line); }
.sc-seed { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(180deg, #eaf6ff, #f4fbe9); }
.sc-seed img.seed { max-height: 110px; }
.story-grid.seeds { margin-top: 20px; }
.chip.soon { background: #fff4d6; color: #7a5200; border-color: #f3d98b; }
.sc-seed { padding: 14px 0 0; overflow: hidden; }
.sc-seed img.seed { max-height: 120px; height: auto; width: auto; max-width: 70%; object-fit: contain; }
