/* Koey Books v3
   Colours come from the cover art: the sky, the teal title and the bush.
   Grandstander for headings, Andika (a typeface made for early readers) for text. */
:root {
  --sky-top: #3cb4f7;
  --sky: #9fd3f7;
  --sky-pale: #e4f4fe;
  --ink: #0f4a52;
  --text: #1d3438;
  --grass: #4e9a2a;
  --grass-dark: #3d7d20;
  --red: #e8504d;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Andika", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--sky-pale);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: "Grandstander", "Andika", sans-serif; font-weight: 800; line-height: 1.1; color: var(--ink); margin: 0 0 .45em; }
p { margin: 0 0 1em; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.small { font-size: .88rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 3px solid var(--sky); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span { font-family: "Grandstander", sans-serif; font-weight: 800; font-size: 1.45rem; color: var(--ink); }
.nav { display: flex; gap: 24px; }
.nav a { font-family: "Grandstander", sans-serif; font-weight: 700; text-decoration: none; }
.nav a:hover { color: var(--red); }

/* Buttons */
.btn {
  display: inline-block; padding: .6em 1.3em; border-radius: 6px;
  font-family: "Grandstander", sans-serif; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #cf3f3c; }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-white:hover { background: var(--sky-pale); }

/* Hero */
.hero-sky { background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 100%); }
.hero-text { padding: 56px 0 28px; max-width: 1100px; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); margin-bottom: .2em; }
.hero-sub { font-family: "Grandstander", sans-serif; font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--ink); max-width: 30em; margin-bottom: .5em; }
.hero-lead { max-width: 36em; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 18px; }
.hero-note { font-size: 1rem; color: var(--ink); margin: 0; }
.scene { width: 100%; height: clamp(300px, 42vw, 560px); object-fit: cover; object-position: 50% 30%; }

/* Find it on Amazon */
.amazon { background: var(--ink); color: var(--white); padding: 36px 0 30px; }
.amazon h2 { color: var(--white); font-size: 2rem; }
.amazon p { max-width: 46em; }
.amazon .small { color: #bfe3e6; margin: 0; }

/* Books */
.books { padding: 72px 0 64px; }
.title { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.lead { max-width: 38em; font-size: 1.12rem; margin-bottom: 80px; }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.book { background: var(--white); padding: 0 18px 24px; margin-top: 40px; border-top: 6px solid var(--grass); }
.book img { width: 78%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; margin: -64px auto 18px; box-shadow: 0 2px 0 var(--grass-dark); }
.book h3 { font-size: 1.4rem; margin-bottom: .2em; }
.book-meta { font-weight: 700; color: var(--grass-dark); font-size: .95rem; margin-bottom: .6em; }
.book p { font-size: 1rem; }
.book ul { padding-left: 1.1em; margin: 0 0 18px; font-size: .98rem; }
.book-links { display: flex; gap: 8px; flex-wrap: wrap; }
.book .btn { font-size: .98rem; padding: .55em 1em; }
.abroad { margin: 36px 0 0; }

/* What's inside */
.inside { background: var(--grass); color: var(--white); padding: 72px 0; }
.inside-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.inside h2 { color: var(--white); font-size: clamp(2rem, 4.4vw, 2.9rem); }
.features { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.features dt { font-family: "Grandstander", sans-serif; font-weight: 700; font-size: 1.15rem; }
.features dd { margin: 0; font-size: 1rem; color: #eaf7e0; }

/* Koey in the bush */
.bush { padding: 80px 0; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--white); }
.split-art { background: var(--sky); display: flex; align-items: flex-end; justify-content: center; padding: 40px 24px 0; }
.split-art img { width: min(380px, 100%); }
.split-text { padding: 48px 48px 40px; }
.split-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.signoff { font-family: "Grandstander", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--red); }
.aussie { font-weight: 700; color: var(--ink); margin: 0; }

/* Contact */
.contact { background: var(--white); padding: 64px 0; border-top: 3px solid var(--sky); }
.contact h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.contact p { max-width: 36em; }

/* Footer */
.site-footer { background: var(--ink); color: #d4eef0; padding: 24px 0; }
.site-footer p { margin: 4px 0; }
.site-footer .small { color: #9ccbd0; }

/* Tablet */
@media (max-width: 980px) {
  .shelf { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .inside-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { gap: 14px; }
  .nav a[href="#inside"], .nav a[href="#bush"] { display: none; }
  .hero-text { padding-top: 36px; }
  .shelf { grid-template-columns: 1fr; row-gap: 56px; }
  .book img { width: 62%; }
  .features { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-art img { width: 220px; }
  .split-text { padding: 28px 20px 28px; }
}
