/* ===== Elmbrook Press — homepage ===== */

:root {
  --cream:      #FAF7F0;
  --cream-2:    #EFE5D6;
  --cream-3:    #F6F0E6;
  --paper:      #FEFCF8;
  --ink:        #211D18;
  --ink-soft:   #4A4339;
  --brown:      #6B5D4F;
  --brown-2:    #8C7E6E;
  --sage:       #8A9A7E;
  --sage-deep:  #6E7E62;
  --lavender:   #9B8FB0;
  --lavender-deep: #7E7298;
  --lavender-wash: #EDE9F1;

  /* accent is tweak-driven (lavender by default) */
  --accent:        var(--lavender);
  --accent-deep:   var(--lavender-deep);

  --line:   rgba(33,29,24,0.12);
  --line-2: rgba(33,29,24,0.07);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans:  "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --shadow-soft: 0 18px 40px -24px rgba(40,33,24,0.45);
  --shadow-lift: 0 34px 60px -28px rgba(40,33,24,0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */
.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brown-2);
  margin: 0 0 1.1rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; }

.h-display {
  font-size: clamp(2.7rem, 5.6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.h-section {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.7em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.5s var(--ease), color 0.45s var(--ease),
              border-color 0.45s var(--ease), transform 0.45s var(--ease),
              box-shadow 0.5s var(--ease);
}
.btn .arrow { transition: transform 0.45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-deep);
  position: relative;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  height: 1px; width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.text-link:hover::after { transform: scaleX(1); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease),
              border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250,247,240,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}
.brand-logo { max-width: 120px; max-height: 64px; height: auto; width: auto; object-fit: contain; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.nav-links {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.4s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-divider { width: 1px; height: 22px; background: var(--line); }

.social-row { display: flex; align-items: center; gap: 0.85rem; }
.social-ico {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--brown);
  border: 1px solid transparent;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease),
              transform 0.4s var(--ease), background 0.4s var(--ease);
}
.social-ico svg { width: 19px; height: 19px; }
.social-ico:hover {
  color: var(--accent-deep);
  border-color: var(--line);
  background: var(--paper);
  transform: translateY(-2px);
}

.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3.5rem, 7vw, 6.5rem); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy { max-width: 32rem; }
.hero-copy .actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.2rem;
}
.hero-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--brown-2);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* ---------- paperback book (slim softcover) ---------- */
.book {
  position: relative;
  display: block;
  border-radius: 2px 5px 5px 2px;
  filter: drop-shadow(0 15px 22px rgba(46,38,26,0.24));
  transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}
