/* Karen H Palmer — author site draft
   Colors and type are related to christianconceptsforkids.com so the two sites feel like a family. */

:root {
  --green: #2c5f4e;
  --green-dark: #1e4336;
  --navy: #1e4d6b;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --cream: #f8f4eb;
  --cream-dark: #efe8d8;
  --text: #2d2a26;
  --text-soft: #5c564e;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(30, 67, 54, 0.12);
  --radius: 16px;
  --header-offset: 5.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.125rem;
}

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

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

a:focus-visible,
button:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-dark);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.5em; }
h3 { font-size: 1.5rem; }

.container { width: min(1120px, 92%); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 5.5rem; }

/* Draft banner — remove before going live */
.draft-banner {
  background: #7a3b12;
  color: #fff8ee;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  position: sticky;
  top: 0;
  z-index: 150;
}

header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1.5rem;
}

.wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  line-height: 1.15;
}
.wordmark:hover { color: var(--green); }
.wordmark span {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.1rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green-dark);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
nav a:hover,
nav a[aria-current="page"] { color: var(--green); }

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white) !important;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid var(--green);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--green) !important;
}
.btn-outline:hover { background: var(--green); color: var(--white) !important; }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-dark) !important;
}
.btn-gold:hover { background: #b8911c; border-color: #b8911c; color: var(--green-dark) !important; }

.hero {
  background:
    linear-gradient(180deg, rgba(248, 244, 235, 0.3), var(--cream) 100%),
    var(--cream-dark);
  padding: 3.2rem 0 3.6rem;
  border-bottom: 1px solid #e0d6c2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.2rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--text-soft);
  max-width: 34em;
  margin-top: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-photo {
  justify-self: center;
}
.hero-photo img {
  width: min(100%, 420px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.rule {
  width: 4.5rem;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.4rem;
}

#about, #books, #contact, #top {
  scroll-margin-top: 5.5rem;
}

section { padding: 4.2rem 0; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-copy p + p { margin-top: 1rem; }
.about-copy p { max-width: 40em; color: var(--text); }
.about-aside {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  border: 1px solid #e0d6c2;
}
.about-aside h3 { margin-bottom: 0.6rem; }
.about-aside p { color: var(--text-soft); font-size: 1.05rem; }
.about-aside p + p { margin-top: 0.8rem; }

.intro {
  max-width: 42em;
  color: var(--text-soft);
  font-size: 1.12rem;
  margin-bottom: 2.2rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 11.2rem 1fr;
  min-height: 100%;
}

.book-cover {
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.85rem;
}
.book-cover img {
  width: 100%;
  height: auto;
  max-height: 17.5rem;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(30, 67, 54, 0.18);
}

.book-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; }
.book-meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0.25rem 0 0.7rem;
}
.price { color: var(--green); font-weight: 700; }
.book-body p { color: var(--text-soft); font-size: 1rem; flex: 1; }
.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-top: 1rem;
  align-items: center;
}
.book-links .btn { padding: 0.5rem 1rem; font-size: 0.88rem; }
.retailers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.retailers a { text-decoration: none; }
.retailers a:hover { text-decoration: underline; }

.coming-soon {
  grid-column: 1 / -1;
  background: var(--white);
  border: 2px dashed #d4c7a8;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
}
.coming-badge {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}
.coming-soon p { color: var(--text-soft); }

.publisher {
  text-align: center;
}
.publisher img {
  width: 160px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}
.publisher p { max-width: 36em; margin: 0 auto 1.3rem; color: var(--text-soft); }

.contact-box {
  max-width: 36em;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 2.1rem;
  border: 1px solid #e0d6c2;
}
.contact-box p { color: var(--text-soft); }
.phone {
  font-size: 1.6rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  margin: 0.3rem 0 1.2rem;
}
.phone a { text-decoration: none; color: var(--green-dark); }
.phone a:hover { color: var(--green); }
.address { margin: 0.4rem 0 1.2rem; color: var(--text) !important; }

footer {
  background: var(--green-dark);
  color: #d7e4de;
  padding: 2rem 0;
  font-size: 0.95rem;
}
footer a { color: var(--gold-light); text-decoration: none; }
footer a:hover { color: var(--white); text-decoration: underline; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-split,
  .book-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 9.5rem 1fr; }
  .coming-soon { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  header { top: 0; }
  .menu-toggle { display: inline-block; }
  nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid #e0d6c2;
    display: none;
  }
  nav.is-open { display: block; }
  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0 0.8rem;
  }
  nav a {
    display: block;
    padding: 0.7rem 1.2rem;
  }
  .hero { padding: 2.2rem 0 2.6rem; }
  .hero-photo img { width: min(100%, 320px); margin: 0 auto; }
  .book-card { grid-template-columns: 1fr; }
  .book-cover { padding: 1.2rem 1.4rem 0.2rem; }
  .book-cover img { max-height: 16rem; width: auto; margin: 0 auto; }
  section { padding: 3rem 0; }
  .contact-box { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.email {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.2rem 0 1.2rem;
  overflow-wrap: break-word;
}
.email a { color: var(--green-dark); text-decoration: none; }
.email a:hover { color: var(--green); text-decoration: underline; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.2rem;
}
