/* ==========================================================================
   Kaira Bhatia — Author site
   Palette: light blue + sunshine yellow. Rounded, friendly, book-ish.
   ========================================================================== */

:root {
  --blue-50:  #f2fafe;
  --blue-100: #e2f4fd;
  --blue-200: #c6e9fa;
  --blue-300: #97d8f4;
  --blue-400: #5fbfe8;
  --blue-500: #33a6da;
  --blue-700: #1b7fae;

  --yellow-100: #fff8e1;
  --yellow-200: #ffefbb;
  --yellow-300: #ffe08a;
  --yellow-400: #ffcf4d;
  --yellow-500: #f7b924;

  --ink:      #1f3d4a;
  --ink-soft: #4a6b78;
  --white:    #ffffff;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(31, 61, 74, 0.07);
  --shadow:    0 8px 24px rgba(31, 61, 74, 0.10);
  --shadow-lg: 0 18px 44px rgba(31, 61, 74, 0.16);

  --page: 1120px;
  --font-display: "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Quicksand", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--blue-50);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-700); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--blue-500); }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 760px; }

section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }

/* --- Decorative helpers -------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: var(--radius-pill);
  padding: 0.3rem 1rem;
  margin-bottom: 1rem;
}

.eyebrow.sun { color: #8a5e00; background: var(--yellow-200); }

.section-title { text-align: center; margin-bottom: 2.75rem; }
.section-title p { color: var(--ink-soft); max-width: 620px; margin: 0.25rem auto 0; }

.squiggle {
  display: block;
  width: 120px;
  height: 12px;
  margin: 0.75rem auto 0;
  background:
    radial-gradient(circle at 10px 12px, transparent 8px, var(--yellow-400) 8px, var(--yellow-400) 11px, transparent 11px) 0 0/24px 24px repeat-x;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 1.7rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--yellow-400);
  color: #7a5200;
  box-shadow: 0 4px 0 var(--yellow-500), var(--shadow-sm);
}
.btn-primary:hover { background: var(--yellow-300); color: #7a5200; }

.btn-blue {
  background: var(--blue-400);
  color: var(--white);
  box-shadow: 0 4px 0 var(--blue-500), var(--shadow-sm);
}
.btn-blue:hover { background: var(--blue-300); color: var(--ink); }

.btn-ghost {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: inset 0 0 0 2px var(--blue-200), var(--shadow-sm);
}
.btn-ghost:hover { background: var(--blue-100); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* --- Header / nav -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 250, 254, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--blue-200);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-300);
  font-size: 1.15rem;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-700);
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
}

.nav a:hover { background: var(--blue-100); color: var(--blue-700); }
.nav a[aria-current="page"] { background: var(--yellow-300); color: #7a5200; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 2px solid var(--blue-200);
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 0.7rem 0.9rem; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 420px at 85% -10%, var(--yellow-100), transparent 60%),
    linear-gradient(180deg, var(--blue-100), var(--blue-50));
  padding: 4.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 { margin-bottom: 0.35em; }
.hero h1 .accent {
  background: linear-gradient(180deg, transparent 62%, var(--yellow-300) 62%);
}

.hero-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 2px dashed var(--blue-200);
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--blue-700);
}

.hero-stats div span { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }

.hero-art { position: relative; display: grid; place-items: center; }

.hero-books { position: relative; width: min(100%, 420px); }

.hero-books img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.hero-books .front {
  width: 68%;
  position: relative;
  z-index: 2;
  transform: rotate(-4deg);
}

.hero-books .back {
  width: 58%;
  position: absolute;
  right: 0;
  bottom: 8%;
  z-index: 1;
  transform: rotate(7deg);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art { order: -1; }
}

/* --- Cards --------------------------------------------------------------- */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--blue-100);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.icon-card { text-align: center; }

.icon-card .bubble {
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  border-radius: 50%;
  background: var(--blue-100);
}

.icon-card:nth-child(2n) .bubble { background: var(--yellow-200); }

.icon-card h3 { margin-bottom: 0.35em; }
.icon-card p { font-size: 0.98rem; color: var(--ink-soft); }

/* --- Book blocks --------------------------------------------------------- */

.book {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--white);
  border: 2px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.book-cover img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.book h2 { margin-bottom: 0.2em; }

.book .subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-700);
  margin-bottom: 1rem;
}

.meta-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }

.meta-pills li {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--blue-100);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.85rem;
}

.toc-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }

.toc-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 2px dotted var(--blue-200);
  font-weight: 600;
}

.toc-list li:last-child { border-bottom: none; }

.toc-list .num {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-300);
  color: #7a5200;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

@media (max-width: 780px) {
  .book { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.5rem; }
  .book-cover { max-width: 260px; margin: 0 auto; }
}

/* --- Timeline ------------------------------------------------------------ */

.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 3px solid var(--blue-200); }

.timeline li { position: relative; padding: 0 0 2rem 0.5rem; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -2.6rem;
  top: 0.45rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow-400);
  box-shadow: 0 0 0 4px var(--blue-50);
}

.timeline .when {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-700);
  font-size: 0.95rem;
}

.timeline h3 { margin: 0.15em 0 0.3em; font-size: 1.2rem; }
.timeline p { color: var(--ink-soft); font-size: 0.98rem; }

/* --- Quote / testimonial ------------------------------------------------- */

.quote {
  background: var(--yellow-100);
  border: 2px solid var(--yellow-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
}

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
}

.quote cite { font-style: normal; font-weight: 700; color: var(--ink-soft); }

/* --- Gallery ------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery figure {
  margin: 0;
  background: var(--white);
  border: 2px solid var(--blue-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.gallery figcaption {
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* --- Story / excerpt cards ---------------------------------------------- */

.story-card {
  background: var(--white);
  border: 2px solid var(--blue-100);
  border-left: 8px solid var(--yellow-300);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.story-card h3 { margin-bottom: 0.15em; }

.story-card .from {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.story-card .excerpt {
  font-size: 1.05rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--blue-200);
  padding-left: 1.1rem;
  font-style: italic;
  /* consecutive excerpts share one unbroken left rule */
  margin-bottom: 0;
  padding-bottom: 1em;
}

.story-card .excerpt:last-child { padding-bottom: 0; }

/* --- Callout band -------------------------------------------------------- */

.band {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-300));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.band h2 { color: var(--white); }
.band p { color: rgba(255, 255, 255, 0.95); max-width: 55ch; margin-inline: auto; }
.band .btn-row { justify-content: center; margin-top: 1.75rem; }

.band.warm { background: linear-gradient(135deg, var(--yellow-400), var(--yellow-300)); }
.band.warm h2 { color: #6b4700; }
.band.warm p { color: #7a5200; }

/* --- Charity note -------------------------------------------------------- */

.give {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 3px dashed var(--yellow-300);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.give .heart {
  width: 76px;
  height: 76px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  border-radius: 50%;
  background: var(--yellow-200);
}

.give h3 { margin-bottom: 0.3em; }
.give p { color: var(--ink-soft); }

@media (max-width: 620px) {
  .give { grid-template-columns: 1fr; text-align: center; }
  .give .heart { margin: 0 auto; }
}

/* --- Character vote ------------------------------------------------------ */

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.choice { position: relative; }

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice label {
  display: block;
  height: 100%;
  cursor: pointer;
  background: var(--white);
  border: 3px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 1.5rem 1.1rem;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.choice label:hover { transform: translateY(-2px); border-color: var(--blue-300); }

.choice input:checked + label {
  border-color: var(--yellow-400);
  background: var(--yellow-100);
}

.choice input:focus-visible + label {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
}

.choice .emoji { display: block; font-size: 2.1rem; margin-bottom: 0.5rem; }
.choice .name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.choice .hint { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.25rem; }

/* --- Feedback ------------------------------------------------------------ */

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.25rem;
}

.feedback-card {
  background: var(--white);
  border: 2px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.feedback-card .stars { color: var(--yellow-500); letter-spacing: 3px; margin-bottom: 0.6rem; }
.feedback-card p { font-size: 1rem; }
.feedback-card .who {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* --- Forms --------------------------------------------------------------- */

.form-field { margin-bottom: 1.15rem; }

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 3px solid var(--yellow-300);
  outline-offset: 1px;
  border-color: var(--blue-400);
}

.form-note { font-size: 0.9rem; color: var(--ink-soft); }

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  margin-top: 2rem;
  background: var(--ink);
  color: var(--blue-200);
  padding: 3rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.site-footer a { color: var(--blue-200); text-decoration: none; }
.site-footer a:hover { color: var(--yellow-300); text-decoration: underline; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  text-align: center;
  color: rgba(226, 244, 253, 0.7);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* --- Utilities ----------------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.bg-white { background: var(--white); }
.bg-blue { background: var(--blue-100); }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