.book-cover-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px 5px 5px 2px;
  position: relative;
  z-index: 2;
}
/* binding crease along the spine (left) */
.book-spine {
  position: absolute; z-index: 3; top: 0; bottom: 0; left: 0;
  width: clamp(6px, 4.5%, 15px);
  border-radius: 2px 0 0 2px;
  pointer-events: none;
  background: linear-gradient(to right,
    rgba(35,27,17,0.30) 0%,
    rgba(35,27,17,0.10) 16%,
    rgba(255,255,255,0.05) 38%,
    rgba(255,255,255,0.18) 50%,
    rgba(35,27,17,0.05) 70%,
    transparent 100%);
}
/* fore-edge: thin stack of pages (right) */
.book-pages {
  position: absolute; z-index: 1; top: 1.3%; bottom: 1.3%; right: -5px;
  width: 6px;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(to right,
    #f0e9dc 0, #f0e9dc 0.6px, #d3c9b6 0.6px, #d3c9b6 1.7px);
  box-shadow: inset -1px 0 1.5px rgba(0,0,0,0.16);
}

/* hero cover stage */
.hero-stage { position: relative; min-height: 460px; display: grid; place-items: center; }
.cover { border-radius: 2px 5px 5px 2px; }

/* --- variant: fan --- */
.hero-fan .hero-stage { perspective: 1400px; }
.hero-fan .cover {
  position: absolute;
  width: 60%;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.hero-fan .cover.c1 { transform: rotate(-9deg) translate(-34%, 4%); z-index: 1; }
.hero-fan .cover.c2 { transform: rotate(0deg) translateY(-3%); z-index: 3; filter: drop-shadow(0 22px 30px rgba(46,38,26,0.3)); }
.hero-fan .cover.c3 { transform: rotate(9deg) translate(34%, 4%); z-index: 2; }
.hero-fan .hero-stage:hover .cover.c1 { transform: rotate(-12deg) translate(-42%, 2%); }
.hero-fan .hero-stage:hover .cover.c3 { transform: rotate(12deg) translate(42%, 2%); }

/* --- variant: stacked --- */
.hero-stacked .hero-stage { justify-items: end; }
.hero-stacked .cover {
  position: absolute;
  width: 54%;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.hero-stacked .cover.c1 { transform: translate(-30%, 14%) rotate(-3deg); z-index: 1; }
.hero-stacked .cover.c2 { transform: translate(0, 0) rotate(0deg); z-index: 3; filter: drop-shadow(0 22px 30px rgba(46,38,26,0.3)); }
.hero-stacked .cover.c3 { transform: translate(26%, -12%) rotate(3deg); z-index: 2; }
.hero-stacked .hero-stage:hover .cover.c2 { transform: translateY(-4px); }

/* --- variant: fullbleed --- */
.hero-fullbleed .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
.hero-fullbleed .hero-copy { max-width: 40rem; margin: 0 auto; }
.hero-fullbleed .lede { max-width: 46ch; margin-inline: auto; }
.hero-fullbleed .actions { justify-content: center; }
.hero-fullbleed .hero-note { justify-content: center; }
.hero-fullbleed .hero-stage { min-height: 0; display: flex; justify-content: center; gap: clamp(1rem, 3vw, 2.4rem); }
.hero-fullbleed .cover {
  position: static;
  width: clamp(150px, 22vw, 270px);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.hero-fullbleed .cover.c2 { transform: translateY(-22px); }
.hero-fullbleed .cover:hover { transform: translateY(-30px); filter: drop-shadow(0 30px 40px rgba(46,38,26,0.34)); }

/* soft decorative wash behind hero */
.hero-wash {
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 62%);
  opacity: 0.14;
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

/* ---------- generic section ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--alt { background: var(--cream-2); }
.section-head { max-width: 52rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- featured books ---------- */
.books-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.6rem, 3vw, 2.8rem);
}
.book-card { display: flex; flex-direction: column; }
.book-cover-link { display: block; }
.book-cover { width: 100%; }
.book-card:hover .book-cover { transform: translateY(-8px); filter: drop-shadow(0 30px 40px rgba(46,38,26,0.32)); }
.book-cover .veil {
  position: absolute; z-index: 4; inset: 0;
  border-radius: 2px 5px 5px 2px;
  background: linear-gradient(to top, rgba(33,29,24,0.40), transparent 46%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 1.2rem;
}
.book-card:hover .veil { opacity: 1; }
.veil .btn {
  background: var(--paper); color: var(--ink);
  font-size: 0.84rem; padding: 0.6em 1.2em;
  transform: translateY(8px);
  transition: transform 0.6s var(--ease);
}
.book-card:hover .veil .btn { transform: translateY(0); }
.book-meta { padding-top: 1.15rem; }
.book-title { font-size: 1.5rem; line-height: 1.15; }
.book-sub { font-size: 0.92rem; color: var(--brown-2); margin-top: 0.3rem; letter-spacing: 0.02em; }
.book-readmore {
  display: inline-flex; align-items: center; gap: 0.45em;
  margin-top: 0.9rem; padding: 0.55em 1.1em;
  font-size: 0.9rem; font-weight: 600;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 5px;
  letter-spacing: 0.01em;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.book-readmore svg { transition: transform 0.4s var(--ease); }
.book-readmore:hover { border-color: var(--ink); transform: translateY(-1px); }
.book-readmore:hover svg { transform: translateX(3px); }

.book-card.placeholder .ph-book {
  aspect-ratio: 1545 / 2000;
  border-radius: 2px 5px 5px 2px;
  border: 1.5px dashed var(--line);
  background:
    repeating-linear-gradient(135deg, var(--cream-2) 0 11px, var(--cream) 11px 22px);
  display: grid; place-items: center;
}
.book-card.placeholder .ph-text {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brown-2); text-align: center; padding: 1rem;
}

/* ---------- feature: lavender hill ---------- */
.feature {
  background: linear-gradient(160deg, var(--lavender-wash), #F4F1F6 60%, var(--cream));
  border-block: 1px solid var(--line-2);
}
.feature-grid {
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.feature-cover { display: flex; justify-content: center; }
.feature-book {
  width: min(360px, 80%);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.feature-book:hover { transform: translateY(-6px) rotate(-1deg); filter: drop-shadow(0 30px 42px rgba(46,38,26,0.34)); }
.feature .eyebrow { color: var(--lavender-deep); }
.feature-list { list-style: none; margin: 2rem 0 2.4rem; padding: 0; display: grid; gap: 0.9rem; }
.feature-list li {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 1.08rem; color: var(--ink-soft);
}
.feature-list .tick {
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(126,114,152,0.16);
  color: var(--lavender-deep);
}
.feature-list .tick svg { width: 15px; height: 15px; }

/* ---------- why us ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.why-card { }
.why-ico {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  color: var(--sage-deep);
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 1.3rem;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.why-card:hover .why-ico { transform: translateY(-3px); background: var(--paper); }
.why-ico svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.why-card p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.why-sep { height: 1px; background: var(--line); margin-top: 0.2rem; }

/* ---------- about ---------- */
.about { text-align: center; }
.about.section { padding-block: clamp(3rem, 5.5vw, 5rem); }
.about-mark {
  display: block; width: 9px; height: 9px; margin: 0 auto 1.5rem;
  background: var(--sage); transform: rotate(45deg); border-radius: 1px;
}
.about-text {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.42;
  font-weight: 500;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto;
  text-wrap: balance;
}
.about-note {
  margin: 1.4rem auto 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--brown);
}

/* ---------- a look inside ---------- */
.look-inside .section-head.center { text-align: center; margin-inline: auto; }
.look-inside-intro { margin: 1rem auto 0; max-width: 46ch; font-size: 1.05rem; color: var(--ink-soft); }
.look-inside-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.2rem);
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
}
.inside-shot { margin: 0; }
.inside-shot img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--line);
  box-shadow: 0 18px 36px -26px rgba(40,33,24,0.5);
}
.inside-shot figcaption {
  margin-top: 0.8rem; text-align: center;
  font-family: var(--sans); font-size: 0.88rem; letter-spacing: 0.04em; color: var(--brown-2);
}

/* ---------- journal entry (small block to articles index) ---------- */
.journal-entry {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
.journal-entry-inner { max-width: 44rem; margin: 0 auto; text-align: center; }
.journal-entry-text {
  margin: 1rem auto 1.9rem; max-width: 52ch;
  font-size: 1.08rem; color: var(--ink-soft); line-height: 1.62;
}

@media (max-width: 720px) {
  .look-inside-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}

/* ---------- social band ---------- */
.social-band { background: var(--ink); color: var(--cream); text-align: center; }
.social-band .eyebrow { color: rgba(250,247,240,0.6); }
.social-band h2 { color: var(--cream); }
.social-band .social-cta {
  display: flex; justify-content: center; gap: 1.4rem; margin-top: 2.2rem; flex-wrap: wrap;
}
.social-pill {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.85em 1.5em;
  border: 1px solid rgba(250,247,240,0.25);
  border-radius: 100px;
  font-weight: 600; font-size: 0.96rem;
  color: var(--cream);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
              transform 0.5s var(--ease), color 0.5s var(--ease);
}
.social-pill svg { width: 20px; height: 20px; }
.social-pill:hover {
  background: var(--cream); color: var(--ink);
  border-color: var(--cream); transform: translateY(-2px);
}

/* ---------- footer ---------- */
.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); padding-block: clamp(3rem, 5vw, 4rem); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; align-items: start;
}
.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-tag { color: var(--brown); font-size: 0.96rem; max-width: 28ch; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brown-2); margin: 0 0 1rem; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a { color: var(--ink-soft); font-size: 0.98rem; transition: color 0.4s var(--ease); }
.footer-col a:hover { color: var(--accent-deep); }
.footer-bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.86rem; color: var(--brown-2);
}
.footer-bottom .social-row .social-ico { color: var(--brown); }

