/* ==========================================================================
   Bijal KingMaker – main stylesheet
   Copyright (c) 2026 Bizomatic Solutions Pvt Ltd. Developed by Ali Akbar Hamid.
   Tokens below map to the brand: green #83d668 as accent, mint for large areas.
   ========================================================================== */

:root {
  /* Colour */
  --green: #83d668;        /* Brand green (logo). Fill only — never text on light bg */
  --green-dot: #71c656;    /* Halftone dots on green */
  --green-soft: #e8f8e1;   /* Tints, moral boxes */
  --green-ink: #2e6b1f;    /* Text-safe green on light bg (6.5:1) */
  --forest: #13280f;       /* Dark sections, footer */
  --forest-2: #1c3817;
  --ink: #161616;          /* Lines, text */
  --paper: #fbfaf4;        /* Page background */
  --paper-2: #f2f0e4;
  --muted: #55584f;        /* Secondary text (6.9:1 on paper) */
  --note: #ffe14d;         /* Review notes only — not part of the design */

  /* Type */
  --f-display: "Chewy", "Comic Sans MS", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-story: "Alegreya", Georgia, "Times New Roman", serif;
  --f-hand: "Patrick Hand", "Comic Sans MS", cursive;

  /* Shape */
  --line: 2.5px solid var(--ink);
  --r: 16px;
  --r-sm: 10px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --wrap: 1180px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.05; }
h1, h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: .5px; }
h1 { font-size: clamp(52px, 8.4vw, 116px); }
h2 { font-size: clamp(36px, 4.8vw, 60px); }
h3 { font-family: var(--f-body); font-weight: 900; font-size: 21px; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.center { text-align: center; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-ink); margin-bottom: 14px;
}
.on-green .eyebrow, .on-dark .eyebrow { color: inherit; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; }
.on-dark .section-head p { color: #cfe9c5; }

/* Backgrounds */
.bg-green { background-color: var(--green); background-image: radial-gradient(var(--green-dot) 1.6px, transparent 2px); background-size: 16px 16px; }
.bg-paper2 { background: var(--paper-2); }
.bg-dots { background-image: radial-gradient(rgba(22,22,22,.09) 1.3px, transparent 1.7px); background-size: 15px 15px; }
.on-dark { background: var(--forest); color: var(--paper); }
.on-dark a { color: var(--green); }
.on-dark h2, .on-dark h3 { color: var(--paper); }
.edge-top { border-top: var(--line); }
.edge-bottom { border-bottom: var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251,250,244,.96);
  backdrop-filter: blur(6px); border-bottom: var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand-name { font-weight: 900; font-size: 19px; line-height: 1.05; display: block; }
.brand-tag { font-family: var(--f-hand); font-size: 16px; color: var(--green-ink); display: flex; align-items: center; gap: 5px; line-height: 1.1; }
.brand-tag svg { width: 18px; height: 12px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15.5px;
  padding: 8px 12px; border-radius: 999px; border: 2px solid transparent;
}
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { background: var(--green); border-color: var(--ink); }
.nav a.btn { margin-left: 10px; border: var(--line); padding: 10px 18px; font-size: 15px; }
.nav a.btn:hover { border-color: var(--ink); }
.nav-toggle {
  display: none; background: var(--paper); border: var(--line); border-radius: 12px; width: 48px; height: 44px;
  box-shadow: var(--shadow-sm); cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-weight: 900; font-size: 16.5px; line-height: 1;
  background: var(--bg); color: var(--fg); text-decoration: none;
  border: var(--line); border-radius: 999px; padding: 15px 26px; min-height: 52px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--fg); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); box-shadow: 3px 3px 0 var(--green-ink); }
.btn--ink:hover { box-shadow: 5px 5px 0 var(--green-ink); }
.on-green .btn--ink { box-shadow: 3px 3px 0 var(--paper); }
.on-green .btn--ink:hover { box-shadow: 5px 5px 0 var(--paper); }
.btn--paper { --bg: var(--paper); }
.btn--sm { font-size: 15px; padding: 10px 18px; min-height: 42px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { font-weight: 900; color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; border-bottom: 2.5px solid var(--green); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--ink); }
.on-dark .link-arrow { color: var(--paper); }

