:root {
  --bg: #fffdf7;
  --surface: #ffffff;
  --surface-soft: #eaf7ff;
  --text: #4B4E6D;
  --muted: #6d6772;
  --line: #dfe8ef;
  --primary: #FFE08A;
  --primary-dark: #fccf8cec;
  --secondary: #8fd8c7;
  --secondary-dark: #5fbba6;
  --accent: #ffe9f2;
  --max-width: 1100px;
  --radius: 20px;
  --shadow: 0 12px 30px rgba(70, 50, 70, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "Nunito", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  z-index: 999;
  box-shadow: var(--shadow);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 253, 248, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Fredoka", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-weight: 700;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--primary-dark);
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.8rem;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #c7658f;
}

.hero h1,
.section-heading h2,
.about-box h2,
.buy-box h2 {
  font-family: "Fredoka", Arial, sans-serif;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  max-width: 16ch;
}

.hero-copy {
  max-width: 58ch;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-buttons,
.buy-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-block;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button-primary {
  background: var(--primary);
  color: #4B4E6D;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: #f2fffb;
  color: #2e7f70;
  border: 1px solid #bfe9dd;
}

.button-secondary:hover {
  background: #e4fbf4;
}

.hero-card,
.book-card,
.about-box,
.buy-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.25rem;
  background: linear-gradient(180deg, #fff8ef 0%, #ffffff 100%);
}

.section {
  padding: 2rem 0 4rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2,
.about-box h2,
.buy-box h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  max-width: 30ch;
}


.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.book-card {
  overflow: hidden;
}

.book-image-wrap {
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.book-image-link {
  display: block;
}

.book-image-link:hover .book-image-wrap{
  transform: translateY(-4px);
}

.book-image-wrap {
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-content {
  padding: 1.5rem;
}

.book-content h3 {
  font-family: "Fredoka", Arial, sans-serif;
  font-size: 1.7rem;
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.book-content p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-box,
.buy-box {
  padding: 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  background: #fdf6ff;
}

.footer-inner {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 0.8rem 1rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    max-width: none;
  }

  .book-content,
  .about-box,
  .buy-box {
    padding: 1.25rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}