/* ============================================================
   Paul S. Rothenberg — Author Website
   Palette drawn from "Where's My Participation Trophy?" cover:
     Salmon background, dark teal type, gold trophy accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

/* --- Variables --- */
:root {
  --cream:       #FAF5EE;
  --cream-dark:  #EDE4D4;
  --teal:        #1B5B48;
  --teal-dark:   #0E3D2A;
  --teal-light:  #2A7A5E;
  --gold:        #B8892E;
  --gold-light:  #D4A843;
  --salmon:      #C57B68;
  --salmon-dark: #A85F4D;
  --text:        #2A2A2A;
  --text-light:  #5A5A5A;
  --white:       #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width:     1100px;
  --nav-height:    68px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--teal-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--teal-dark);
  border-bottom: 3px solid var(--gold);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--gold-light); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cream);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* Hamburger toggle — hidden by default */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--cream);
  border-radius: 2px;
  transition: opacity 0.2s;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  background-color: var(--cream);
  padding: 80px 24px 72px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

/* Text side */
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--salmon);
  margin-bottom: 14px;
}

.hero-title {
  font-weight: 900;
  color: var(--teal-dark);
  margin-bottom: 10px;
  line-height: 1.0;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-light);
  max-width: 460px;
  line-height: 1.85;
  margin-bottom: 40px;
}

.hero-review {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0rem;
  color: var(--text);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 40px;
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

.hero-review cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.hero-review cite a {
  color: var(--gold);
  border-bottom: 1px solid rgba(184, 137, 46, 0.45);
  transition: border-color 0.2s;
}
.hero-review cite a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Book side */
.hero-book {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover-wrapper {
  position: relative;
  transform: rotate(2.5deg);
  transition: transform 0.35s ease;
}
.book-cover-wrapper:hover { transform: rotate(0deg) scale(1.02); }

.book-cover-img {
  width: 300px;
  max-width: 100%;
  border-radius: 3px;
  box-shadow:
    -5px 5px 0 rgba(14, 61, 42, 0.18),
    -10px 10px 0 rgba(14, 61, 42, 0.10),
    0 24px 64px rgba(0, 0, 0, 0.22);
}

/* CSS fallback if image is missing */
.book-cover-placeholder {
  width: 280px;
  height: 420px;
  background: linear-gradient(160deg, #C57B68 0%, #D4907A 60%, #B86B58 100%);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  box-shadow:
    -5px 5px 0 rgba(14, 61, 42, 0.18),
    -10px 10px 0 rgba(14, 61, 42, 0.10),
    0 24px 64px rgba(0, 0, 0, 0.22);
}
.book-ph-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--teal-dark);
  line-height: 1.15;
  margin-bottom: 10px;
}
.book-ph-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 18px;
}
.book-ph-author {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.book-ph-note {
  margin-top: 20px;
  font-size: 0.7rem;
  color: rgba(14, 61, 42, 0.55);
  font-style: italic;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 137, 46, 0.35);
}

.btn-teal-outline {
  background-color: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-teal-outline:hover {
  background-color: var(--teal);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-cream-outline {
  background-color: transparent;
  color: var(--cream);
  border-color: rgba(250, 245, 238, 0.55);
}
.btn-cream-outline:hover {
  background-color: rgba(250, 245, 238, 0.12);
  border-color: var(--cream);
  color: var(--cream);
  transform: translateY(-2px);
}


/* ============================================================
   SECTION LABEL (eyebrow above headings)
   ============================================================ */

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--salmon);
  margin-bottom: 10px;
}

.section-label--light { color: var(--gold-light); }


/* ============================================================
   BOOK / BLURB SECTION  (dark teal band)
   ============================================================ */

.section-book {
  background-color: var(--teal-dark);
  padding: 88px 24px;
  text-align: center;
}

.section-book h2 { color: var(--cream); margin-bottom: 32px; }

.book-blurb {
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(250, 245, 238, 0.88);
}
.book-blurb em { font-style: italic; color: var(--cream); }

.book-blurb p { margin-bottom: 1.3em; }
.book-blurb p:last-child { margin-bottom: 0; }

.section-book .cta-group { justify-content: center; }


/* ============================================================
   AUTHOR BIO SECTION
   ============================================================ */

.section-bio {
  background-color: var(--cream-dark);
  padding: 88px 24px;
}

.bio-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  align-items: start;
}

.bio-photo-wrapper { position: relative; }

.bio-photo {
  width: 100%;
  border-radius: 3px;
  box-shadow:
    6px 6px 0 var(--teal),
    12px 12px 0 rgba(27, 91, 72, 0.2);
}

.bio-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--cream);
  border: 2px dashed var(--teal);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.bio-content h2 { margin-bottom: 24px; }

.bio-text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.85;
}


/* ============================================================
   DECORATIVE RULE
   ============================================================ */

.ornament {
  text-align: center;
  padding: 4px 0;
  color: var(--gold);
  letter-spacing: 0.6em;
  font-size: 1rem;
  margin: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--teal-dark);
  padding: 56px 24px 32px;
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(250, 245, 238, 0.55);
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(250, 245, 238, 0.65);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(250, 245, 238, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(250, 245, 238, 0.35);
}


/* ============================================================
   PAGE HEADER  (inner pages)
   ============================================================ */

.page-header {
  background-color: var(--teal-dark);
  padding: 64px 24px 56px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.page-header h1 { color: var(--cream); margin-bottom: 8px; }
.page-header .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(250, 245, 238, 0.65);
  margin: 0;
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.section-contact {
  padding: 88px 24px;
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 { margin-bottom: 20px; }

.contact-body {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1.4em;
}

.contact-email-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 3px;
  margin-top: 8px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email-link:hover {
  color: var(--teal-light);
  border-color: var(--gold-light);
}


/* ============================================================
   BLOG PAGE
   ============================================================ */

.section-blog {
  padding: 88px 24px;
}

.blog-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-coming-soon {
  text-align: center;
  padding: 60px 24px;
}

.blog-coming-soon .ornament-large {
  font-size: 3.5rem;
  color: var(--gold);
  letter-spacing: 0.4em;
  margin-bottom: 24px;
}

.blog-coming-soon h2 { margin-bottom: 16px; }

.blog-coming-soon p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-light);
  max-width: 440px;
  margin: 0 auto;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-book { order: -1; }
  .hero-tagline,
  .hero-review { margin-left: auto; margin-right: auto; }
  .cta-group { justify-content: center; }

  .bio-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .bio-photo-wrapper { max-width: 280px; margin: 0 auto; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--teal-dark);
    flex-direction: column;
    gap: 0;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 15px 24px;
    border-bottom: none;
  }
  .nav-toggle { display: flex; }

  .hero { padding: 56px 20px 48px; }
  .book-cover-img { width: 220px; }
  .book-cover-placeholder { width: 220px; height: 330px; }

  .section-book,
  .section-bio { padding: 64px 20px; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .cta-group { flex-direction: column; align-items: center; }
}
