/* ============================================================
   Wayne Stroud — Author site
   Palette drawn from the cover of "That Old Yellow Light":
   deep night navy, warm porch-light gold, cream type.
   ============================================================ */

:root {
  --navy-900: #0c1422;
  --navy-800: #111c2e;
  --navy-700: #18253a;
  --navy-600: #213149;
  --gold:     #e6a94d;
  --gold-soft:#d99a3f;
  --cream:    #f3e9d4;
  --cream-dim:#cbbfa6;
  --muted:    #9a8f78;
  --line:     rgba(230, 169, 77, 0.22);

  --maxw: 1120px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--navy-900);
  color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cream); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  padding: .85rem 1.6rem;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--cream); color: var(--navy-900); }
.btn-ghost { border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 20, 34, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: .04em;
}
.brand:hover { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--cream-dim);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--cream);
  transition: .25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(230,169,77,0.22), transparent 55%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 30px rgba(230,169,77,0.18);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--cream-dim);
  max-width: 32ch;
  margin: 0 0 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

/* ===== Availability badges ===== */
.availability {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0 0 1.6rem;
}
.badge {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  border-radius: 100px;
  border: 1px solid var(--line);
}
.badge-live {
  background: rgba(230,169,77,0.15);
  color: var(--gold);
  border-color: rgba(230,169,77,0.5);
}
.badge-live::before { content: "● "; color: #6fcf7f; }
.badge-soon { color: var(--cream-dim); }
.byline {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  margin: 0;
}
.hero-cover { display: flex; justify-content: center; }
.cover-img {
  width: 100%;
  max-width: 360px;
  border-radius: 4px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(230,169,77,0.15),
    0 0 80px rgba(230,169,77,0.12);
  transform: perspective(1200px) rotateY(-6deg);
  transition: transform .4s ease;
}
.cover-img:hover { transform: perspective(1200px) rotateY(0deg) translateY(-6px); }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 1.2rem;
}
.section p { margin: 0 0 1.1rem; color: var(--cream-dim); }
.section p strong { color: var(--cream); }

/* ===== The Book ===== */
.book { background: var(--navy-800); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.book-cover-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cover-figure { margin: 0; }
.cover-figure--back { max-width: 78%; }
.cover-figure figcaption {
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-top: .6rem;
}
.book-cover-img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(230,169,77,0.12);
}
.format-line {
  font-size: .95rem;
  color: var(--cream-dim);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin: 0 0 1.2rem;
}
.format-line strong { color: var(--cream); }
.book-question {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.35;
  margin: 1.8rem 0;
}
.book-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.book-meta { font-size: .85rem; color: var(--muted); letter-spacing: .03em; margin: 0; }

/* ===== Praise / Reviews ===== */
.praise { background: var(--navy-900); border-bottom: 1px solid var(--line); }
.praise-title { text-align: center; margin-bottom: 2.5rem; }

/* Authentic lead pull-quote (book's own words) */
.lead-quote {
  margin: 0 auto 3rem;
  max-width: 760px;
  text-align: center;
  border: 0;
  padding: 0 1rem;
}
.lead-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  color: var(--gold);
  margin: 0 0 .8rem;
}
.lead-quote cite {
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Authentic closing tagline (from the cover) */
.praise-tagline {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--cream);
  margin: 3rem auto 0;
  max-width: 600px;
}
.praise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.quote {
  margin: 0;
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.8rem 1.8rem 1.4rem;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: rgba(230,169,77,0.25);
  position: absolute;
  top: .4rem; left: .9rem;
}
.quote p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--cream);
  margin: .5rem 0 1.2rem;
  position: relative;
}
.quote footer { display: flex; flex-direction: column; gap: .35rem; }
.stars { color: var(--gold); letter-spacing: .15em; font-size: .95rem; }
.quote cite {
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--cream-dim);
  font-weight: 600;
}
.praise-disclaimer {
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
  margin: 2rem 0 0;
  font-style: italic;
}

/* ===== Author ===== */
.author-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.author-photo {
  width: 100%;
  border-radius: 4px;
  filter: saturate(.95);
  box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(230,169,77,0.12);
}
.author-social {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 1.6rem 0 0;
}
.author-social a {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
}

/* ===== Newsletter ===== */
.newsletter {
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(230,169,77,0.14), transparent 60%),
    var(--navy-900);
  text-align: center;
  border-top: 1px solid var(--line);
}
.newsletter-inner { max-width: 620px; margin: 0 auto; }
.newsletter-sub { color: var(--cream-dim); }
.newsletter-form {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1 1 280px;
  background: var(--navy-700);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: .85rem 1rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .95rem;
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230,169,77,0.15);
}
.form-note { min-height: 1.4em; margin-top: 1rem; color: var(--gold); font-size: .9rem; }

/* ===== Contact ===== */
.contact { text-align: center; background: var(--navy-800); border-top: 1px solid var(--line); }
.contact-inner { max-width: 560px; margin: 0 auto; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  text-align: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 .3rem;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  margin: 0 0 1rem;
}
.footer-copy { font-size: .82rem; color: var(--muted); margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-800);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 1rem; border-top: 1px solid var(--line); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-cover { order: 1; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .cover-img { transform: none; max-width: 280px; }

  .praise-grid { grid-template-columns: 1fr; }
  .book-grid, .author-grid { grid-template-columns: 1fr; }
  .book-cover-col { max-width: 300px; margin: 0 auto; flex-direction: row; flex-wrap: wrap; }
  .cover-figure--back { max-width: 100%; }
  .author-photo-col { max-width: 360px; margin: 0 auto; }
  .author-social { justify-content: center; }
}
