:root {
  --sky: #48a9d8;
  --sky-deep: #1784bd;
  --cream: #fff9e8;
  --paper: #fffdf6;
  --grass: #58a94c;
  --grass-dark: #31773a;
  --sun: #ffd85c;
  --orange: #ef8b32;
  --pink: #e76579;
  --brown: #4b2f23;
  --muted: #6a574d;
  --white: #fff;
  --shadow: 0 18px 42px rgba(67, 43, 29, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--brown);
  background: var(--cream);
  font-family: "Trebuchet MS", "Avenir Next Rounded", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--brown); color: #fff; padding: .75rem 1rem; border-radius: .75rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .8rem clamp(1.1rem, 5vw, 5rem);
  background: rgba(255, 253, 246, .95);
  border-bottom: 2px solid rgba(75, 47, 35, .08);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 900; font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: -.02em; }
.brand-characters { display: flex; align-items: center; width: 66px; height: 48px; flex: 0 0 66px; }
.brand-characters img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 3px 8px rgba(75,47,35,.2); }
.brand-characters img + img { margin-left: -22px; }
nav { display: flex; align-items: center; gap: clamp(.9rem, 2.6vw, 2rem); }
nav a { text-decoration: none; font-weight: 800; font-size: .95rem; }
nav a:hover, nav a:focus-visible { color: var(--sky-deep); }

