/* Sneaky Coloring Books · look inspired by sneakyprodunktions.com: white paper, hand-lettered headings,
   dark gray ink, navy accent, crayon colors only in the art and in "Coloring Book" */
@font-face { font-family: 'Dokdo'; font-weight: 400; font-display: swap; src: url(fonts/dokdo-400.woff2) format('woff2'); }
@font-face { font-family: 'Shantell Sans'; font-weight: 300 800; font-display: swap; src: url(fonts/shantell-sans-var.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --paper: #fbf9f3;
  --card: #ffffff;
  --ink: #393d34;
  --ink-dark: #10120d;
  --navy: #293f58;
  --line: #b9b2a3;
  --red: #e53935; --orange: #fb8c00; --yellow: #f9a825; --green: #43a047; --blue: #1e88e5; --purple: #8e24aa;
  /* a hand-drawn, slightly uneven border */
  --sketch: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Shantell Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: 'Dokdo', 'Shantell Sans', sans-serif; font-weight: 400; color: var(--ink); line-height: 1; margin: 0 0 0.4em; text-wrap: balance; }
h2 { font-size: clamp(2.6rem, 6vw, 3.6rem); text-align: center; }
h3 { font-size: 2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Buttons: hand-drawn outline, like a crayon line around a word */
.button {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink-dark);
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  padding: 0.5em 1.3em 0.45em;
  font-family: 'Dokdo', sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 3px 4px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--ink); }
.button.light { background: var(--card); }
.button.small { font-family: 'Shantell Sans', sans-serif; font-weight: 700; font-size: 0.95rem; padding: 0.35em 0.9em; box-shadow: 2px 3px 0 var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  border-bottom: 2px dashed var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; flex: none; }
.brand span { font-family: 'Dokdo', sans-serif; font-size: 2rem; line-height: 1; color: var(--ink); }

/* Opening */
.hero { display: grid; gap: 30px; align-items: center; padding: 30px 16px 20px; }
.hero-text { max-width: 580px; }
.badge {
  display: inline-block; margin-bottom: 16px;
  border: 2px solid var(--navy); border-radius: var(--sketch); color: var(--navy);
  padding: 0.15em 0.9em; font-weight: 700; font-size: 1rem;
}
.hero h1 { font-size: clamp(3.4rem, 10vw, 5.6rem); line-height: 0.9; margin-bottom: 0.2em; }
.crayon { display: block; font-size: 0.62em; letter-spacing: 0.03em; margin-top: 0.12em; }
.crayon span:nth-child(6n+1) { color: var(--red); }
.crayon span:nth-child(6n+2) { color: var(--orange); }
.crayon span:nth-child(6n+3) { color: var(--yellow); }
.crayon span:nth-child(6n+4) { color: var(--green); }
.crayon span:nth-child(6n+5) { color: var(--blue); }
.crayon span:nth-child(6n) { color: var(--purple); }
.subtitle { font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.lead { font-size: 1.15rem; }
.cover {
  width: min(390px, 84vw); justify-self: center;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transform: rotate(2deg);
}

/* Row of crayon heads */
.gang {
  list-style: none; margin: 18px auto 0; padding: 0 16px; max-width: 600px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px 10px; align-items: center;
}
.gang li:nth-child(odd) img { transform: rotate(-5deg); }
.gang li:nth-child(even) img { transform: rotate(4deg); }

/* Dashed trail between sections */
.trail { display: block; width: min(900px, 92%); height: 70px; margin: 8px auto; overflow: visible; }
.trail path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 10 9; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.75; }

/* Content bands */
.band { padding: 26px 16px 34px; }
.band > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.intro { text-align: center; }
.center { text-align: center; }
.center p { max-width: 660px; margin-left: auto; margin-right: auto; }

.pages { list-style: none; padding: 0; display: grid; gap: 24px; grid-template-columns: 1fr; }
.pages li {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--sketch);
  padding: 14px 18px 8px; text-align: center;
}
.pages li:nth-child(odd) { transform: rotate(-0.6deg); }
.pages li:nth-child(even) { transform: rotate(0.6deg); }
.pages img { margin: 0 auto 8px; }
.pages h3 { margin-bottom: 0.15em; }
.pages p { font-size: 1rem; }

.checks { list-style: none; padding: 0; max-width: 740px; }
.checks li { position: relative; padding-left: 2.2em; margin-bottom: 0.8em; }
.checks li::before {
  content: '✓'; position: absolute; left: 0.2em; top: -0.12em;
  font-family: 'Dokdo', sans-serif; font-size: 1.9em; line-height: 1; color: var(--green);
}

.free {
  display: grid; gap: 26px; align-items: center;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--sketch);
  padding: 24px;
}
.free img { width: min(250px, 70vw); justify-self: center; border: 1px solid #ddd6c8; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); transform: rotate(-2deg); }
.free h2 { text-align: left; }
.small-print { font-size: 0.95rem; color: #5b5f55; }

.about h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); }

.foot { border-top: 2px dashed var(--line); text-align: center; padding: 24px 16px 30px; font-size: 0.95rem; color: #5b5f55; }
.foot p { margin: 0.2em 0; }

@media (min-width: 640px) {
  .pages { grid-template-columns: repeat(2, 1fr); }
  .free { grid-template-columns: auto 1fr; }
}
@media (min-width: 900px) {
  .top { padding: 14px 32px; }
  .hero { grid-template-columns: 1.15fr 1fr; padding: 46px max(32px, calc((100vw - 1080px) / 2)) 20px; }
  .pages { grid-template-columns: repeat(3, 1fr); }
  .gang { max-width: 1100px; grid-template-columns: repeat(10, 1fr); gap: 14px; }
}
.top .short { display: none; }
@media (max-width: 560px) {
  .brand span { font-size: 1.6rem; white-space: nowrap; }
  .top .long { display: none; }
  .top .short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