/* ---------- Comic bits ---------- */
.panel { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 13px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bubble {
  position: relative; display: inline-block; font-family: var(--f-hand); font-size: 22px; line-height: 1.2; color: var(--ink);
  background: var(--paper); border: var(--line); border-radius: 22px; padding: 12px 18px; box-shadow: var(--shadow-sm);
}
.bubble::after {
  content: ""; position: absolute; width: 18px; height: 18px; background: var(--paper);
  border-right: var(--line); border-bottom: var(--line); left: 30px; bottom: -11px; transform: rotate(45deg) skew(8deg, 8deg);
}
.bubble--right::after { left: auto; right: 30px; }
.burst { display: inline-block; width: 150px; filter: drop-shadow(3px 3px 0 var(--ink)); }
.burst svg { width: 100%; height: auto; overflow: visible; }
.burst text { font-family: var(--f-display); font-size: 34px; }
.crown { width: 1.2em; height: .8em; vertical-align: -.05em; }
.divider { display: block; width: min(320px, 70%); height: auto; margin: 18px auto; color: #8a8a8a; }

/* ---------- Book mock (placeholder cover) ---------- */
.book-stage { position: relative; display: flex; justify-content: center; padding: 20px 30px 40px; }
.book {
  position: relative; width: min(360px, 72vw); aspect-ratio: 148 / 210; transform: rotate(3deg);
  filter: drop-shadow(12px 14px 0 var(--ink)); transition: transform .3s ease;
}
.book:hover { transform: rotate(0deg) scale(1.02); }
.book::after { /* page edges */
  content: ""; position: absolute; top: 7px; bottom: 7px; right: -13px; width: 13px;
  background: repeating-linear-gradient(180deg, #fff 0 2px, #dcd9c9 2px 3px);
  border: var(--line); border-left: 0; border-radius: 0 6px 6px 0;
}
.cover {
  position: absolute; inset: 0; z-index: 1; container-type: inline-size; overflow: hidden; color: var(--ink);
  background: var(--paper); border: var(--line); border-radius: 4px 10px 10px 4px;
  display: flex; flex-direction: column;
}
.cover::before { /* spine shading */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; z-index: 3;
  background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.05) 60%, rgba(255,255,255,.25) 80%, transparent);
  pointer-events: none;
}
.cover__top {
  background-color: var(--green); background-image: radial-gradient(var(--green-dot) 1.2px, transparent 1.6px); background-size: 4cqw 4cqw;
  border-bottom: var(--line); padding: 9cqw 7cqw 6cqw 10cqw; position: relative;
}
.cover__title { font-family: var(--f-display); font-size: 17.5cqw; line-height: .86; margin: 0; transform: rotate(-3deg); color: var(--ink); text-shadow: .8cqw .8cqw 0 var(--paper); }
.cover__title span { display: block; }
.cover__title span + span { margin-left: 7cqw; }
.cover__sub {
  display: inline-block; margin-top: 4cqw; background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 3.6cqw; letter-spacing: .3cqw; padding: 1.4cqw 3cqw; border-radius: 99px;
}
.cover__art { flex: 1 1 0; min-height: 0; padding: 5cqw 8cqw 3cqw 11cqw; display: flex; align-items: center; }
.cover__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; border: .5cqw solid var(--ink); border-radius: 2cqw; transform: rotate(-2deg); }
.cover__author { text-align: center; padding: 0 6cqw 6cqw 9cqw; }
.cover__author svg { width: 9cqw; height: 6cqw; color: var(--green-ink); display: block; margin: 0 auto .5cqw; }
.cover__author b { display: block; font-weight: 900; font-size: 6.4cqw; line-height: 1; }
.cover__author i { font-family: var(--f-hand); font-style: normal; font-size: 5.4cqw; color: var(--green-ink); }
.cover__badge {
  position: absolute; right: 4cqw; top: 46%; z-index: 2; width: 21cqw; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--green); display: grid; place-items: center; text-align: center;
  font-family: var(--f-display); font-size: 4.4cqw; line-height: 1; transform: rotate(10deg);
  border: .8cqw solid var(--paper); outline: var(--line);
}
.book--sm { width: 200px; transform: rotate(-2deg); filter: drop-shadow(7px 8px 0 var(--ink)); }
.book-real { width: min(300px, 70vw); border: var(--line); border-radius: 4px 10px 10px 4px; box-shadow: 10px 12px 0 var(--ink); transform: rotate(-2deg); }