.hero {
  isolation: isolate;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 560px);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 7vw, 7rem) 9rem;
  background: linear-gradient(180deg, #79cced 0%, #b9e5f4 75%, #d6efbd 76%, #86c766 100%);
  position: relative;
  overflow: hidden;
}
.hero-copy { max-width: 690px; position: relative; z-index: 3; }
.eyebrow { margin: 0 0 .65rem; color: #225d38; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; font-size: .82rem; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: 1.2rem; font-size: clamp(3.1rem, 7vw, 6.3rem); text-wrap: balance; text-shadow: 0 4px 0 rgba(255,255,255,.3); }
.hero-copy > p:not(.eyebrow) { max-width: 620px; font-size: clamp(1.12rem, 2vw, 1.35rem); font-weight: 700; }
.hero-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.15rem; border-radius: 999px; text-decoration: none; font-weight: 900; text-align: center; line-height: 1.2; }
.button-primary { color: #fff; background: var(--brown); box-shadow: 0 7px 0 #2f1c14; transition: transform .15s ease, box-shadow .15s ease; }
.button-primary:hover, .button-primary:focus-visible { transform: translateY(3px); box-shadow: 0 4px 0 #2f1c14; }
.launch-note { padding: .55rem .9rem; border-radius: 999px; background: rgba(255,255,255,.68); font-weight: 800; }
.hero-art { position: relative; z-index: 2; width: min(100%, 500px); aspect-ratio: 1; justify-self: center; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; border: 9px solid #fff9e8; border-radius: 5% 5% 4% 4%; box-shadow: 0 30px 60px rgba(43, 73, 49, .28); transform: rotate(2.5deg); }
.sun { position: absolute; width: 190px; height: 190px; background: var(--sun); border-radius: 50%; right: -60px; top: -65px; box-shadow: 0 0 0 22px rgba(255,216,92,.22); z-index: -1; }
.butterfly { position: absolute; font-size: 2.2rem; filter: drop-shadow(0 3px 2px rgba(0,0,0,.15)); }
.butterfly-one { left: -3rem; top: 12%; transform: rotate(-15deg); }
.butterfly-two { right: -2.2rem; bottom: 18%; transform: rotate(17deg) scale(.8); }
.hill { position: absolute; bottom: -135px; width: 75%; height: 290px; border-radius: 50% 50% 0 0; z-index: 0; }
.hill-back { background: #79bc5f; left: -14%; transform: rotate(5deg); }
.hill-front { background: #4f9a46; right: -20%; bottom: -175px; transform: rotate(-4deg); }

.books-section { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.1rem, 5vw, 5rem); background: var(--cream); }
.section-heading { max-width: 770px; margin: 0 auto 3.2rem; text-align: center; }
.section-heading h2, .friends-section h2, .author-section h2 { font-size: clamp(2.25rem, 5vw, 4.4rem); margin-bottom: 1rem; }
.section-heading > p:last-child { font-size: 1.12rem; color: var(--muted); }
.book-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); align-items: stretch; }
.book-card { grid-column: span 2; background: var(--paper); border: 2px solid rgba(75,47,35,.1); border-radius: 1.75rem; padding: 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.book-card:hover { transform: translateY(-7px) rotate(-.2deg); box-shadow: 0 25px 52px rgba(67,43,29,.2); }
.cover-wrap { overflow: hidden; border-radius: 1.15rem; aspect-ratio: 1; background: #dcecf3; }
.cover-wrap img { width: 100%; height: 100%; object-fit: contain; }
.book-copy { padding: 1.25rem .4rem .35rem; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.book-copy h3 { font-size: 1.65rem; margin: .65rem 0 .4rem; }
.book-copy p { margin: 0 0 1.2rem; color: var(--muted); }
.book-status { display: inline-block; background: #e7f0fa; color: #23547b; border-radius: 999px; padding: .28rem .65rem; font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.book-status.available { background: #dff3d2; color: #2d6f35; }
.button-soft { margin-top: auto; width: 100%; color: #6f5548; background: #f1eadf; cursor: default; }

.friends-section { padding: clamp(4rem, 8vw, 7.5rem) clamp(1.1rem, 7vw, 7rem); background: #dceef6; display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.friend-intro { max-width: 620px; }
.friend-intro > p:last-child { font-size: 1.15rem; color: var(--muted); }
.friend-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.friend { min-height: 300px; padding: 2rem 1.5rem; border-radius: 2rem; text-align: center; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow); }
.potato-panel { background: #f6c560; transform: rotate(-2deg); }
.yeti-panel { background: #fff; transform: rotate(2deg); }
.pip-panel { grid-column: 1 / -1; background: #bce8ef; }
.pip-panel .friend-picture { width: 240px; height: auto; aspect-ratio: 1; border-radius: 1rem; }
.pip-panel p { max-width: 32rem; margin-inline: auto; }
.friend-picture { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; border: 5px solid rgba(255,255,255,.72); box-shadow: 0 10px 24px rgba(75,47,35,.16); }
.friend h3 { font-size: 2rem; margin-bottom: .45rem; }
.friend p { margin: 0; font-weight: 700; }

.author-section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.1rem, 7vw, 7rem); max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr .7fr; align-items: center; gap: 2rem; }
.author-card { padding: clamp(2rem, 5vw, 4rem); border-radius: 2.4rem; background: var(--paper); border: 2px solid rgba(75,47,35,.1); box-shadow: var(--shadow); }
.author-card > p:not(.eyebrow) { font-size: 1.12rem; }
.author-signoff { font-weight: 900; color: var(--pink); }
.author-photo { margin: 2rem 0 0; }
.author-photo img { width: 100%; height: auto; border-radius: 1.6rem; box-shadow: 0 14px 30px rgba(67,43,29,.16); }
.author-photo figcaption { margin-top: .85rem; text-align: center; font-weight: 900; color: var(--muted); }
.secret-note { padding: 2rem; border-radius: 2rem; background: var(--grass-dark); color: #fff; text-align: center; transform: rotate(2deg); box-shadow: var(--shadow); }
.worm { display: block; width: 145px; height: auto; border-radius: 1rem; object-fit: contain; margin: 0 auto .4rem; filter: drop-shadow(0 5px 0 rgba(0,0,0,.16)); }
.secret-note p { margin-bottom: 0; font-size: 1.05rem; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 2rem clamp(1.1rem, 5vw, 5rem); background: var(--brown); color: #fff9e8; font-size: .9rem; }
footer p { margin: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 8rem; }
  .hero-copy { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-art { max-width: 480px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .book-card { grid-column: auto; }
  .friends-section { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { position: static; display: block; text-align: center; }
  .brand { justify-content: center; }
  nav { justify-content: center; margin-top: .8rem; gap: 1rem; flex-wrap: wrap; }
  nav a { font-size: .86rem; }
  .hero { min-height: auto; padding-top: 3rem; }
  h1 { font-size: clamp(3.15rem, 15vw, 4.6rem); }
  .hero-art { max-width: 86vw; }
  .butterfly { display: none; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card, .book-card:last-child { grid-column: auto; width: 100%; max-width: 480px; justify-self: center; }
  .friend-panels { grid-template-columns: 1fr; }
  .friend { min-height: 240px; }
  .author-section { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.welcome-section { padding: 3rem 1.2rem; text-align: center; background: var(--paper); }
.welcome-section h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 760px; margin: 0 auto 1.5rem; }
.welcome-video { display: block; width: min(100%, 640px); aspect-ratio: 1; object-fit: cover; margin: 0 auto; border-radius: 1.5rem; background: #25452d; box-shadow: var(--shadow); }
.welcome-section p { margin: 1.2rem auto 0; max-width: 640px; }

.release-section { padding: 3rem 1.2rem; text-align: center; background: var(--paper); }
.release-section .section-heading { margin-bottom: 1.5rem; }
.release-poster { display: block; width: min(100%, 560px); margin: 0 auto; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow); }
.release-poster img { display: block; width: 100%; height: auto; }

.updated-release-poster { box-sizing: border-box; padding: clamp(18px, 4vw, 36px); background: #fff9e7; }
.updated-release-poster img { border-radius: 1.2rem; }
.poster-date { margin: 1.2rem 0 .7rem; color: #522008; font-family: Georgia, serif; font-weight: 900; font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.05; }
.poster-date span { font-size: .82em; }
.poster-tagline { margin: .8rem 0 0; color: #522008; font-weight: bold; font-size: 1.1rem; }

.brand-profile { width: 48px; flex-basis: 48px; }
.brand-profile img { width: 48px; height: 48px; }
.welcome-banner { background: #b5e7f9; }
.welcome-banner img { display: block; width: 100%; height: auto; max-width: 1600px; margin: 0 auto; }
