/* ─────────────────────────────────────────
   Wooden House Books — Freebie brand CSS
   Shared across all printable freebies in /freebies/.
   Printer-friendly: white page bg, cream-deep only on
   callouts, tag pills, mini-boxes, placeholder tints.
───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;1,9..144,500;1,9..144,700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --whb-surface: #FFFFFF;
  --whb-cream: #FBF7F0;
  --whb-cream-deep: #F3ECDE;

  --whb-teal: #2C8FAE;
  --whb-teal-deep: #1E566B;
  --whb-teal-darkest: #163846;

  --whb-mustard: #F4B942;
  --whb-mustard-deep: #C69525;

  --whb-charcoal: #2B2B2B;
  --whb-muted: #5A5954;
  --whb-border: #E1DDD1;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
}

@page { size: Letter; margin: 0.5in; }
@page coloring { size: Letter; margin: 0.25in; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--whb-surface);
  color: var(--whb-charcoal);
  font-family: 'Nunito', sans-serif;
  font-size: 11pt;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  page-break-after: always;
  padding: var(--space-3);
  min-height: calc(11in - 1in);
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 7.5in;
  margin: 0 auto;
}
.page:last-of-type { page-break-after: auto; }
.page--coloring { page: coloring; background: white; }
.page__body { flex: 1; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  color: var(--whb-teal-deep);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 36pt; margin-bottom: var(--space-3); }
.cover-page h1 { font-size: 42pt; margin-bottom: var(--space-3); }
h2 { font-size: 24pt; margin-bottom: var(--space-2); }
h3 { font-size: 17pt; font-weight: 500; margin-bottom: var(--space-2); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--whb-teal-deep); }

p { margin-bottom: var(--space-2); max-width: 65ch; }
p.lead { font-size: 13pt; line-height: 1.6; }
a { color: var(--whb-teal); text-decoration: none; }

em.callout {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14pt;
  color: var(--whb-teal-deep);
}

.eyebrow { margin-bottom: var(--space-1); }
.eyebrow__text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 9pt;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--whb-mustard-deep);
  display: block;
}
.eyebrow__rule {
  display: block;
  width: 32px;
  height: 4px;
  background: var(--whb-mustard);
  margin-top: 4px;
  border-radius: 2px;
}

.whb-logo { display: block; }
.whb-logo--cover { width: 1.8in; margin-bottom: var(--space-3); }
.whb-logo--back { width: 2in; margin: 0 auto var(--space-2); }

.cover-page {
  background: var(--whb-surface);
  align-items: center;
  text-align: center;
  justify-content: center;
}
.cover-page__logo { width: 1.8in; margin-bottom: var(--space-4); }
.cover-page__title { max-width: 7in; margin: 0 auto var(--space-3); }
.cover-page__subtitle {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16pt;
  color: var(--whb-muted);
  margin-bottom: var(--space-4);
}
.cover-page__attribution {
  font-family: 'Nunito', sans-serif;
  font-size: 11pt;
  color: var(--whb-muted);
  margin-top: var(--space-5);
}
.cover-page__attribution em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--whb-teal-deep);
}

.illust-placeholder {
  border: 2px dashed var(--whb-border);
  background: rgba(243, 236, 222, 0.5);
  border-radius: 12px;
  padding: var(--space-3);
  margin: var(--space-2) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 2.5in;
  page-break-inside: avoid;
}
.illust-placeholder--hero { min-height: 4in; }
.illust-placeholder--small { min-height: 1.5in; }
.illust-placeholder--coloring {
  border: 2px solid var(--whb-charcoal);
  background: white;
  min-height: 8in;
}
.illust-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 8pt;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--whb-mustard-deep);
  display: block;
  margin-bottom: 4px;
}
.illust-prompt {
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-size: 9pt;
  color: var(--whb-muted);
  line-height: 1.4;
  margin: 0;
}

.activity-box {
  background: var(--whb-surface);
  border: 1px solid var(--whb-border);
  border-radius: 12px;
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  page-break-inside: avoid;
}
.activity-box h3 { margin-bottom: var(--space-1); }

.callout {
  background: var(--whb-cream-deep);
  border-radius: 16px;
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  page-break-inside: avoid;
}
.callout__label {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 9pt;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--whb-mustard-deep);
  margin-bottom: var(--space-1);
}
.callout p { margin-bottom: var(--space-1); font-size: 10.5pt; }
.callout p:last-child { margin-bottom: 0; }

.bilingual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4in;
  margin-bottom: var(--space-3);
}

.vocab-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.vocab-card {
  background: var(--whb-surface);
  border: 1px solid var(--whb-border);
  border-radius: 12px;
  padding: var(--space-2);
  text-align: center;
  page-break-inside: avoid;
  min-height: 3.5in;
  display: flex;
  flex-direction: column;
}
.vocab-card__illust {
  flex: 1;
  min-height: 1.8in;
  border: 2px dashed var(--whb-border);
  border-radius: 8px;
  background: rgba(243, 236, 222, 0.5);
  padding: var(--space-1);
  margin-bottom: var(--space-1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vocab-card__rule {
  width: 24px;
  height: 3px;
  background: var(--whb-mustard);
  margin: var(--space-1) auto;
  border-radius: 2px;
}
.vocab-card__es {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22pt;
  color: var(--whb-teal-deep);
  line-height: 1.1;
}
.vocab-card__en {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14pt;
  color: var(--whb-charcoal);
  margin-top: 4px;
}

.back-page {
  align-items: center;
  text-align: center;
  justify-content: center;
  padding-top: var(--space-5);
}
.back-page__cta {
  font-family: 'Fraunces', serif;
  font-size: 22pt;
  color: var(--whb-teal-deep);
  max-width: 5in;
  margin: var(--space-3) auto;
  line-height: 1.3;
}
.back-page__cta em { font-style: italic; }
.qr-placeholder {
  width: 1.5in;
  height: 1.5in;
  border: 2px dashed var(--whb-charcoal);
  border-radius: 4px;
  margin: var(--space-3) auto;
  font-family: 'Nunito', sans-serif;
  font-size: 8pt;
  color: var(--whb-muted);
  text-align: center;
  padding-top: 0.45in;
  box-sizing: border-box;
}
.qr-placeholder strong {
  display: block;
  font-size: 9pt;
  margin-bottom: 4px;
}
.back-page__url {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 12pt;
  color: var(--whb-teal);
  margin-top: var(--space-2);
}
.back-page__tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 10pt;
  color: var(--whb-muted);
  margin-top: var(--space-2);
  max-width: 5in;
}

.page-footer {
  font-family: 'Nunito', sans-serif;
  font-size: 8pt;
  color: var(--whb-muted);
  text-align: center;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--whb-border);
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-auto { margin-top: auto; }

.star {
  color: var(--whb-mustard-deep);
  font-family: 'Fraunces', serif;
}

.draw-frame {
  border: 2px solid var(--whb-border);
  border-radius: 12px;
  min-height: 4in;
  margin-bottom: var(--space-2);
  background: var(--whb-surface);
}
.write-lines { margin-top: var(--space-2); }
.write-line {
  border-bottom: 1px solid var(--whb-border);
  height: 22pt;
  margin-bottom: 10pt;
}

/* Chip / kind-words tag */
.chip {
  display: inline-block;
  border: 1.5px solid var(--whb-mustard);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 4px 4px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 11pt;
  color: var(--whb-charcoal);
  background: var(--whb-surface);
}

