/* Made Very Simple — site styles */
:root {
  --bg: #FBF7F0;
  --surface: #FFFFFF;
  --ink: #1C1B22;
  --muted: #5E5B66;
  --line: #E8E1D5;
  --accent: #F2643A;
  --accent-ink: #FFFFFF;
  --ai: #6B4EFF;
  --health: #1F9D6B;
  --love: #E04E7A;
  --sport: #2F7DE1;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(28,27,34,.06), 0 8px 24px rgba(28,27,34,.06);
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15141A;
    --surface: #1E1D25;
    --ink: #F3F0EA;
    --muted: #A9A5B2;
    --line: #2E2C36;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --ai: #9A86FF;
    --health: #3CC08C;
    --love: #F27A9C;
    --sport: #5C9DF0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

/* Hero */
.hero { padding: 72px 0 48px; }
.hero .eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
  margin-bottom: 14px;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.hero h1 .underline {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 35%, transparent) 62%);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 0;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Sections */
section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  text-decoration: none; display: flex; flex-direction: column; gap: 6px;
  transition: transform .15s ease;
}
a.card:hover { transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.topic { border-top: 5px solid var(--c, var(--accent)); min-height: 180px; }
.topic .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  margin-bottom: 8px;
}
.topic .status { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--c); }
.topic.soon { opacity: .75; }
.t-ai { --c: var(--ai); } .t-health { --c: var(--health); }
.t-love { --c: var(--love); } .t-sport { --c: var(--sport); }

/* Tips */
.tip .num {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 2rem; color: var(--ai); line-height: 1;
}
.tip code {
  display: block; margin-top: 10px; padding: 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--ai) 8%, var(--bg));
  font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; color: var(--ink);
}

/* Ads / affiliate slots */
.ad-zone { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 20px; }
.ad-zone .label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 12px;
}
.product { position: relative; }
.product .tag {
  position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; background: var(--bg); color: var(--muted);
}
.product h3 { padding-right: 52px; }
.product .go { margin-top: auto; font-weight: 600; color: var(--accent); }

/* Newsletter / CTA band */
.band {
  background: var(--ink); color: var(--bg); border-radius: 28px;
  padding: 40px 28px; margin: 24px 0;
}
.band p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.band .btn.ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }

