/* DavidLeeAuthor.com - Premium Light Author Theme */

:root {
  /* Colors - Clean Light/Neutral */
  --bg-color: #FAFAFA;
  /* Clean light background */
  --text-color: #1A202C;
  /* Deep slate for crisp text */
  --accent-color: #007BFF;
  /* Electric Blue accent */
  --accent-hover: #0056B3;
  --secondary-bg: #FFFFFF;
  /* Pure white for sections/cards */
  --border-color: #E2E8F0;
  /* Subtle light borders */
  --muted-text: #718096;
  /* Medium grey for secondary text */

  /* Typography */
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-accent: 'Orbitron', sans-serif;

  --type-jumbo: clamp(3rem, 8vw, 5.5rem);
  --type-h1: clamp(2rem, 5vw, 3.5rem);
  --type-h2: clamp(1.5rem, 3vw, 2.5rem);
  --type-body: 1.125rem;

  /* Grid & Spacing */
  --grid-columns: 12;
  --grid-gap: 1.5rem;
  --container-padding: 2rem;
  --section-spacing: clamp(4rem, 10vw, 8rem);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: var(--type-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Layout Utilities */
.grid-container {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
  padding: 0 var(--container-padding);
  max-width: 1200px;
  margin: 0 auto;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 80px !important;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.brand img:hover {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  position: relative;
  color: var(--text-color);
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--accent-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Main Layout */
main {
  padding-top: 140px; /* Offset fixed header */
}

section {
  margin-bottom: var(--section-spacing);
}

/* Typography styles */
.display-text {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.text-accent {
  color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  min-height: 75vh;
  align-items: center;
  position: relative;
}

.hero-title {
  grid-column: 1 / -1;
  font-size: var(--type-jumbo);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  font-family: var(--font-accent);
  color: var(--text-color);
}

.hero-content {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  font-weight: 600;
  border-left: 3px solid var(--accent-color);
  padding-left: 1.5rem;
}

.hero-content p {
  margin-bottom: 1.5rem;
  color: var(--muted-text);
  line-height: 1.8;
}

.hero-content p:nth-of-type(2) {
  /* Highlight the book blurb quote */
  color: var(--text-color);
  font-style: italic;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--accent-color);
  border: 1px solid var(--accent-color);
  color: #fff;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
  width: max-content;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--accent-hover);
  transition: width 0.3s ease;
  z-index: 1;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn:hover {
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.btn:hover::before {
  width: 100%;
}

.hero-image-wrapper {
  grid-column: 7 / 13;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.hero-image-wrapper img {
  width: 85%;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.5s ease;
}

.hero-image-wrapper img:hover {
  transform: translateY(-5px);
}

/* Author Section */
.author-section {
  background: var(--secondary-bg);
  padding: var(--section-spacing) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.author-title {
  grid-column: 1 / -1;
  font-size: var(--type-h2);
  color: var(--text-color);
  text-align: center;
  margin-bottom: 4rem;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.author-bio {
  grid-column: 3 / 11;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
}

.author-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--secondary-bg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  background: var(--secondary-bg);
}

.author-header h3 {
  font-size: 2rem;
  color: var(--text-color);
}

.bio-text {
  margin-bottom: 1.5rem;
  color: var(--muted-text);
  text-align: center;
  max-width: 800px;
}

.bio-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-color);
  text-align: center;
  max-width: 700px;
  margin-top: 3rem;
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.bio-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  font-family: var(--font-accent);
  opacity: 0.2;
}

/* Contact / Generic Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 4px;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Footer */
.site-footer {
  padding: 4rem var(--container-padding) 2rem;
  background: var(--secondary-bg);
}

.site-footer .grid-container {
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
}

.footer-brand {
  grid-column: 1 / 5;
}

.footer-brand h4 {
  font-family: var(--font-accent);
  color: var(--text-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-brand p {
  color: var(--muted-text);
  max-width: 300px;
  font-size: 0.95rem;
}

.footer-col {
  grid-column: span 3;
}

.footer-col h4 {
  font-family: var(--font-accent);
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--accent-color);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-hover);
  padding-left: 0.5rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 3rem;
  text-align: center;
  color: var(--muted-text);
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  :root {
    --grid-columns: 4;
    --container-padding: 1.5rem;
    --type-jumbo: 2.5rem;
  }
  
  .brand img {
    height: 60px !important;
  }

  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.8rem;
  }

  .hero-title {
    margin-bottom: 2rem;
  }

  .hero-content {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
    align-items: center;
  }
  
  .hero-tagline {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--accent-color);
    padding-top: 1.5rem;
  }

  .hero-image-wrapper {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .hero-image-wrapper img {
    width: 90%;
  }

  .author-bio {
    grid-column: 1 / -1;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
  }
  
  .footer-col {
    grid-column: span 2;
    margin-bottom: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-col {
    grid-column: 1 / -1;
  }
}