/* Pip Albright: a picture-book publisher's author page. Fredoka for headings, Nunito for text,
   warm white with ink, Bramble's scarf red for the main action and a soft sun yellow behind him.
   The one motif is Bramble himself. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("https://cdn.beautiful.host/site_b61p4tb3frsfy5ztypk9/fonts/fredoka-normal-500-700.99d6c78e0437.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("https://cdn.beautiful.host/site_b61p4tb3frsfy5ztypk9/fonts/nunito-normal-400-800.ba344451eab2.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #fffcf7;
  --tint: #f7f1e6;
  --line: #e7dfd1;
  --ink: #2d2440;
  --muted: #5a5268;
  --accent: #c2391d;      /* Bramble's scarf, deepened for text and buttons */
  --accent-dark: #a32f17;
  --sun: #ffd666;         /* the round shape behind Bramble */
  --sun-soft: #fff0c2;
  --font-display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --shadow: 0 14px 28px -16px rgb(45 36 64 / .45);
  --wide: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 18px/1.65 var(--font-body); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--accent-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .45em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.3rem; }
h2 a, h3 a { color: inherit; text-decoration: none; }
h2 a:hover, h3 a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); border: 2px solid var(--ink); padding: 10px 14px; z-index: 50; border-radius: var(--radius); }
.eyebrow { font-weight: 700; font-size: 1rem; color: var(--accent-dark); margin: 0 0 8px; }
.eyebrow a { color: inherit; }
.muted { color: var(--muted); }
.lead { font-size: 1.22rem; line-height: 1.55; max-width: 36em; }
.note { background: var(--sun-soft); padding: 12px 16px; border-radius: var(--radius); }
.page-head { max-width: 760px; margin: 24px 0 8px; }

/* ---------- header ---------- */
.top { max-width: var(--wide); margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.7rem/1 var(--font-display); min-height: 48px; }
.brand .face { width: 48px; height: 37px; flex: none; }
.brand .face svg { display: block; width: 100%; height: 100%; }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 -12px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.nav a:hover { color: var(--accent-dark); }
.nav a[aria-current="page"] { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.top-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

main { max-width: var(--wide); margin: 0 auto; padding: 24px 24px 88px; }
.section { margin-top: 88px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

/* ---------- buttons: one shape, one accent ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  font: 700 1rem/1.2 var(--font-body); color: var(--ink); text-decoration: none; text-align: center; cursor: pointer;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); transition: background .15s, color .15s;
}
.button:hover { background: var(--tint); text-decoration: none; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.small { min-height: 44px; padding: 8px 16px; font-size: .96rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.buy { margin: 22px 0; }
.buy .release { font-weight: 700; }
.buy .sale { font-weight: 700; color: var(--accent-dark); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 28px 0 8px; }
.hero h1 { max-width: 13em; }
.hero .lead { margin-bottom: 28px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; }
.hero-art::before { content: ""; position: absolute; inset: 8% 4% 4% 4%; border-radius: 50%; background: var(--sun); }
.hero-art .wave { position: absolute; left: 12%; right: 12%; bottom: 2%; }
.hero-art .wave svg { display: block; width: 100%; height: auto; }

/* ---------- Bramble, peeking over the top of a box (the motif) ---------- */
.peek { position: absolute; width: clamp(108px, 13vw, 140px); right: 32px; top: 0; transform: translateY(-82%); pointer-events: none; }
.peek svg { display: block; width: 100%; height: auto; }

/* ---------- books ---------- */
.shelf-unit + .shelf-unit { margin-top: 64px; }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 40px 32px; }
.book { display: block; color: var(--ink); text-decoration: none; }
.book .cover { display: block; position: relative; }
.book .cover img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); transition: transform .2s; }
a.book:hover .cover img { transform: translateY(-4px); }
.book .label { display: block; margin-top: 16px; }
.book-title { display: block; font: 600 1.15rem/1.25 var(--font-display); }
a.book:hover .book-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.book .meta { display: block; color: var(--muted); font-size: .98rem; margin-top: 4px; }
.book .meta .new { color: var(--accent-dark); font-weight: 700; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .9rem; padding: 4px 10px; border-radius: var(--radius); }
.book-series { color: var(--muted); }