/* Scenario card (numbered) */
.scenario {
  border: 1px solid var(--whb-border);
  border-radius: 12px;
  padding: var(--space-2);
  margin-bottom: var(--space-2);
  page-break-inside: avoid;
}
.scenario__num {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--whb-mustard-deep);
  font-size: 14pt;
  margin-right: 8px;
}
.scenario__text {
  font-family: 'Nunito', sans-serif;
  font-size: 11pt;
  margin-bottom: var(--space-1);
}
.scenario__options { list-style: none; margin-top: 6px; }
.scenario__options li {
  padding: 4px 0;
  font-size: 10.5pt;
}
.scenario__bullet {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--whb-teal);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* Upstander/bystander two-column check */
.choice-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--whb-border);
  border-radius: 12px;
  padding: var(--space-2);
  margin-bottom: var(--space-2);
  page-break-inside: avoid;
}
.choice-row__scene {
  font-size: 11pt;
}
.choice-box {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--whb-teal-deep);
  border-radius: 4px;
}
.choice-row__label {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 8pt;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--whb-muted);
  text-align: center;
  display: block;
  margin-top: 2px;
}

/* Pledge box */
.pledge {
  border: 2px solid var(--whb-teal-deep);
  border-radius: 12px;
  padding: var(--space-3);
  margin-top: var(--space-2);
}
.pledge__statements { list-style: none; margin: var(--space-2) 0; }
.pledge__statements li {
  padding: 6px 0;
  font-size: 11pt;
}
.pledge__signature {
  border-bottom: 1px solid var(--whb-charcoal);
  height: 26pt;
  width: 3.5in;
  margin-top: var(--space-3);
}

/* Friendship circle figures */
.friend-circle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  margin: var(--space-2) 0;
}
.friend-figure {
  text-align: center;
}
.friend-figure__body {
  width: 1in;
  height: 1.3in;
  border: 2px dashed var(--whb-border);
  border-radius: 50% 50% 12px 12px;
  margin: 0 auto var(--space-1);
  background: rgba(243, 236, 222, 0.3);
}
.friend-figure__line {
  border-bottom: 1px solid var(--whb-border);
  height: 18pt;
  margin-top: 4px;
}

/* Bilingual vocab table */
.vocab-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-3);
  font-size: 10.5pt;
}
.vocab-table th, .vocab-table td {
  border: 1px solid var(--whb-border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.vocab-table th {
  background: var(--whb-cream-deep);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 9pt;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--whb-mustard-deep);
}
.vocab-table .es {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--whb-teal-deep);
}

/* Audience tag pill */
.audience-tag {
  display: inline-block;
  background: var(--whb-cream-deep);
  color: var(--whb-teal-deep);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 9pt;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}

/* Print: hide screen-only helpers */
@media print {
  body { background: white; }
}
