/* Gully's Grand Adventures: site styles
   Look: flat cartoon cel art. Thick ink outlines, hard shadows, sky + grass + golden hour colors. */

:root {
  --ink: #1f1a17;
  --sky: #5bb4ec;
  --sky-light: #d9efff;
  --gold: #ffc66b;
  --peach: #f9a26c;
  --grass: #3f9a3e;
  --grass-dark: #2c6e2e;
  --apricot: #e9a23b;
  --paper: #fffaf0;
  --red: #d93a2f;     /* Gully */
  --blue: #2f6fe0;    /* Porty */
  --orange: #ee8a2a;  /* Bronco */
  --green: #2f9e57;   /* Nevy */
  --accent: var(--red);
  --line: 4px;
  --pop: 6px 6px 0 var(--ink);
  --pop-sm: 4px 4px 0 var(--ink);
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; max-width: 62ch; }

/* Outlined cartoon title, like the logo lettering */
.toon {
  color: #fff;
  -webkit-text-stroke: .14em var(--ink);
  paint-order: stroke fill;
  text-shadow: .08em .09em 0 var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-size: 1.3rem; text-decoration: none;
  padding: .7rem 1.4rem; border: var(--line) solid var(--ink); border-radius: 999px;
  background: var(--gold); color: var(--ink); box-shadow: var(--pop-sm);
  cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--red { background: var(--red); color: #fff; }
.btn--white { background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sky); border-bottom: var(--line) solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 58px; height: 58px; border-radius: 50%; border: var(--line) solid var(--ink); }
.brand span { font-family: var(--display); font-size: 1.45rem; }
.nav { display: flex; gap: .3rem; align-items: center; }
.nav a { font-family: var(--display); font-size: 1.15rem; text-decoration: none; padding: .4rem .8rem; border-radius: 999px; border: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { background: #fff; border-color: var(--ink); }
.nav .btn { font-size: 1.1rem; padding: .45rem 1rem; margin-left: .4rem; }
.menu-btn { display: none; font-family: var(--display); font-size: 1.1rem; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: .4rem 1rem; box-shadow: var(--pop-sm); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--sky); border-bottom: var(--line) solid var(--ink); padding: .8rem 1.25rem 1.2rem; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.35rem; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
  .brand span { font-size: 1.15rem; }
}

/* ---------- Grass edge between scene and page ---------- */
.grass-edge { display: block; width: 100%; height: 44px; margin-top: -43px; position: relative; z-index: 3; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--sky) url("img/park.jpg") center bottom / cover no-repeat;
  min-height: min(88vh, 820px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(1.5rem, 5vw, 3.5rem);
}
.hero__text { text-align: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.6rem); margin-bottom: .2em; }
.hero__lede {
  display: inline-block; font-weight: 800; font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  background: #fff; border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--pop-sm);
  padding: .6rem 1.2rem; max-width: 40ch; margin: 0 auto 1.3rem;
}
.hero__btns { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.crew-line {
  position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(.2rem, 2vw, 1.6rem); margin-top: 2rem; padding: 0 1rem 26px;
}
.crew-line a { display: block; transition: transform .18s; }
.crew-line a:hover { transform: translateY(-10px) rotate(-2deg); }
.crew-line img { height: clamp(150px, 26vw, 330px); width: auto; filter: drop-shadow(0 10px 0 rgba(31,26,23,.25)); }
.crew-line .is-lead img { height: clamp(175px, 30vw, 380px); }
/* one orchestrated entrance: the crew hops in on load */
@keyframes hop { 0% { transform: translateY(120%); } 70% { transform: translateY(-6%); } 100% { transform: translateY(0); } }
.crew-line a { animation: hop .7s cubic-bezier(.3,1.4,.6,1) both; }
.crew-line a:nth-child(2) { animation-delay: .1s; }
.crew-line a:nth-child(3) { animation-delay: .2s; }
.crew-line a:nth-child(4) { animation-delay: .3s; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--grass { background: var(--grass); color: #fff; }
.section--gold { background: var(--gold); }
.section--sky { background: var(--sky-light); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head p { margin: 0; font-weight: 700; }

/* ---------- Episodes ---------- */
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.6rem; }
.ep { background: #fff; color: var(--ink); border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: var(--pop); overflow: hidden; display: flex; flex-direction: column; }
.ep__play { position: relative; display: block; width: 100%; padding: 0; border: 0; border-bottom: var(--line) solid var(--ink); background: var(--ink); cursor: pointer; aspect-ratio: 9 / 13; overflow: hidden; }
.ep__play img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .25s; }
.ep__play:hover img { transform: scale(1.04); }
.ep__play::after {
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 64px; height: 64px;
  border-radius: 50%; border: var(--line) solid var(--ink); box-shadow: var(--pop-sm);
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff' stroke='%231f1a17' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 58% 50% / 38px no-repeat;
}
.ep__body { padding: 1rem 1.1rem 1.2rem; }
.ep__num { font-weight: 800; font-size: .95rem; color: #5b524c; margin: 0 0 .2rem; }
.ep h3 { margin-bottom: .35rem; }
.ep p { font-size: 1rem; margin: 0; }
.ep--soon { background: var(--sky-light); border-style: dashed; box-shadow: none; justify-content: center; align-items: center; text-align: center; padding: 2rem 1.2rem; min-height: 260px; }
.ep--soon p { font-weight: 800; }

/* Video popup */
.player { border: var(--line) solid var(--ink); border-radius: 24px; padding: 0; background: var(--ink); box-shadow: 8px 8px 0 var(--ink); width: min(420px, 92vw); }
.player::backdrop { background: rgba(31, 26, 23, .75); }
.player video { display: block; width: 100%; max-height: 82vh; background: #000; }
.player__close { position: absolute; top: .6rem; right: .6rem; z-index: 2; font-family: var(--display); font-size: 1.1rem; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: .3rem .9rem; cursor: pointer; }

/* ---------- Golden Rule ---------- */
.rule { text-align: center; }
.rule__card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; text-align: left; max-width: 900px; margin: 0 auto; }
.rule__card img { width: clamp(130px, 22vw, 230px); }
.bubble { position: relative; background: #fff; border: var(--line) solid var(--ink); border-radius: 30px; box-shadow: var(--pop); padding: 1.4rem 1.6rem; }
.bubble::before { content: ""; position: absolute; left: -26px; top: 46%; width: 34px; height: 34px; background: #fff; border-left: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); transform: rotate(45deg); }
.bubble__lead { font-weight: 800; margin: 0 0 .3rem; }
.bubble__line { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.12; margin: 0 0 .5rem; }
.bubble__tag { font-weight: 700; font-size: 1rem; color: #5b524c; margin: 0 0 1rem; }
@media (max-width: 640px) {
  .rule__card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bubble::before { left: 50%; top: -22px; transform: translateX(-50%) rotate(135deg); }
}

/* ---------- Crew cards ---------- */
.crew { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem; padding-top: 4.5rem; }
.pal { --c: var(--red); position: relative; display: flex; flex-direction: column; text-decoration: none; color: #fff; background: var(--c); border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: var(--pop); padding: 0 1.3rem 1.4rem; transition: transform .15s; }
.pal:hover { transform: translateY(-6px) rotate(-1deg); }
.pal img { height: 230px; width: auto; margin: -4.5rem auto .6rem; filter: drop-shadow(0 8px 0 rgba(31,26,23,.25)); }
.pal h3 { font-size: 2.3rem; margin-bottom: .2rem; }
.pal p { font-weight: 700; margin-bottom: 1rem; }
.pal__more { margin-top: auto; align-self: flex-start; font-family: var(--display); font-size: 1.1rem; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: .3rem 1rem; }
.pal--gully { --c: var(--red); }
.pal--porty { --c: var(--blue); }
.pal--bronco { --c: var(--orange); }
.pal--nevy { --c: var(--green); }

/* ---------- Book + signup ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.frame { border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: var(--pop); overflow: hidden; background: #fff; }
.panel { background: #fff; border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: var(--pop); padding: clamp(1.4rem, 4vw, 2.4rem); }
.signup { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.signup label { flex-basis: 100%; font-weight: 800; }
.signup input[type="email"] { flex: 1 1 220px; font: inherit; padding: .7rem 1rem; border: var(--line) solid var(--ink); border-radius: 999px; }
.hidden { position: absolute; left: -9999px; }
.small { font-size: .95rem; }

/* ---------- Pillars (for grown-ups) ---------- */
.stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.sticker { background: #fff; color: var(--ink); border: var(--line) solid var(--ink); border-radius: 20px; padding: 1.1rem 1.2rem; box-shadow: var(--pop-sm); }
.sticker h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.sticker p { font-size: 1rem; margin: 0; }
.sticker:nth-child(odd) { transform: rotate(-1deg); }
.sticker:nth-child(even) { transform: rotate(1deg); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: var(--line) solid var(--ink); border-radius: 20px; margin-bottom: 1rem; box-shadow: var(--pop-sm); }
.faq summary { font-family: var(--display); font-size: 1.35rem; padding: 1rem 1.3rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.3rem 1.1rem; margin: 0; }

/* ---------- Character page (Bluey-style profile) ---------- */
.profile-hero {
  --c: var(--red);
  position: relative; overflow: hidden;
  background: var(--sky) url("img/park.jpg") center bottom / cover no-repeat;
  padding: clamp(2rem, 6vw, 4rem) 0 0;
}
.profile-hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: var(--c); border-top: var(--line) solid var(--ink); }
.profile-hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 1rem; }
.profile-hero h1 { font-size: clamp(4rem, 13vw, 9rem); margin: 0 0 .1em; }
.profile-hero .quote { background: #fff; border: var(--line) solid var(--ink); border-radius: 26px; box-shadow: var(--pop); padding: 1rem 1.3rem; margin: 0 0 2.2rem; max-width: 30ch; }
.quote p { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; margin: 0 0 .3rem; }
.quote cite { font-style: normal; font-weight: 700; font-size: .95rem; color: #5b524c; }
.profile-hero__art img { height: clamp(260px, 42vw, 520px); width: auto; margin: 0 auto; position: relative; z-index: 1; filter: drop-shadow(0 12px 0 rgba(31,26,23,.3)); animation: hop .7s cubic-bezier(.3,1.4,.6,1) both; }
@media (max-width: 760px) {
  .profile-hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .profile-hero .quote { margin: 0 auto 1rem; }
  .profile-hero::before { height: 26%; }
}
.profile-body { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .profile-body { grid-template-columns: 1fr; } }
.profile-body .bio p:first-child { font-size: 1.3rem; font-weight: 700; }
.facts { background: #fff; border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: var(--pop); overflow: hidden; }
.facts h2 { font-size: 1.9rem; margin: 0; padding: .9rem 1.3rem; background: var(--c); color: #fff; border-bottom: var(--line) solid var(--ink); }
.facts dl { margin: 0; padding: .4rem 1.3rem 1rem; }
.facts dt { font-family: var(--display); font-size: 1.15rem; margin-top: .8rem; color: var(--c); }
.facts dd { margin: 0; font-weight: 700; }
.theme-gully { --c: var(--red); }
.theme-porty { --c: var(--blue); }
.theme-bronco { --c: var(--orange); }
.theme-nevy { --c: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 3rem 0 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--gold); font-weight: 700; }
.site-footer .fine { grid-column: 1 / -1; font-size: .9rem; opacity: .75; border-top: 2px solid rgba(255,255,255,.2); padding-top: 1.2rem; margin: 0; max-width: none; }

/* ---------- Shop ---------- */
.shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.product { display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; align-items: center; background: #fff; border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: var(--pop); padding: 1.3rem; }
.product__img img { border: 3px solid var(--ink); border-radius: 14px; transform: rotate(-2deg); box-shadow: var(--pop-sm); background: #fff; }
.product h3 { font-size: 1.55rem; margin-bottom: .4rem; }
.product p { font-size: 1rem; }
.product__price { font-family: var(--display); font-size: 1.6rem; margin: 0 0 .6rem; }
.btn[aria-disabled="true"] { cursor: default; opacity: .8; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: var(--pop-sm); }
@media (max-width: 520px) { .product { grid-template-columns: 1fr; } .product__img img { max-width: 220px; margin: 0 auto; } }