/* ---------- scroll reveal ---------- */
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.anim-on .reveal { opacity: 0; transform: translateY(18px); }
.anim-on .reveal.in { opacity: 1; transform: none; }

/* hero load animation (pure CSS — base is the VISIBLE end-state; the
   from-hidden entrance only applies once JS confirms the document is visible,
   so hidden-document captures / print / PDF show content, never a blank) */
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }

.anim-on .hero-anim { animation: heroFadeUp 1s var(--ease) both; }
.anim-on .hero-anim.d1 { animation-delay: 0.05s; }
.anim-on .hero-anim.d2 { animation-delay: 0.16s; }
.anim-on .hero-anim.d3 { animation-delay: 0.27s; }
.anim-on .hero-anim.d4 { animation-delay: 0.38s; }

/* covers keep their layout transforms — only fade their opacity */
.anim-on .hero-cover-anim { animation: heroFadeIn 1.1s var(--ease) both; }
.anim-on .hero-fan .cover.c1.hero-cover-anim,
.anim-on .hero-stacked .cover.c1.hero-cover-anim { animation-delay: 0.3s; }
.anim-on .hero-fan .cover.c3.hero-cover-anim,
.anim-on .hero-stacked .cover.c3.hero-cover-anim { animation-delay: 0.42s; }
.anim-on .hero-fan .cover.c2.hero-cover-anim,
.anim-on .hero-stacked .cover.c2.hero-cover-anim { animation-delay: 0.54s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero:not(.hero-fullbleed) .hero-stage { min-height: 400px; margin-top: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-cover { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-links, .nav-divider { display: none; }
  .brand-logo { max-width: 95px; max-height: 56px; height: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; }
  .hero-cover-anim { opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   NEWSLETTER / EMAIL SIGNUP  (added for the free sample pack)
   Elegant, neutral, mobile-first. No horizontal overflow.
   ========================================================= */
.signup { background: var(--cream-3); }
.signup .wrap { max-width: 760px; }

.signup-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.6rem, 5vw, 3.2rem);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.signup-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1rem;
}
.signup-tag::before {
  content: ""; width: 22px; height: 1px; background: var(--sage); display: inline-block;
}
.signup-card h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.12;
  margin: 0 auto;
  max-width: 18ch;
}
.signup-card .signup-text {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 1rem auto 0;
}
.signup-card .signup-text + .signup-text { margin-top: 0.6rem; }

/* the slim list of what's inside, shown inline + centered */
.signup-includes {
  list-style: none; margin: 1.5rem auto 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem 1.4rem; max-width: 40rem;
}
.signup-includes li {
  position: relative; padding-left: 1.4rem;
  font-size: 0.96rem; color: var(--brown);
}
.signup-includes li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
}

