/* 
 * Ben Tomlinson Author Site
 * Multi-Page with Beautiful Typography
 */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #666666;
  --accent: #00A5A8;
  --accent-dark: #008B8D;
  --border: rgba(0,0,0,0.08);
  --subtle-bg: #fbfbfb;
  
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
  
  --container: 1200px;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  text-align: center;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

em {
  font-style: italic;
  font-family: var(--font-serif);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

strong {
  font-weight: 600;
  color: var(--accent);  /* ADD THIS LINE */
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);    /* Make sure this is --accent not --text */
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: var(--space-md);
}

.nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  gap: var(--space-md);
  align-items: center;    /* ADD THIS */
}




.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--subtle-bg);
}

/* Dropdown Navigation */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  margin-top: 0;    /* CHANGE from 8px to 0 - removes the gap */
  padding-top: 8px;  /* ADD - gives visual spacing without actual gap */
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 12px 16px;
  border-radius: 0;
  white-space: nowrap;
}

.nav-dropdown a:first-child {
  border-radius: 6px 6px 0 0;
}

.nav-dropdown a:last-child {
  border-radius: 0 0 6px 6px;
}

/* LANDING PAGE */
.landing-page {
  background: var(--bg);
}

.landing-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 0;
  text-align: center;    /* Make sure this is here */
}
.hero-books {
  display: flex;
  justify-content: center;
  gap: 40px;     
  margin-bottom: var(--space-xl);
  margin-left: auto;      /* ADD */
  margin-right: auto;     /* ADD */
}

.book-card {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

.book-cover {
  width: 400px;
  margin-bottom: var(--space-sm);
  display: flex;           /* ADD */
  align-items: center;     /* ADD */
  justify-content: center; /* ADD */
}

/* Book cover - actual dimensions 1080x1350 (4:5 ratio) */
.book-cover img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.2));
  border-radius: 4px;
}

.book-blank {
  width: 420px;
  height: 525px;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.blank-interior {
  text-align: center;
}

.blank-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.blank-date {
  display: block;
  font-size: 1.125rem;
  color: var(--text-light);
  font-weight: 500;
}

.book-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
}

.author-link {
  display: inline-block;
  margin-bottom: var(--space-xl);
  transition: transform 0.3s ease;
}

.author-link:hover {
  transform: scale(1.08);
}

.author-circle {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--accent);
  box-shadow: 0 15px 40px rgba(22, 148, 172, 0.25);
}

