/* Baa's Big Books: the public home page. Works from a phone up to a wide computer screen.
   Shares the book's colours, fonts and rangoli border with the members' app in app/. */

@font-face{font-family:"Baloo 2";font-weight:600;font-display:swap;src:url(app/fonts/baloo2-600.woff2) format("woff2")}
@font-face{font-family:"Baloo 2";font-weight:800;font-display:swap;src:url(app/fonts/baloo2-800.woff2) format("woff2")}
@font-face{font-family:Andika;font-weight:400;font-display:swap;src:url(app/fonts/andika-400.woff2) format("woff2")}
@font-face{font-family:Andika;font-weight:700;font-display:swap;src:url(app/fonts/andika-700.woff2) format("woff2")}

:root{
  --bg:#FFF6E5; --card:#FFFFFF; --ink:#2B1B4A; --muted:#5B4E73; --line:#E9DFCB;
  --pink:#E6007E; --pink-text:#A8005C; --yellow:#FFD23F;
  --display:"Baloo 2",system-ui,sans-serif; --body:Andika,system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:400 18px/1.55 var(--body);
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
img{max-width:100%;height:auto}
h1{font:800 clamp(40px,7vw,76px)/1 var(--display);margin:0}
h2{font:800 clamp(28px,4vw,42px)/1.1 var(--display);margin:0}
h3{font:800 22px/1.2 var(--display);margin:0}
p{margin:0}
a{color:var(--pink-text)}
:focus-visible{outline:3px solid var(--pink);outline-offset:3px}
.wrap{max-width:1180px;margin:0 auto;padding-left:20px;padding-right:20px}
.block{padding-top:56px;padding-bottom:56px}
.rangoli{height:35px;background:url(app/rangoli.svg) repeat-x left top/auto 100%}

/* header */
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding-top:18px;padding-bottom:18px}
.brand{font:800 26px/1 var(--display);color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;gap:12px}
.brand img{width:56px;height:56px;border-radius:50%}
.top nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;font-weight:700;font-size:16px}
.top nav a{min-height:44px;display:inline-flex;align-items:center}

/* buttons */
.btn{min-height:52px;border-radius:26px;border:3px solid var(--ink);background:var(--card);color:var(--ink);
  font:700 17px var(--body);padding:8px 22px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.btn.small{min-height:44px;background:var(--ink);color:#fff;border-width:0;padding:8px 18px}
.btn.primary{background:var(--pink);color:#fff;font:800 21px var(--display);min-height:58px;padding:8px 28px}

/* hero: words on the left, Baa on the right; stacked on a phone with Baa first in view */
.hero{display:grid;grid-template-columns:1fr;gap:28px;align-items:center;padding-top:20px;padding-bottom:48px}
.lede{font-size:clamp(19px,2vw,23px);max-width:34em;margin-top:18px}
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;margin-top:26px}
.hero-baa{display:flex;flex-direction:column;align-items:center;gap:6px}
.baa{border:none;background:none;padding:0;cursor:pointer;border-radius:16px;transform-origin:50% 100%}
.baa{width:min(100%,420px);display:flex;justify-content:center}
.baa img{height:clamp(300px,46vw,520px);width:auto;max-width:100%;object-fit:contain;display:block}
.hint{font-size:14px;color:var(--muted)}
.bubble{position:relative;background:var(--card);border:3px solid var(--ink);border-radius:20px;padding:12px 18px;font-size:clamp(19px,2.2vw,24px);line-height:1.35;max-width:340px;text-align:left;margin-bottom:14px}
.bubble::after{content:"";position:absolute;left:50%;bottom:-12px;width:18px;height:18px;margin-left:-9px;background:var(--card);border-right:3px solid var(--ink);border-bottom:3px solid var(--ink);transform:rotate(45deg)}
.bubble .who{display:block;font:800 13px var(--display);letter-spacing:1px;text-transform:uppercase;color:var(--pink-text)}

/* meet Baa */
.meet{background:var(--yellow);border-top:3px solid var(--ink);border-bottom:3px solid var(--ink);padding:48px 0}
.three{display:grid;grid-template-columns:1fr;gap:28px;margin-top:24px}
.three figure{margin:0;display:flex;gap:18px;align-items:center}
.three img{height:190px;width:auto;flex:none}
.three figcaption{font-size:18px}
.three b{display:block;font:800 22px/1.2 var(--display)}

/* how it works */
.steps{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:1fr;gap:18px}
.steps li{background:var(--card);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:8px}
.steps .n{font:800 44px/1 var(--display);color:var(--pink-text)}

/* festival year */
.year{background:var(--ink);color:#fff}
.year-head{display:flex;gap:28px;align-items:flex-end;justify-content:space-between}
.year-head p{max-width:36em;margin-top:12px;font-size:19px}
.year-head img{height:210px;width:auto;flex:none;margin-bottom:-56px;display:none}
.tiles{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.tiles li{background:#3D2A63;border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:2px}
.tiles li.on{background:var(--yellow);color:var(--ink)}
.tiles b{font:800 21px/1.2 var(--display)}
.tiles span{font-size:15px}

/* membership */
.sub{font-size:19px;margin-top:10px;max-width:36em}
.perks{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:1fr;gap:18px}
.perks li{background:var(--card);border-radius:20px;border-top:8px solid var(--pink);padding:24px;display:flex;flex-direction:column;gap:8px}
.perks li:nth-child(2){border-top-color:var(--yellow)}
.perks li:nth-child(3){border-top-color:#00B5AD}

/* last call */
.take{background:var(--yellow);border-top:3px solid var(--ink)}
.last{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-end;justify-content:center;text-align:left;padding-top:40px}
.last>div{padding-bottom:40px;max-width:30em}
.last img{height:260px;width:auto;display:block}
.last p{margin:8px 0 18px}

/* the footer's line runs the full width, like the band above it */
footer{border-top:3px solid var(--ink);font-size:15px}
footer .wrap{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;padding-top:20px;padding-bottom:28px}

@media (min-width:760px){
  .hero{grid-template-columns:1.15fr .85fr;gap:40px;padding-top:36px;padding-bottom:72px}
  .three{grid-template-columns:repeat(3,1fr)}
  .three figure{flex-direction:column;text-align:center}
  .three img{height:240px}
  .steps,.perks{grid-template-columns:repeat(3,1fr)}
  .year-head img{display:block}
}
@media (max-width:759px){
  /* on a phone Baa comes first, so she is on screen before any scrolling */
  .hero-baa{order:-1}
  .baa img{height:280px}
}
@media (prefers-reduced-motion:no-preference){
  .baa.nod{animation:nod .5s ease}
  @keyframes nod{0%{transform:rotate(0)}30%{transform:rotate(-7deg)}65%{transform:rotate(6deg)}100%{transform:rotate(0)}}
}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto} }
