/* Raisa Letters Archive — Archival Theme */

:root {
  --bg: #faf8f5;
  --bg-alt: #f0ebe4;
  --text: #2c2416;
  --text-muted: #6b5d4f;
  --accent: #8b4513;
  --accent-light: #c4956a;
  --border: #d4c8b8;
  --link: #6b3a1f;
  --link-hover: #8b4513;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-heading: 'Georgia', serif;
  --font-mono: 'Courier New', monospace;
  --max-width: 820px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}
header .site-title {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}
header .site-title a {
  color: var(--text);
  text-decoration: none;
}
header .site-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
nav { margin-top: 0.8rem; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
nav a:hover { color: var(--accent); }
nav a.active { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* Typography */
h1 { font-size: 1.8rem; font-weight: normal; margin-bottom: 0.5rem; line-height: 1.3; }
h2 { font-size: 1.3rem; font-weight: normal; margin: 2rem 0 0.8rem; color: var(--accent); }
h3 { font-size: 1.05rem; font-weight: bold; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1rem; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

blockquote {
  border-left: 3px solid var(--accent-light);
  padding: 0.5rem 1.2rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  font-style: italic;
  color: var(--text-muted);
}

/* Letter/Diary Entry */
.entry { margin-bottom: 3rem; }
.entry-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.entry-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.entry-scan {
  margin: 1.5rem 0;
  text-align: center;
}
.entry-scan img {
  max-width: 100%;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.2s;
}
.entry-scan img:hover { transform: scale(1.02); }
.scan-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.scan-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.transcription {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: 4px;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.transcription-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.illegible {
  color: var(--accent-light);
  font-style: italic;
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.timeline-date {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--accent);
}
.timeline-text { margin-top: 0.3rem; }

/* People index */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.person-card {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: 4px;
}
.person-card h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.person-card .role { font-size: 0.8rem; color: var(--text-muted); }

/* Map placeholder */
#map { width: 100%; height: 500px; border: 1px solid var(--border); border-radius: 4px; }

/* Letter list */
.letter-list { list-style: none; }
.letter-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.letter-list .date {
  display: inline-block;
  width: 120px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Hero (home page) */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}
.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.hero .years {
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.hero .tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero .quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.5;
}
.hero .quote-source {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 0.5rem;
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-number {
  font-size: 1.8rem;
  color: var(--accent);
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Language switcher */
.lang-switcher { font-size: 0.8rem; }
.lang-switcher a { color: var(--text-muted); text-decoration: none; margin-left: 0.5rem; }
.lang-switcher a:hover { color: var(--accent); }
.lang-switcher .lang-active { color: var(--accent); font-weight: bold; margin-left: 0.5rem; }

/* Responsive */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.6rem; }
  .stats { gap: 1rem; }
  nav a { margin-right: 0.8rem; }
}
