:root {
  --gold: #d4af37;
  --black: #0a0a0a;
  --dark: #111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", serif;
  background: var(--black);
  color: #fff;
  line-height: 1.5;
}
html, body {
    background: #ffffff;
    background-color: #ffffff;
}

/* ---------- GLOBAL WRAPPER (limits width to 900px) ---------- */
.wrapper {
  max-width: min(95vw, 1300px);
  margin: 0 auto;
  padding: 0 20px;
}


/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #ffffff;
}


.header {
  position: static;       /* or just remove position entirely */
  padding: 20px 20px 10px;
  text-align: center;
  width: 100%;
}


.header img {
  display: block;
  margin: 0 auto 8px;
  width: 400px;
  max-width: 90%;
  height: auto;
}


.header h1 {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

.header h1 span {
  font-size: 0.65em;
  letter-spacing: 2px;
  opacity: 0.9;
}

.header p {
  margin-top: 4px;
  color: #aaa;
  letter-spacing: 1.5px;
  font-size: clamp(1rem, 1.4vw + .6rem, 1.6rem);
  text-align: center;
}

/* ---------- BOOK SECTION ---------- */
.section {
  padding: 20px 20px 70px;
  max-width: 900px;
  margin: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  color: var(--gold);
  font-size: 2rem;
  letter-spacing: 3px;
  margin: 0;
}

/* ---------- BOOK GRID ---------- */
.books {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
}

/* Mobile: 1 column */
@media (max-width: 700px) {
  .books {
    grid-template-columns: 1fr;
  }
}

.book {
  background: var(--dark);
  border: 1px solid rgba(212,175,55,0.18);
  padding: 22px;
  text-align: center;

  border-radius: 16px;              /* curved edges */
  box-shadow:
    0 -6px 18px rgba(0, 0, 0, 0.35), /* shadow above */
    0 10px 28px rgba(0, 0, 0, 0.45); /* depth below */

  transition:
    transform 0.25s ease,
    border 0.25s ease,
    box-shadow 0.25s ease;
}


.book:hover {
  transform: translateY(-4px);
  box-shadow:
    0 -8px 22px rgba(0, 0, 0, 0.45),
    0 14px 36px rgba(0, 0, 0, 0.55);
}


.book img {
  width: 100%;
  max-width: 200px;
  margin-bottom: 16px;
}

.book h3 {
  color: var(--gold);
  letter-spacing: 1px;
  margin: 6px 0 10px;
}

.book p {
  font-size: 0.9rem;
  color: #ccc;
  text-align: left;
}

.book a {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 26px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}

.book a:hover {
  background: var(--gold);
  color: #000;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 35px 20px;
  text-align: center;
  background: #000;
  border-top: 1px solid rgba(212,175,55,0.2);
}

footer p {
  font-size: 0.8rem;
  color: #888;
}

.footer-logo {
  width: 220px;
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.footer-tagline {
  margin: 6px 0 12px;
  font-size: 1rem;
  color: #d4af37;
  letter-spacing: 1px;
   color: #d4af37;
  font-family: Garamond;
}

.footer-copy .p {
  margin: 0;
  font-size: 0.85rem;
    justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: #000;
  border-top: 1px solid rgba(212,175,55,0.25);
    justify-content: center;
font-size: 1rem;
  color: #d4af37;
  font-family: Garamond;
}

/* Footer Banner / Logo */
.footer-logo {
}
.site-footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  text-align: center;
  padding: 40px 20px 45px;
  background: #000;
  border-top: 1px solid rgba(212,175,55,0.25);
}

.footer-logo {
  margin-bottom: 15px;
}
.footer-logo {
  width: 320px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}


/* Copyright */
.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: #aaa;
}
#site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;     /* horizontal centering */
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: #000;
  border-top: 1px solid rgba(212,175,55,0.25);
}
/* ---------- ABOUT AUTHOR OVERLAY ---------- */
/* FORCE overlay hidden unless opened */
/* Hidden attribute must always hide */
[hidden] { display: none !important; }

