/*
Theme Name:   Kids EDA
Theme URI:    https://kidseda.com
Author:       Kids EDA
Author URI:   https://www.youtube.com/@kidseasydrawingart
Description:  Bright, fast theme for kidseda.com — easy drawing tutorials and online coloring for kids. Pairs with the Kids EDA Coloring plugin. Edit the homepage text, numbers, shop packs and social links in Appearance → Customize → Kids EDA.
Version:      1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  kidseda
Tags:         education, entertainment, custom-logo, custom-menu, featured-images
*/

/* ---------- fonts (self-hosted: nothing loads from Google) ---------- */
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url("assets/fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("assets/fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("assets/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

/* ---------- brand tokens ---------- */
:root {
	--sky: #1590E6;
	--sky-deep: #0B5FB0;
	--ice: #EAF5FE;
	--white: #FFFFFF;
	--ink: #1B2240;
	--ink-soft: #4B5675;
	--line: #CFE3F6;
	--red: #E8322B;
	--yellow: #FFC21A;
	--yellow-deep: #C99300;
	--blue: #1BA6F2;
	--green: #3CC13B;
	--eda: #9ADCFF;
	--display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
	--body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
	--radius: 18px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sky-deep); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .4em; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(38px, 6.5vw, 68px); font-weight: 800; }
h2 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100; left: 12px; top: 12px; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-deep); margin: 0 0 .6em; }
.eyebrow--light { color: #BFE4FF; }
.center { text-align: center; margin-top: 28px; }
.owner-note { background: #FFF6D6; border: 2px dashed var(--yellow-deep); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--ink); }
.text-link { font-weight: 800; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--body); font-weight: 800; font-size: 16px; line-height: 1.2;
	border: 0; border-radius: 999px; padding: 13px 22px;
	cursor: pointer; text-decoration: none;
	transition: transform .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-deep); }
.btn-yellow:hover { color: var(--ink); }
.btn-blue { background: var(--sky); color: var(--white); box-shadow: 0 4px 0 var(--sky-deep); }
.btn-blue:hover { color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.75); }
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,.12); }
.btn-outline { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { color: var(--ink); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--sky); }
.site-top {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
	background: var(--sky);
	border-bottom: 1px solid rgba(255,255,255,.18);
}
.admin-bar .site-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-top { top: 0; position: relative; } }
.site-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 10px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo svg { width: 52px; height: 30px; flex: none; }
.custom-logo { max-height: 56px; width: auto; display: block; }
.word { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; display: flex; align-items: baseline; }
.word span { -webkit-text-stroke: 2px var(--sky-deep); paint-order: stroke fill; text-shadow: 0 3px 0 var(--sky-deep); }
.k1 { color: var(--red); } .k2 { color: var(--yellow); } .k3 { color: var(--blue); } .k4 { color: var(--green); }
.word .eda { color: var(--eda); font-size: 22px; margin-left: 6px; -webkit-text-stroke: 0; text-shadow: none; letter-spacing: .04em; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 13px; border-radius: 999px; color: var(--white); font-weight: 800; font-size: 15px; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: rgba(255,255,255,.18); }

