/* ============================================
   milk + honey publishers — landing page
   Brand palette pulled from logo:
     primary red-orange:  #D8412A
     soft coral:          #F2906E
     cream background:    #FFF6EE
     warm ink text:       #2A1F1A
   Typography:
     Fredoka (display, mirrors logo's rounded feel)
     Inter   (body)
   ============================================ */

:root {
  --primary: #D8412A;
  --primary-dark: #B8341F;
  --coral: #F2906E;
  --coral-soft: #F9C9B6;
  --cream: #FFF6EE;
  --cream-deep: #FBE9D7;
  --ink: #2A1F1A;
  --ink-soft: #5A4A41;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(216, 65, 42, 0.08);
  --shadow-md: 0 18px 40px rgba(216, 65, 42, 0.14);
  --max: 1180px;
  --font-display: 'Fredoka', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }

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

/* ===== Logo mark (recreates the look of your logo) ===== */
.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  fill: var(--primary);
  font-size: 22px;
  letter-spacing: -0.5px;
}
.logo-mark--lg { font-size: 22px; }
.logo-mark--plus { fill: var(--coral); font-size: 22px; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(216, 65, 42, 0.08);
  z-index: 50;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.nav__logo { width: 56px; height: auto; }
.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.nav__brand-text span {
  font-size: 12px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: 1px;
  text-transform: lowercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}
.nav__links a:hover { color: var(--primary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(216, 65, 42, 0.25);
}
.btn--ghost:hover {
  background: var(--cream);
  border-color: var(--primary);
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 32px; font-size: 18px; }

/* ===== Eyebrows / typography helpers ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: lowercase;
  color: var(--primary);
  background: var(--cream-deep);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow--coral { color: var(--coral); background: rgba(242, 144, 110, 0.15); }
.accent { color: var(--primary); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(242,144,110,0.18), transparent 60%),
    radial-gradient(700px 320px at 0% 30%, rgba(216,65,42,0.06), transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero__lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero__meta div {
  display: flex;
  flex-direction: column;
}
.hero__meta strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
}
.hero__meta span {
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Stylized book cover ===== */
.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__blob {
  position: absolute;
  inset: 10% -5% 5% 0;
  background: radial-gradient(closest-side, rgba(242,144,110,0.35), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.book {
  position: relative;
  width: 320px;
  aspect-ratio: 1478 / 2054;
  perspective: 1600px;
  z-index: 1;
  cursor: pointer;
}
.book:focus-visible { outline: none; }
.book:focus-visible .book__cover {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
.book__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(-3deg);
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.66, 0, .2, 1);
}
.book:hover:not(.is-flipped) .book__inner { transform: rotate(0deg) scale(1.02); }
.book.is-flipped .book__inner { transform: rotateY(180deg); }
.book.is-flipped:hover .book__inner { transform: rotateY(180deg) scale(1.02); }
.book__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.book__face--back { transform: rotateY(180deg); }
/* back cover reads un-mirrored, so put its binding on the right */
.book__face--back .book__spine {
  left: auto;
  right: -6px;
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 0 6px rgba(0,0,0,0.1);
}
.book__face--back .book__cover { border-radius: 14px 4px 4px 14px; }
.book__spine {
  position: absolute;
  left: -6px;
  top: 8px;
  bottom: 8px;
  width: 14px;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary));
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 0 6px rgba(0,0,0,0.1);
}
.book__cover {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px 14px 14px 4px;
  box-shadow:
    0 30px 60px rgba(216,65,42,0.25),
    0 12px 24px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(216,65,42,0.08);
  overflow: hidden;
}
.book__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* hover hint toast */
.book__toast {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 6px) rotate(-3deg);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 9px 15px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(42,31,26,0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 5;
}
.book__toast::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 11px;
  height: 11px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0 0 3px 0;
}
.book:hover:not(.is-flipped) .book__toast {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-3deg);
}
@media (prefers-reduced-motion: reduce) {
  .book__inner { transition: none; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}
.section--cream {
  background: var(--cream);
}
.section__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.section__grid--reverse .section__media { order: 2; }
.section h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  margin-bottom: 20px;
}
.section p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 16px;
}
.section__head {
  text-align: center;
  margin-bottom: 56px;
}

/* checklist */
.checklist {
  list-style: none;
  margin-top: 24px;
}
.checklist li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--ink);
  font-size: 16px;
  border-bottom: 1px dashed rgba(216,65,42,0.15);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* quote card */
.quote-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--coral-soft);
  position: relative;
  transform: rotate(-1deg);
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 90px;
  line-height: 1;
  color: var(--coral);
}
.quote-card p {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.4;
  margin: 12px 0 20px;
}
.quote-card span {
  font-size: 14px;
  color: var(--ink-soft);
}

/* stat cards */
.stack { display: flex; flex-direction: column; gap: 18px; }
.stat-card {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--cream-deep);
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat-card--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.stat-card strong {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-card--primary strong { color: var(--white); }
.stat-card span {
  font-size: 15px;
  color: var(--ink-soft);
}
.stat-card--primary span { color: rgba(255,255,255,0.9); }

/* praise */
.praise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.praise-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216,65,42,0.1);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.praise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.praise-card p {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 18px;
}
.praise-card footer {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background:
    radial-gradient(700px 300px at 20% 50%, rgba(242,144,110,0.3), transparent 60%),
    var(--primary);
  color: var(--white);
  text-align: center;
}
.cta__inner h2 {
  color: var(--white);
  font-size: clamp(32px, 4.5vw, 56px);
  margin-bottom: 16px;
}
.cta__inner h2 .accent { color: var(--coral-soft); }
.cta__inner p {
  font-size: 19px;
  opacity: 0.95;
  margin-bottom: 32px;
}
.cta .btn--primary {
  background: var(--white);
  color: var(--primary);
}
.cta .btn--primary:hover {
  background: var(--cream);
  color: var(--primary-dark);
}

/* ===== FOOTER ===== */
.footer {
  background: #1a110d;
  color: rgba(255,255,255,0.85);
  padding: 72px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer__brand p {
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}
.footer__logo { width: 90px; }
.footer__logo .logo-mark { fill: #FFB89A; }
.footer__logo .logo-mark--plus { fill: var(--coral); }
.footer__col h4 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer__col p {
  margin-bottom: 8px;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}
.footer__col a { color: var(--coral-soft); }
.footer__col a:hover { color: var(--white); }
.muted { font-size: 13px; color: rgba(255,255,255,0.5) !important; }

.newsletter {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter input:focus {
  outline: none;
  border-color: var(--coral);
}

.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav__links a:not(.btn) { display: none; }
  .hero { padding: 56px 0 72px; }
  .hero__grid,
  .section__grid { grid-template-columns: 1fr; gap: 48px; }
  .section__grid--reverse .section__media { order: 0; }
  .section { padding: 72px 0; }
  .praise-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__base { flex-direction: column; gap: 8px; text-align: center; }
  .book { width: 260px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 44px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .nav__brand-text { display: none; }
}
