/* ══════════════════════════════════════════════════════════
   Anna R. Dudley — Personal Website
   Brand: Deep Forest + Warm Bronze
   Fonts: Fraunces (headlines), Source Serif 4 (body), Inter (UI)
   ══════════════════════════════════════════════════════════ */

:root {
  --forest: #1B3A2D;
  --forest-deep: #12281F;
  --forest-mid: #254A3A;
  --bronze: #A8885A;
  --bronze-light: #C4A87A;
  --stone: #F4F2ED;
  --white: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --rule-light: #D8D4CC;
  --bg-page: #EDEAE5;
  --danger: #8B2D2D;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  color: var(--forest);
  line-height: 1.2;
}

h1 { font-size: 52px; font-weight: 300; }
h2 { font-size: 36px; font-weight: 300; }
h3 { font-size: 26px; font-weight: 300; }

.body-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
}

.tag-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bronze);
}

.section-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 12px;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(18, 40, 31, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 136, 90, 0.15);
  transition: var(--transition);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--white);
}

.nav-logo-text span {
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--bronze);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  color: var(--bronze) !important;
  border: 1px solid rgba(168, 136, 90, 0.4);
  padding: 8px 20px;
  border-radius: 3px;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--bronze);
  color: var(--white) !important;
  border-color: var(--bronze);
}

.nav-cta::after { display: none !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ── HERO SECTIONS ── */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--forest-deep) 0%, var(--forest) 50%, var(--forest-mid) 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(168,136,90,0.05) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168,136,90,0.03) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.hero h1 {
  color: var(--white);
  font-size: 64px;
  margin-bottom: 8px;
}

.hero h1 span {
  color: var(--bronze-light);
  font-style: italic;
}

.hero-subtitle {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 40px;
}

.hero-rule {
  width: 60px;
  height: 1.5px;
  background: var(--bronze);
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (shorter, for interior pages) */
.page-hero {
  position: relative;
  padding: 120px 0 56px;
  background: linear-gradient(165deg, var(--forest-deep) 0%, var(--forest) 50%, var(--forest-mid) 100%);
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168,136,90,0.05) 0%, transparent 70%);
}

.page-hero h1 {
  color: var(--white);
  font-size: 48px;
  position: relative;
  z-index: 1;
}

.page-hero h1 span {
  color: var(--bronze-light);
  font-style: italic;
}

.page-hero .hero-tagline {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  margin-top: 16px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  border-radius: 3px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--bronze);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--bronze-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(168, 136, 90, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-forest {
  background: var(--forest);
  color: var(--white);
}

.btn-forest:hover {
  background: var(--forest-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── SECTIONS ── */
.section {
  padding: 64px 0;
}

.section-light { background: var(--white); }
.section-stone { background: var(--stone); }
.section-forest {
  background: linear-gradient(165deg, var(--forest-deep) 0%, var(--forest) 100%);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-body {
  padding: 28px;
}

.card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 12px;
}

.card-body h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.card-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  transition: color var(--transition);
}

.card-link:hover { color: var(--bronze); }

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.card-link:hover svg { transform: translateX(3px); }

/* Card with image placeholder */
.card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-image-icon {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  color: var(--bronze-light);
}

/* ── GRID LAYOUTS ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── PULL QUOTE ── */
.pullquote {
  padding: 24px 0;
  border-top: 1.5px solid var(--forest);
  border-bottom: 1.5px solid var(--forest);
  text-align: center;
  margin: 24px 0;
}

.pullquote p {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--forest);
  line-height: 1.55;
}

/* ── DIVIDER ── */
.divider-bronze {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--bronze), transparent);
  margin: 48px 0;
}

/* ── SOCIAL LINKS ── */
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-light);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--bronze);
  color: var(--bronze);
  background: rgba(168, 136, 90, 0.05);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* ── FOOTER ── */
.footer {
  background: var(--forest-deep);
  padding: 48px 0 32px;
  color: rgba(255,255,255,0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand h3 span {
  color: var(--bronze-light);
  font-style: italic;
}

.footer-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom .social-link {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
}

.footer-bottom .social-link:hover {
  border-color: var(--bronze);
  color: var(--bronze);
  background: rgba(168, 136, 90, 0.1);
}

/* ── ABOUT PAGE ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: center;
}

.headshot-placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-mid));
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  gap: 12px;
}

.headshot-placeholder svg {
  width: 64px;
  height: 64px;
}

/* ── PUBLICATION FEATURE ── */
.book-feature {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 44px;
  align-items: center;
}

.book-cover-placeholder {
  aspect-ratio: 2/3;
  background: linear-gradient(165deg, var(--forest-deep) 0%, var(--forest) 100%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.book-cover-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(168,136,90,0.08) 0%, transparent 70%);
}

.book-cover-placeholder .tag-label {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.book-cover-placeholder h3 {
  color: var(--white);
  font-size: 24px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.book-cover-placeholder .author {
  color: var(--bronze-light);
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 16px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.book-details h2 {
  margin-bottom: 20px;
}

.book-details .body-text {
  margin-bottom: 24px;
}

/* ── NEWSLETTER SECTION ── */
.newsletter-box {
  background: linear-gradient(165deg, var(--forest-deep) 0%, var(--forest) 100%);
  border-radius: 8px;
  padding: 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168,136,90,0.06) 0%, transparent 70%);
}

.newsletter-box h2 {
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.newsletter-box p {
  color: rgba(255,255,255,0.6);
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.newsletter-form input:focus {
  border-color: var(--bronze);
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info .body-text {
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--bronze);
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border: 1px solid var(--rule-light);
  border-radius: 4px;
  background: var(--stone);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--bronze);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── ANALYSIS BLOCK ── */
.analysis-block {
  background: linear-gradient(135deg, #EEF0EC, #E8EBE6);
  border-radius: 6px;
  overflow: hidden;
}

.analysis-item {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(27,58,45,0.1);
}

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

.analysis-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 6px;
}

.analysis-item p {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ── STAT COUNTERS ── */
.stats-row {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--bronze);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--forest-deep);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(168, 136, 90, 0.15);
  }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 42px; }
  .page-hero h1 { font-size: 36px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .book-feature { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .newsletter-box { padding: 40px 24px; }
  .section { padding: 48px 0; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .stats-row { gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
