:root {
  color-scheme: light;
  --cream: #fff8eb;
  --paper: #fffcf5;
  --brown: #6e3c32;
  --ink: #59473c;
  --muted: #776453;
  --sage: #485b40;
  --line: #e6d9c4;
  --heading: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive;
  --body: Calibri, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.65 var(--body); }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--sage); outline-offset: 6px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--brown); font-family: var(--heading); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); letter-spacing: -.035em; }
h3 { font-size: 1.65rem; }
p + p { margin-top: 16px; }
.section-wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.site-header { width: min(1280px, calc(100% - 80px)); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 32px; min-height: 116px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 13px; text-decoration: none; font: 700 21px/1.16 var(--heading); color: var(--brown); letter-spacing: -.04em; }
.wordmark img { height: 62px; width: 42px; object-fit: contain; }
.wordmark-bottom { font-size: 25px; }
nav { display: flex; gap: 34px; font-size: 16px; font-weight: 600; }
nav a { text-decoration: none; padding-block: 12px; }
nav a:hover, .text-link:hover { color: var(--sage); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 20px; align-items: center; padding-block: 66px 78px; }
.eyebrow { color: var(--sage); font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 20px; }
h1 { font-size: clamp(2.7rem, 4.4vw, 4.2rem); letter-spacing: -.055em; line-height: 1.16; }
h1 span { color: var(--sage); }
.intro { max-width: 440px; margin-top: 27px; font-size: 19px; line-height: 1.7; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 50px; padding: 13px 23px; border: 1px solid var(--brown); border-radius: 9px; background: var(--brown); color: #fff8eb; text-decoration: none; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .16s, transform .16s; }
.button:hover { background: #542d26; transform: translateY(-2px); }
.text-link { font-size: 16px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-block: 10px 4px; }
.text-link span { margin-left: 7px; }
.byline { margin-top: 26px; font-size: 13px; color: var(--muted); }
.byline strong { font-weight: 600; }
.hero-art { position: relative; min-width: 0; }
.hero-scene { width: 100%; }
.art-note { position: absolute; right: 1%; bottom: -16px; padding: 16px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px 20px 7px 20px; transform: rotate(-4deg); color: var(--brown); font: 18px/1.5 var(--heading); text-align: center; box-shadow: 0 7px 20px #6e3c3209; }
.art-note > span { color: #927037; margin-right: 7px; }
.story-ribbon { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 30px; padding: 22px 24px; background: #f0eddf; color: var(--sage); font-size: 14px; letter-spacing: .02em; border-block: 1px solid #e4e2d2; }
.story-ribbon > span:nth-child(even) { color: #a18748; }
.friends-section { padding-block: 86px 94px; }
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 42px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading > p:last-child { margin-top: 19px; color: var(--muted); }
.character-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.character-card { padding: 20px 22px 27px; border: 1px solid var(--line); border-radius: 100px 100px 15px 15px; background: #fffcf56b; text-align: center; }
.character-picture { height: 240px; display: flex; align-items: end; justify-content: center; position: relative; margin-bottom: 24px; }
.character-picture::before { content: ""; position: absolute; bottom: 0; left: 5%; right: 5%; height: 180px; border-radius: 50% 50% 40% 40%; background: #f6e8df; z-index: -1; }
.bear-card .character-picture::before { background: #f0e7d3; }
.pumpkin-card .character-picture::before { background: #e9ecdf; }
.freya-card .character-picture::before { background: #eee6d9; }
.character-picture { isolation: isolate; }
.character-picture img { width: 100%; height: 100%; object-fit: contain; }
.character-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: var(--sage); font-weight: 700; }
.character-card h3 { margin-top: 7px; }
.character-card > p:last-child { margin-top: 13px; font-size: 15px; line-height: 1.65; }
.book-section { background: #f4eddf; border-block: 1px solid var(--line); }
.book-layout { display: grid; grid-template-columns: .95fr 1fr; gap: 90px; align-items: center; padding-block: 76px; }
.book-display { padding: 16px 24px 0; text-align: center; }
.book-cover { border-radius: 2px 8px 8px 2px; box-shadow: -5px 0 0 #ded1bc, -9px 3px 0 #fdf6e9, 2px 19px 35px #5e402629; border: 1px solid #e5d8c4; transform: rotate(-3deg); }
.cover-caption { display: block; margin-top: 29px; color: var(--muted); font-size: 13px; }
.book-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.book-refrain { font: 22px/1.5 var(--heading); color: var(--sage); margin-block: 22px; }
.book-copy > p:not(.eyebrow, .book-refrain, .release-note) { font-size: 17px; }
.book-details { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 23px 0 0; }
.book-details li { padding: 5px 10px; border: 1px solid #ddd0bb; border-radius: 6px; font-size: 12px; color: #66543f; }
.availability-note { display: inline-block; padding: 12px 17px; border: 1px dashed #b5a389; border-radius: 8px; font-size: 15px; color: #66543f; }
.release-note { color: var(--muted); font-size: 12px; margin-top: 15px; }
.peek-section { padding-block: 86px; }
.film-panel { display: grid; grid-template-columns: 1fr .8fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #f0eddf; }
.film-panel > img { width: 100%; height: 100%; object-fit: cover; }
.film-copy { padding: 46px; align-self: center; }
.film-decoration { font-size: 45px; color: #9c804d; display: inline-block; margin-bottom: 12px; }
.film-copy .eyebrow { font-size: 10px; margin-bottom: 16px; }
.film-copy h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: 22px; }
.film-copy > p:not(.eyebrow) { font-size: 16px; }
.film-copy .text-link { display: inline-block; margin-top: 18px; }
.film-player { max-width: 960px; margin: auto; }
.film-player video { width: 100%; max-height: 600px; background: #30291e; border-radius: 15px; }
.film-player p { text-align: center; font-size: 14px; margin-top: 12px; }
.inside-heading { text-align: center; margin: 60px 0 28px; scroll-margin-top: 24px; }
.inside-heading h3 { font-size: 1.45rem; }
.inside-heading p { font-size: 15px; margin-top: 10px; color: var(--muted); }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.preview-link { display: block; position: relative; border-radius: 12px; overflow: hidden; }
.preview-link > img { width: 100%; transition: filter .2s; }
.preview-link:hover > img { filter: brightness(1.04); }
.enlarge { position: absolute; right: 12px; bottom: 12px; background: var(--paper); width: 34px; height: 34px; text-align: center; border-radius: 50%; line-height: 34px; box-shadow: 0 2px 8px #0002; }
.preview-grid figcaption { text-align: center; font-size: 15px; line-height: 1.6; margin-top: 17px; }
.grown-ups { border-block: 1px solid var(--line); padding-block: 32px; display: flex; gap: 28px; align-items: center; max-width: 950px; }
.little-flower { font-size: 50px; color: #a58340; flex-shrink: 0; }
.grown-ups h2 { font-size: 21px; }
.grown-ups p { font-size: 15px; margin-top: 11px; color: var(--muted); }
.closing { text-align: center; padding-block: 74px 80px; }
.closing .eyebrow { margin-bottom: 15px; }
.closing .button { margin-top: 28px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; border-top: 1px solid var(--line); padding-block: 26px; font-size: 12px; color: var(--muted); }
.site-footer p + p { margin: 0; }
.footer-brand { font: 700 18px var(--heading); color: var(--brown); }
.site-footer a { padding-block: 12px; }
.skip-link { position: absolute; left: 20px; top: -100px; background: var(--paper); padding: 10px 20px; z-index: 10; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
dialog { width: min(700px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 22px; background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overscroll-behavior: contain; }
dialog::backdrop { background: #30251dd6; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.dialog-top h2 { font-size: 20px; }
.icon-button { min-width: 44px; min-height: 44px; background: transparent; color: var(--brown); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
dialog figure img { width: 100%; max-height: 56dvh; object-fit: contain; }
dialog figcaption { text-align: center; margin-top: 15px; font-size: 16px; }
.dialog-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; }
.button-small { font-size: 14px; padding: 9px 14px; min-height: 44px; }
#preview-position { font-size: 13px; }
body.preview-open { overflow: hidden; }
@media (max-width: 1000px) {
  .section-wrap, .site-header { width: calc(100% - 48px); }
  .hero { padding-block: 45px 65px; }
  h1 { font-size: clamp(2.5rem, 5vw, 3.4rem); }
  .intro { font-size: 17px; }
  .hero .button-row { gap: 15px; }
  .character-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .character-card { padding-inline: 28px; }
  .character-picture { height: 260px; }
  .character-picture::before { left: 18%; right: 18%; }
  .book-layout { gap: 40px; }
  .book-display { padding-inline: 12px; }
  .film-copy { padding: 28px; }
  .story-ribbon { gap: 20px; }
}
@media (max-width: 650px) {
  body { font-size: 17px; }
  .section-wrap, .site-header { width: calc(100% - 36px); }
  .site-header { min-height: 96px; gap: 16px; flex-wrap: wrap; justify-content: center; padding-block: 18px 12px; }
  .wordmark { font-size: 19px; gap: 10px; }
  .wordmark-bottom { font-size: 23px; }
  .wordmark img { height: 52px; width: 36px; }
  nav { gap: 26px; font-size: 14px; justify-content: center; width: 100%; }
  .hero { grid-template-columns: 1fr; text-align: center; gap: 12px; padding-block: 38px 50px; }
  .hero-copy .eyebrow { font-size: 10px; margin-bottom: 18px; }
  h1 { font-size: clamp(2.3rem, 8.5vw, 3.3rem); }
  .intro { margin: 23px auto 0; max-width: 380px; }
  .hero .button-row { justify-content: center; margin-top: 24px; }
  .byline { margin-top: 20px; }
  .hero-art { max-width: 470px; margin: auto; }
  .art-note { font-size: 14px; padding: 10px 15px; right: 4%; bottom: -5px; }
  .story-ribbon { gap: 9px 14px; font-size: 12px; padding: 18px 20px; }
  .story-ribbon > span:last-child { flex-basis: 100%; text-align: center; }
  .story-ribbon > span:nth-child(4) { display: none; }
  .friends-section { padding-block: 56px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading > p:last-child { font-size: 16px; }
  .eyebrow { font-size: 10px; }
  .desktop-break { display: none; }
  .character-grid { gap: 14px; }
  .character-card { padding: 12px 12px 22px; border-radius: 75px 75px 12px 12px; }
  .character-picture { height: 190px; margin-bottom: 18px; }
  .character-picture::before { height: 120px; left: 0; right: 0; }
  .character-kicker { font-size: 8px; letter-spacing: .03em; }
  .character-card h3 { font-size: 1.4rem; }
  .character-card > p:last-child { font-size: 14px; }
  .book-layout { grid-template-columns: 1fr; gap: 40px; padding-block: 50px; }
  .book-display { max-width: 380px; width: 90%; margin: auto; }
  .book-copy { max-width: 470px; margin: auto; }
  .book-copy .eyebrow { margin-bottom: 14px; }
  .book-copy h2 { font-size: 2.15rem; }
  .peek-section { padding-block: 56px; }
  .film-panel { grid-template-columns: 1fr; }
  .film-panel > img { max-height: 370px; object-fit: contain; background: #f5ecd9; }
  .film-copy { padding: 26px; }
  .film-decoration { display: none; }
  .film-copy h3 { font-size: 2rem; }
  .film-copy h3 br { display: none; }
  .inside-heading { margin-top: 40px; }
  .preview-grid { grid-template-columns: 1fr; max-width: 430px; margin: auto; gap: 30px; }
  .preview-grid figcaption { margin-top: 12px; }
  .grown-ups { gap: 16px; align-items: start; }
  .little-flower { font-size: 32px; }
  .grown-ups h2 { font-size: 19px; }
  .closing { padding-block: 54px; }
  .site-footer { text-align: center; flex-direction: column; padding-block: 25px; gap: 8px; }
  dialog { padding: 15px; }
  .dialog-top h2 { font-size: 17px; }
}
@media (max-width: 360px) {
  .character-grid { grid-template-columns: 1fr; }
  .character-picture { height: 240px; }
  .character-picture::before { left: 16%; right: 16%; height: 170px; }
  nav { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
