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

:root {
  --cream: #fff8ec;
  --paper: #ffffff;
  --sky: #dff1fb;
  --meadow: #e9f5dc;
  --ink: #3b2a1e;
  --ink-soft: #6a5646;
  --collar: #b8322c;
  --collar-dark: #922620;
  --gold: #e8b25c;
  --line: #ead9c0;
  --focus: #1f6fb2;
  --radius: 18px;
  --gutter: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a { color: var(--collar-dark); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2rem, 7vw, 3.2rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0 0 0.5em; }
h3 { font-size: 1.35rem; margin: 0.4em 0 0.2em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--paper); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.brand { display: block; line-height: 0; }
.brand img { height: 46px; width: auto; }
@media (min-width: 700px) { .brand img { height: 54px; } }
.tagline { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 699px) { .tagline { display: none; } }

/* Hero */
.hero { background: var(--sky); }
.hero picture img { width: 100%; aspect-ratio: 900 / 429; object-fit: cover; }
@media (min-width: 760px) {
  .hero picture img { aspect-ratio: 2000 / 551; max-height: 560px; object-position: center 35%; }
}
.hero-text { padding-top: 28px; padding-bottom: 36px; }
.hero-text p { font-size: 1.12rem; max-width: 40em; margin: 0 0 1.2em; }
.for-grownups {
  display: inline-block; margin: 0 0 12px; padding: 3px 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.9rem; color: var(--ink-soft);
}

.button {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--collar); color: #fff; text-decoration: none;
  font: 600 1.1rem/1.2 "Fredoka", ui-rounded, system-ui, sans-serif;
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 3px 0 var(--collar-dark);
}
.button:hover { background: var(--collar-dark); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--collar-dark); }
.button[disabled] { opacity: 0.7; cursor: progress; }
.button.secondary { background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 var(--line); border: 2px solid var(--line); }

section { padding: 44px 0; }

/* Meet the trio */
.meet { background: var(--paper); }
.trio { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio li {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: grid; grid-template-columns: 92px 1fr; column-gap: 14px; align-items: center;
}
.trio img { grid-row: span 2; width: 92px; height: 92px; object-fit: contain; }
.trio h3 { margin: 0; align-self: end; }
.trio p { margin: 0; color: var(--ink-soft); align-self: start; font-size: 0.97rem; line-height: 1.45; }
@media (min-width: 700px) {
  .trio li { display: block; padding: 18px; text-align: center; }
  .trio img { width: auto; height: 170px; margin: 0 auto 6px; }
  .trio h3 { margin: 0.4em 0 0.2em; }
}

/* The book */
.book .wrap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 700px) { .book .wrap { grid-template-columns: 320px 1fr; gap: 40px; } }
.book img { border-radius: 10px; box-shadow: 0 8px 24px rgba(59, 42, 30, 0.18); width: 100%; max-width: 320px; margin: 0 auto; }
.book .by { color: var(--ink-soft); margin-top: -0.4em; }
.soon { font-weight: 600; }

/* Signup */
.signup { background: var(--meadow); }
.card {
  background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 24px var(--gutter); max-width: 640px; margin: 0 auto;
}
@media (min-width: 600px) { .card { padding: 32px; } }
.card > p:first-of-type { margin-top: 0; }
.card .preview { width: 100%; border-radius: 12px; margin: 0 0 16px; }
label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type="email"] {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
input[type="email"]:focus { border-color: var(--focus); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 20px; font-weight: 400; }
.consent input { width: 22px; height: 22px; margin: 3px 0 0; flex: none; accent-color: var(--collar); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.form-message.error { color: var(--collar-dark); }
.small { font-size: 0.9rem; color: var(--ink-soft); }
.small p { margin: 0.6em 0; }

/* Plain pages */
.page { padding: 36px 0 56px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.45rem; margin-top: 1.6em; }
.mascot { height: 140px; width: auto; margin-bottom: 12px; }
.downloads { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }

/* Footer */
.site-footer { background: var(--ink); color: #f3e7d6; padding: 28px 0 36px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0.3em 0; }

/* Content pages
   Added 2026-11-01: header and footer nav (every page), and the book, reading-guide,
   meet-the-three-paws, about and owl-facts pages. Overrides of earlier rules are marked. */

/* Header nav: its own row on phones, beside the brand on wide screens */
.site-nav { flex-basis: 100%; }
.site-nav ul, .footer-nav ul {
  display: flex; flex-wrap: wrap; gap: 2px 20px;
  margin: 0; padding: 0; list-style: none;
}
.site-nav a {
  display: inline-block; padding: 6px 0;
  color: var(--ink); font-weight: 600; font-size: 0.97rem;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--collar-dark); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--collar-dark); border-bottom-color: var(--collar); }
@media (min-width: 960px) {
  /* Override: the header row was space-between; the nav now takes the right-hand end. */
  .site-header .wrap { justify-content: flex-start; align-items: center; }
  .site-nav { flex-basis: auto; margin-left: auto; }
}

/* Footer nav */
.footer-nav { margin: 0 0 14px; }
.footer-nav a { display: inline-block; padding: 4px 0; font-weight: 600; }

/* Article layout: .page (above) gives the narrow column; sections inside it lose the
   big band padding (override of the plain `section` rule). */
.page section { padding: 0; }
.page section + section { margin-top: 8px; }
.kicker { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }
.lede { font-size: 1.12rem; }
.page h3 { font-size: 1.2rem; margin-top: 1.2em; }
.page li { margin: 0.35em 0; }
.back-link { margin: 0 0 18px; font-size: 0.95rem; }

/* Book page header (reuses the home page .book grid) */
.book-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.book-hero h1 { margin-bottom: 0.3em; }

/* Format facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 1em; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

/* Look inside */
.spreads { display: grid; gap: 28px; margin: 18px 0 8px; }
.spreads figure { margin: 0; }
.spreads img { width: 100%; border-radius: 12px; box-shadow: 0 6px 18px rgba(59, 42, 30, 0.15); }
.spreads figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 0.97rem; }
.spreads figcaption strong { color: var(--ink); }

/* Callouts, word lists, link lists */
.note {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 20px 0;
}
.note p { margin: 0.4em 0; }
.words { margin: 0; }
.words dt { font-weight: 600; font-size: 1.1rem; margin-top: 14px; }
.words dd { margin: 4px 0 0; }
.questions li { margin: 0.7em 0; }
.questions .where { display: block; color: var(--ink-soft); font-size: 0.92rem; }
.more-links { padding-left: 1.2em; }
.sources { font-size: 0.92rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.sources li { margin: 0.5em 0; }

/* Character profiles */
.profile { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 8px; }
.profile img { width: auto; height: 150px; margin: 0; }
@media (min-width: 600px) {
  .profile { grid-template-columns: 170px 1fr; gap: 24px; align-items: start; }
  .profile img { width: 100%; height: auto; max-height: 200px; object-fit: contain; }
}
.profile h2 { margin-top: 0.4em; }
.traits { margin: 0.6em 0; padding-left: 1.2em; }
.wide-figure { margin: 16px 0; }
.wide-figure img { width: 100%; border-radius: 12px; }
.wide-figure figcaption { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; }

/* Signup call-to-action band (links to /#signup; no form on these pages) */
.cta { background: var(--meadow); }
.cta .card { text-align: center; }
.cta h2 { margin-bottom: 0.4em; }
.cta p { margin: 0 0 18px; }
