/* Feefa & Ink — cozy brand site */
:root {
  --cream: #fbf6ee;
  --cream-deep: #f6ecd9;
  --ink: #3e3548;
  --ink-soft: #6b5f7a;
  --lavender: #d9c6ec;
  --lavender-deep: #a58fd1;
  --sage: #b7cfb2;
  --sage-deep: #7ba276;
  --terra: #e8b4a0;
  --terra-deep: #c96f4a;
  --blush: #f3e4d4;
  --card: #fffdf8;
  --radius: 26px;
  --shadow: 0 18px 45px -18px rgba(62, 53, 72, .28);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 em, h2 em { font-style: italic; color: var(--terra-deep); }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--terra-deep);
  margin-bottom: 1rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 24px -10px rgba(62, 53, 72, .5);
}
.btn:hover { transform: translateY(-2px); background: #4d4258; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--cream-deep); }
.btn-small { padding: .65rem 1.4rem; font-size: .92rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1.2rem, 5vw, 3rem);
  background: rgba(251, 246, 238, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(62, 53, 72, .08);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 46px; width: auto; mix-blend-mode: multiply; }
.brand-footer .brand-logo { height: 60px; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.2rem, 5vw, 3rem) clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(52rem 30rem at 12% -6%, rgba(217, 198, 236, .5), transparent 60%),
    radial-gradient(48rem 28rem at 88% 4%, rgba(183, 207, 178, .45), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero h1 { font-size: clamp(2.7rem, 7vw, 4.6rem); margin-bottom: 1.1rem; }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink-soft); max-width: 34rem; margin: 0 auto 2rem; font-weight: 600; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-doodles .doodle { position: absolute; opacity: .85; }
.doodle.d1 { width: 44px; top: 16%; left: 7%; transform: rotate(-14deg); animation: float 7s ease-in-out infinite; }
.doodle.d2 { width: 38px; top: 64%; left: 12%; animation: float 8.5s ease-in-out infinite reverse; }
.doodle.d3 { width: 46px; top: 20%; right: 8%; transform: rotate(12deg); animation: float 7.6s ease-in-out infinite; }
.doodle.d4 { width: 42px; top: 66%; right: 11%; animation: float 9s ease-in-out infinite reverse; }
.doodle.d5 { width: 36px; top: 42%; left: 4%; animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.hero-books { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.8rem, 3vw, 1.8rem); }
.hero-books img {
  width: clamp(150px, 24vw, 230px);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  transform: rotate(-4deg);
  transition: transform .25s ease;
}
.hero-books img.tall { transform: rotate(0deg) translateY(-14px); width: clamp(170px, 27vw, 260px); }
.hero-books img:last-child { transform: rotate(4deg); }
.hero-books img:hover { transform: rotate(0) translateY(-8px) scale(1.03); }

/* ---------- sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 5vw, 3rem); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head h2, .tiktok h2, .about-copy h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .9rem; }
.section-sub { color: var(--ink-soft); font-weight: 600; font-size: 1.05rem; }

/* ---------- books ---------- */
.books { background: var(--cream-deep); border-radius: 44px 44px 0 0; margin-top: -22px; position: relative; }
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1080px;
  margin: 0 auto;
}
.book-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease;
  border: 1px solid rgba(62, 53, 72, .07);
}
.book-card:hover { transform: translateY(-6px); }
.book-cover { background: var(--blush); padding: 1.6rem 1.6rem 0; }
.book-cover img { border-radius: 16px 16px 0 0; width: 100%; aspect-ratio: 1; object-fit: cover; }
.book-card:nth-child(1) .book-cover { background: #e6d9f5; }
.book-card:nth-child(2) .book-cover { background: #dcebd8; }
.book-card:nth-child(3) .book-cover { background: #f7e3d3; }
.book-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.book-series { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--terra-deep); }
.book-body h3 { font-size: 1.55rem; }
.book-tag { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.book-meta { display: flex; align-items: center; justify-content: space-between; margin: .4rem 0 1rem; }
.stars { color: #e8a33d; letter-spacing: .1em; font-size: 1.05rem; }
.price { font-weight: 800; font-size: 1.25rem; }
.price-note { font-weight: 600; font-size: .78rem; color: var(--ink-soft); }
.fineprint { text-align: center; color: var(--ink-soft); font-size: .85rem; margin-top: 2.2rem; }

/* ---------- about ---------- */
.about { background: var(--cream); }
.about-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.about-svg { width: 100%; max-width: 340px; margin: 0 auto; display: block; animation: float 9s ease-in-out infinite; }
.about-copy p { margin-bottom: 1.1rem; color: var(--ink-soft); font-weight: 600; }
.about-copy p strong { color: var(--ink); }
.signature { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.3rem; color: var(--terra-deep) !important; }

/* ---------- faq ---------- */
.faq { background: var(--cream); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
.faq-list details {
  background: var(--card);
  border: 1px solid rgba(62, 53, 72, .09);
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 8px 22px -14px rgba(62, 53, 72, .25);
}
.faq-list summary {
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--terra-deep);
  font-size: 1.3rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: .8rem; color: var(--ink-soft); font-weight: 600; }
.faq-list details p a { color: var(--terra-deep); font-weight: 800; }

/* ---------- tiktok ---------- */
.tiktok { text-align: center; background: var(--ink); color: #f6ecd9; border-radius: 44px; margin: 0 clamp(.8rem, 4vw, 3rem); }
.tiktok .eyebrow { color: var(--terra); }
.tiktok .section-sub { color: #cbbfd6; max-width: 36rem; margin: 0 auto 2.2rem; }
.tiktok-card {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  color: #f6ecd9;
  transition: transform .2s ease, background .2s ease;
  text-align: left;
}
.tiktok-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); }
.tiktok-avatar { width: 56px; height: 56px; border-radius: 50%; background: #000; display: grid; place-items: center; flex: none; }
.tiktok-avatar svg { width: 26px; height: 26px; }
.tiktok-text { display: flex; flex-direction: column; }
.tiktok-text strong { font-size: 1.15rem; }
.tiktok-text span span, .tiktok-text > span { font-size: .9rem; color: #cbbfd6; }
.tiktok-card .btn { background: var(--terra-deep); border-color: var(--terra-deep); box-shadow: none; }
.tiktok-card .btn:hover { background: #b25f3c; }

/* ---------- footer ---------- */
footer {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  background: var(--cream);
}
footer .brand { justify-content: center; margin-bottom: .8rem; }
.footer-tag { font-family: 'Fraunces', serif; font-style: italic; color: var(--ink-soft); margin-bottom: 1.4rem; }
.footer-links { display: flex; gap: 1.6rem; justify-content: center; margin-bottom: 1.6rem; }
.footer-links a { color: var(--ink-soft); font-weight: 700; text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: var(--ink); }
.copyright { font-size: .85rem; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn-small { padding: .55rem 1.1rem; font-size: .85rem; }
  .about-inner { grid-template-columns: 1fr; }
  .about-art { order: -1; }
  .about-svg { max-width: 230px; }
  .doodle.d2, .doodle.d5 { display: none; }
  .tiktok-card { flex-wrap: wrap; justify-content: center; text-align: center; }
  .hero-books { gap: .6rem; }
  .hero-books img { width: 29vw; border-width: 4px; border-radius: 12px; }
  .hero-books img.tall { width: 32vw; }
}