/* form area */
.signup-formwrap { margin-top: 2rem; }

/* Brevo embedded iframe: centered, full form visible, responsive (no internal scrollbar) */
.brevo-form-wrapper {
  width: 100%;
  max-width: 620px;
  margin: 2rem auto;
  display: block;
  text-align: center;
}
.brevo-form-wrapper iframe {
  width: 100%;
  max-width: 540px;
  min-height: 300px;
  border: 0;
  display: block;
  margin: 0 auto;
}

/* MailerLite embedded form: keep it centered and fully responsive
   (no horizontal scroll, fits the screen width on mobile). */
.ml-embedded { max-width: 30rem; margin: 0 auto; width: 100%; }
.ml-embedded * { max-width: 100%; box-sizing: border-box; }
.ml-embedded input,
.ml-embedded button,
.ml-embedded .ml-form-embedSubmit button { max-width: 100%; }

/* visual placeholder shown until the real MailerLite embed is pasted.
   Delete the .ml-placeholder block once you paste your form. */
.ml-placeholder {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  max-width: 30rem; margin: 0 auto;
}
.ml-placeholder input[type="email"] {
  flex: 1 1 200px; min-width: 0;
  font-family: var(--sans); font-size: 1rem;
  padding: 0.95em 1.1em;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--cream); color: var(--ink);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.ml-placeholder input[type="email"]:focus {
  outline: none; border-color: var(--sage-deep); background: var(--paper);
}
.ml-placeholder .btn { flex: 0 0 auto; }

/* secondary + privacy */
.signup-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.9rem; margin-top: 1.5rem;
}
.signup-note {
  font-size: 0.86rem; color: var(--brown-2);
  max-width: 46ch; margin: 1.4rem auto 0; line-height: 1.55;
}

