/* Basic Author Website Stylesheet - Charles Whitlock */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #334155;
  background-color: #f8fafc;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background-color: #0f172a;
  color: #ffffff;
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.site-title {
  font-size: 2.4rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.site-tagline {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 400;
}

/* Navigation */
.site-nav {
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 1rem;
}

.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: #38bdf8;
}

/* Sections */
.section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section h2 {
  font-size: 1.75rem;
  color: #0f172a;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

/* About Author */
.author-card {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.author-img {
  width: 180px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.author-bio p {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

.author-bio p:last-child {
  margin-bottom: 0;
}

/* Book Section */
.book-card {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.book-cover-wrap {
  flex-shrink: 0;
}

.book-cover {
  width: 220px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border: 1px solid #cbd5e1;
  display: block;
}

.book-details {
  display: flex;
  flex-direction: column;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.book-title {
  font-size: 1.8rem;
  color: #0f172a;
  line-height: 1.2;
}

.book-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.book-meta {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.book-synopsis p {
  margin-bottom: 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
}

.book-actions {
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  transition: background-color 0.15s ease;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background-color: #0284c7;
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background-color: #0369a1;
}

/* Contact */
.contact-section p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.contact-email a {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2.5rem 0;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
  background-color: #ffffff;
  margin-top: 3rem;
}

.site-footer p {
  margin-bottom: 0.25rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .site-title {
    font-size: 1.9rem;
  }

  .site-nav .container {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }

  .author-img {
    margin: 0 auto;
  }

  .book-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-details {
    align-items: center;
  }

  .book-cover {
    max-width: 200px;
  }
}