/* ---------- bands ---------- */
.band { padding-block: 64px; }
.band--ice { background: var(--ice); }
.band-hero {
	color: var(--white);
	background:
		radial-gradient(circle at 12% 30%, rgba(255,255,255,.10) 0 46px, transparent 47px),
		radial-gradient(circle at 88% 72%, rgba(255,255,255,.09) 0 72px, transparent 73px),
		radial-gradient(circle at 70% 12%, rgba(255,255,255,.07) 0 30px, transparent 31px),
		var(--sky);
}
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-block: 48px 60px; }
.hero h1 em { font-style: normal; color: var(--yellow); white-space: nowrap; }
.lead { font-size: 19px; max-width: 34em; color: #E6F3FF; margin: 14px 0 0; }
.hero .cta-row { margin-top: 26px; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 30px; }
.stat b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; }
.stat span { font-size: 14px; font-weight: 700; color: #D3EAFD; }
.steps3 { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.step {
	display: flex; align-items: center; gap: 14px;
	background: var(--white); color: var(--ink);
	border-radius: var(--radius); padding: 14px 16px;
	box-shadow: 0 6px 0 rgba(11, 95, 176, .45);
}
.step .n { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--white); }
.step:nth-child(1) .n { background: var(--red); } .step:nth-child(2) .n { background: var(--green); } .step:nth-child(3) .n { background: var(--sky); }
.step b { display: block; font-family: var(--display); font-size: 20px; line-height: 1.1; }
.step small { font-size: 14px; font-weight: 600; color: var(--ink-soft); }

.page-head .wrap { padding-block: 40px 44px; }
.page-head h1 { font-size: clamp(34px, 5.5vw, 56px); margin: 0; }
.page-head .lead { margin-top: 10px; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head > div { max-width: 640px; }
.sec-head p:last-child { color: var(--ink-soft); margin: 0; }
.sec-head h2 { margin-bottom: .25em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-block; background: var(--white); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px; text-decoration: none; }
a.chip:hover, .chip.is-current { border-color: var(--sky); background: var(--ice); color: var(--ink); }
.chip small { color: var(--ink-soft); font-weight: 700; }
.chips--light { margin-top: 16px; }
.chips--light .chip { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: var(--white); }
.theme-filter { margin-bottom: 28px; }

/* ---------- tutorials fallback ---------- */
.empty-tutorials { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--ice); border-radius: var(--radius); padding: 22px 24px; }
.empty-tutorials p { margin: 0; font-weight: 700; }

/* ---------- shop ---------- */
.shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pack { display: grid; gap: 10px; align-content: start; border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px; color: var(--ink); }
.pack--1 { background: #FFE1DE; } .pack--2 { background: #E3F8E1; } .pack--3 { background: #FFF3CC; } .pack--4 { background: var(--white); }
.pack h3 { margin: 0; }
.pack .price { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; margin: 0; }
.pack ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--ink-soft); }
.pack .btn { margin-top: 6px; justify-self: start; font-size: 15px; padding: 11px 18px; }
.tag { justify-self: start; background: var(--ink); color: var(--white); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- parents ---------- */
.parents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; color: var(--ink-soft); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 5px var(--green), inset 0 0 0 20px #fff; }
.signup { background: var(--white); border: 3px solid var(--ink); border-radius: 24px; padding: 24px; box-shadow: 0 8px 0 var(--ink); min-width: 0; }
.signup__title { font-family: var(--display); font-size: 26px; font-weight: 800; margin: 0 0 6px; }

/* ---------- content pages ---------- */
.entry { max-width: 760px; }
.entry--wide { max-width: 1160px; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { margin-top: 1.4em; font-size: clamp(24px, 3.4vw, 32px); }
.entry ul { padding-left: 22px; }
.entry li { margin-bottom: 4px; }
.entry .wp-block-image img, .entry__image img { border-radius: var(--radius); }
.entry .ke-about { max-width: 720px; font-size: 18px; }
.entry .alignwide { max-width: 1160px; }
.post-list { display: grid; gap: 22px; }
.post-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; }
.post-card__img img { border-radius: 12px; display: block; }
.post-card__title { font-size: 24px; margin: 0 0 6px; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.page-numbers { display: inline-block; min-width: 42px; text-align: center; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; font-weight: 800; color: var(--ink); }
.page-numbers.current { background: var(--sky); border-color: var(--sky); color: var(--white); }
input[type="search"], input[type="email"], input[type="text"] { font: 600 16px var(--body); padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; max-width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9D2EA; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 28px; padding-block: 40px 24px; align-items: start; }
.site-footer__brand p { margin: 12px 0 0; max-width: 32em; font-size: 15px; }
.site-footer .word span { -webkit-text-stroke-color: #0d1330; text-shadow: 0 3px 0 #0d1330; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer nav ul { grid-template-columns: repeat(2, minmax(0, auto)); gap: 8px 28px; }
.site-footer a { color: var(--white); font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 16px; font-size: 14px; }
.site-footer__legal p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
	.hero, .parents { grid-template-columns: minmax(0, 1fr); }
	.shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.band { padding-block: 44px; }
	.site-top__inner { padding-block: 8px; }
	.main-nav { width: 100%; overflow-x: auto; }
	.main-nav ul { flex-wrap: nowrap; }
	.main-nav a { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
	.word { font-size: 30px; }
	.hero { padding-block: 32px 44px; }
	.stats { gap: 20px; }
	.shop { grid-template-columns: minmax(0, 1fr); }
	.post-card { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
	.btn:hover { transform: none; }
}
@media print {
	.site-top, .site-footer, .band-hero { display: none; }
}
