:root {
  --color-cream: #FFF1C9;
  --color-yellow: #F7D98A;
  --color-coral: #F3C969;
  --color-coral-dark: #C9941F;
  --color-mint: #AFC7A6;
  --color-sky: #AFCDDB;
  --color-lavender: #C9BDD9;
  --color-nori: #DCEAF0;
  --color-pebble: #F5DFCF;
  --color-luma: #E2E9D5;
  --color-fenn: #E8E1EF;
  --color-text: #252321;
  --color-text-soft: #706C68;
  --font-display: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #FFFFFF;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--color-text-soft); }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-coral);
  color: var(--color-text);
  box-shadow: 0 4px 10px rgba(243, 201, 105, 0.45);
}
.btn-primary:hover { box-shadow: 0 6px 14px rgba(243, 201, 105, 0.55); }

.btn-secondary {
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid var(--color-yellow);
}

.btn-sage {
  background: var(--color-mint);
  color: var(--color-text);
  box-shadow: 0 4px 10px rgba(175, 199, 166, 0.45);
}
.btn-sage:hover { box-shadow: 0 6px 14px rgba(175, 199, 166, 0.55); }

.btn-blue {
  background: var(--color-sky);
  color: var(--color-text);
  box-shadow: 0 4px 10px rgba(175, 205, 219, 0.45);
}
.btn-blue:hover { box-shadow: 0 6px 14px rgba(175, 205, 219, 0.55); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #f3e4c8;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon { border-radius: 50%; }
.logo-wordmark { height: 40px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
}
.main-nav .nav-cta {
  background: var(--color-coral);
  color: var(--color-text);
  padding: 8px 18px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .logo-wordmark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 2px solid #f3e4c8;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav a {
    padding: 16px 24px;
    border-top: 1px solid #f3e4c8;
  }
  .main-nav .nav-cta {
    border-radius: 0;
    text-align: center;
  }
}

/* Hero */
.hero { padding: 72px 0 48px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.hero-text {
  position: relative;
  z-index: 1;
}
.hero-text h1 { font-size: 2.6rem; color: var(--color-text); }
.hero-sub { font-size: 1.15rem; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  margin-left: -70px;
}
.hero-art img {
  display: block;
  width: 118%;
  max-width: 118%;
  height: auto;
}

/* Hi Friend! */
.hello {
  padding: 56px 0 64px;
  text-align: center;
}
.hello-lineup {
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 3px solid #f3e4c8;
}
.hello-lineup img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}
.hello h2 { color: var(--color-text); font-size: 2rem; }
.hello-text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Freebie */
.freebie { padding: 56px 0; }
.freebie-inner {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
}
.freebie-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.freebie-text h2 { color: var(--color-text); }
.freebie-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.freebie-form input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid #fff;
  font-family: var(--font-body);
  font-size: 1rem;
}
.freebie-note { font-size: 0.85rem; margin-top: 12px; }

.form-status { font-size: 0.9rem; margin-top: 10px; min-height: 1.2em; }
.form-status-success { color: #3f7a4f; font-weight: 600; }
.form-status-error { color: #b3442c; font-weight: 600; }

/* Freebies gallery */
.freebies-gallery { padding: 64px 0; }
.freebie-track { gap: 24px; }
.freebie-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(74, 59, 53, 0.08);
}
.freebie-thumb {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background: var(--color-lavender);
  margin-bottom: 16px;
  overflow: hidden;
}
.freebie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.freebie-card h3 { font-size: 1rem; color: var(--color-text); }

/* Featured comic */
.comic-feature { padding: 64px 0; text-align: center; }
.comic-inner { max-width: 760px; margin: 0 auto; }
.comic-feature h2 { font-size: 1.8rem; }
.comic-caption {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-soft);
  margin-bottom: 20px;
}
.comic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.comic-grid img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}
@media (max-width: 600px) {
  .comic-grid { grid-template-columns: 1fr; }
}

/* Section titles */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-text);
}
.section-sub {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* Characters */
.characters { padding: 80px 0 48px; }
.scroll-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  flex: 1;
}
.slider-track::-webkit-scrollbar { height: 6px; }
.slider-track::-webkit-scrollbar-thumb { background: #ecdfb9; border-radius: 999px; }
.character-slide {
  flex: 1 1 180px;
  max-width: 240px;
  scroll-snap-align: start;
  text-align: center;
}
.character-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14%;
  overflow: hidden;
}
.character-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.circle-nori { background: var(--color-nori); }
.circle-pebble { background: var(--color-pebble); }
.circle-luma { background: var(--color-luma); }
.circle-fenn { background: var(--color-fenn); }
.character-slide h3 { color: var(--color-text); margin-bottom: 4px; }
.character-slide p { font-size: 0.9rem; }
.slider-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-yellow);
  background: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.slider-btn:hover { background: var(--color-cream); }
