@font-face { font-family: "Baloo 2"; src: url(../fonts/baloo2.woff) format("woff"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(../fonts/nunito.woff) format("woff"); font-weight: 200 1000; font-display: swap; }
:root {
  --cream: #FFF8EC; --ink: #3B2F2A; --red: #C8333B; --red-dark: #A8262E; --gold: #F2B33D;
  --sky: #CFE9F5; --grass: #7DBE5A; --leaf: #E8F5DC; --card: #fff;
  --radius: 22px; --shadow: 0 10px 30px rgba(59, 47, 42, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "Nunito", system-ui, sans-serif; font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; color: var(--red); }
h3 { font-size: 1.7rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.red { color: var(--red); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
a { color: var(--red-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 236, .92); backdrop-filter: blur(8px); border-bottom: 2px solid rgba(242, 179, 61, .35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Baloo 2"; font-weight: 800; font-size: 1.45rem; }
.brand img { border-radius: 50%; border: 3px solid var(--red); }
.brand em { font-style: normal; color: var(--red); }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.nav li a:hover { background: var(--sky); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: "Baloo 2"; font-weight: 700; font-size: 1.15rem; text-decoration: none; padding: 12px 24px; border-radius: 999px; border: 3px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-dark); }
.btn-red:hover { box-shadow: 0 7px 0 var(--red-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.small { font-size: 1rem; padding: 9px 18px; }
.btn-disabled { background: #EDE4D6; color: #7A6B62; cursor: default; }
.btn-disabled:hover { transform: none; }
.btn-insta { background: linear-gradient(45deg, #F2B33D, #E1306C 55%, #833AB4); color: #fff; }
.cta, .buy, .socials { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* hero */
.hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, #E9F6FB 60%, var(--cream) 100%); padding: 56px 0 90px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; background: #fff; border-radius: 999px; opacity: .8; }
.hero::before { width: 180px; height: 50px; top: 40px; left: 6%; box-shadow: 60px -20px 0 10px #fff; }
.hero::after { width: 140px; height: 40px; top: 90px; right: 8%; box-shadow: -50px -15px 0 8px #fff; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 800; padding: 4px 14px; border-radius: 999px; font-size: .95rem; }
.lead { font-size: 1.2rem; max-width: 34em; }
.hero-art { margin: 0; }
.hero-art img { border-radius: 30px; border: 8px solid #fff; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; fill: var(--cream); }

/* books */
section { padding: 70px 0; }
.section-lead { font-size: 1.15rem; margin-bottom: 36px; }
.books h2, .books .section-lead, .gallery h2, .gallery .section-lead { text-align: center; }
.book-list { display: grid; gap: 34px; }
.book { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.book:nth-child(even) { background: #FFFDF7; }
.cover { position: relative; }
.cover img { border-radius: 16px; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.badge { position: absolute; z-index: 2; top: -12px; left: -12px; background: var(--red); color: #fff; font-family: "Baloo 2"; font-weight: 800; padding: 4px 16px; border-radius: 999px; transform: rotate(-6deg); box-shadow: 0 3px 0 var(--red-dark); }
.badge-gold { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 #C98F22; }
.tag { font-weight: 800; color: var(--red-dark); }
.note { font-weight: 700; font-size: .95rem; color: #6C5D55; }
.link { font-weight: 800; }
.books .center { margin-top: 30px; }

/* about kayleigh */
.kayleigh { background: var(--leaf); }
.two-col { display: grid; grid-template-columns: 400px 1fr; gap: 50px; align-items: center; }
.two-col.reverse { grid-template-columns: 1fr 440px; }
.two-col.reverse > figure { order: 2; }
.photo-frame { margin: 0; background: #fff; padding: 14px 14px 8px; border-radius: 8px; box-shadow: var(--shadow); transform: rotate(-2.5deg); }
.photo-frame img { border-radius: 4px; }
.photo-frame figcaption { text-align: center; font-family: "Baloo 2"; font-weight: 700; font-size: 1.3rem; padding-top: 6px; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts li { background: #fff; border-radius: 14px; padding: 10px 14px; border-left: 6px solid var(--gold); }

/* gallery */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; background: #fff; transition: transform .2s; }
.tile:hover { transform: translateY(-4px) rotate(-.5deg); }
.tile span { display: block; padding: 10px 14px 12px; color: var(--ink); font-family: "Baloo 2"; font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.tile i { display: block; font-family: "Nunito"; font-style: normal; font-weight: 600; font-size: .85rem; color: #7A6B62; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(30, 22, 18, .88); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: 14px; }
.lightbox button { position: absolute; top: 14px; right: 18px; font-size: 2.4rem; background: none; color: #fff; border: 0; cursor: pointer; }

/* author */
.author { background: linear-gradient(180deg, var(--cream), #FDEFD9); }
.art-frame { margin: 0; }
.art-frame img { border-radius: 28px; border: 8px solid #fff; box-shadow: var(--shadow); transform: rotate(2deg); }

/* follow + footer */
.follow { background: var(--red); color: #fff; padding: 50px 0; }
.follow h2 { color: #fff; }
.follow-inner { display: flex; align-items: center; gap: 30px; }
.follow-dog { border-radius: 50%; border: 6px solid #fff; width: 160px; height: 160px; object-fit: cover; object-position: top; flex: none; background: #fff; }
.footer { background: var(--ink); color: #F5EBDD; padding: 30px 0; text-align: center; }
.footer p { margin: 4px 0; } .small { font-size: .9rem; opacity: .85; }

/* mobile */
@media (max-width: 900px) {
  .hero-grid, .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse > figure { order: 0; }
  .hero { padding-top: 34px; }
  .book { grid-template-columns: 1fr; text-align: center; padding: 22px; }
  .book .cover { max-width: 340px; margin: 0 auto; }
  .buy { justify-content: center; }
  .photo-frame, .art-frame { max-width: 440px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav ul { display: none; }
  .grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .follow-inner { flex-direction: column; text-align: center; }
  .socials { justify-content: center; }
  .cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