/* Force overlay to cover the entire viewport */
#authorPanel {
  position: relative; /* REQUIRED for absolute close button */
}

/* Gold close button */
.reviews-close {
  position: absolute;
  top: 12px;
  right: 14px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: 1px solid #d4af37;
  border-radius: 50%;

  color: #d4af37;
  font-size: 1.4rem;
  line-height: 1;

  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.reviews-close:hover {
  background: #d4af37;
  color: #0b0f14;
  transform: scale(1.05);
}


/* Hover effect */
.author-close:hover {
  background: #d4af37;
  color: #000;
  transform: scale(1.05);
  
}

/* Optional: focus visibility for accessibility */
.author-close:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.45);
}
/* ---------- GOLD GARARAMOND OVERLAY TEXT ---------- */

#authorPanel {
  font-family: "Garamond", "EB Garamond", "Cormorant Garamond", Georgia, serif;
  color: #d4af37; /* gold text */
}

/* Headline */
#authorPanel h2 {
  color: #d4af37;
  letter-spacing: 2px;
}

/* Paragraph text */
#authorPanel p {
  color: #d4af37;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Scripture emphasis */
#authorPanel .author-scripture {
  color: #f5d76e; /* softer scripture gold */
  font-style: italic;
}
/* FORCE Garamond + Gold inside the About Author overlay */
#authorPanel,
#authorPanel * {
  font-family: "Garamond", "EB Garamond", "Cormorant Garamond", Georgia, serif !important;
  color: #d4af37 !important;
}

/* Optional hierarchy tweaks */
#authorPanel h2 {
  letter-spacing: 2px !important;
}

#authorPanel .author-scripture {
  color: #f5d76e !important;   /* slightly softer gold */
  font-style: italic !important;
}

/* Hidden by default */
.reviews-overlay{
  position: fixed;
  inset: 0;
  display: flex;              /* keep flex so centering works */
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  background: rgba(0,0,0,.65);
  z-index: 9999;
}

/* Open state */
.reviews-overlay.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  pointer-events: auto;
}
.center-span {
  display: inline-flex;        /* span can now contain layout */
  flex-direction: column;      /* stack items */
  align-items: center;         /* center horizontally */
  text-align: center;
}

.center-span .subtext {
  margin-top: 6px;
  display: block;
}
.author-close {
  appearance: none;
  background: none;
  border: none;

  font-size: 32px;
  font-weight: 300;
  line-height: 1;

  padding: 6px 10px;
  cursor: pointer;

  color: #fff; /* change as needed */

  position: absolute;
  top: 16px;
  right: 16px;
}

.author-close:hover {
  opacity: 0.75;
}

/* ===============================
   MOBILE OPTIMIZATION PATCH
   =============================== */
@media (max-width: 768px) {

  /* GLOBAL */
  .wrapper {
    padding: 0 14px;
  }

  body {
    font-size: 15px;
  }

  /* HEADER */
  .header {
    padding: 14px 10px 6px;
  }

  .header img {
    width: 220px; /* smaller logo */
    max-width: 85%;
  }

  .header h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }

  .header p {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  /* SECTION */
  .section {
    padding: 10px 14px 50px;
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  /* BOOK GRID */
  .books {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .book {
    padding: 16px;
  }

  .book img {
    max-width: 140px;
  }

  .book h3 {
    font-size: 1.1rem;
  }

  .book p {
    font-size: 0.9rem;
  }

  .book a {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
  }

  /* FOOTER */
  .site-footer {
    padding: 30px 14px;
  }

  .footer-logo {
    width: 180px;
  }

  .footer-tagline {
    font-size: 0.9rem;
  }

  .footer-copy {
    font-size: 0.75rem;
  }

  /* OVERLAY FIX */
  .reviews-overlay {
    padding: 10px;
  }

  #authorPanel {
    width: 100%;
    max-width: 95%;
    padding: 20px 14px;
  }

  #authorPanel p {
    font-size: 0.9rem;
  }

  .reviews-close,
  .author-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}