/* ---------- the new book ---------- */
.spotlight { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 64px; align-items: center; }
.spotlight img { display: block; width: 100%; border-radius: 6px; box-shadow: var(--shadow); }
.spotlight h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

/* ---------- parents and teachers ---------- */
.corners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.corner { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.corner p { flex: 1; max-width: 32em; }
.corner .buttons { flex: none; }

.event-row { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.event-row h2 { margin: 0 0 6px; }
.event-row p { margin: 0; }

/* ---------- the grown-ups' panel ---------- */
.grownups { margin-top: 88px; background: var(--tint); border-radius: var(--radius); padding: 40px; }
.grownups > h2 { margin-bottom: 12px; }
.grownups p { max-width: 44em; }
.grownups dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; margin: 0; }
.grownups dt { font-weight: 700; }
.grownups dd { margin: 0; }
.grownups ul { margin: 0; padding-left: 1.2em; }
.grownups li + li { margin-top: 6px; }
.table-scroll { overflow-x: auto; margin-top: 8px; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.facts-table th, .facts-table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table thead th { font-weight: 700; color: var(--muted); }
.facts-table tbody th { font-weight: 700; }
.facts-table td:nth-child(2) { white-space: nowrap; }
.facts-table a { color: var(--ink); }

/* ---------- a book's page ---------- */
.book-page { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 64px; align-items: start; margin-top: 24px; }
.book-page .book-cover img { display: block; width: 100%; border-radius: 6px; box-shadow: var(--shadow); }
.book-page h1 { margin-bottom: .25em; }
.subtitle { font: 500 1.3rem/1.3 var(--font-display); color: var(--muted); }
.tagline { font-size: 1.25rem; line-height: 1.5; }
.blurb { max-width: 36em; }
.blurb p:last-child { margin-bottom: 0; }
.praise { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 40px; }
.praise blockquote { margin: 0; border-left: 3px solid var(--sun); padding: 4px 0 4px 20px; }
.praise p { font-size: 1.15rem; line-height: 1.55; margin-bottom: 8px; }
.praise cite { font-style: normal; color: var(--muted); font-size: 1rem; }

/* ---------- series in order ---------- */
.stones { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; }
.stones li { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.stones li:last-child { border-bottom: 1px solid var(--line); }
.stones img { display: block; width: 100%; border-radius: 6px; box-shadow: var(--shadow); }
.stones h2 { font-size: 1.5rem; margin: 0 0 6px; }
.stones p { margin: 0 0 12px; max-width: 38em; }

/* ---------- newsletter ---------- */
.signup { position: relative; max-width: var(--wide); margin: 150px auto 72px; width: calc(100% - 48px); background: var(--sun-soft); border-radius: var(--radius); padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center; }
main .signup { width: 100%; }
.signup h2 { margin-bottom: 10px; }
.signup p { margin: 0; }
.signup-form { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 460px; }
.signup-form input[type="email"] { grid-column: 1 / -1; }
.signup-form button { grid-column: 1 / -1; }
.signup-form input:not([type="checkbox"]), .card-form input, .card-form select, .card-form textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #b9b0a3; border-radius: var(--radius);
}
.signup-form input:focus, .card-form input:focus, .card-form select:focus, .card-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.status { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.status:empty { display: none; }
.card-form { display: grid; gap: 16px; }
.card-form label { display: grid; gap: 6px; font-weight: 700; }
.card-form textarea { min-height: 110px; }
.card-form button { justify-self: start; }
.form-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: #fff; max-width: 760px; }

/* ---------- start here ---------- */
.quiz { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: #fff; max-width: 820px; }
.quiz h2 { margin-bottom: 20px; }
.quiz .steps { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.quiz .steps i { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-style: normal; font-size: .9rem; background: var(--tint); color: var(--muted); }
.quiz .steps i.on { background: var(--sun); color: var(--ink); }
.quiz-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.quiz-answers .button { justify-content: flex-start; text-align: left; min-height: 56px; }
.quiz-book { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; margin-bottom: 20px; }
.quiz-book img { display: block; width: 100%; border-radius: 6px; box-shadow: var(--shadow); }
.quiz-book h2 { margin-bottom: 4px; }
.quiz-result .eyebrow { margin-bottom: 14px; }
.quiz-wrap { margin-top: 36px; }
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.paths li { display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.paths img { display: block; width: 100%; border-radius: 6px; box-shadow: var(--shadow); }
.paths h3 { font-size: 1.35rem; }
.paths p { max-width: 38em; margin: 0; }
.paths .eyebrow { margin-bottom: 6px; }

/* ---------- events ---------- */
.tickets { list-style: none; margin: 0; padding: 0; }
.ticket { display: grid; grid-template-columns: 84px 1fr; gap: 28px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.ticket:last-child { border-bottom: 1px solid var(--line); }
.ticket .date { display: grid; place-items: center; align-content: center; width: 84px; height: 84px; border-radius: var(--radius); background: var(--sun-soft); font-family: var(--font-display); line-height: 1; }
.ticket .date span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.ticket .date b { font-size: 2rem; font-weight: 600; margin-top: 4px; }
.ticket h3 { font-size: 1.4rem; margin-bottom: 4px; }
.ticket p { margin: 0 0 6px; }
.ticket p:last-child { margin: 12px 0 0; }
.event { max-width: 760px; margin-top: 24px; }
.rsvp { position: relative; margin-top: 110px; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: #fff; }
.rsvp h2 { margin-bottom: 6px; }
.seats { margin: 0 0 18px; }
.ended[hidden] { display: none; }
.schools { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: #fff; }

/* ---------- teachers ---------- */
.sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.sheet { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; }
.sheet img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.sheet h3 { margin-bottom: 6px; }
.topics { padding-left: 1.2em; max-width: 44em; }
.topics li + li { margin-top: 10px; }
.facts { max-width: 44em; }
.bio { border-top: 1px solid var(--line); padding: 24px 0; max-width: 44em; }
.bio:last-child { border-bottom: 1px solid var(--line); }
.bio h3 { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bio p { margin: 0; }
.downloads { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px; }
.downloads img { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 10px; }
.downloads.covers img { border: 0; box-shadow: var(--shadow); }
.downloads p { margin: 0 0 10px; font-size: 1rem; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 56px; align-items: center; margin-top: 24px; }
.portrait { background: var(--sun); border-radius: 50%; aspect-ratio: 1; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.portrait > div { width: 86%; }
.portrait svg { display: block; width: 100%; height: auto; }
.about p { max-width: 36em; }

/* ---------- footer ---------- */
.floor { border-top: 1px solid var(--line); background: var(--tint); }
.floor .inner { max-width: var(--wide); margin: 0 auto; padding: 40px 24px 48px; }
.floor nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 18px; }
.floor nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.floor nav a:hover { text-decoration: underline; }
.floor .fine { color: var(--muted); font-size: 1rem; margin: 0 0 8px; max-width: 60em; }
.floor .fine a { color: inherit; }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spotlight { gap: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .top { padding: 10px 16px 6px; gap: 2px; }
  .brand { font-size: 1.45rem; }
  .brand .face { width: 40px; height: 31px; }
  .nav { margin: 0 -8px; gap: 0; }
  .nav a { padding: 0 8px; min-height: 44px; font-size: .95rem; }
  main { padding: 16px 16px 64px; }
  .section { margin-top: 64px; }
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
  .hero-art { width: 200px; margin-top: 24px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  .spotlight, .book-page, .about { grid-template-columns: 1fr; }
  .spotlight img, .book-page .book-cover { max-width: 220px; }
  .book-page { gap: 28px; }
  .about .portrait { max-width: 240px; }
  .corners, .sheets { grid-template-columns: 1fr; }
  .corner, .quiz, .rsvp, .schools, .form-panel { padding: 24px; }
  .event-row { grid-template-columns: 1fr; }
  .grownups { padding: 24px; margin-top: 64px; }
  .grownups dl { grid-template-columns: 1fr; gap: 2px; }
  .grownups dd { margin-bottom: 12px; }
  .signup { grid-template-columns: 1fr; padding: 28px 22px; width: calc(100% - 32px); margin-top: 120px; }
  .signup-form { grid-template-columns: 1fr; }
  .stones li, .paths li { grid-template-columns: 84px 1fr; gap: 18px; }
  .ticket { grid-template-columns: 64px 1fr; gap: 18px; }
  .ticket .date { width: 64px; height: 64px; }
  .ticket .date b { font-size: 1.6rem; }
  .sheet { grid-template-columns: 110px 1fr; }
  .quiz-book { grid-template-columns: 90px 1fr; }
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
