/* Male pitalice · malepitalice.com. Colours from the episodes (draw.mjs). System rounded font, nothing loaded from other hosts. */
:root {
  --ink: #2B2440; --line: #3A3350;
  --bo: #3D8BFF; --bo-dark: #1C4FA6; --bo-light: #DCEBFF;
  --mimi: #FFD23C; --mimi-dark: #C98A00; --mimi-light: #FFF4C2;
  --pink: #FF6FA8; --pink-light: #FFE0EC;
  --green: #4CBB47; --green-dark: #2A7E2E; --green-light: #A2E07E; --green-pale: #E3F7D6;
  --sky0: #7CC8FF; --sky1: #D4F1FF; --cream: #FFFBF0;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --H: clamp(190px, 22vw, 330px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--round); color: var(--ink); background: var(--cream); font-size: 1.125rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bo-dark); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: #fff; padding: 8px 14px; border-radius: 12px; border: 3px solid var(--line); }
.skip:focus { left: 8px; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- logo word ---------- */
.logo { font-weight: 800; letter-spacing: 0.005em; line-height: 1.02; margin: 0; }
.logo span { -webkit-text-stroke: 0.085em var(--c-dark); paint-order: stroke fill; color: var(--c);
  text-shadow: 0 0.06em 0 #fff, 0 -0.06em 0 #fff, 0.06em 0 0 #fff, -0.06em 0 0 #fff, 0.045em 0.045em 0 #fff, -0.045em 0.045em 0 #fff, 0.045em -0.045em 0 #fff, -0.045em -0.045em 0 #fff, 0 0.11em 0 rgba(58, 51, 80, 0.25); }
.logo .w-bo { --c: var(--bo); --c-dark: var(--bo-dark); }
.logo .w-mi { --c: var(--mimi); --c-dark: var(--mimi-dark); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky0) 0%, var(--sky1) 78%); }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: clamp(48px, 8vw, 96px) 20px 8px; }
.hero .logo { font-size: clamp(3.1rem, 10vw, 6.4rem); }
.tagline { margin: 14px auto 0; max-width: 30ch; font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 800; color: var(--ink); text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 0.7em 1.35em; border-radius: 999px; border: 3px solid var(--line); box-shadow: 0 5px 0 var(--line); font: 800 1.2rem/1.2 var(--round); color: var(--ink); text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--line); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-bo { background: var(--bo); color: #fff; }
.btn-mi { background: var(--mimi); }
.btn-small { font-size: 1.05rem; padding: 0.6em 1.15em; }

.sky-art { position: absolute; z-index: 1; pointer-events: none; user-select: none; }
.sun { width: clamp(70px, 9vw, 128px); right: clamp(10px, 6vw, 110px); top: clamp(14px, 3vw, 40px); animation: spin 60s linear infinite; }
.cloud { animation: drift 18s ease-in-out infinite alternate; }
.cloud.c1 { width: clamp(90px, 11vw, 150px); left: 4%; top: clamp(70px, 9vw, 120px); }
.cloud.c2 { width: clamp(60px, 7vw, 96px); left: 27%; top: clamp(16px, 3vw, 36px); animation-duration: 23s; }
.cloud.c3 { width: clamp(70px, 8vw, 118px); right: 22%; top: clamp(110px, 15vw, 210px); animation-duration: 20s; animation-delay: -6s; }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.meadow { position: relative; height: var(--H); margin-top: clamp(-10px, -1vw, 0px); }
.meadow .hills { position: absolute; inset: 0; width: 100%; height: 100%; }
.hills path { vector-effect: non-scaling-stroke; }
.meadow img { position: absolute; pointer-events: none; user-select: none; }
.char { width: calc(var(--H) * 0.62); z-index: 3; animation: bob 3.4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.char.bo { left: calc(17% - var(--H) * 0.31); bottom: calc(var(--H) * 0.384); }
.char.mi { left: calc(83% - var(--H) * 0.31); bottom: calc(var(--H) * 0.269); animation-delay: -1.7s; }
.frog { width: calc(var(--H) * 0.27); left: calc(50% - var(--H) * 0.135); bottom: calc(var(--H) * 0.2); z-index: 3; }
.flower { width: calc(var(--H) * 0.1); z-index: 2; }
@keyframes bob { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-7px) rotate(1deg); } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.15; margin: 0 0 14px; font-weight: 800; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); max-width: 46ch; margin: 0 0 28px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.card { background: #fff; border: 3px solid var(--line); border-radius: 26px; box-shadow: 0 6px 0 var(--line); padding: 26px 24px; }

.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding-top: 40px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: -20px; left: 22px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--line); font-weight: 800; font-size: 1.35rem; background: var(--st, var(--mimi)); color: var(--ink); }
.steps li:nth-child(1) { --st: var(--bo-light); }
.steps li:nth-child(2) { --st: var(--pink-light); }
.steps li:nth-child(3) { --st: var(--green-pale); }
.steps li:nth-child(4) { --st: var(--mimi); }
.steps h3 { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.25; }
.steps p { margin: 0; }
.names { margin: 30px 0 0; font-size: 1.1rem; }

