/* Wren Kids Books — wrenkidsbooks.com
   Static site stylesheet v2 (2026-09-01)
   One file, no build step, no external fonts. */

:root {
  --ink: #173f5f;
  --paper: #fffaf0;
  --blue: #23a9dc;
  --blue-deep: #1477a5;
  --orange: #f16b2a;
  --orange-deep: #bd4616;
  --yellow: #ffd447;
  --green: #6fb744;
  --green-deep: #4b8a29;
  --grape: #e8daf7;
  --cream: #fff2c9;
  --sky: #bcecff;
  --sun: #ffe27d;
  --leaf: #bfe29c;
  --line: rgba(23, 63, 95, 0.14);
  --shadow: 0 24px 60px rgba(23, 63, 95, 0.16);
  --pop: 6px 7px 0 var(--ink);
  --pop-lift: 9px 11px 0 var(--ink);
  --wrap: 1180px;
  --gutter: max(20px, calc((100vw - 1180px) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", Verdana, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 1000; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  padding: 12px 18px; background: var(--ink); color: #fff;
  font-weight: 900; border-radius: 0 0 14px 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 15px; background: var(--orange); color: #fff;
  transform: rotate(-4deg); box-shadow: 3px 4px 0 var(--orange-deep);
}
nav { display: flex; align-items: center; gap: 30px; font-weight: 800; font-size: .96rem; }
nav a { border-bottom: 3px solid transparent; padding: 10px 0 7px; }
nav a:hover { border-color: var(--orange); }
nav a[aria-current="page"] { border-color: var(--orange); }

/* ---------- Buttons & pills ---------- */
.button-row { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.button {
  min-height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 22px; border: 0; border-radius: 16px;
  font-weight: 900; cursor: pointer; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--orange); color: #fff; box-shadow: 0 6px 0 var(--orange-deep); }
.button.secondary { background: #fff; box-shadow: 0 6px 0 rgba(20, 119, 165, .35); }
.button.ghost { background: transparent; border: 2px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.button[disabled], .button.is-waiting { cursor: not-allowed; opacity: .65; transform: none; }

.badge-soon {
  min-height: 52px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 20px; border-radius: 16px;
  background: #fff; border: 2px dashed rgba(23, 63, 95, .35);
  font-weight: 900;
}
.pill {
  width: fit-content;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1.5px solid rgba(23, 63, 95, .25);
  font-size: .8rem; font-weight: 900;
}
.pill.on-white { background: var(--cream); }
.eyebrow {
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 900; color: #12658c;
}
.card-icon { font-size: 2rem; line-height: 1; font-weight: 1000; }

/* ---------- Home hero ---------- */
.hero {
  overflow: hidden; min-height: 650px;
  padding: 66px var(--gutter) 72px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, .52) 0 4px, transparent 5px),
    linear-gradient(135deg, #bcecff 0%, #75d2ef 64%, #64c8e9 100%);
  background-size: 34px 34px, auto;
  border-block: 1px solid rgba(23, 63, 95, .09);
}
.hero h1 { margin: 0; max-width: 690px; font-size: clamp(3.2rem, 6vw, 6.25rem); line-height: .94; letter-spacing: -.065em; }
.hero h1 span { color: #fff; text-shadow: 3px 4px 0 var(--blue-deep); }
.hero-lede { max-width: 640px; margin: 28px 0 30px; font-size: clamp(1.05rem, 1.7vw, 1.32rem); line-height: 1.65; font-weight: 650; }
.parent-note { margin: 23px 0 0; font-size: .9rem; font-weight: 700; opacity: .72; }

.book-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.book-stage::before {
  content: ""; position: absolute; width: 77%; height: 84%;
  background: var(--yellow); border-radius: 44% 56% 45% 55%; transform: rotate(7deg);
}
.book-stage img {
  position: relative; z-index: 1; width: min(72%, 365px);
  border-radius: 4px 13px 13px 4px;
  box-shadow: 15px 22px 0 rgba(23, 63, 95, .18), var(--shadow);
  transform: rotate(2deg);
}
.feature-sticker {
  position: absolute; z-index: 2; right: 5%; top: 10%;
  width: 96px; height: 96px;
  display: grid; place-items: center; text-align: center;
  border-radius: 50%; background: var(--orange); color: #fff;
  font-weight: 1000; line-height: 1.05; transform: rotate(9deg);
  box-shadow: 5px 6px 0 var(--orange-deep);
}
.doodle { position: absolute; z-index: 2; font-size: 3.5rem; color: #fff; text-shadow: 2px 3px 0 var(--blue-deep); }
.doodle-one { left: 3%; top: 20%; transform: rotate(-15deg); }
.doodle-two { right: 3%; bottom: 11%; color: var(--green); }

/* ---------- Sections ---------- */
.section { padding: 88px var(--gutter); }
.section.tinted { background: var(--cream); border-block: 2px solid var(--line); }
.section-heading { max-width: 700px; margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.05em; }
.section-heading > p:last-child { margin: 18px 0 0; font-size: 1.08rem; line-height: 1.65; font-weight: 650; }
.content-section { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; padding: 82px 0 100px; }

.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pathway-card {
  min-height: 224px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 18px;
  padding: 28px; border: 2px solid var(--ink); border-radius: 28px; box-shadow: var(--pop);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pathway-card:hover { transform: translate(-2px, -3px); box-shadow: var(--pop-lift); }
.pathway-card h3 { margin: 2px 0 9px; font-size: 1.4rem; }
.pathway-card p { margin: 0; line-height: 1.55; font-weight: 650; }
.sky { background: var(--sky); } .sun { background: var(--sun); } .leaf { background: var(--leaf); } .grape { background: var(--grape); }

/* Character strip */
.cast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cast-card {
  padding: 26px; border: 2px solid var(--ink); border-radius: 26px;
  background: #fff; box-shadow: var(--pop);
}
.cast-card h3 { margin: 12px 0 8px; font-size: 1.32rem; }
.cast-card p { margin: 0; line-height: 1.55; font-weight: 650; }
.cast-emoji { font-size: 2rem; line-height: 1; }

/* ---------- Page heroes ---------- */
.page-hero { padding: 78px var(--gutter) 82px; border-block: 1px solid rgba(23, 63, 95, .1); }
.page-hero-blue { background: linear-gradient(135deg, #bcecff, #75d2ef); }
.page-hero-yellow { background: linear-gradient(135deg, #fff0a8, #ffd65a); }
.page-hero-green { background: linear-gradient(135deg, #d9f1bd, #9ed56c); }
.page-hero h1 { max-width: 860px; margin: 0; font-size: clamp(2.8rem, 6vw, 5.7rem); line-height: .96; letter-spacing: -.06em; }
.page-hero > p:last-child { max-width: 730px; margin: 25px 0 0; font-size: 1.2rem; line-height: 1.65; font-weight: 650; }

/* ---------- Shop ---------- */
.featured-book { display: grid; grid-template-columns: .78fr 1.22fr; gap: 76px; align-items: center; }
.featured-cover {
  display: grid; place-items: center; padding: 36px; border-radius: 36px;
  background: var(--yellow); border: 2px solid var(--ink); box-shadow: 8px 9px 0 var(--ink);
}
.featured-cover img { width: min(100%, 375px); box-shadow: 12px 16px 0 rgba(23, 63, 95, .18); transform: rotate(-1.5deg); }
.featured-details h2 { margin: 18px 0 5px; font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -.06em; line-height: .96; }
.featured-details h3 { margin: 0 0 22px; color: var(--blue-deep); font-size: 1.24rem; }
.featured-details > p { font-size: 1.08rem; line-height: 1.7; }
.check-list {
  padding: 0; margin: 24px 0 30px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 24px;
  list-style: none; font-weight: 800;
}
.check-list li::before { content: "✓"; color: var(--green); margin-right: 9px; font-weight: 1000; }
.buy-note { margin: 16px 0 0; font-size: .9rem; font-weight: 700; opacity: .75; }

.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shop-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 30px; border: 2px solid var(--ink); border-radius: 28px; box-shadow: var(--pop);
}
.shop-card h3 { margin: 6px 0 0; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.1; }
.shop-card .kicker { margin: 0; font-weight: 900; color: var(--blue-deep); }
.shop-card p { margin: 0; line-height: 1.6; font-weight: 650; }
.shop-card .button, .shop-card .badge-soon { margin-top: auto; align-self: flex-start; }

/* Release schedule */
.release-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.release-list li {
  display: grid; grid-template-columns: 168px 1fr auto; align-items: center; gap: 20px;
  padding: 18px 24px; background: #fff;
  border: 2px solid var(--ink); border-radius: 20px; box-shadow: 4px 5px 0 var(--ink);
}
.release-date { font-weight: 1000; color: var(--orange); letter-spacing: -.01em; }
.release-title { margin: 0; font-size: 1.12rem; font-weight: 900; }
.release-title small { display: block; margin-top: 4px; font-size: .92rem; font-weight: 650; opacity: .78; }
.release-format { font-size: .82rem; font-weight: 900; white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: var(--sky); }
.release-format.activity { background: var(--leaf); }
.release-format.story { background: var(--grape); }

/* ---------- Downloads ---------- */
.freebie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.featured-freebie {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 54px;
  padding: 40px; border-radius: 34px; background: #fff0a8;
  border: 2px solid var(--ink); box-shadow: 8px 9px 0 var(--ink);
}
.freebie-preview { min-height: 470px; display: grid; place-items: center; padding: 25px; background: #fff; border-radius: 24px; }
.freebie-preview img { max-width: 100%; max-height: 460px; box-shadow: 0 14px 28px rgba(23, 63, 95, .16); }
.freebie-copy h2 { margin: 18px 0 14px; font-size: clamp(2.1rem, 4vw, 3.6rem); letter-spacing: -.05em; line-height: 1; }
.freebie-copy p { font-size: 1.1rem; line-height: 1.7; }
.freebie-copy small { display: block; margin-top: 22px; line-height: 1.5; font-weight: 650; }
.teaser-card { min-height: 250px; padding: 30px; border: 2px solid var(--ink); border-radius: 28px; box-shadow: var(--pop); }
.teaser-card h3 { margin: 18px 0 9px; font-size: 1.7rem; }
.teaser-card p { margin: 0; line-height: 1.6; font-weight: 650; }

.printable-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.printable-card {
  display: flex; flex-direction: column; gap: 11px;
  padding: 20px; background: #fff;
  border: 2px solid var(--ink); border-radius: 26px; box-shadow: var(--pop);
  transition: transform .18s ease, box-shadow .18s ease;
}
.printable-card:hover { transform: translate(-2px, -3px); box-shadow: var(--pop-lift); }
.printable-thumb {
  display: block; padding: 12px;
  background: var(--cream); border-radius: 18px; border: 1.5px solid var(--line);
}
.printable-thumb img {
  width: 100%; height: auto;
  aspect-ratio: 17 / 22;          /* every printable is 8.5 x 11 */
  object-fit: contain;
  border-radius: 8px; background: #fff;
}
.printable-card h3 { margin: 0; font-size: 1.28rem; line-height: 1.15; letter-spacing: -.02em; }
.printable-card p { margin: 0; line-height: 1.55; font-weight: 650; font-size: .95rem; }
.printable-card .button { margin-top: auto; align-self: flex-start; }

.use-note {
  margin-top: 40px; padding: 30px 34px;
  border: 2px solid var(--ink); border-radius: 28px; background: #fff; box-shadow: var(--pop);
}
.use-note h2 { margin: 0 0 14px; font-size: 1.6rem; }
.use-note ul { margin: 0; padding-left: 22px; line-height: 1.75; font-weight: 650; }

/* ---------- Contact ---------- */
.contact-section {
  width: min(1080px, calc(100% - 40px)); margin: 0 auto;
  padding: 78px 0 100px;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start;
}
.contact-form-card {
  padding: 40px; border-radius: 34px; background: var(--sky);
  border: 2px solid var(--ink); box-shadow: 8px 9px 0 var(--ink);
}
.contact-form-card h2 { margin: 0 0 10px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.04em; }
.contact-form-card > p { margin: 0 0 26px; line-height: 1.65; font-weight: 650; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 900; font-size: .95rem; }
.field .hint { font-size: .85rem; font-weight: 650; opacity: .75; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: #fff; border: 2px solid var(--ink); border-radius: 16px;
  font-weight: 650;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.field .error { display: none; font-size: .88rem; font-weight: 900; color: #b3261e; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .error { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { max-width: 130px; }
.captcha-refresh {
  padding: 11px 15px; border: 2px solid var(--ink); border-radius: 14px;
  background: #fff; font-weight: 900; font-size: .88rem; cursor: pointer;
}
.captcha-refresh:hover { background: var(--cream); }
.form-footnote { margin: 16px 0 0; font-size: .86rem; line-height: 1.55; font-weight: 650; opacity: .8; }
.form-status {
  margin-top: 20px; padding: 16px 18px; border-radius: 16px;
  font-weight: 800; line-height: 1.55; border: 2px solid var(--ink);
}
.form-status[hidden] { display: none; }
.form-status.ok { background: #d9f1bd; }
.form-status.bad { background: #ffd9d4; }

.contact-side { display: grid; gap: 24px; }
.contact-card {
  padding: 32px; border-radius: 30px; background: var(--sun);
  border: 2px solid var(--ink); box-shadow: 8px 9px 0 var(--ink);
}
.contact-card h3 { margin: 14px 0 10px; font-size: 1.45rem; overflow-wrap: anywhere; }
.contact-card p { margin: 0 0 18px; line-height: 1.6; font-weight: 650; }
.contact-card a.email-link { font-weight: 900; color: var(--blue-deep); overflow-wrap: anywhere; }
.contact-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 20px; background: #fff; font-size: 1.6rem; }
.reply-note { padding: 30px; border-radius: 30px; background: var(--grape); border: 2px solid var(--ink); box-shadow: 8px 9px 0 var(--ink); }
.heart { font-size: 2.1rem; color: var(--orange); }
.reply-note h3 { margin: 14px 0 10px; font-size: 1.35rem; }
.reply-note p { margin: 0; line-height: 1.65; font-weight: 650; }

/* ---------- 404 ---------- */
.notfound { padding: 110px var(--gutter) 120px; text-align: center; }
.notfound h1 { margin: 0 0 18px; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.06em; }
.notfound p { max-width: 560px; margin: 0 auto 28px; font-size: 1.15rem; line-height: 1.65; font-weight: 650; }
.notfound .button-row { justify-content: center; }

/* ---------- Footer ---------- */
footer {
  width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto;
  min-height: 100px; padding-block: 26px;
  border-top: 2px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 28px; font-weight: 700;
}
footer nav { gap: 22px; font-size: .92rem; }
footer a { color: var(--blue-deep); }
.footer-legal { font-size: .9rem; opacity: .8; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .release-list li { grid-template-columns: 1fr; gap: 8px; }
  .release-format { justify-self: start; }
}
@media (max-width: 880px) {
  .site-header { align-items: flex-start; padding-block: 18px; }
  nav { gap: 16px; font-size: .85rem; flex-wrap: wrap; justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; padding-top: 54px; gap: 26px; }
  .book-stage { min-height: 460px; }
  .pathway-grid, .cast-grid, .shop-grid { grid-template-columns: 1fr; }
  .printable-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-book, .featured-freebie, .contact-section { grid-template-columns: 1fr; }
  .featured-book { gap: 40px; }
  .freebie-grid { grid-template-columns: 1fr; }
  .featured-freebie { grid-column: auto; }
}
@media (max-width: 560px) {
  .site-header { flex-direction: column; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 8px; }
  .hero h1 { font-size: 3.1rem; }
  .book-stage img { width: min(76%, 330px); }
  .feature-sticker { right: 0; width: 84px; height: 84px; font-size: .9rem; }
  .check-list { grid-template-columns: 1fr; }
  .printable-grid { grid-template-columns: 1fr; }
  .featured-cover, .featured-freebie, .contact-form-card, .contact-card { padding: 24px; }
  .freebie-preview { min-height: 320px; padding: 16px; }
  footer { flex-direction: column; align-items: flex-start; }
  footer nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-header nav, .button-row, .skip-link { display: none; }
  body { background: #fff; }
}
