/* ============================================================
   Edith Buie — Author Website
   Shared stylesheet
   Palette: warm cream, terracotta, sage, deep cocoa
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --cream: #FBF6EE;
  --cream-deep: #F4EAD9;
  --terracotta: #D96F4E;
  --terracotta-dark: #B95536;
  --sage: #7C9A6D;
  --sage-soft: #E4ECDD;
  --sky-soft: #DCE9EF;
  --peach-soft: #F9E3D3;
  --cocoa: #4A3728;
  --cocoa-soft: #6E5A49;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(74, 55, 40, 0.10);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--cocoa);
  font-size: 17px;
  line-height: 1.65;
}

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

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
header {
  background: var(--cream);
  border-bottom: 1px solid rgba(74,55,40,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1060px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.brand { text-decoration: none; color: var(--cocoa); line-height: 1.2; }
.brand .name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; }
.brand .tag { font-size: 0.8rem; color: var(--terracotta-dark); font-weight: 700; letter-spacing: 0.02em; }

nav ul { display: flex; list-style: none; gap: 6px; flex-wrap: wrap; }

nav a {
  text-decoration: none;
  color: var(--cocoa);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover { background: var(--peach-soft); }
nav a.active { background: var(--terracotta); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--peach-soft) 0%, var(--cream) 55%, var(--sage-soft) 100%);
  padding: 72px 0 64px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 700;
  color: var(--cocoa);
  margin-bottom: 18px;
}

.hero h1 em { color: var(--terracotta); font-style: normal; }

.hero p.lede {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 1.13rem;
  color: var(--cocoa-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-secondary { background: var(--white); color: var(--terracotta-dark); border: 2px solid var(--terracotta); }
.btn-sage { background: var(--sage); color: var(--white); }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--cream-deep); }

h2.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

p.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--cocoa-soft);
  font-size: 1.05rem;
}

/* ---------- Promise cards (Home) ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.promise {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.promise .icon { font-size: 2.2rem; margin-bottom: 12px; }
.promise h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; }
.promise p { font-size: 0.95rem; color: var(--cocoa-soft); }

/* ---------- Book cards ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--cocoa);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.book-card:hover { transform: translateY(-5px); }

.cover {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 4rem;
}

.cover .cover-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  padding: 0 18px;
  color: var(--cocoa);
}

.cover-img { width: 100%; height: auto; display: block; }
.book-feature .cover-img { border-radius: 12px; box-shadow: var(--shadow); }

.cover-penelope { background: linear-gradient(150deg, #F9E3D3, #F2C7A8); }
.cover-teaparty { background: linear-gradient(150deg, #E9DDF2, #D3BCE6); }
.cover-winston  { background: linear-gradient(150deg, #E4ECDD, #C4D8B4); }
.cover-scarlett { background: linear-gradient(150deg, #DCE9EF, #B8D3E0); }

.book-card .card-body { padding: 18px 20px 22px; }
.book-card h3 { font-family: var(--font-head); font-size: 1.12rem; margin-bottom: 6px; }
.book-card p { font-size: 0.92rem; color: var(--cocoa-soft); }

/* ---------- Book feature rows (Books page) ---------- */
.book-feature {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}

.book-feature .cover { border-radius: 12px; }

.book-feature h3 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 4px; }

.book-feature .hook {
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.book-feature .desc { margin-bottom: 16px; }

.meta-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.pill {
  background: var(--sage-soft);
  color: #4C6440;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
}

.pill.age { background: var(--peach-soft); color: var(--terracotta-dark); }

.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .book-feature { grid-template-columns: 1fr; }
  .book-feature .cover { max-width: 260px; margin: 0 auto; }
}

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--sage);
  color: var(--white);
  text-align: center;
  padding: 44px 24px;
}

.quote-band p {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Resource cards ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.resource {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.resource .icon { font-size: 1.8rem; margin-bottom: 10px; }
.resource h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; }
.resource p { font-size: 0.95rem; color: var(--cocoa-soft); margin-bottom: 14px; }
.resource .soon {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--terracotta-dark);
  background: var(--peach-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- About ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}

.portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--peach-soft), var(--sage-soft));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 4.5rem;
  box-shadow: var(--shadow);
}

.portrait span.label { font-size: 0.85rem; font-weight: 700; color: var(--cocoa-soft); }

.about-text h2 { font-family: var(--font-head); font-size: 1.9rem; margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; }

@media (max-width: 720px) {
  .about-wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 280px; margin: 0 auto; }
}

/* ---------- Contact form ---------- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
}

.form-row { margin-bottom: 18px; }

label { display: block; font-weight: 800; font-size: 0.92rem; margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--cream-deep);
  border-radius: 10px;
  background: var(--cream);
  color: var(--cocoa);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--white);
}

textarea { min-height: 130px; resize: vertical; }

/* ---------- Signup band ---------- */
.signup-band {
  background: var(--peach-soft);
  padding: 48px 24px;
  text-align: center;
}

.signup-band h2 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 8px; }
.signup-band p { color: var(--cocoa-soft); margin-bottom: 20px; }

.signup-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.signup-form input { flex: 1; min-width: 220px; }

/* ---------- Footer ---------- */
footer {
  background: var(--cocoa);
  color: #E8DDD2;
  padding: 40px 0 28px;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

footer .f-brand { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); margin-bottom: 6px; }
footer a { color: #F2C7A8; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer ul { list-style: none; }
footer li { margin-bottom: 6px; }
.footer-bottom { text-align: center; margin-top: 28px; font-size: 0.8rem; color: #B8A896; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 20px; }
.note {
  background: var(--sky-soft);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 0.95rem;
  max-width: 720px;
  margin: 0 auto;
}
