* { margin: 0; padding: 0; box-sizing: border-box; }
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/baloo2.woff2') format('woff2');
}
:root { --font-display: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; }
h1, h2, h3, .btn-download, .cat-pill { font-family: var(--font-display); }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, #fdf2f8 0%, #ede9fe 45%, #e0f2fe 100%) fixed;
  color: #3b2d4f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }
main.wrap { flex: 1; padding-bottom: 60px; }

/* header */
.site-header { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.site-header::after { content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, #f9a8d4, #c4b5fd, #93c5fd, #99f6e4, #fde68a, #f9a8d4); }
.header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-icon { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 2px 5px rgba(168,85,247,.28)); transition: transform .25s ease; }
.brand:hover .brand-icon { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.38rem; color: #5b21b6; white-space: nowrap; }
.brand-name em { font-style: normal; background: linear-gradient(95deg, #ec4899 20%, #a855f7 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tagline { font-size: .64rem; font-weight: 600; color: #a08cc0; letter-spacing: .13em; text-transform: uppercase; margin-top: 3px; white-space: nowrap; }
@media (max-width: 879px) {
  .brand { flex: 1; }
  .brand-tagline { font-size: .55rem; letter-spacing: .07em; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
@media (max-width: 379px) { .brand-tagline { display: none; } }

/* mobile nav (CSS-only) */
.nav-open { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { width: 46px; height: 46px; border-radius: 15px; background: #fff; border: 2px solid #e9d5ff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; flex: none; transition: border-color .2s; }
.nav-burger:hover { border-color: #c084fc; }
.nav-burger span { display: block; width: 20px; height: 3px; border-radius: 3px; background: #7c5cbf;
  transition: transform .25s ease, opacity .2s ease; }
.nav-open:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open:checked ~ .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav-open:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-open:focus-visible ~ .nav-burger { outline: 3px solid #c084fc; outline-offset: 2px; }
.header-nav { display: none; position: absolute; top: calc(100% + 10px); left: 12px; right: 12px;
  flex-direction: column; background: #fff; border: 1px solid #f0e6ff; border-radius: 22px; padding: 10px;
  box-shadow: 0 18px 44px rgba(139,92,246,.22); }
.nav-open:checked ~ .header-nav { display: flex; animation: navdrop .22s ease; }
@keyframes navdrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.header-nav a { font-family: var(--font-display); display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 16px; border-radius: 15px; color: #5b21b6; text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.header-nav a:hover:not(.nav-cta) { background: #faf5ff; color: #a855f7; }
.nav-cta { margin-top: 6px; }
.header-nav .nav-cta, .btn-download { background: linear-gradient(90deg, #a855f7, #ec4899); color: #fff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .35); }
.header-nav .nav-cta:hover, .btn-download:hover { filter: brightness(1.08); }
@media (min-width: 880px) {
  .nav-burger, .nav-open { display: none; }
  .header-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 2px;
    background: none; border: none; box-shadow: none; padding: 0; }
  .header-nav a { padding: 9px 13px; font-size: .98rem; }
  .nav-cta { margin: 0 0 0 10px; padding: 10px 20px; border-radius: 9999px; }
}

/* hero */
.hero { text-align: center; padding: 44px 0 26px; }
@media (max-width: 879px) {
  .hero { padding: 20px 0 12px; }
  .hero .lead { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .card.coloring-card img { aspect-ratio: 1 / 1; }
}
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(90deg, #a855f7, #ec4899, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.hero .lead { color: #6b5b8a; font-size: 1.1rem; max-width: 680px; margin: 0 auto; line-height: 1.6; }

/* grids + cards */
.grid { display: grid; gap: 22px; }
.galleries-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding: 18px 0 8px; }
.galleries-grid.small { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.coloring-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding: 18px 0; }
.card { background: #fff; border: 1px solid #f0e6ff; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 4px 16px rgba(139, 92, 246, .08); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(139, 92, 246, .18); }
.card img { width: 100%; height: auto; aspect-ratio: 1 / 1.2; object-fit: cover; object-position: top; background: #fff; border-bottom: 1px solid #f5efff; }
.card h2, .card h3 { font-size: 1.05rem; padding: 12px 14px 4px; color: #4c3575; }
.card .count { padding: 0 14px 14px; color: #a08cc0; font-size: .85rem; }

/* gallery page */
.breadcrumbs { padding: 18px 0 0; font-size: .85rem; color: #a08cc0; }
.breadcrumbs a { color: #7c5cbf; text-decoration: none; }
.coloring-card { align-items: center; padding-bottom: 16px; }
.btn-download { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 22px; border-radius: 9999px;
  font-weight: 700; text-decoration: none; font-size: .95rem; }

/* how it works */
.how { background: #fff; border: 1px solid #f0e6ff; border-radius: 18px; padding: 26px 30px; margin-top: 28px; }
.how h2 { color: #4c3575; margin-bottom: 14px; }
.how ol { padding-left: 22px; color: #6b5b8a; line-height: 2; }

.related { margin-top: 34px; }
.related h2 { color: #4c3575; margin-bottom: 6px; }

/* footer */
.site-footer { background: rgba(255,255,255,.7); border-top: 1px solid #f0e6ff; padding: 22px 0; text-align: center;
  color: #a08cc0; font-size: .85rem; margin-top: auto; }
.site-footer p { margin: 4px 0; }

/* static pages */
.static-page { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid #f0e6ff; border-radius: 18px; padding: 34px 38px; margin-top: 24px; }
.static-page h1 { color: #4c3575; margin-bottom: 16px; font-size: 1.7rem; }
.static-page h2 { color: #6b4fa0; margin: 22px 0 8px; font-size: 1.15rem; }
.static-page p, .static-page li { color: #5c4d7a; line-height: 1.7; }
.static-page ul, .static-page ol { padding-left: 24px; margin: 8px 0; }
.static-page a { color: #a855f7; }

/* contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.contact-form label { font-weight: 600; color: #4c3575; font-size: .92rem; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 5px; padding: 10px 14px; border: 2px solid #e9d5ff; border-radius: 12px; font: inherit; color: #3b2d4f; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #c084fc; }
.contact-form button { border: none; cursor: pointer; align-self: flex-start; }
.contact-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 14px 18px; border-radius: 12px; }

/* category pills on hub */
.cat-strip { text-align: center; margin: 4px 0 10px; }
.cat-strip h2 { color: #4c3575; font-size: 1.1rem; margin-bottom: 12px; }
.cat-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cat-pill { padding: 8px 20px; border-radius: 9999px; background: #fff; border: 2px solid #e9d5ff; color: #7c5cbf; font-weight: 600; text-decoration: none; font-size: .92rem; }
.cat-pill:hover { border-color: #c084fc; color: #a855f7; }

/* footer columns */
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding: 26px 20px 10px; text-align: left; }
.fcol h4 { color: #6b4fa0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.fcol a { display: block; color: #8b7ab0; text-decoration: none; font-size: .9rem; padding: 3px 0; }
@media (max-width: 879px) { .fcol a { padding: 11px 0; } }
.fcol a:hover { color: #a855f7; }
.fcol .lang-current { display: block; color: #5b21b6; font-weight: 700; font-size: .9rem; padding: 3px 0; }
.footer-base { border-top: 1px solid #f0e6ff; margin-top: 14px; padding-top: 14px; }