/* Author photo - actual dimensions 885x1327 */
.author-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.landing-hero h1 {
  margin-bottom: var(--space-sm);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.byline {
  font-size: 1.25rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* BOOK PAGES */
.book-hero {
  padding: var(--space-2xl) 0;
}

.book-intro {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.book-cover-feature {
  position: sticky;
  top: 120px;
}

.book-cover-feature img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
  border-radius: 4px;
}

.book-info h1 {
  text-align: left;
}

.tagline {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.description {
  margin-bottom: var(--space-lg);
}

.description p {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* BUY SECTION */
.buy-section {
  margin-bottom: var(--space-lg);
}

.buy-section h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
}

.buy-btn {
  padding: 14px 20px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}

.buy-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 4px 12px rgba(22, 148, 172, 0.3);
}

/* AWARDS */
.awards-box {
  padding: var(--space-md);
  background: var(--subtle-bg);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.awards-box h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.awards-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.awards-list li {
  margin-bottom: var(--space-sm);
  font-size: 1.0625rem;
}

.awards-list li:last-child {
  margin-bottom: 0;
}

/* PRAISE / TESTIMONIALS GRID */
.praise-section {
  padding: var(--space-2xl) 0;
  background: var(--subtle-bg);
  border-top: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

blockquote {
  padding: var(--space-lg);          /* More padding */
  background: white;
  border-left: 5px solid var(--accent);  /* Slightly thicker */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);  /* Bit more shadow */
}

blockquote p {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: var(--space-sm);
  color: var(--text);
  max-width: none;
}


blockquote:nth-child(odd) {
  background: var(--subtle-bg);
}

blockquote footer {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--accent);      /* RED */
  font-weight: 600;          /* BOLD */
  margin-top: var(--space-sm);
}

/* PARTY PAGE */
.party-page {
  padding: var(--space-2xl) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.party-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.party-content h1 {
  text-align: center;
}

.coming-big {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.party-intro {
  font-size: 1.375rem;
  margin-bottom: var(--space-md);
  margin-left: auto;
  margin-right: auto;
}

.party-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  margin-left: auto;
  margin-right: auto;
}

.follow-box {
  padding: var(--space-lg);
  background: var(--subtle-bg);
  border-radius: 8px;
  margin-bottom: var(--space-xl);
}

.follow-box p {
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
  max-width: none;
}

.follow-btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.125rem;
  transition: all 0.2s ease;
}

.follow-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 4px 16px rgba(22, 148, 172, 0.3);
}

.back-link {
  margin-top: var(--space-xl);
}

.back-link a {
  font-size: 1.125rem;
}

/* ABOUT PAGE */
.about-page {
  padding: var(--space-2xl) 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-photo-large {
  position: sticky;
  top: 120px;
}

.about-photo-large img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.about-text h1 {
  text-align: left;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.8;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.link-btn {
  display: inline-block;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}

.link-btn:hover {
  background: var(--accent-dark);
  transform: translateX(4px);
  color: white;
}

/* SCHOOLS PAGE */
.schools-page {
  padding: var(--space-2xl) 0;
}

.intro-text {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  font-family: var(--font-serif);
  font-style: italic;
}

.schools-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.schools-info p {
  font-size: 1.0625rem;
}

.offer-list {
  list-style-type: disc;
  margin: var(--space-md) 0 var(--space-lg);
  padding-left: 1.4rem;
}

.offer-list li {
  padding: var(--space-sm) 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.offer-list li::marker {
  color: var(--accent);
}

.cta-box {
  margin-top: var(--space-lg);
}

.cta-btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.125rem;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 4px 16px rgba(22, 148, 172, 0.3);
}

.schools-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.schools-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* CONTACT PAGE */
.contact-page {
  padding: var(--space-2xl) 0;
  min-height: 60vh;
}

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

.contact-intro {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  margin-left: auto;
  margin-right: auto;
}

.contact-email-large {
  margin-bottom: var(--space-xl);
}

.contact-email-large a {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-details {
  padding: var(--space-lg);
  background: var(--subtle-bg);
  border-radius: 8px;
  margin-bottom: var(--space-xl);
  text-align: left;
}

.contact-details h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.contact-details ul {
  margin: 0;
  padding-left: var(--space-md);
}

.contact-details li {
  margin-bottom: var(--space-sm);
  font-size: 1.0625rem;
}

.social-links {
  text-align: center;
}

.social-links h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.social-links p {
  font-size: 1.125rem;
  max-width: none;
}

/* FOOTER */
.site-footer {
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--subtle-bg);
  margin-top: var(--space-2xl);
}

.site-footer p {
  margin-bottom: var(--space-sm);
  color: var(--text-light);
  max-width: none;
}

.site-footer a {
  color: var(--text-light);
}

.site-footer a:hover {
  color: var(--text);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  :root {
    --space-lg: 32px;
    --space-xl: 60px;
    --space-2xl: 80px;
  }

  .nav {
    gap: var(--space-sm);
    font-size: 0.9rem;
  }



  .hero-books {
    gap: var(--space-lg);
  }

  .book-cover {
    width: 220px;
  }

  .book-blank {
    width: 220px;
    height: 275px;
  }

  .author-circle {
    width: 130px;
    height: 130px;
  }

  .book-intro,
  .about-layout,
  .schools-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .book-cover-feature,
  .about-photo-large {
    position: static;
    max-width: 350px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .schools-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .schools-gallery img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero-books {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .book-cover {
    width: 240px;
  }

  .book-blank {
    width: 240px;
    height: 300px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .buy-grid {
    grid-template-columns: 1fr;
  }

  .schools-gallery {
    grid-template-columns: 1fr;
  }
}

/* NEWS PAGE */
.news-page {
  padding: var(--space-2xl) 0;
}

.news-page h1 {
  text-align: center;
}

.news-intro {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  margin-left: auto;
  margin-right: auto;
}

.news-grid {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.news-post {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.news-post:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.news-post h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  text-align: left;
}

.news-post p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}

/* Newsletter Box */
.newsletter-box {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--subtle-bg);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.newsletter-box h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.newsletter-box p {
  font-size: 1.0625rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  margin-top: var(--space-lg);
}

.coming-soon-text {
  margin-bottom: var(--space-md);
  font-size: 1rem;
  color: var(--text-light);
}

.follow-link {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.0625rem;
  transition: all 0.2s ease;
}

.follow-link:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 4px 16px rgba(22, 148, 172, 0.3);
}

/* DROPDOWN NAVIGATION */
.nav-item {
  position: relative;
  display: inline-block;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 150px;
  z-index: 1000;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
}

.nav-dropdown a:hover {
  background: var(--subtle-bg);
  color: var(--accent);
}

/* H1 hero title styling */
.hero-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: clamp(2rem, 4vw, 3rem);
}