/* ColorPageArt static pages. Variable names are shared with the blog HTML (inline styles use --line, --bg, --radius, --ink, --blue …). */
:root {
  --ink: #1B1C2C;
  --ink-2: #4A4C5E;
  --muted: #74768A;
  --bg: #F7F6F2;
  --paper: #FFFFFF;
  --line: #E6E3DC;
  --yellow: #FFD43B;
  --pink: #FF6B9D;
  --blue: #4DABF7;
  --green: #51CF66;
  --purple: #9775FA;
  --orange: #FF922B;
  --red: #E60023;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 28, 44, .06), 0 8px 24px rgba(27, 28, 44, .06);
  --display: 'Baloo 2', system-ui, sans-serif;
  --text: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
svg { flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 23px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.logo b { color: var(--pink); }
.logo-mark { display: block; width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; color: var(--ink-2); }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.head-search { margin-left: auto; display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 4px 0 14px; height: 42px; width: 240px; }
.head-search input { border: 0; background: none; font: inherit; font-size: 14px; flex: 1; min-width: 0; outline: none; color: var(--ink); }
.head-search button { border: 0; background: none; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.head-search svg, .btn svg, .qp svg { width: 18px; height: 18px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 1080px) {
  .head-search { width: 44px; padding: 0; justify-content: center; }
  .head-search input { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .head-search { margin-left: auto; }
  .nav-toggle { margin-left: 8px; }
  .nav { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
}

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 16px 20px 4px; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13.5px; color: var(--muted); }
.crumbs.wrap ol { padding-left: 0; padding-right: 0; }
.crumbs li + li::before { content: '›'; margin: 0 6px 0 2px; color: #b9b6ad; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--text); padding: 12px 18px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn-lg { padding: 15px 22px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { box-shadow: 0 4px 0 var(--pink); }
.btn-yellow { background: var(--yellow); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-line { background: #fff; }
.btn-pin { background: var(--red); border-color: var(--red); color: #fff; }
.btn-pin:hover { box-shadow: 0 4px 0 #8c0016; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- chips / badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
a.chip:hover { border-color: var(--ink); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 12px/1.4 var(--text); background: var(--bg); }
.b-easy { background: #D3F9D8; color: #1F6E2C; }
.b-medium { background: #FFF3BF; color: #7A5B00; }
.b-hard { background: #FFE3E3; color: #A61E1E; }
.kicker { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.byline { font-size: 14px; color: var(--muted); }
.byline a { color: var(--ink-2); }
.lead { font-size: 18px; color: var(--ink-2); }

/* ---------- grid of cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { display: block; aspect-ratio: 1; padding: 10px; background: #fff; border-bottom: 1px solid var(--line); }
.card.tall .card-img { aspect-ratio: 3 / 4; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 14px; flex-wrap: wrap; }
.card-body h3 { font-size: 16.5px; margin: 0; flex: 1 1 100%; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.qp { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.qp:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px; }
  .card-body h3 { font-size: 15px; }
  .qp { width: 32px; height: 32px; }
}

/* ---------- hub tiles ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hub-tile { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 14px; background: #fff; transition: box-shadow .15s ease, border-color .15s ease; }
.hub-tile:hover { box-shadow: var(--shadow); border-color: var(--accent, var(--ink)); }
.hub-thumbs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: color-mix(in srgb, var(--accent, #ccc) 14%, #fff); border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.hub-thumbs img { background: #fff; border-radius: 8px; aspect-ratio: 1; object-fit: contain; width: 100%; height: auto; }
.hub-name { font: 800 19px/1.2 var(--display); }
.hub-count { font-size: 13px; color: var(--muted); align-self: center; font-weight: 600; }

/* ---------- hero blocks ---------- */
.hub-hero { background: color-mix(in srgb, var(--accent, var(--yellow)) 13%, #fff); border-bottom: 1px solid var(--line); padding: 28px 0 32px; margin: 10px 0 28px; }
.hub-hero h1 { max-width: 900px; margin-bottom: 6px; }
.hub-hero .lead { max-width: 760px; }
.hub-emoji { font-size: 44px; line-height: 1; display: block; margin-bottom: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.home-hero { background: linear-gradient(180deg, #FFF8DB, #fff); border-bottom: 1px solid var(--line); padding: 36px 0 40px; margin-bottom: 20px; }
.home-hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.home-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-art img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.hero-art img:nth-child(odd) { transform: rotate(-2deg); }
.hero-art img:nth-child(even) { transform: rotate(2deg) translateY(10px); }
.big-search { display: flex; gap: 8px; margin: 22px 0 18px; max-width: 560px; }
.big-search input { flex: 1; min-width: 0; height: 54px; border: 2px solid var(--ink); border-radius: 999px; padding: 0 22px; font: inherit; font-size: 16px; }
.big-search .btn { height: 54px; }
@media (max-width: 820px) {
  .home-hero .wrap { grid-template-columns: 1fr; }
  .hero-art { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hero-art img { padding: 4px; }
}

/* ---------- sections ---------- */
.section { margin: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }
.prose { max-width: 780px; font-size: 17px; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 1.4em; }
.prose li { margin-bottom: 6px; }
.why-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.why-grid li { background: var(--bg); border-radius: var(--radius); padding: 18px; color: var(--ink-2); font-size: 15px; }
.why-grid b { display: block; font: 800 19px/1.3 var(--display); color: var(--ink); margin-bottom: 4px; }

/* ---------- item page ---------- */
.item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; margin: 14px 0 10px; }
.item-art { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.item-art img { display: block; width: 100%; height: min(65vh, 640px); object-fit: contain; }
.item-art.tall { max-width: 560px; justify-self: center; width: 100%; }
.item-side h1 { margin-bottom: 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.facts li { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.facts b { font-size: 15px; }
.facts .badge { align-self: flex-start; }
.funfact { background: #FFF8DB; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.funfact h2, .ideas h2 { font-size: 18px; margin-bottom: 6px; }
.funfact p { margin: 0; }
.ideas { margin-bottom: 18px; }
.notes { margin: 0; padding-left: 20px; color: var(--ink-2); }
.also { font-size: 15px; color: var(--ink-2); }
.also a { font-weight: 600; }
.tips ol { padding-left: 22px; max-width: 780px; color: var(--ink-2); font-size: 17px; }
.tips li { margin-bottom: 6px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin: 34px 0; align-items: stretch; }
.pager a { text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 700; display: flex; flex-direction: column; }
.pager a:hover { border-color: var(--ink); }
.pager small { font-weight: 600; color: var(--muted); font-size: 12px; }
.pager a[rel="next"] { text-align: right; }
.pager-mid { justify-content: center; background: var(--bg); }
@media (max-width: 900px) {
  .item { grid-template-columns: 1fr; gap: 20px; }
  .item-art { position: static; padding: 10px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(2) { border-right: 0; }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .toolbar .btn { flex: 1 1 calc(50% - 10px); }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-mid { grid-column: 1 / -1; grid-row: 1; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 800 22px/1 var(--display); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

/* ---------- stories / blog ---------- */
.story h1, .post h1 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 6px; }
.lesson { background: #FFF0F6; border-radius: var(--radius-sm); padding: 12px 16px; margin: 14px 0 24px; }
.story-body { font-size: 18px; line-height: 1.85; }
.story-body h2 { margin-top: 1.6em; }
.story-body h3 { margin-top: 1.4em; }
.story-body ul, .story-body ol { padding-left: 22px; }
.story-body li { margin-bottom: 6px; }
.story-body a { color: #1864AB; font-weight: 600; }
.story-body .btn { color: var(--ink); }
.story-body .btn-ink, .story-body .btn-pink { color: #fff; }
.questions { background: var(--bg); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; }
.questions ol { margin: 0; padding-left: 20px; }
.story-color { display: flex; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.story-color img { width: 160px; border-radius: 12px; border: 1px solid var(--line); }
.story-color .toolbar { margin: 10px 0 0; }
.story-list, .post-list { display: grid; gap: 14px; }
.story-card, .post-card { display: flex; gap: 16px; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; }
.story-card:hover, .post-card:hover { border-color: var(--ink); }
.story-card img { width: 96px; height: 96px; border-radius: 12px; border: 1px solid var(--line); }
.story-card span, .post-card span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story-card small, .post-card small { color: var(--muted); font-weight: 600; font-size: 13px; }
.story-card b, .post-card b { font: 800 20px/1.25 var(--display); }
.story-card em, .post-card em { font-style: normal; color: var(--ink-2); font-size: 15px; }
.post-icon { width: 76px; height: 76px; border-radius: 16px; display: grid; place-items: center; font-size: 34px; flex: none; }
.cta { background: #FFF8DB; border-radius: var(--radius); padding: 22px; margin: 36px 0; }
.legal h2 { margin-top: 1.4em; font-size: 22px; }
@media (max-width: 560px) {
  .story-color { flex-direction: column; align-items: flex-start; }
  .post-icon { width: 56px; height: 56px; font-size: 26px; }
  .story-card img { width: 72px; height: 72px; }
}

/* ---------- bundles ---------- */
.bundles { list-style: none; padding: 0; margin: 0 0 40px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bundles li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bundles li:last-child { border-bottom: 0; }
.bundles a { font-weight: 700; text-decoration: none; flex: 1; }
.bundles small { color: var(--muted); font-weight: 600; }
.b-emoji { font-size: 24px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #D6D7E2; margin-top: 70px; padding: 48px 0 24px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.foot-brand .logo { color: #fff; margin-bottom: 12px; }
.foot-brand p { max-width: 320px; }
.site-foot h4 { color: #fff; font-size: 17px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-base { border-top: 1px solid #34364A; margin-top: 30px; padding-top: 18px; font-size: 13px; color: #A3A5B8; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- color online ---------- */
.colorer { position: fixed; inset: 0; z-index: 90; background: rgba(27, 28, 44, .55); display: grid; place-items: center; padding: 12px; }
.colorer-box { background: #fff; border-radius: 22px; width: min(1000px, 100%); max-height: 100%; display: grid; grid-template-columns: 1fr 230px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.colorer-stage { background: var(--bg); display: grid; place-items: center; padding: 14px; min-height: 0; }
.colorer-stage svg { width: 100%; height: auto; max-height: calc(100vh - 80px); background: #fff; border-radius: 12px; touch-action: manipulation; }
.colorer-stage svg * { cursor: pointer; }
.colorer-side { padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.colorer-side h2 { font-size: 20px; margin: 0; }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.palette button { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .15); cursor: pointer; }
.palette button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.colorer-actions { display: grid; gap: 8px; }
.colorer-close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 760px) {
  .colorer { padding: 0; }
  .colorer-box { grid-template-columns: 1fr; border-radius: 0; height: 100%; grid-template-rows: 1fr auto; }
  .colorer-stage svg { max-height: 58vh; }
  .colorer-side { padding: 12px; gap: 10px; }
  .palette { grid-template-columns: repeat(10, 1fr); gap: 5px; }
  .colorer-actions { grid-template-columns: repeat(4, 1fr); }
  .colorer-actions .btn { padding: 10px 6px; font-size: 13px; }
}

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 95; box-shadow: var(--shadow); }

/* ---------- print ---------- */
#print-area { display: none; }
@media print {
  @page { size: auto; margin: 10mm; }
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; }
  #print-area h1 { font: 800 22pt/1.1 var(--display); text-align: center; margin: 0 0 6mm; }
  #print-area img { width: 100%; max-height: 245mm; object-fit: contain; margin: 0 auto; }
  #print-area .print-foot { text-align: center; font-size: 9pt; color: #777; margin-top: 4mm; }
}

/* Like (heart) button: sits inside the card's image corner so it is never clipped. */
.like { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); cursor: pointer; padding: 0; transition: transform .12s ease; }
.like svg { fill: none; stroke: #1f2937; stroke-width: 2; stroke-linejoin: round; }
.like:hover { transform: scale(1.08); }
.like[aria-pressed="true"] svg { fill: #f03e3e; stroke: #f03e3e; }
.like.pop { animation: like-pop .3s ease; }
@keyframes like-pop { 50% { transform: scale(1.25); } }
