@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Crimson+Pro:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  --stone: #c8b89a;
  --stone-dark: #8a7560;
  --stone-light: #f0e8dc;
  --earth: #6b5744;
  --earth-dark: #3d2e20;
  --green: #4a6741;
  --green-light: #7a9b6e;
  --sky: #7aa3c4;
  --sky-light: #d4e6f1;
  --cream: #faf6f0;
  --text: #2c2015;
  --text-light: #6b5744;
  --border: #d4c4aa;
  --shadow: rgba(44, 32, 21, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(200, 184, 154, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(74, 103, 65, 0.08) 0%, transparent 60%);
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

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

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--earth-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--stone-dark);
  font-weight: 400;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--earth-dark); }

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--earth-dark);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(122, 163, 196, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(74, 103, 65, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-planet {
  width: min(340px, 80vw);
  height: min(340px, 80vw);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2.5rem;
  box-shadow:
    0 20px 60px rgba(44, 32, 21, 0.2),
    0 4px 16px rgba(44, 32, 21, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-subtitle {
  font-family: 'Crimson Pro', serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--earth-dark);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.hero-place {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--stone-dark);
  margin-bottom: 1.5rem;
}

.hero-description {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--stone);
  margin: 0 auto 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--earth-dark);
  color: var(--cream);
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--earth-dark);
  transition: all 0.25s;
  margin: 0.4rem;
}

.btn-primary:hover {
  background: transparent;
  color: var(--earth-dark);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--earth-dark);
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--border);
  transition: all 0.25s;
  margin: 0.4rem;
}

.btn-secondary:hover {
  border-color: var(--earth-dark);
}

/* ── SECTIONS ── */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--earth-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-intro {
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ── CHAPTER GRID ── */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.chapter-card {
  background: var(--cream);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  position: relative;
}

.chapter-card:hover {
  background: var(--stone-light);
}

.chapter-card:hover .chapter-arrow {
  transform: translateX(4px);
}

.chapter-num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-bottom: 0.75rem;
}

.chapter-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--earth-dark);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.chapter-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* chapters-section dark background — force white text */
.chapters-section .chapter-card h3,
.chapters-section .card-title { color: #fff !important; }

.chapters-section .chapter-card p,
.chapters-section .card-desc { color: rgba(255,255,255,0.85) !important; }

.chapters-section .card-num { color: rgba(255,255,255,0.65) !important; }

/* timeline — remove underlines from linked entries */
a.tl-entry {
  text-decoration: none;
  color: inherit;
}

.chapter-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--stone-dark);
  transition: transform 0.2s;
}

/* ── PHOTO STRIP ── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 3rem 0;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: sepia(15%);
  transition: filter 0.3s, transform 0.3s;
}

.photo-strip img:hover {
  filter: sepia(0%);
  transform: scale(1.02);
}

/* ── ABOUT SECTION ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 340px;
  display: block;
  filter: sepia(20%);
}

.about-image::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: -1.5rem;
  bottom: -1.5rem;
  border: 1px solid var(--border);
  z-index: -1;
}

.about-text blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--earth-dark);
  line-height: 1.6;
  border-left: 3px solid var(--stone);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* ── TIMELINE TEASER ── */
.timeline-strip {
  background: var(--earth-dark);
  color: var(--cream);
  padding: 4rem 2rem;
}

.timeline-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.timeline-dates {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-top: 2rem;
  scrollbar-width: thin;
}

.timeline-item {
  flex: 0 0 auto;
  width: 180px;
  padding-right: 2rem;
  border-left: 1px solid rgba(200, 184, 154, 0.3);
  padding-left: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.timeline-item:hover .tl-year { color: var(--stone); }

.tl-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(200, 184, 154, 0.5);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.tl-event {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(250, 246, 240, 0.7);
}

/* ── FOOTER ── */
footer {
  background: var(--earth-dark);
  color: rgba(250, 246, 240, 0.6);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

footer .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

footer p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

footer a { color: var(--stone); text-decoration: none; }
footer a:hover { color: var(--stone-light); }

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(200,184,154,0.3);
  margin: 1.5rem auto;
}

/* ── CHAPTER PAGE ── */
.chapter-hero {
  padding: 120px 2rem 4rem;
  background: var(--stone-light);
  border-bottom: 1px solid var(--border);
}

.chapter-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.chapter-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.chapter-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--earth-dark);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.chapter-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--earth);
  margin: 2rem 0 0.75rem;
}

.chapter-body p {
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.chapter-body blockquote {
  border-left: 3px solid var(--stone);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-light);
}

.chapter-body .figure {
  margin: 2.5rem 0;
  text-align: center;
}

.chapter-body .figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
  filter: sepia(10%);
}

.chapter-body .figure figcaption {
  font-size: 0.85rem;
  color: var(--stone-dark);
  font-style: italic;
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
}

.chapter-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.chapter-nav a:hover { color: var(--earth-dark); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }

  .photo-strip { grid-template-columns: repeat(2, 1fr); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image::before { display: none; }

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

  .timeline-item { width: 150px; }
}
