/* Tally Mark Press site. Rendered by kdp_engine.site.build: theme colours come from each book's cover palette
   (one .theme-<id> class per book + .theme-brand), "deep" is the base colour darkened until white text on it
   reaches WCAG AA (4.5:1). No inline styles anywhere: the Content-Security-Policy forbids them. */

@font-face { font-family: "Lilita One"; src: url("/assets/fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }


.theme-brand { --base: #1d90d0; --deep: #1a78b6; --accent: #ffdd17; --ink: #103167; --pop: <built-in method pop of dict object at 0x7b3594694bc0>; --light: #dbedf7; }

.theme-grade6-math-fluency { --base: #1d90d0; --deep: #1a78b6; --accent: #ffdd17; --ink: #103167; --pop: <built-in method pop of dict object at 0x7b3594694f00>; --light: #dbedf7; }

.theme-unplugged-coding-logic { --base: #73439a; --deep: #73439a; --accent: #d5df2e; --ink: #31145c; --pop: <built-in method pop of dict object at 0x7b3594695880>; --light: #e9e1ef; }


:root { --paper: #ffffff; --radius: 14px; --gutter: 16px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; line-height: 1.08; margin: 0 0 0.45em; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

/* header + footer */
.top { background: var(--paper); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.mark { display: flex; align-items: center; gap: 10px; font-family: "Lilita One", sans-serif; font-size: 1.45rem; text-decoration: none; color: var(--ink); }
.mark img { border-radius: 8px; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 12px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current] { background: var(--light); }
.foot { background: var(--ink); color: #fff; padding: 36px 0 28px; font-size: 0.92rem; }
.foot p { margin: 0 0 0.6em; opacity: 0.92; }
.foot-mark { font-family: "Lilita One", sans-serif; font-size: 1.4rem; opacity: 1 !important; }

/* hero */
.hero { background: var(--deep); color: #fff; padding: 48px 0 56px; overflow: hidden; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); color: #fff; max-width: 15em; }
.kicker { font-family: "Lilita One", sans-serif; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.05rem; margin-bottom: 10px; }
.lede { font-size: 1.18rem; max-width: 36em; }
.hero-book { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero-book { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; } .hero { padding: 64px 0 72px; } }
.cover { margin: 0; justify-self: center; width: min(100%, 380px); transform: rotate(2.5deg); }
.cover img { width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: 0 26px 50px rgba(0, 0, 0, 0.38), 0 5px 12px rgba(0, 0, 0, 0.22); }
@media (max-width: 859px) { .cover { order: -1; width: min(44%, 190px); } .hero { padding-top: 32px; } }

/* buttons */
.button {
  display: inline-block; font-family: "Lilita One", sans-serif; font-size: 1.3rem; line-height: 1.2; text-align: center;
  padding: 14px 24px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}
.button:hover { filter: brightness(1.06); }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }
.button.alt { background: var(--ink); color: #fff; }
.button.big { font-size: 1.5rem; padding: 18px 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* sign-up card */
.signup { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px; margin-top: 28px; max-width: 470px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22); }
.signup label { display: block; font-weight: 600; font-size: 0.95rem; margin: 0 0 6px; }
.signup .opt { font-weight: 400; opacity: 0.75; }
.signup input[type="email"], .signup input[type="text"] {
  width: 100%; font: inherit; color: var(--ink); background: #fff; padding: 12px 14px; margin: 0 0 16px;
  border: 2px solid rgba(0, 0, 0, 0.22); border-radius: 10px;
}
.signup input:focus { border-color: var(--ink); outline: 3px solid var(--accent); outline-offset: 0; }
.signup .button { width: 100%; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }  /* Brevo anti-bot field */
.signup .button[disabled] { opacity: 0.7; cursor: progress; }
.fine { font-size: 0.86rem; line-height: 1.5; margin: 12px 0 0; opacity: 0.85; }
.error { color: #b3261e; font-weight: 600; margin: 12px 0 0; }
.done h2 { font-size: 1.8rem; }
.closed { font-weight: 600; margin: 0; }

/* sections */
.band { padding: 56px 0; }
.band.light { background: var(--light); }
.section-lede { font-size: 1.1rem; max-width: 40em; }
.previews { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.previews figure { margin: 0; }
.previews img { background: #fff; border-radius: 6px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16); }
.previews figcaption { font-weight: 600; margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { position: relative; padding-left: 28px; margin: 0 0 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 4px; background: var(--base); }
.book-title { font-weight: 700; font-size: 1.15rem; }
.book-more > div { max-width: 46em; }

/* home */
.hero-home { max-width: 1120px; }
.shelf { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 32px; }
@media (min-width: 900px) { .shelf { grid-template-columns: 1fr 1fr; } }
.book-card { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 22px; align-items: start; background: var(--light); border-radius: var(--radius); padding: 22px; }
@media (max-width: 520px) { .book-card { grid-template-columns: 1fr; } .card-cover { width: 150px; } }
.card-cover img { border-radius: 2px 6px 6px 2px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25); }
.book-card h3 { color: var(--ink); }
.book-card .actions { margin-top: 14px; }
.book-card .button { font-size: 1.1rem; padding: 11px 18px; }
.three { display: grid; gap: 28px; }
@media (min-width: 800px) { .three { grid-template-columns: repeat(3, 1fr); } }

/* privacy */
.prose { max-width: 46em; }
.prose h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.updated { opacity: 0.75; }