.characters-teaser {
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
}
.characters-teaser a { color: var(--color-coral-dark); }

/* Seasonal */
.seasonal { padding: 64px 0; }
.seasonal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--color-lavender);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.seasonal-text h2 { font-size: 2.2rem; margin-bottom: 0.4em; }
.eyebrow {
  display: block;
  color: var(--color-coral-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.seasonal-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.seasonal-media img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .seasonal-split { grid-template-columns: 1fr; padding: 28px; }
  .seasonal-media { order: -1; }
}

/* Books (Amazon spotlight) */
.books { padding: 56px 0; }
.book-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.book-cover {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-info h3 {
  color: var(--color-text);
  font-size: 1.5rem;
}
.book-price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
}
.book-features {
  margin: 0 0 20px;
  padding-left: 20px;
}
.book-features li { margin-bottom: 4px; color: var(--color-text-soft); }

/* Shop (Etsy grid) */
.shop { padding: 56px 0; }
.etsy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .etsy-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
.etsy-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(74, 59, 53, 0.08);
}
.etsy-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--color-sky);
  margin-bottom: 16px;
  overflow: hidden;
}
.etsy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.etsy-card h3 {
  font-size: 1rem;
  color: var(--color-text);
  min-height: 2.4em;
}
.etsy-price {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 16px;
}
.shop-footnote {
  text-align: center;
  margin-top: 32px;
  font-weight: 600;
}
.shop-footnote a { color: var(--color-coral-dark); }

@media (max-width: 640px) {
  .book-spotlight { grid-template-columns: 1fr; padding: 28px; }
}

/* Why */
.why { padding: 56px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.why-item {
  text-align: center;
  padding: 28px 20px;
  border: 2px solid var(--color-yellow);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 16px rgba(74, 59, 53, 0.06);
}
.why-item h3 { color: var(--color-text); }

/* Follow */
.follow { padding: 64px 0; text-align: center; }
.follow-buttons { display: flex; gap: 16px; justify-content: center; }

/* Footer */
.site-footer {
  background: var(--color-coral-dark);
  color: #fff;
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner { text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; color: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer p { color: #fff; }
.footer-social { display: flex; gap: 20px; justify-content: center; align-items: center; margin: 16px 0; }
.footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-copy { font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* Signup popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 59, 53, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.popup-overlay[hidden] { display: none; }
.popup-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #f3e4c8;
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-soft);
  z-index: 1;
}
.popup-close:hover { background: var(--color-cream); }
.popup-media {
  background: var(--color-lavender);
  min-height: 260px;
  overflow: hidden;
}
.popup-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.popup-body {
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.popup-body h2 {
  color: var(--color-text);
  font-size: 1.6rem;
}
.popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 16px;
}
.popup-form input[type="email"] {
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid #f3e4c8;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
}
.popup-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-soft);
  margin: 0;
}
@media (max-width: 640px) {
  .popup-card { grid-template-columns: 1fr; }
  .popup-media { min-height: 160px; }
}

/* Per-pack download popup: compact, single-column card (title, small art, form) */
.pack-popup-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 40px 32px 32px;
  text-align: center;
}
.pack-popup-card h2 {
  color: var(--color-text);
  font-size: 1.4rem;
  margin: 0 0 6px;
}
.pack-popup-sub {
  color: var(--color-text-soft);
  margin: 0 0 20px;
}
.pack-popup-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}
.pack-popup-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
}
.pack-popup-form { margin: 0 0 16px; }

/* Responsive */
@media (max-width: 760px) {
  .hero { padding: 32px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2rem; }
  .main-nav { gap: 14px; font-size: 0.9rem; }
  .hero-art { margin-left: 0; }
  .hero-art img { width: 100%; max-width: 100%; }
  .freebie-card { flex-basis: calc(100% - 40px); }
}
@media (max-width: 1024px) and (min-width: 761px) {
  .freebie-card { flex: 0 0 calc((100% - 24px) / 2); }
}

/* PREVIEW ONLY — font trial, not for deploy. Remove this block (and the Comic Relief <link>) if not keeping. */
.hero-text h1,
.hello h2,
.section-title,
.seasonal-text h2,
.comic-feature h2 {
  font-family: 'Comic Relief', cursive;
}
