/* Dr. Alo Kids: parent-facing companion site. No external fonts, no scripts. */
:root {
  --navy: #132A47;
  --pink: #E81074;
  --pink-dark: #B80C5B;
  --red: #E5262E;
  --sky: #DFF3FF;
  --sky-2: #BFE6FF;
  --meadow: #5DBB46;
  --meadow-soft: #E8F7E1;
  --sun: #FFD84A;
  --ink: #1B2B40;
  --muted: #4A5B72;
  --card: #FFFFFF;
  --line: #D7E6F3;
  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); font-size: 1.125rem; line-height: 1.6;
  background: linear-gradient(180deg, var(--sky) 0, #F4FBFF 520px, #FFFFFF 900px) no-repeat, #FFFFFF;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-dark); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--font); color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 2.6vw, 1.35rem); color: var(--muted); }
.pink { color: var(--pink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); border-bottom: 2px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.82); backdrop-filter: blur(8px); } }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.35rem; white-space: nowrap; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 2px 8px rgba(19,42,71,.18); }
.brand b { color: var(--pink); font-weight: 800; }
.nav-desktop { display: none; }
.nav-desktop ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a, .menu a { display: block; text-decoration: none; color: var(--navy); font-weight: 700; padding: 10px 14px; border-radius: 999px; }
.nav-desktop a:hover, .menu a:hover { background: var(--sky); color: var(--navy); }
.nav-desktop a[aria-current="page"], .menu a[aria-current="page"] { background: var(--navy); color: #fff; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 800; color: #fff; background: var(--navy); padding: 10px 18px; border-radius: 999px; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: ""; width: 18px; height: 12px; border-top: 3px solid #fff; border-bottom: 3px solid #fff; box-shadow: inset 0 3px 0 0 transparent; background: linear-gradient(#fff,#fff) center/100% 3px no-repeat; }
.menu[open] summary { background: var(--pink); }
.menu ul { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 8px; min-width: 220px; box-shadow: 0 14px 34px rgba(19,42,71,.18); }
.menu li a { padding: 12px 16px; font-size: 1.1rem; }
@media (min-width: 980px) { .nav-desktop { display: block; } .menu { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font-weight: 800; font-size: 1.1rem; text-decoration: none; border: 3px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-yt { background: var(--red); color: #fff; box-shadow: 0 6px 0 #A8161C; }
.btn-yt:hover { color: #fff; box-shadow: 0 8px 0 #A8161C; }
.btn-yt svg { width: 26px; height: 26px; flex: none; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { color: var(--navy); background: var(--sky); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 6px 0 var(--pink-dark); }
.btn-pink:hover { color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .btn, html { transition: none; scroll-behavior: auto; } .btn:hover { transform: none; } }

/* Hero */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.tagline { display: inline-block; background: #fff; color: var(--pink); font-weight: 800; border: 3px solid var(--pink); border-radius: 999px; padding: 6px 16px; font-size: 1.05rem; margin-bottom: 14px; }
.hero h1 .k { color: var(--pink); }
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(19,42,71,.20); border: 6px solid #fff; background: var(--sky-2); }
.hero-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .hero { padding: 56px 0 64px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }

/* Sections */
section { padding: 40px 0; }
.band { background: var(--meadow-soft); }
.band-sky { background: var(--sky); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy a { color: #FFC4DE; }
.page-head { padding: 34px 0 10px; }
.page-head p { max-width: 720px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--pink); color: var(--ink); }
.card .emoji { font-size: 2rem; line-height: 1; margin-bottom: 8px; display: block; }
.more { font-weight: 800; color: var(--pink-dark); }

/* Friends */
.friend { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.friend img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 6px 16px rgba(19,42,71,.18); }
.friend .role { display: inline-block; font-size: .95rem; font-weight: 800; color: #fff; background: var(--navy); border-radius: 999px; padding: 2px 12px; margin-bottom: 8px; }
.friend .say { font-weight: 800; color: var(--pink-dark); }
@media (min-width: 640px) { .friend { grid-template-columns: 128px 1fr; } .friend img { width: 128px; height: 128px; } }
.feature-img { border-radius: var(--radius); border: 6px solid #fff; box-shadow: 0 14px 30px rgba(19,42,71,.16); }

/* Songs */
.song-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .song-list { grid-template-columns: 1fr 1fr; } }
.song { background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 16px 18px; display: grid; grid-template-columns: 46px 1fr; gap: 14px; }
.song .num { width: 46px; height: 46px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 1.15rem; }
.song.theme .num { background: var(--red); color: #fff; }
.song h3 { font-size: 1.2rem; margin: 2px 0 4px; }
.song p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.song .tag { display: inline-block; font-size: .85rem; font-weight: 800; color: var(--pink-dark); margin-top: 6px; }

/* Coloring */
.free { display: flex; flex-direction: column; }
.free img { border-radius: 16px; border: 2px solid var(--line); background: #fff; aspect-ratio: 1700 / 2200; object-fit: contain; width: 100%; }
.free h3 { margin: 14px 0 2px; font-size: 1.2rem; }
.free .hint { color: var(--muted); font-size: 1rem; margin-bottom: 12px; }
.free .dl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.free .dl a { flex: 1 1 auto; text-align: center; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; text-decoration: none; padding: 8px 14px; }
.free .dl a.pdf { background: var(--navy); color: #fff; }
.free .dl a.png { background: #fff; color: var(--navy); border: 3px solid var(--navy); }
.soon { display: inline-block; background: var(--sun); color: var(--navy); font-weight: 800; padding: 4px 14px; border-radius: 999px; margin-bottom: 10px; }
.book-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .book-grid { grid-template-columns: .8fr 1.2fr; gap: 40px; } }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.habit { border-left: 8px solid var(--meadow); }
.habit.h-red { border-left-color: var(--red); }
.habit.h-blue { border-left-color: #2F9BE0; }
.habit.h-pink { border-left-color: var(--pink); }
.habit.h-sun { border-left-color: #F2B705; }
.habit.h-navy { border-left-color: var(--navy); }
.habit .kid { font-weight: 800; color: var(--pink-dark); }
.note { background: #FFF8DC; border: 3px solid #F5DC8A; border-radius: 22px; padding: 18px 20px; }
.doc { display: grid; gap: 24px; align-items: center; }
.doc img { border-radius: var(--radius); border: 6px solid #fff; box-shadow: 0 14px 30px rgba(19,42,71,.16); max-width: 360px; width: 100%; }
@media (min-width: 820px) { .doc { grid-template-columns: 360px 1fr; gap: 44px; } }
.creds { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 10px; }
.creds li { background: var(--navy); color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 999px; font-size: 1rem; }
.mail { font-size: clamp(1.2rem, 4.5vw, 1.6rem); font-weight: 800; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy); color: #DCE7F5; padding: 36px 0 28px; margin-top: 30px; }
.site-footer a { color: #fff; }
.foot { display: grid; gap: 18px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.4fr 1fr; } }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .small { font-size: .95rem; color: #B9C8DC; }
.foot .brandline { font-weight: 800; font-size: 1.25rem; color: #fff; }
.foot .brandline b { color: #FF7DB8; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: .95rem; }
a.card.friend { display: grid; align-items: center; }
@media (max-width: 479px) { article.friend { grid-template-columns: 1fr; } article.friend img { width: 112px; height: 112px; } }
@media (max-width: 899px) { .hero-art { order: -1; } .hero { padding-top: 16px; } }
