/* Rainy Day Pages: one stylesheet for the whole site. Mobile first, large text, high contrast. */

@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --violet: #3E2A6E;
  --green: #3DAE5C;
  --deep-green: #1E7A3F;
  --yellow: #FFC531;
  --berry: #D6336C;
  --cream: #FFF7E8;
  --charcoal: #2B2A2E;
  --muted: #625C6B;
  --white: #FFFFFF;
  --line: #E9DFCC;
  --card: #FFFDF8;
  --series: var(--violet);
  --radius: 18px;
  --shadow: 0 2px 4px rgba(62, 42, 110, .06), 0 10px 28px rgba(62, 42, 110, .10);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.1875rem;   /* 19px on phones */
  line-height: 1.65;
}
@media (min-width: 720px) { body { font-size: 1.25rem; } }   /* 20px */

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--berry); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  color: var(--violet);
  line-height: 1.18;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
strong { font-weight: 800; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 10; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- header and footer ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 190px; }
@media (min-width: 720px) { .brand img { width: 230px; } }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-weight: 800; text-decoration: none; color: var(--violet);
}
.nav a:hover { background: var(--cream); color: var(--violet); }
@media (max-width: 599px) {
  .site-header nav { width: 100%; }
  .nav { justify-content: space-between; flex-wrap: nowrap; }
  .nav a { padding: 8px 12px; font-size: 1.05rem; }
}
.nav a[aria-current="page"] { background: var(--violet); color: var(--white); }
.nav .nav-cta { background: var(--yellow); color: var(--charcoal); }
.nav .nav-cta:hover { background: #FFD45C; color: var(--charcoal); }

.site-footer { background: var(--violet); color: #F3EEFF; margin-top: 72px; padding: 48px 0 32px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo { background: var(--white); border-radius: 14px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 180px; }
.site-footer h2 { color: var(--white); font-size: 1.25rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45em; }
.footer-small { border-top: 1px solid rgba(255,255,255,.2); margin-top: 36px; padding-top: 20px; font-size: 1rem; color: #DCD3F2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 26px; border-radius: 999px;
  font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 1.1rem;
  text-decoration: none; text-align: center; line-height: 1.25;
  border: 3px solid transparent; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-amazon { background: var(--yellow); color: var(--charcoal); border-color: #E8AE14; }
.btn-amazon:hover { background: #FFD45C; color: var(--charcoal); }
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: #523A8C; color: var(--white); }
.btn-secondary { background: var(--white); color: var(--violet); border-color: var(--violet); }
.btn-secondary:hover { background: var(--cream); color: var(--violet); }
.btn small { display: block; font-weight: 600; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 220px; }
@media (min-width: 720px) { .btn-row .btn { flex: 0 1 auto; } }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.1em; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--deep-green); margin-bottom: 8px; }
.lead { font-size: 1.15em; }
.muted { color: var(--muted); }

/* ---------- home hero ---------- */
.hero { padding: 44px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero p.lead { color: var(--charcoal); max-width: 34em; }
.cover-fan { position: relative; height: 360px; max-width: 480px; margin: 0 auto; width: 100%; }
@media (min-width: 560px) { .cover-fan { height: 440px; } }
.cover-fan img {
  position: absolute; width: 56%; border-radius: 10px; box-shadow: var(--shadow);
  border: 4px solid var(--white);
}
.cover-fan img:nth-child(1) { left: 0; top: 34px; transform: rotate(-7deg); }
.cover-fan img:nth-child(2) { left: 44%; top: 40px; transform: rotate(6deg); }
.cover-fan img:nth-child(3) { left: 21%; top: 0; z-index: 2; }

/* ---------- series cards ---------- */
.shelf { margin-bottom: 40px; }
.shelf > h3 { font-size: 1.6rem; margin-bottom: 16px; }
.series-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .series-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .series-grid.three { grid-template-columns: repeat(3, 1fr); } }
.series-card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--charcoal);
  border-top: 10px solid var(--series);
}
.series-card:hover { color: var(--charcoal); transform: translateY(-2px); }
.series-card .covers { display: flex; gap: 10px; padding: 20px 20px 0; }
.series-card .covers img { width: calc(50% - 5px); max-width: 150px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.series-card .body { padding: 18px 20px 22px; }
.series-card h4 { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.5rem; color: var(--series); margin: 0 0 4px; }
.series-card .who { font-weight: 800; color: var(--muted); font-size: 1rem; margin-bottom: 8px; }
.series-card .go { font-weight: 800; color: var(--violet); }

/* ---------- selling points ---------- */
.points { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points li { background: var(--card); border-radius: var(--radius); padding: 20px 22px; border: 2px solid var(--line); }
.points strong { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--violet); margin-bottom: 4px; }
.points .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

/* ---------- book cards ---------- */
.book-grid { display: grid; gap: 24px 18px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1050px) { .book-grid { grid-template-columns: repeat(4, 1fr); } }
.book-card { display: block; text-decoration: none; color: var(--charcoal); position: relative; }
.book-card:hover { color: var(--charcoal); }
.book-card img { border-radius: 8px; box-shadow: var(--shadow); transition: transform .15s ease; aspect-ratio: 1000 / 1294; }
.book-card:hover img { transform: translateY(-3px); }
.book-card h3 { font-size: 1.12rem; margin: 12px 0 2px; }
.book-card .meta { font-size: .95rem; color: var(--muted); margin: 0; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--yellow); color: var(--charcoal); font-weight: 800; font-size: .85rem;
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ---------- series page ---------- */
.series-banner { background: var(--series); color: var(--white); padding: 44px 0 40px; }
.series-banner h1 { color: var(--white); }
.series-banner p { font-size: 1.2em; max-width: 36em; margin: 0; }
.series-banner .eyebrow { color: var(--white); opacity: .92; }
.prose { max-width: 46em; }

/* ---------- book page ---------- */
.crumbs { font-size: 1rem; padding: 18px 0 0; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; }
.book-top { display: grid; gap: 32px; padding: 24px 0 48px; align-items: start; }
@media (min-width: 860px) { .book-top { grid-template-columns: minmax(280px, 420px) 1fr; gap: 56px; } }
.book-cover img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; max-width: 420px; margin: 0 auto; }
.series-pill {
  display: inline-block; background: var(--series); color: var(--white); text-decoration: none;
  font-weight: 800; font-size: .95rem; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.series-pill:hover { color: var(--white); filter: brightness(1.1); }
.book-info h1 { margin-bottom: .2em; }
.book-info .subtitle { font-size: 1.2em; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0 0 20px; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
.price { font-size: 1.15em; font-weight: 800; margin-bottom: 16px; }
.price span { font-weight: 600; color: var(--muted); font-size: .9em; }
.buy-note { font-size: 1rem; color: var(--muted); margin-top: 12px; }
.soon { background: var(--white); border: 2px dashed var(--series); border-radius: var(--radius); padding: 16px 20px; }
.soon p { margin: 0 0 8px; }

.book-body { display: grid; gap: 40px; }
@media (min-width: 960px) { .book-body { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding-left: 36px; margin-bottom: .6em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.inside { padding-left: 1.2em; margin: 0 0 1.4em; }
.inside li { margin-bottom: .5em; }
.panel { background: var(--white); border-radius: var(--radius); padding: 24px; border: 2px solid var(--line); }
.panel h2 { font-size: 1.6rem; }

.samples { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.samples figure { margin: 0; }
.samples img { border-radius: 8px; border: 2px solid var(--line); background: var(--white); }
.samples figcaption { font-size: 1rem; color: var(--muted); margin-top: 8px; }

.free-box { display: grid; gap: 20px; align-items: center; background: var(--white); border-radius: var(--radius); border: 3px solid var(--yellow); padding: 22px; }
@media (min-width: 640px) { .free-box { grid-template-columns: 150px 1fr; } }
@media (min-width: 960px) { .book-body .free-box { grid-template-columns: 1fr; position: sticky; top: 24px; } }
.free-box img { width: 150px; border-radius: 6px; border: 1px solid var(--line); }
.free-box h2 { font-size: 1.5rem; margin-bottom: .3em; }

/* ---------- signup ---------- */
.signup { background: var(--violet); color: var(--white); border-radius: 24px; padding: 32px 22px; }
@media (min-width: 720px) { .signup { padding: 44px 48px; } }
.signup-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .signup-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.signup h2 { color: var(--white); }
.signup p { color: #EDE7FA; }
.signup .thumbs { display: flex; gap: 10px; margin-top: 18px; }
.signup .thumbs img { width: 25%; max-width: 110px; border-radius: 6px; background: var(--white); transform: rotate(-2deg); }
.signup .thumbs img:nth-child(even) { transform: rotate(3deg); }
.form { background: var(--white); color: var(--charcoal); border-radius: var(--radius); padding: 22px; }
.form label { display: block; font-weight: 800; margin-bottom: 6px; }
.form .field { margin-bottom: 16px; }
.form input[type="email"], .form input[type="text"] {
  width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; color: var(--charcoal);
  border: 2px solid #B9AFCB; border-radius: 12px; background: var(--white);
}
.form input:focus { border-color: var(--violet); outline: 3px solid rgba(62,42,110,.25); outline-offset: 0; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 1rem; margin-bottom: 18px; }
.form .check input { width: 26px; height: 26px; margin-top: 2px; flex: none; accent-color: var(--violet); }
.form .btn { width: 100%; }
.form .fine { font-size: .95rem; color: var(--muted); margin: 12px 0 0; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- free printables page ---------- */
.printable-grid { display: grid; gap: 22px 16px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .printable-grid { grid-template-columns: repeat(4, 1fr); } }
.printable-grid img { border-radius: 6px; border: 2px solid var(--line); background: var(--white); }
.printable-grid h3 { font-size: 1.1rem; margin: 10px 0 2px; }
.printable-grid p { font-size: .95rem; color: var(--muted); margin: 0 0 8px; }
.printable-grid .btn { min-height: 48px; padding: 8px 16px; font-size: 1rem; width: 100%; }
.faq h3 { margin-top: 1.2em; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1fr 320px; gap: 64px; } }
.about-grid aside img { max-width: 300px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- language bar, Pinterest, store picker ---------- */
.topbar { background: var(--violet); color: var(--white); font-size: 1rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 4px; padding-bottom: 4px; }
.lang-list { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.lang-list a { color: var(--white); text-decoration: none; padding: 6px 10px; border-radius: 999px; display: inline-block; min-height: 40px; line-height: 28px; }
.lang-list a:hover { background: rgba(255,255,255,.15); color: var(--white); }
.lang-list a[aria-current="true"] { background: var(--yellow); color: var(--charcoal); font-weight: 800; }
.pin-icon { width: 1.25em; height: 1.25em; flex: none; }
.pin-link { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 700; padding: 6px 4px; min-height: 40px; }
.pin-link:hover { color: var(--yellow); }
.btn-pinterest { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #E60023; color: var(--white); border: 2px solid #E60023; }
.btn-pinterest:hover { background: #AD081B; border-color: #AD081B; color: var(--white); }
.site-footer .btn-pinterest { margin-top: 14px; }
.book-cover, .samples figure { position: relative; }
.pin-save { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; background: #E60023; color: var(--white);
  font-weight: 800; font-size: .95rem; text-decoration: none; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2); min-height: 36px; }
.pin-save:hover { background: #AD081B; color: var(--white); }
.english-note { background: #FFF1C9; border-left: 5px solid var(--yellow); padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 1rem; color: var(--charcoal); }
.site-footer .english-note { background: rgba(255,255,255,.1); color: var(--white); }
.card-price { font-weight: 800; color: var(--violet); margin: 4px 0 0; font-size: 1rem; }
.stores { margin-top: 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); }
.stores summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--violet); font-size: 1rem; }
.stores ul { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; gap: 2px; }
@media (min-width: 600px) { .stores ul { grid-template-columns: 1fr 1fr; } }
.stores a { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--charcoal); font-size: 1rem; }
.stores a:hover { background: var(--cream); }
.stores a[aria-current="true"] { background: #FFF1C9; }
.stores .c { font-weight: 700; }
.stores .s { grid-column: 1; color: var(--muted); font-size: .9rem; }
.stores .p { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 800; }
.lang-list .short { display: none; }
@media (max-width: 599px) {
  .lang-list .full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lang-list a { position: relative; }
  .lang-list .short { display: inline; font-weight: 700; }
  .lang-list a { padding: 6px 9px; }
  .topbar .wrap { flex-wrap: nowrap; }
  .pin-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pin-link .pin-icon { width: 1.6em; height: 1.6em; }
  .nav { flex-wrap: wrap; justify-content: flex-start; }
  .nav a { white-space: nowrap; }
}

/* ---------- guides ---------- */
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; background: var(--white); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--charcoal); height: 100%; }
.guide-card:hover { border-color: var(--violet); color: var(--charcoal); }
.guide-card img { border-radius: 6px; box-shadow: var(--shadow); }
.guide-card h3 { font-size: 1.15rem; margin: 0 0 6px; color: var(--violet); }
.guide-card p { margin: 0 0 8px; font-size: 1rem; color: var(--muted); }
.guide-card .go { font-weight: 800; color: var(--violet); font-size: 1rem; }
.guide-head { max-width: 780px; padding: 12px 0 8px; }
.toc { background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 12px 18px; margin-top: 20px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin: 4px 0; }
.guide .prose section { margin-bottom: 28px; }
.guide .prose h2 { scroll-margin-top: 16px; }