/* compact variant (used near a book / feature) */
.signup-card--compact {
  text-align: left;
  display: grid; grid-template-columns: 1fr auto; gap: 1.2rem 2rem; align-items: center;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 12px;
}
.signup-card--compact .signup-tag { margin-bottom: 0.7rem; }
.signup-card--compact h2 { margin: 0; max-width: none; font-size: clamp(1.5rem, 3vw, 2rem); }
.signup-card--compact .signup-text { margin: 0.5rem 0 0; max-width: 46ch; }
.signup-card--compact .signup-actions { margin-top: 0; justify-content: flex-end; flex-direction: column; align-items: stretch; }
.signup-card--compact .signup-actions .btn { white-space: nowrap; }
.signup-card--compact .signup-note { grid-column: 1 / -1; margin: 0; text-align: left; }

/* full-width buttons helper */
.btn-block { width: 100%; justify-content: center; }

/* ---- mobile: generous spacing, big taps, no overflow ---- */
@media (max-width: 720px) {
  .signup-card { border-radius: 12px; }
  .signup-card h2 { max-width: none; }

  /* stack form: input then button, both full width and easy to tap */
  .ml-placeholder { flex-direction: column; gap: 0.7rem; max-width: 100%; }
  .ml-placeholder input[type="email"] { width: 100%; font-size: 16px; padding: 1em 1.1em; }
  .ml-placeholder .btn { width: 100%; justify-content: center; min-height: 52px; }

  /* stack secondary actions full width */
  .signup-actions { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .signup-actions .btn { width: 100%; justify-content: center; min-height: 52px; }

  /* compact becomes a single column */
  .signup-card--compact { grid-template-columns: 1fr; text-align: left; }
  .signup-card--compact .signup-actions { justify-content: stretch; }
}

/* =========================================================
   LANDING PAGE  (free-word-search-puzzles.html)
   ========================================================= */
.home-fab {
  position: fixed; top: 16px; left: 16px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  color: var(--ink);
  background: rgba(254,252,248,0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.6em 1.1em; min-height: 44px;
  box-shadow: 0 10px 24px -16px rgba(40,33,24,0.5);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.home-fab:hover { transform: translateY(-1px); background: var(--paper); }
.home-fab .fab-arrow { font-size: 1.05em; line-height: 0; }

.lp { background: var(--cream); }
.lp-main {
  max-width: 780px; margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 40px) clamp(3rem, 7vw, 5rem);
}
.lp-hero { text-align: center; }
.lp-hero .eyebrow { text-align: center; }
.lp-hero h1 {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em;
  margin: 0 auto; max-width: 16ch; text-wrap: balance;
}
.lp-sub {
  font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--brown);
  max-width: 44ch; margin: 1.1rem auto 0; line-height: 1.55;
}
.lp-intro {
  font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--ink-soft);
  max-width: 54ch; margin: 1.6rem auto 0; line-height: 1.7;
}

.lp-section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.lp-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: clamp(1.6rem, 5vw, 3rem);
  box-shadow: var(--shadow-soft);
}
.lp-card.center { text-align: center; }
.lp-card h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.12; margin: 0;
}

.lp-includes {
  list-style: none; margin: 1.4rem auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.6rem; max-width: 34rem; text-align: left;
}
.lp-includes li {
  position: relative; padding-left: 1.8rem;
  font-size: 1.05rem; color: var(--ink-soft);
}
.lp-includes li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--sage);
}

/* secondary amazon block: visually lighter than the form */
.lp-amazon {
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: center;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px dashed var(--line); border-radius: 12px;
  background: transparent;
}
.lp-amazon h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.lp-explore {
  list-style: none; margin: 0.4rem auto 0; padding: 0;
  display: inline-grid; gap: 0.65rem; text-align: center;
}
.lp-explore a {
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: border-color 0.4s ease, color 0.4s ease;
}
.lp-explore a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }
.lp-amazon p { color: var(--ink-soft); max-width: 48ch; margin: 0.7rem auto 1.3rem; }

.lp-foot {
  text-align: center; margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--brown-2);
}
.lp-foot a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 720px) {
  .lp-main { padding-top: 80px; }
  .lp-includes { grid-template-columns: 1fr; max-width: 22rem; margin-inline: auto; }
  .lp-card .ml-placeholder .btn,
  .lp-card .signup-actions .btn { width: 100%; }
}
