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

:root {
  --bg: #faf8f5;
  --text: #1a1a1a;
  --text-light: #5a5550;
  --accent: #6b5b4e;
  --divider: #e2ddd5;
  --max-width: 720px;
  --header-height: 72px;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', 'Georgia', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2.8rem; margin-bottom: 1.2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

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

em { font-style: italic; }
strong { font-weight: 600; }

hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 2.5rem 0;
}

blockquote {
  border-left: 2px solid var(--divider);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-style: italic;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.site-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.site-name:hover { color: var(--accent); }

nav { display: flex; gap: 1.8rem; align-items: center; }

nav a, .nav-dropdown > a {
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
nav a:hover, nav a.active,
.nav-dropdown > a:hover, .nav-dropdown > a.active { color: var(--text); }

/* === NAV DROPDOWN === */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--divider);
  padding: 0.5rem 0;
  min-width: 140px;
  z-index: 200;
  padding-top: 1rem;
  border-top: none;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

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

.nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 1.2rem;
  font-family: 'Source Serif 4', serif;
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-menu a:hover {
  color: var(--text);
  background: rgba(0,0,0,0.03);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.menu-toggle svg { width: 24px; height: 24px; }

/* === MAIN CONTENT === */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.page-title {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* === HOME PAGE === */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.book-feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.book-cover {
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.book-info h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.book-info .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.purchase-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.purchase-links a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--text);
  font-size: 0.8rem;
  font-family: 'Source Serif 4', serif;
  color: var(--text);
  transition: all 0.2s;
}
.purchase-links a:hover {
  background: var(--text);
  color: var(--bg);
}

.book-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.poem-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.poem {
  font-style: italic;
  line-height: 1.9;
  color: var(--text-light);
}
.poem .poem-title {
  font-style: normal;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* === ABOUT PAGE === */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  object-fit: cover;
}

.about-text p {
  margin-bottom: 1.2rem;
}

/* === BOOKS PAGE === */
.book-section {
  margin-bottom: 4rem;
}

.book-section:last-child { margin-bottom: 0; }

.book-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.book-grid .book-cover { width: 100%; }

.praise-section {
  margin-top: 2rem;
}

.praise {
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
}

.praise .attribution {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

/* === PUBLICATIONS === */
.pub-list {
  list-style: none;
}

.pub-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.95rem;
}

.pub-list li:last-child { border-bottom: none; }

.pub-journal { font-style: italic; }
.pub-year { color: var(--text-light); font-size: 0.85rem; }

/* === WORK WITH ME === */
.services-section {
  margin-bottom: 3rem;
}

.services-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.rate-line {
  margin-bottom: 0.3rem;
}

.cta-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 2rem;
  border: 1px solid var(--text);
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.2s;
  text-align: center;
}
.cta-link:hover {
  background: var(--text);
  color: var(--bg);
}

.note-box {
  background: rgba(0,0,0,0.03);
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.8;
}

/* === EVENTS === */
.event {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--divider);
}
.event:first-child { padding-top: 0; }
.event:last-child { border-bottom: none; }

.event h3 { margin-bottom: 0.3rem; }
.event .event-details { color: var(--text-light); font-size: 0.9rem; }

/* === CONTACT === */
.contact-section {
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

.contact-form div {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  padding: 0.7rem;
  border: 1px solid var(--divider);
  background: white;
  color: var(--text);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form button {
  align-self: flex-start;
  padding: 0.7rem 2rem;
  border: 1px solid var(--text);
  background: none;
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.contact-form button:hover {
  background: var(--text);
  color: var(--bg);
}

/* === REPRESENTATION === */
.rep-card {
  margin-bottom: 2rem;
}
.rep-card h3 { font-size: 1.1rem; }
.rep-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .site-header { padding: 0 1.2rem; }

  nav.nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0.8rem;
  }
  nav.nav-links.open { display: flex; }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 0.3rem 0 0.3rem 1rem;
    font-size: 0.8rem;
  }

  .menu-toggle { display: block; }

  .book-feature { grid-template-columns: 1fr; }
  .book-feature .book-cover { max-width: 220px; }

  .about-layout { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }

  .book-grid { grid-template-columns: 1fr; }
  .book-grid .book-cover { max-width: 180px; }

  .page-content { padding: 2.5rem 1.2rem 3rem; }
  .hero { padding: 2.5rem 1.2rem 3rem; }
  .poem-section { padding: 0 1.2rem; }

  h1 { font-size: 2rem; }
  .page-title { font-size: 1.8rem; }
}

/* === RESOURCES PAGE === */
.resource-card {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.resource-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.resource-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.resource-card p:last-child {
  margin-bottom: 0;
}

/* === MEDIA PAGE === */
.media-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--divider);
}

.media-item:last-child { border-bottom: none; }

.media-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.media-item h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.media-item h3 a:hover {
  color: var(--accent);
}

.media-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.media-item.featured {
  padding: 1.5rem 0;
}

.media-item.featured p:last-child {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}