/* ---------- Hero (home) ---------- */
.hero { border-bottom: var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .line2 { display: block; padding-left: .6em; }
.hero .lead { max-width: 560px; margin-bottom: 18px; }
.byline { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; margin-bottom: 28px; }
.byline svg { width: 30px; height: 20px; }
.hero .chips { margin-top: 26px; }
.hero .book-stage { padding-top: 96px; }
.hero .bubble { position: absolute; z-index: 3; }
.hero .bubble.b1 { left: 0; top: 0; transform: rotate(-4deg); animation: bob 4s ease-in-out infinite; }
.hero .bubble.b1::after { left: auto; right: 34px; }
.hero .burst.b2 { position: absolute; right: -4px; top: 6px; z-index: 3; transform: rotate(8deg); }
.pill-new {
  display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: var(--line); border-radius: 999px;
  font-weight: 900; font-size: 14px; padding: 6px 14px 6px 6px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.pill-new > span:first-child { background: var(--ink); color: var(--green); border-radius: 999px; padding: 3px 10px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
@keyframes bob { 50% { transform: rotate(-4deg) translateY(-8px); } }

/* ---------- Hero bands: pale mint, brand green as the accent (not wallpaper) ---------- */
.hero-band { position: relative; overflow: hidden; border-bottom: var(--line); }
.hero-band, .bg-mint {
  background-color: var(--green-soft);
  background-image: radial-gradient(#cdeec0 1.6px, transparent 2px); background-size: 16px 16px;
}
.hl {
  background-image: linear-gradient(transparent 60%, var(--green) 60%, var(--green) 88%, transparent 88%);
  padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Green disc behind the book / photo */
.hero-band .book-stage::before, .hero-band .photo-frame::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 54%; transform: translate(-50%, -50%);
  width: min(460px, 84vw); aspect-ratio: 1; border-radius: 50%; border: var(--line);
  background-color: var(--green); background-image: radial-gradient(var(--green-dot) 1.6px, transparent 2px); background-size: 16px 16px;
}
.hero-band .photo-frame::before { width: 112%; top: 50%; }
.hero-band .book, .hero-band .photo-frame img { position: relative; z-index: 1; }
.hero-band .photo-frame .bubble { z-index: 2; }
.hero-band .burst svg polygon { fill: var(--green); }
/* Page-head art (desktop only) */
.ph-art { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: 50%; transform: translateY(-50%) rotate(3deg); width: 340px; }
.ph-art::before {
  content: ""; position: absolute; inset: -34px -10px -34px 30px; z-index: 0; border-radius: 50%; border: var(--line);
  background-color: var(--green); background-image: radial-gradient(var(--green-dot) 1.6px, transparent 2px); background-size: 16px 16px;
}
.ph-art img { position: relative; z-index: 1; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--green); border-bottom: var(--line); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: scroll 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--f-display); font-size: 26px; white-space: nowrap; display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee__item svg { width: 28px; height: 18px; color: var(--paper); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Office bingo ---------- */
.bingo-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.bingo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bingo button {
  font: inherit; font-weight: 800; font-size: 15.5px; line-height: 1.3; color: var(--ink); text-align: left;
  background: var(--paper); border: var(--line); border-radius: var(--r-sm); padding: 16px 40px 14px 16px; min-height: 132px;
  cursor: pointer; position: relative; box-shadow: var(--shadow-sm); transition: transform .12s, background .12s;
  display: flex; flex-direction: column; gap: 10px;
}
.bingo button:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.bingo button small { margin-top: auto; font-family: var(--f-hand); font-weight: 400; font-size: 15px; line-height: 1.15; color: var(--muted); }
.bingo button[aria-pressed="true"] { background: var(--green); }
.bingo button[aria-pressed="true"] small { color: var(--ink); }
.bingo button[aria-pressed="true"]::after {
  content: "✓"; position: absolute; right: 10px; top: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--green); display: grid; place-items: center; font-size: 17px; font-weight: 900;
}
.bingo button.free { background: var(--ink); color: var(--green); text-align: center; display: grid; place-items: center; font-family: var(--f-display); font-weight: 400; font-size: 22px; cursor: default; padding: 16px; }
.bingo button.free:hover { transform: none; box-shadow: var(--shadow-sm); }
.bingo button.free small { margin-top: 0; color: var(--paper); font-size: 14px; }
.bingo-score { padding: 28px; position: sticky; top: 100px; }
.bingo-score .count { font-family: var(--f-display); font-size: 72px; line-height: 1; }
.bingo-score .count span { font-size: 30px; color: var(--muted); }
.bingo-score .verdict { font-family: var(--f-hand); font-size: 24px; line-height: 1.25; min-height: 60px; margin: 10px 0 20px; }
.meter { height: 16px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--paper-2); margin-top: 8px; }
.meter i { display: block; height: 100%; width: 0; background: var(--green); border-right: 2px solid var(--ink); transition: width .3s ease; }

/* ---------- Story excerpt / reading ---------- */
.excerpt { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.doodle { border-radius: 14px; box-shadow: var(--shadow); background: #fff; }
.storybox { padding: clamp(28px, 4vw, 48px); position: relative; }
.story-label { font-weight: 900; letter-spacing: 4px; font-size: 12.5px; text-transform: uppercase; color: var(--green-ink); }
.story-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4vw, 48px); margin: 6px 0 8px; }
.cast { font-family: var(--f-story); font-style: italic; color: var(--muted); font-size: 17px; line-height: 1.45; }
.prose { font-family: var(--f-story); font-size: 20px; line-height: 1.65; }
.prose p { margin: 0; text-indent: 1.4em; }
.prose p:first-of-type { text-indent: 0; }
.prose p:first-of-type::first-letter {
  font-family: var(--f-display); float: left; font-size: 4.1em; line-height: .82; padding: 6px 10px 0 0; color: var(--green-ink);
}
.fade { position: relative; max-height: 330px; overflow: hidden; }
.fade::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(rgba(251,250,244,0), var(--paper)); }
.bg-paper2 .fade::after { background: linear-gradient(rgba(242,240,228,0), var(--paper-2)); }

.moral {
  background: var(--green-soft); border: var(--line); border-radius: var(--r); padding: 22px 26px 22px; position: relative; margin-top: 28px;
}
.moral__label {
  position: absolute; top: -15px; left: 22px; background: var(--ink); color: var(--green); font-weight: 900; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; padding: 5px 12px; border-radius: 99px;
}
.moral p { font-family: var(--f-story); font-style: italic; font-size: 20px; line-height: 1.45; margin: 4px 0 0; }
.moral cite { display: block; margin-top: 10px; font-style: normal; font-weight: 800; font-size: 14px; color: var(--green-ink); }

/* ---------- Story cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; text-align: left; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card, button.card { text-decoration: none; cursor: pointer; font: inherit; padding: 0; }
a.card:hover, button.card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 9px 9px 0 var(--ink); color: var(--ink); }
.card__img { border-bottom: var(--line); background: #fff; aspect-ratio: 900 / 683; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__img, .card-title, .card-text, .card-peek { display: block; }
.card__body h3 { margin: 0; }
.card__body p, .card-text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.card-title { font-weight: 900; font-size: 20px; line-height: 1.2; }
.card-meta { font-size: 13.5px; font-weight: 700; color: var(--green-ink); }
.card-peek { margin-top: auto; padding-top: 6px; font-weight: 900; font-size: 15px; }
.card-peek::after { content: " →"; }
.tag { align-self: flex-start; font-weight: 900; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; background: var(--green); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 10px; }
.card--more { background: var(--ink); color: var(--paper); display: grid; place-items: center; text-align: center; padding: 30px; }
.card--more .big { font-family: var(--f-display); font-size: 64px; line-height: 1; color: var(--green); }
.card--more p { color: #d6d6d6; }

/* Morals strip */
.morals .moral { margin-top: 0; height: 100%; }
.morals .moral p { font-size: 22px; }

/* ---------- Author block ---------- */
.author-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.photo-frame { position: relative; max-width: 440px; }
.photo-frame img { border: 3px solid var(--paper); border-radius: 18px; box-shadow: 12px 12px 0 var(--green); transform: rotate(-2deg); }
.on-light .photo-frame img, .photo-frame.light img { border-color: var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.photo-frame .bubble { position: absolute; right: -24px; top: 18px; transform: rotate(5deg); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0 32px; }
.stat { border: 2px solid var(--green); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--green); }
.stat span { font-size: 15px; color: #d9ecd2; }

/* ---------- Book feature rows ---------- */
.feature { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.offer { padding: 30px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.offer .icon { width: 56px; height: 56px; border: var(--line); border-radius: 14px; background: var(--green); display: grid; place-items: center; box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.offer .icon svg { width: 28px; height: 28px; }
.offer p { color: var(--muted); margin: 0; }
.offer .btn, .offer .link-arrow { margin-top: auto; align-self: flex-start; }
.offer .spacer { flex: 1; min-height: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field-label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.field label small { font-weight: 600; color: var(--muted); }
.input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 12px; padding: 13px 14px; min-height: 50px;
}
.form textarea { min-height: 130px; resize: vertical; }
.input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--green); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--green-ink); margin-top: 3px; flex: none; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.on-green .form-note { color: var(--ink); }
.success {
  display: none; padding: 24px; border: var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow);
}
.success h3 { font-family: var(--f-display); font-weight: 400; font-size: 32px; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.choice legend { font-weight: 800; font-size: 15px; margin-bottom: 10px; padding: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  font-weight: 800; font-size: 15px; border: 2px solid var(--ink); border-radius: 999px; padding: 9px 16px; cursor: pointer; background: var(--paper);
}
.choice input:checked + label { background: var(--green); box-shadow: var(--shadow-sm); }
.choice input:focus-visible + label { outline: 3px solid var(--green-ink); outline-offset: 3px; }
[data-show-for] { display: none; }
[data-show-for].show { display: block; }
.success.is-visible { display: block; }

.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.signup .panel { padding: 30px; }

/* ---------- Page heads ---------- */
.page-head { padding: 72px 0 64px; border-bottom: var(--line); }
.page-head h1 { font-size: clamp(48px, 7vw, 96px); max-width: 700px; }
.page-head .lead { max-width: 640px; }

/* Book page hero */
.book-hero .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.book-hero h1 { font-size: clamp(54px, 7.4vw, 104px); }
.buy { display: grid; gap: 14px; margin: 24px 0 8px; }
.price { font-family: var(--f-display); font-size: 40px; line-height: 1; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 28px 0 0; border: var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.specs div { padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.specs div:nth-child(odd) { border-right: 2px solid var(--ink); }
.specs div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt { font-size: 12px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-ink); }
.specs dd { margin: 0; font-weight: 800; }

.blurb { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.blurb .prose p { text-indent: 0; margin-bottom: 1em; }
.blurb .prose p:first-of-type::first-letter { font-size: 3.6em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-weight: 700; align-items: start; }
.ticks li::before { content: "✓"; width: 30px; height: 30px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filters button { font: inherit; font-weight: 800; font-size: 15px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--green); }
.card[hidden] { display: none; }

.spotlight { max-width: 900px; margin: 0 auto; text-align: center; }
.spotlight blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(30px, 4vw, 50px); line-height: 1.15; }
.spotlight cite { display: block; margin-top: 18px; font-style: normal; font-weight: 800; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { border: var(--line); border-radius: var(--r-sm); background: var(--paper); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 900; font-size: 18px; padding: 18px 56px 18px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
.disclaimer { max-width: 820px; margin: 0 auto; font-size: 15px; color: var(--muted); text-align: center; }

/* Modal */
dialog.peek { max-height: calc(100vh - 32px); overflow: auto; border: var(--line); border-radius: 20px; padding: 0; max-width: min(680px, calc(100vw - 32px)); box-shadow: 10px 10px 0 var(--ink); background: var(--paper); color: var(--ink); }
dialog.peek::backdrop { background: rgba(19, 40, 15, .72); }
.peek__img { border-bottom: var(--line); background: #fff; }
.peek__body { padding: 24px 28px 28px; }
.peek__body .moral { margin-top: 26px; }
.peek__close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: var(--line); background: var(--green); font-size: 22px; font-weight: 900; cursor: pointer; box-shadow: var(--shadow-sm); }

/* Author page */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; border-left: 3px dashed var(--ink); }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; position: relative; }
.timeline .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--green); border: var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.timeline .dot svg { width: 20px; height: 20px; }
.timeline b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.timeline p { margin: 2px 0 0; color: var(--muted); }
.quote-card { padding: 40px; text-align: center; position: relative; }
.quote-card .mark { font-family: var(--f-display); font-size: 120px; line-height: .6; color: var(--green); display: block; height: 50px; }
.quote-card blockquote { margin: 0; font-family: var(--f-story); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; }
.testi { padding: 28px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.testi blockquote { margin: 0; font-family: var(--f-story); font-size: 19px; line-height: 1.5; }
.testi figcaption { margin-top: auto; font-weight: 900; font-size: 15px; }
.testi figcaption span { display: block; font-weight: 600; color: var(--muted); font-size: 14px; }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kit a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border: 2px solid var(--paper); border-radius: 12px; color: var(--paper); text-decoration: none; font-weight: 800; }
.kit a:hover { background: var(--forest-2); color: var(--green); }
.kit svg { width: 20px; height: 20px; flex: none; }

/* Story reader page */
.reader { max-width: 760px; margin: 0 auto; }
.reader .story-head { text-align: center; margin-bottom: 30px; }
.reader .doodle { margin: 34px 0 40px; }
.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 40px; }
.share span { font-weight: 900; margin-right: 6px; }
.gate-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.gate-covers figure { margin: 0; }
.gate-covers img { border: 2px solid var(--ink); border-radius: 10px; filter: blur(1.5px) grayscale(.2); opacity: .9; }
.gate-covers figcaption { font-weight: 900; font-size: 15px; margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.gate-covers svg { width: 16px; height: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.contact-card { padding: 28px; display: grid; gap: 20px; }
.contact-card .row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: var(--green); display: grid; place-items: center; }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card b { display: block; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #d9ecd2; border-top: var(--line); padding: 72px 0 0; font-size: 15.5px; }
.site-footer a { color: #d9ecd2; text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid h4 { color: var(--paper); font-size: 15px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.foot-brand img { width: 56px; height: 56px; }
.foot-brand b { color: var(--paper); font-size: 20px; display: block; line-height: 1.1; }
.foot-brand i { font-family: var(--f-hand); font-style: normal; color: var(--green); font-size: 18px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; border: 2px solid #d9ecd2; border-radius: 50%; display: grid; place-items: center; }
.socials a:hover { background: var(--green); border-color: var(--green); }
.socials a:hover svg { color: var(--ink); }
.socials svg { width: 19px; height: 19px; color: #d9ecd2; }
.foot-bottom { margin-top: 56px; border-top: 1px solid rgba(217,236,210,.25); padding: 20px 0 28px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 900; font-size: 15px;
  border: 2.5px solid var(--ink); border-radius: 999px; padding: 10px 18px 10px 10px; box-shadow: 4px 4px 0 var(--green);
}
.wa-float:hover { color: var(--green); }
.wa-float .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.wa-float svg { width: 20px; height: 20px; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .bingo-wrap { grid-template-columns: 1fr; }
  .bingo-score { position: static; }
}
@media (max-width: 920px) {
  :root { --gutter: 20px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--paper); border-bottom: var(--line); padding: 14px var(--gutter) 22px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; }
  .hero .wrap, .book-hero .wrap, .excerpt, .author-split, .feature, .signup, .blurb, .contact-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 44px; gap: 24px; }
  .book-hero .wrap { padding-top: 36px; gap: 28px; }
  .book-hero .book { width: min(230px, 58vw); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature { gap: 32px; justify-items: start; }
  .photo-frame { margin: 0 auto 10px; }
  .ph-art { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .grid-2, .grid-3, .grid-4, .form-row, .stats, .gate-covers { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bingo { gap: 9px; }
  .bingo button { font-size: 13.5px; padding: 10px 9px; min-height: 124px; gap: 8px; hyphens: auto; }
  .bingo button small { font-size: 13px; }
  .bingo button.free { font-size: 17px; }
  .bingo button[aria-pressed="true"]::after { display: none; }
  .brand-name { font-size: 17px; }
  .brand img { width: 40px; height: 40px; }
  .hero .bubble.b1 { left: 0; font-size: 18px; }
  .burst { width: 110px; }
  .specs { grid-template-columns: 1fr; }
  .specs div:nth-child(odd) { border-right: 0; }
  .specs div:nth-last-child(2) { border-bottom: 2px solid var(--ink); }
  .prose { font-size: 18.5px; }
  .photo-frame .bubble { right: 0; font-size: 18px; }
  .wa-float .lbl { display: none; }
  .wa-float { padding: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .card--more .big { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   WordPress additions
   ========================================================================== */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Footer last line: copyright left, credit centre, policy links right */
.site-footer .foot-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 24px; }
.foot-copy { justify-self: start; }
.credit { justify-self: center; white-space: nowrap; }
.legal-links { justify-self: end; text-align: right; }
.credit a { font-weight: 800; }
@media (max-width: 860px) {
  .site-footer .foot-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot-copy, .credit, .legal-links { justify-self: center; text-align: center; }
  .legal-links:empty { display: none; }
}
.credit .heart { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* Menus */
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu li { margin: 0; }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { background: var(--green); border-color: var(--ink); }

/* Header cart */
.cart-link {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
  border: var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm);
}
.cart-link:hover { color: var(--ink); background: var(--green); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px;
  background: var(--ink); color: var(--green); font-size: 12px; font-weight: 900; display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }

/* Forms */
.form-error { margin: 0; padding: 12px 14px; border: 2px solid #b42318; border-radius: 12px; background: #fff1f0; color: #7a1a12; font-weight: 700; }

/* Book mock with a real cover image, and book cards */
.book--image img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  border: var(--line); border-radius: 4px 10px 10px 4px; background: var(--paper);
}
.book-card { align-items: center; text-align: center; }
.book-card .tag, .book-card .btn { align-self: center; }
.book-card .book--sm { margin: 10px auto 26px; }
.book1-thumb { width: 200px; border: var(--line); border-radius: 4px 8px 8px 4px; box-shadow: 7px 8px 0 var(--ink); transform: rotate(2deg); margin: 10px auto 26px; }
.contact-label { display: block; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-ink); margin-bottom: 10px; }

/* Product summary */
.summary .lead p { margin: 0 0 .4em; }
/* Spec table: 2px gaps on an ink background draw the grid lines for any number of rows */
.specs { gap: 2px; background: var(--ink); }
.specs div { background: var(--paper); border: 0 !important; }
.specs div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.price--soon { font-size: 34px; }
.buy-alt { margin-top: 4px; }
.buy .btn-row { gap: 10px; }

/* Text pages: legal pages, cart, checkout, account */
.page-head--slim { padding: 56px 0 48px; }
.page-head--slim h1 { font-size: clamp(40px, 5.5vw, 72px); margin: 0; max-width: none; }
.section--page { padding-top: 56px; }
.entry { max-width: 780px; font-size: 18px; }
.entry--wide { max-width: none; }
.entry h2 { font-family: var(--f-body); font-weight: 900; font-size: 24px; letter-spacing: 0; margin: 1.6em 0 .5em; }
.entry h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin: .3em 0; }
.entry a { font-weight: 700; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border-bottom: 1.5px solid var(--paper-2); padding: 10px 8px; text-align: left; }
.post-teaser + .post-teaser { margin-top: 32px; padding-top: 32px; border-top: 2px solid var(--paper-2); }
.post-teaser h2 { font-family: var(--f-body); font-weight: 900; font-size: 26px; }

@media (max-width: 920px) {
  .site-header .wrap { gap: 12px; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-menu a { display: block; }
}
