:root {
  --marb-deep: #5c0404;
  --marb-red: #b81c1c;
  --marb-bright: #dc1c24;
  --marb-gold: #c9a21e;
  --marb-gold-light: #f5e6a3;
  --marb-cream: #fdf8f0;
  --marb-charcoal: #1a1412;
  --marb-warm-gray: #4a4040;
  --max-w: 880px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--marb-cream);
  color: var(--marb-charcoal);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: var(--marb-red); }
a:hover { color: var(--marb-deep); }

/* ---- Topbar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 4, 4, 0.10);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--marb-deep);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand img { display: block; }
.topbar-nav { display: flex; gap: 1rem; }
.topbar-link {
  color: var(--marb-warm-gray);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.topbar-link:hover {
  color: var(--marb-deep);
  background: rgba(92, 4, 4, 0.06);
}

/* ---- Page wrapper ---- */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* ---- Hero ---- */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.kicker {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--marb-gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 0.75rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  color: var(--marb-deep);
  margin: 0 0 1rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-sub {
  color: var(--marb-warm-gray);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 auto 1rem;
}
.hero-meta {
  color: var(--marb-warm-gray);
  font-style: italic;
  font-size: 0.9rem;
}

/* ---- Year nav ---- */
.year-nav {
  position: sticky;
  top: 60px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.85rem 0;
  background: linear-gradient(rgba(253,248,240,0.95) 70%, rgba(253,248,240,0));
  border-top: 1px solid rgba(92, 4, 4, 0.08);
  border-bottom: 1px solid rgba(92, 4, 4, 0.08);
  margin-bottom: 2rem;
}
.year-nav a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: white;
  color: var(--marb-deep);
  text-decoration: none;
  border: 1px solid rgba(92, 4, 4, 0.18);
  border-radius: 999px;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.year-nav a:hover,
.year-nav a.active {
  background: var(--marb-deep);
  color: var(--marb-cream);
  border-color: var(--marb-deep);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0,
    rgba(92, 4, 4, 0.18) 1.5rem,
    rgba(92, 4, 4, 0.18) calc(100% - 1.5rem),
    transparent 100%);
}
.year-section {
  margin-bottom: 3rem;
  position: relative;
  scroll-margin-top: 7rem;
}
.year-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--marb-deep);
  margin: 0 0 0.4rem;
  padding-left: 3rem;
  letter-spacing: -0.02em;
  position: relative;
}
.year-section h2::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--marb-gold);
  border: 3px solid var(--marb-cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(201, 162, 30, 0.4);
}
.year-meta {
  padding-left: 3rem;
  color: var(--marb-warm-gray);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  font-style: italic;
}

/* ---- Post entry ---- */
.entry {
  position: relative;
  margin: 1rem 0;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.entry:hover {
  background: rgba(92, 4, 4, 0.025);
}
.entry::before {
  content: '';
  position: absolute;
  left: 1.18rem;
  top: 1.5rem;
  width: 8px;
  height: 8px;
  background: var(--marb-red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--marb-cream);
}
.entry.memorial {
  border-left: 3px solid var(--marb-gold);
  background: rgba(201, 162, 30, 0.04);
  margin-left: -3px;
}
.entry.memorial::before {
  background: var(--marb-gold);
  width: 10px;
  height: 10px;
}

.entry-date {
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--marb-gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.entry-cat {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(184, 28, 28, 0.10);
  color: var(--marb-red);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  vertical-align: 1px;
}
.entry-cat.memorial { background: rgba(201, 162, 30, 0.18); color: var(--marb-deep); }
.entry-cat.gig { background: rgba(184, 28, 28, 0.15); color: var(--marb-red); }

.entry-summary {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--marb-charcoal);
  margin: 0.4rem 0 0.7rem;
  line-height: 1.55;
}

.entry-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0 0.4rem;
}
.entry-images img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  background: rgba(92, 4, 4, 0.08);
  cursor: zoom-in;
  transition: transform 0.3s;
}
.entry-images img:hover {
  transform: scale(1.02);
}
.entry.memorial .entry-images img {
  filter: sepia(0.35) saturate(0.85);
}

.entry-bullets {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--marb-warm-gray);
}
.entry-bullets li {
  padding: 0.2rem 0;
  padding-left: 1.6rem;
  position: relative;
}
.entry-bullets li::before {
  position: absolute;
  left: 0;
  top: 0.3rem;
  font-size: 0.95rem;
}
.entry-bullets li.money::before { content: '💰'; }
.entry-bullets li.item::before  { content: '📦'; }

.entry-source {
  font-size: 0.78rem;
  color: var(--marb-warm-gray);
  margin-top: 0.6rem;
}
.entry-source a {
  color: var(--marb-warm-gray);
  text-decoration: underline;
  text-decoration-color: rgba(74, 64, 64, 0.4);
}
.entry-source a:hover { color: var(--marb-red); }

/* ---- Lightbox for image zoom ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: zoom-out;
  padding: 2rem;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

/* ---- Footer ---- */
.page-footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(92, 4, 4, 0.12);
  color: var(--marb-warm-gray);
  font-size: 0.85rem;
}
.page-footer p { margin: 0.4rem 0; }
.back-link { font-weight: 600; }

/* ---- Memorial section header ---- */
.memorial-section {
  margin: 4rem 0 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(201, 162, 30, 0.05), rgba(92, 4, 4, 0.04));
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 30, 0.18);
}
.memorial-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  color: var(--marb-deep);
  margin: 0 0 0.5rem;
  text-align: center;
  font-style: italic;
}
.memorial-section .memorial-sub {
  text-align: center;
  color: var(--marb-warm-gray);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ---- Loading ---- */
.loading {
  text-align: center;
  color: var(--marb-warm-gray);
  font-style: italic;
  padding: 4rem 0;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .topbar { padding: 0.65rem 1rem; }
  .brand span { font-size: 0.95rem; }
  .topbar-link { font-size: 0.82rem; padding: 0.25rem 0.5rem; }
  .page { padding: 0 0.85rem 3rem; }
  .hero { padding: 2.5rem 0 1.5rem; }
  .year-section h2 { font-size: 2.25rem; padding-left: 2.4rem; }
  .year-section h2::before { width: 11px; height: 11px; }
  .year-meta { padding-left: 2.4rem; }
  .timeline::before { left: 1rem; }
  .entry { padding-left: 2.4rem; }
  .entry::before { left: 0.93rem; }
  .entry-images { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.4rem; }
  .entry-images img { height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entry-images img { transition: none; }
}