/* Links page */
.links { max-width: 480px; margin: 0 auto; padding: 56px 20px; text-align: center; }
.links .avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font: 800 2rem "Bricolage Grotesque", sans-serif;
}
.links ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.links li a {
  display: block; padding: 16px; border-radius: 14px; text-decoration: none; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.links li a:hover { border-color: var(--accent); }
.links small { display: block; font-weight: 400; color: var(--muted); }

/* Prose pages */
.prose { max-width: 68ch; padding: 56px 0; }
.prose h2 { margin-top: 1.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.disclosure-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* Free download / sign-up */
.freebie { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.freebie-text { flex: 999 1 420px; min-width: 0; }
.freebie-preview { flex: 1 1 240px; max-width: 340px; margin: 8px auto 0; }
.freebie-preview img {
  width: 100%; height: auto; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(2deg);
}
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.signup {
  display: grid; gap: 8px; max-width: 460px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.signup label { font-weight: 600; font-size: .95rem; }
.signup .opt { font-weight: 400; color: var(--muted); }
.signup input[type=text], .signup input[type=email] {
  font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); margin-bottom: 8px; min-height: 48px;
}
.signup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); margin: 4px 0 10px; }
.signup .consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.signup .btn { justify-content: center; min-height: 48px; font-size: 1rem; cursor: pointer; }
.signup .btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { min-height: 1.4em; margin: 4px 0 0; font-weight: 600; }

/* ===== Colouring book shop ===== */
[hidden] { display: none !important; }
:root { --sweet: #E0478F; --ok: #1F9D6B; }
@media (prefers-color-scheme: dark) { :root { --sweet: #F27AB4; --ok: #3CC08C; } }

.cart-link { position: relative; }
.count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .75rem; font-weight: 700; line-height: 1;
}
.count[hidden] { display: none; }

.shop-hero { padding: 56px 0 24px; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perks li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .92rem; color: var(--muted);
}
.perks b { color: var(--ink); }

.sweet { color: var(--sweet); font-size: .6em; vertical-align: middle; font-family: "Inter", sans-serif; font-weight: 600;
  background: color-mix(in srgb, var(--sweet) 12%, transparent); padding: 4px 10px; border-radius: 999px; }

.books { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.book {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.book-cover { position: relative; display: block; background: #f3eee6; }
.book-cover img { width: 100%; height: auto; aspect-ratio: 600 / 776; object-fit: cover; transition: transform .25s ease; }
.book-cover:hover img { transform: scale(1.03); }
.ribbon {
  position: absolute; bottom: 12px; left: 12px; background: #C8102E; color: #fff;
  font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
}
.book-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.book-brand { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.book h3 { font-size: 1.12rem; margin: 0; }
.book h3 a { text-decoration: none; }
.book p { color: var(--muted); font-size: .93rem; margin: 0; }
.book-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.35rem; }
.btn.add { padding: 10px 18px; cursor: pointer; font: inherit; font-weight: 600; min-height: 44px; }
.btn.add.added { background: var(--ok); }
.see { font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.see:hover { text-decoration: underline; }

.how .steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.how .steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); }
.how .steps li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.how .steps b { color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 50;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px;
  box-shadow: var(--shadow); font-weight: 600; transition: transform .25s ease, opacity .25s ease, visibility .25s; max-width: calc(100% - 32px); text-align: center;
  opacity: 0; visibility: hidden;
}
.toast a { color: inherit; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Book page */
.book-detail { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 36px; align-items: flex-start; }
.detail-cover { flex: 1 1 280px; max-width: 420px; }
.detail-cover img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.detail-text { flex: 999 1 360px; min-width: 0; }
.detail-text h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 6px; }
.detail-text .lead { font-size: 1.12rem; color: var(--muted); }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.book-buy.big { justify-content: flex-start; gap: 18px; padding-top: 4px; }
.book-buy.big .price { font-size: 2rem; }
.small-note { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.samples { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.samples img { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }

/* Cart */
.cart-page { padding-top: 40px; padding-bottom: 20px; }
.cart-page h1 { font-size: clamp(2rem, 6vw, 3rem); }
.cart-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cart-grid > div { flex: 999 1 360px; min-width: 0; }
.cart-grid .checkout { flex: 1 1 320px; }
.cart-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.cart-item img { width: 64px; height: auto; border-radius: 6px; }
.cart-item small { display: block; color: var(--muted); }
.cart-item .price { font-size: 1.1rem; }
.remove { border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 10px; border-radius: 8px; }
.remove:hover { background: var(--bg); color: var(--ink); }
.checkout h2 { font-size: 1.5rem; margin: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.total-row b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.8rem; }
.hint { font-size: .85rem; color: var(--muted); margin: -4px 0 6px; }
.notice { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: 12px; padding: 12px 16px; }
.empty { align-items: flex-start; gap: 12px; }
@media (max-width: 480px) {
  .cart-item { grid-template-columns: 52px 1fr auto; }
  .cart-item img { width: 52px; }
  .cart-item .remove { grid-column: 3; grid-row: 1; align-self: start; }
  .cart-item .price { grid-column: 2; }
}

.book-buy.big { flex-wrap: wrap; }
.btn.amazon { min-height: 44px; }

/* ---- personalised pack builder (pack.html) ---- */
.pack-steps { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pack-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pack-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pack-group { margin: 0 0 26px; }
.pack-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; }
.pack-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(30%, 150px), 1fr)); }
.pick { position: relative; padding: 0; border: 3px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.pick img { width: 100%; height: auto; aspect-ratio: 408 / 528; }
.pick:hover { transform: translateY(-2px); }
.pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pick[aria-pressed="true"] { border-color: var(--accent); }
.pick .tick { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: rgba(28,27,34,.25); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: "Bricolage Grotesque", sans-serif; }
.pick[aria-pressed="true"] .tick { background: var(--accent); }
.pack-make { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cover-preview { flex: 1 1 240px; max-width: 360px; margin: 0; }
.cover-preview canvas { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: var(--shadow); background: #fff; }
.cover-preview figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }
.pack-make .signup { flex: 999 1 320px; }
.signup #gate { display: grid; gap: 8px; }
.signup #gate h3 { margin: 10px 0 2px; }
.pack-done { gap: 10px; margin-top: 8px; }
.pack-done .books { margin-top: 8px; }
.pack-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--bg); padding: 8px 8px 8px 20px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; max-width: calc(100% - 32px); white-space: nowrap; transition: transform .25s ease, opacity .25s ease; }
.pack-bar .btn { padding: 8px 16px; min-height: 40px; }
.pack-bar.away { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
.pack-page ~ .toast { bottom: 84px; width: max-content; border-radius: 16px; line-height: 1.4; }

/* boys / girls filter */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 20px; }
.filter button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line, #e5ded6);
  background: var(--card, #fff); color: var(--ink, #222);
}
.filter button:hover { border-color: var(--accent); }
.filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.filter-count { color: var(--muted); font-size: .9rem; margin-left: 4px; }
.book[hidden] { display: none; }
