:root {
  --bg: #f4f1e9;
  --ink: #2c1c13;
  --ink-soft: #5a4536;
  --accent: #9c7c55;
  --accent-strong: #7a2f2f;
  --nav-dark-1: #3a2d26;
  --nav-dark-2: #2a1e19;
  --paper: rgba(255,255,255,0.88);
  --glow: rgba(255, 215, 120, 0.75);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Merriweather', serif;
  line-height: 1.7;
  background: var(--bg);
  background-image: radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px), radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 16px 16px, 32px 32px;
  background-position: 0 0, 8px 8px;
}

header {
  padding: 2.25rem 1rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, #1f1916, #15100d 70%, #120e0b);
  color: #e6d6b8;
  border-bottom: 3px solid var(--accent-strong);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
header h1 {
  font-family: 'IM Fell English', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 .25rem 0;
  letter-spacing: 0.5px;
  text-shadow: 0 0 14px rgba(255, 215, 120, 0.15);
  animation: candle 5s infinite ease-in-out;
}
header p { margin: 0; opacity: .9; }

.site-nav { 
  background: linear-gradient(90deg, var(--nav-dark-1), var(--nav-dark-2));
  border-bottom: 2px solid var(--accent-strong);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.site-nav .inner { max-width: 1200px; margin: 0 auto; padding: .25rem 1rem; display: flex; align-items: center; gap: 1rem; }
#nav-toggle { display: none; }
.burger { margin-left: auto; display: none; cursor: pointer; padding: .75rem; }
.burger span { display: block; width: 26px; height: 2px; background: #e6d6b8; margin: 6px 0; transition: transform .3s ease, opacity .3s ease; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu li { margin: 0; }
.menu a { display: block; padding: .9rem 1rem; color: #e6d6b8; text-decoration: none; font-weight: 700; letter-spacing: .2px; transition: color .25s ease, text-shadow .25s ease; font-family: 'IM Fell English', serif; }
.menu a:hover { color: #f7e5a0; text-shadow: 0 0 10px var(--glow); }
@media (max-width: 860px) {
  .burger { display: block; }
  .menu { width: 100%; max-height: 0; overflow: hidden; flex-direction: column; transition: max-height .35s ease; }
  #nav-toggle:checked ~ .menu { max-height: 75vh; }
  .menu a { padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.06); }
}

main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.content { position: relative; max-width: 860px; margin: 2rem auto; padding: 2rem; background: var(--paper); border: 1px solid #d4c4a8; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.content::before, .content::after { content: ""; position: absolute; width: 28px; height: 28px; border: 2px solid var(--accent); opacity: .6; }
.content::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.content::after  { bottom: -10px; right: -10px; border-left: none; border-top: none; }

h2, h3, h4 { font-family: 'IM Fell English', serif; color: #3a2d26; text-align: center; margin: 0 0 .75rem; }
h2::after { content: ""; display: block; width: 100px; margin: .6rem auto 0; border-bottom: 2px solid var(--accent); opacity: .75; }

p { margin: 0 0 1rem; }

.elgos-header { text-align: center; color: var(--ink-soft); font-style: italic; margin-bottom: 1.25rem; }
.elgos-header p { margin: .25rem 0 0; font-size: .95rem; opacity: .85; }

/* Drop caps — opt-in: add class=\"dropcap\" to the paragraph you want styled */
.content .dropcap::first-letter {
  float: left; font-family: 'IM Fell English', serif; font-size: 3.2rem; line-height: 1;
  padding: .1rem .4rem 0 .05rem; color: #3a2d26;
}


@keyframes candle {
  0%   { text-shadow: 0 0 6px rgba(255, 215, 120, 0.15), 0 0 18px rgba(255, 160, 60, 0.12); }
  35%  { text-shadow: 0 0 10px rgba(255, 215, 120, 0.25), 0 0 26px rgba(255, 160, 60, 0.18); }
  55%  { text-shadow: 0 0 7px rgba(255, 215, 120, 0.2), 0 0 20px rgba(255, 160, 60, 0.15); }
  80%  { text-shadow: 0 0 12px rgba(255, 215, 120, 0.28), 0 0 30px rgba(255, 160, 60, 0.2); }
  100% { text-shadow: 0 0 6px rgba(255, 215, 120, 0.15), 0 0 18px rgba(255, 160, 60, 0.12); }
}
.elgos-header h2 { animation: candle 6s infinite ease-in-out; }
@media (prefers-reduced-motion: reduce) { .elgos-header h2, header h1 { animation: none !important; } }

    /* ===== Timeline ===== */
/* Grid-based timeline: dot in its own column; text in a second column */
.timeline { position: relative; max-width: 860px; margin: 1rem auto 0; }
.timeline::before { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; background: #d4c4a8; }

/* Remove any list bullets if <ul>/<li> are used */
.timeline, .timeline ul, .timeline li { list-style: none; margin-left: 0; padding-left: 0; }

.entry {
display: grid;
grid-template-columns: 56px 1fr;  /* left column for dot, right for content */
column-gap: 0.75rem;
align-items: start;
margin: 1.25rem 0;
}
.entry .dot {
grid-column: 1;
justify-self: center;
width: 16px; height: 16px; border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 8px rgba(156,124,85,.6);
margin-top: .2rem;
}
.entry h4, .entry .meta, .entry p { grid-column: 2; }
.entry h4 { text-align: left; margin: 0 0 .25rem; }
.entry .meta { font-size: .95rem; color: var(--ink-soft); margin-bottom: .35rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; border: 1px solid #c9b899; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,.25); transition: transform .25s ease; }
.gallery img:hover { transform: scale(1.02); }
.gallery figcaption { font-size: .9rem; color: var(--ink-soft); text-align: center; margin-top: .35rem; }
/* (Lightbox styles removed for now) */

footer { text-align: center; padding: 1rem; color: #85715f; border-top: 1px solid #d4c4a8; background: rgba(255,255,255,0.5); }
@media (max-width: 768px) { .content { margin: 1.25rem .75rem; padding: 1.25rem; } }