/* real-organic-human — light theme timeline
   Warm paper tones, serif-forward, vertical timeline */

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

:root {
  --bg-paper:      #f8f5f0;
  --bg-card:       #ffffff;
  --bg-card-hover: #faf8f5;
  --text-dark:     #2a2520;
  --text-body:     #4a4540;
  --text-muted:    #8a8480;
  --text-faint:    #b5b0a8;
  --line-color:    #d5d0c8;
  --accent-warm:   #c4713a;
  --accent-sage:   #6a8a6a;
  --accent-blue:   #4a7a9a;
  --accent-violet: #8a6aaa;
  --accent-earth:  #9a7a5a;
  --accent-teal:   #5a8a8a;
  --accent-rose:   #aa6a7a;

  --max-w: 800px;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* volume accents */
  --v-m2:   #6a8a6a;
  --v-m1:   #8a6aaa;
  --v-0:    #4a7a9a;
  --v-3:    #c4713a;
  --v-m3:   #aa6a7a;
  --v-2:    #5a8a8a;
  --v-ful:  #9a7a5a;
  --v-f25:  #4a4540;
  --v-now:  #0e87f0;
}

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

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

body {
  background: var(--bg-paper);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-warm); text-decoration: none; }
a:hover { color: var(--text-dark); }

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

img.hero-portrait {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 45%;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  transition: opacity 0.3s;
}
img.hero-portrait:hover { opacity: 1; }

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3.2rem;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-family: var(--font-heading);
  font-weight: 300;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero .byline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 1rem;
}

.mode-switch {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line-color);
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  transition: all 0.3s;
  margin-top: 2rem;
}
.mode-switch:hover {
  color: var(--text-dark);
  border-color: var(--text-muted);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse-down 2s ease-in-out infinite;
}
.scroll-hint::after {
  content: '\2193';
  display: block;
  text-align: center;
  margin-top: 0.3rem;
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(4px); }
}

/* ── timeline ── */
.timeline-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  position: relative;
}

.timeline-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.timeline-intro .section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline-intro p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  font-style: italic;
}

/* the vertical line */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--line-color) 3%,
    var(--line-color) 97%,
    transparent 100%
  );
}

/* timeline entry */
.tl-entry {
  position: relative;
  margin-bottom: 4.5rem;
}

.tl-entry:last-child {
  margin-bottom: 0;
}

/* the dot on the line */
.tl-entry::before {
  content: '';
  position: absolute;
  left: -2.65rem;
  top: -0.025rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-paper);
  border: 2px solid var(--tl-accent, var(--line-color));
  z-index: 1;
}

.tl-entry:hover::before {
  background: var(--tl-accent, var(--line-color));
}

/* year marker — aligned with dot */
.tl-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
  line-height: 1;
  position: relative;
  top: -0.05rem;
}

/* card */
.tl-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line-color);
  border-left: 3px solid var(--tl-accent, var(--line-color));
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
  color: var(--text-body);
}
.tl-card:hover {
  transform: translateY(-2px);
  border-color: var(--tl-accent, var(--text-muted));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  color: var(--text-body);
}

.tl-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.tl-card .tl-vol {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tl-accent, var(--text-faint));
  margin-bottom: 0.6rem;
}

.tl-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.tl-card .tl-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  margin-top: 0.8rem;
  border-radius: 3px;
  border: 1px solid var(--tl-accent, var(--line-color));
  color: var(--tl-accent, var(--text-muted));
  transition: all 0.2s;
}
.tl-card:hover .tl-link {
  background: var(--tl-accent, var(--line-color));
  color: #fff;
}

/* ── dark final card ── */
.tl-entry--dark .tl-card {
  background: #0c1525;
  border-color: #112035;
  border-left-color: var(--v-now);
  color: #e8eef4;
}
.tl-entry--dark .tl-card h3 { color: #e0f0ff; }
.tl-entry--dark .tl-card .tl-vol { color: #4aa8e8; }
.tl-entry--dark .tl-card p { color: #a0b8cc; }
.tl-entry--dark .tl-card .tl-link {
  border-color: #4aa8e8;
  color: #4aa8e8;
}
.tl-entry--dark .tl-card:hover .tl-link {
  background: #0e87f0;
  border-color: #0e87f0;
  color: #fff;
}
.tl-entry--dark .tl-card:hover {
  box-shadow: 0 4px 24px rgba(14, 135, 240, 0.15);
}

/* ── footer ── */
footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid var(--line-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer a { color: var(--text-faint); }
footer a:hover { color: var(--text-muted); }

/* ── responsive ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.4rem; }
  .hero .subtitle { font-size: 1.1rem; }
  .timeline { padding-left: 2.5rem; }
  .tl-entry::before { left: -2.15rem; width: 10px; height: 10px; }
  .tl-card { padding: 1.2rem 1.3rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