.alt { background: #fff; border-block: 3px solid var(--line); }
.chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.chips li { padding: 0.45em 1.05em; border-radius: 999px; border: 3px solid var(--line); font-weight: 800; font-size: 1.08rem; background: var(--chip); }
.chips li:nth-child(4n+1) { --chip: var(--bo-light); }
.chips li:nth-child(4n+2) { --chip: var(--mimi-light); }
.chips li:nth-child(4n+3) { --chip: var(--pink-light); }
.chips li:nth-child(4n+4) { --chip: var(--green-pale); }

.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tip { display: flex; flex-direction: column; }
.tip img { height: 92px; width: auto; margin: -58px auto 10px; }
.tip h3 { margin: 0 0 6px; font-size: 1.35rem; text-align: center; }
.tip p { margin: 0; }
.tips .card { margin-top: 50px; }

.where { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 8px auto 0; }
.where .card { text-align: center; }
.where .platform { font-size: 1.7rem; font-weight: 800; margin: 0; }
.where .handle { margin: 2px 0 18px; font-weight: 700; color: #5B5472; }
.where .yt { background: var(--bo-light); }
.where .tt { background: var(--mimi-light); }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--green-light); margin-top: 40px; padding: 8px 0 34px; }
.foot .edge { position: absolute; left: 0; right: 0; top: -38px; width: 100%; height: 40px; }
.foot .frog-peek { width: 86px; margin: -70px auto 6px; position: relative; z-index: 2; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; }
.foot p { margin: 0; }
.foot a { color: #173F18; font-weight: 800; }
.foot .note { width: 100%; font-size: 0.98rem; color: #24431F; }

/* ---------- inner pages ---------- */
.mini { background: linear-gradient(180deg, var(--sky0), var(--sky1)); position: relative; }
.mini .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 64px; }
.mini .logo { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.mini .logo a { text-decoration: none; }
.mini .hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56px; }
.doc { max-width: 760px; margin: 0 auto; padding: 40px 0 20px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 4px; }
.doc .date { margin: 0 0 26px; color: #5B5472; font-weight: 700; }
.doc h2 { font-size: 1.45rem; margin: 30px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 1.2em; }
.doc .en { margin-top: 44px; padding-top: 8px; border-top: 3px dashed #C9C3D9; }
.nf { text-align: center; padding: 30px 0 10px; }
.nf img { width: 150px; margin: 0 auto 10px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .tips { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .cta { flex-direction: column; align-items: center; }
  .cta .btn { width: min(320px, 100%); justify-content: center; }
  .cloud.c2 { display: none; }
  .steps { grid-template-columns: 1fr; }
  .where { grid-template-columns: 1fr; }
  .foot-grid { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* flower spots on the meadow (no inline styles: the CSP allows only this file) */
.f1 { left: 3%; bottom: 9%; } .f2 { left: 8.5%; bottom: 24%; } .f3 { left: 29%; bottom: 13%; } .f4 { left: 37%; bottom: 30%; }
.f5 { left: 61%; bottom: 26%; } .f6 { left: 69%; bottom: 8%; } .f7 { left: 92%; bottom: 24%; } .f8 { left: 96%; bottom: 6%; }
.mx { margin-inline: auto; }

/* phone hero: keep the sun clear of the title and the drops clear of the buttons */
.tagline, .lead, h2 { text-wrap: balance; }
@media (max-width: 560px) {
  .hero-inner { padding-top: 86px; padding-bottom: 30px; }
  .sun { width: 62px; top: 12px; right: 14px; }
  .cloud.c1 { top: 22px; left: 3%; width: 84px; }
  .cloud.c3 { top: 196px; right: 4%; width: 64px; }
}
