/* ===========================
   Global Reset & Base
=========================== */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  background-color: #fafaf8;
  color: #2c2c2c;
  line-height: 1.75;
  font-size: 19px;
}

a {
  color: #4a6fa5;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #2c4d7f;
}

/* ===========================
   Navigation
=========================== */
nav {
  background-color: #fff;
  border-bottom: 1px solid #e8e4df;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .nav-brand {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: normal;
  color: #2c2c2c;
  letter-spacing: 0.02em;
}

nav .nav-brand:hover {
  color: #4a6fa5;
}

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

nav .nav-links a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #888;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: #2c2c2c;
  border-bottom-color: #4a6fa5;
}

/* ===========================
   Page Hero
=========================== */
.hero {
  background-color: #fff;
  border-bottom: 1px solid #e8e4df;
  padding: 4rem 2rem 3.5rem;
}

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

.hero h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: normal;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1rem;
  color: #888;
  font-style: italic;
  font-family: 'EB Garamond', Georgia, serif;
}

/* ===========================
   Main Content
=========================== */
.main-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Legacy container class (used by detail pages) */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.bio-section {
  margin-bottom: 3rem;
}

.bio-section p {
  margin-bottom: 1rem;
  color: #3a3a3a;
}

.placeholder-note {
  display: inline-block;
  background-color: #f5f0e8;
  border-left: 3px solid #c4a96a;
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: #7a6a4a;
  font-style: italic;
}

/* ===========================
   Projects Page
=========================== */
.page-intro {
  margin-bottom: 3.5rem;
}

.page-intro p {
  color: #3a3a3a;
  margin-bottom: 1rem;
}

.research-section {
  margin-bottom: 3.5rem;
}

.research-section h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: normal;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0dbd3;
}

.research-section .section-tag {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a6fa5;
  margin-bottom: 1.5rem;
  display: block;
  margin-top: 0.4rem;
}

.project-card {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.project-card h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: normal;
  color: #1a1a1a;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.project-card p {
  font-size: 0.97rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

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

.project-links {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  margin-top: 0.9rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.project-links a {
  color: #4a6fa5;
  letter-spacing: 0.02em;
}

.project-links a:hover {
  color: #2c4d7f;
  text-decoration: underline;
}

/* ===========================
   Travels Page
=========================== */
.travels-coming-soon {
  text-align: center;
  padding: 6rem 2rem;
  color: #aaa;
  font-style: italic;
  font-size: 1.05rem;
}

/* ---- Horizontal Trip Timeline ---- */
.trip-timeline-wrap {
  background: #fff;
  border-bottom: 1px solid #e8e4df;
  position: sticky;
  top: 56px;
  z-index: 50;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.trip-timeline-wrap::-webkit-scrollbar { display: none; }

.trip-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.1rem 2rem 1rem;
  gap: 0;
  min-width: max-content;
  margin: 0 auto;
  position: relative;
}

.trip-year-group {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.trip-year-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  padding: 0 1.25rem 0 0.25rem;
  padding-top: 0.15rem;
  white-space: nowrap;
  border-right: 1px solid #e0dbd3;
  margin-right: 1rem;
  align-self: center;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0 0.6rem;
  position: relative;
  min-width: 58px;
}
.timeline-node::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  right: -50%;
  height: 1px;
  background: #e0dbd3;
  z-index: 0;
}
.timeline-node:last-child::after { display: none; }

.timeline-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d0c9c0;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.timeline-node:hover .timeline-node-dot,
.timeline-node.active .timeline-node-dot {
  background: #4a6fa5;
  border-color: #4a6fa5;
}
.timeline-node-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #bbb;
  margin-top: 0.4rem;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s;
}
.timeline-node:hover .timeline-node-label,
.timeline-node.active .timeline-node-label {
  color: #4a6fa5;
}

/* ---- Destination Cards (preview mode) ---- */
.dest-preview-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fdfcfa;
  border: 1px solid #e8e4df;
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.dest-preview-inner {
  padding: 1rem 1.1rem 1.1rem;
}
.dest-preview-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.dest-read-more {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a6fa5;
  margin-top: 0.6rem;
}
.dest-read-more:hover { color: #2c4d7f; text-decoration: underline; }

/* ---- Individual Destination Pages ---- */
.travel-hero {
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.travel-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.travel-hero-text {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: #fff;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
.travel-hero-text h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  color: #fff;
}
.travel-hero-text .travel-hero-sub {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
}
.travel-hero-text .travel-hero-tag {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.4rem;
}

.travel-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.travel-back {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #aaa;
  display: inline-block;
  margin-bottom: 2.5rem;
}
.travel-back:hover { color: #4a6fa5; }

.travel-article p {
  font-size: 1.05rem;
  color: #3a3a3a;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}
.travel-article p:last-child { margin-bottom: 0; }
.travel-article strong {
  font-weight: 600;
  color: #2c2c2c;
}
.travel-article em { font-style: italic; }

.travel-section-head {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbb;
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid #ede9e3;
}

.travel-takeaways {
  background: #fdfcfa;
  border: 1px solid #ede9e3;
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin-top: 3rem;
}
.travel-takeaways-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  margin-bottom: 0.75rem;
}
.travel-takeaways p {
  font-style: italic;
  color: #999;
  font-size: 0.98rem;
  line-height: 1.8;
}

.travel-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ede9e3;
}
.travel-nav a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #aaa;
}
.travel-nav a:hover { color: #4a6fa5; }
.travel-nav-next { margin-left: auto; }

@media (max-width: 600px) {
  .travel-hero { height: 280px; }
  .travel-hero-text h1 { font-size: 1.8rem; }
  .travel-content { padding: 2rem 1.25rem 4rem; }
}

/* ===========================
   Detail Pages (e.g. planetary_conj_details)
=========================== */
.detail-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #2c2c2c;
}

.detail-body h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.detail-body p {
  margin-bottom: 1.1rem;
}

.detail-body iframe {
  margin-top: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* ===========================
   Footer
=========================== */
footer {
  background-color: #fff;
  border-top: 1px solid #e8e4df;
  padding: 1.5rem 2rem;
  text-align: center;
}

footer p,
footer {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: #bbb;
  letter-spacing: 0.03em;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 600px) {
  nav .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
  }

  nav .nav-links {
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .main-content,
  .container {
    padding: 2rem 1.25rem 4rem;
  }
}
