
:root{
  --bg:#0f0f11;
  --text:#e9e9ee;
  --muted:#b8b8c7;
  --card:#17181b;
  --ink:#e7e7f0;
  --accent:#7c6fc5;   /* desat purple */
  --accent-2:#6aa387; /* desat green */
  --radius:18px;
  --shadow:0 6px 24px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font:16px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif}
.wrap{max-width:980px;margin:0 auto;padding:1rem}
h1,h2,h3{line-height:1.2;margin:0 0 .5rem}
h1{font-size:clamp(1.4rem,2.5vw,2rem);font-weight:700;color:var(--muted)}
.name{font-size:clamp(1.8rem,4vw,3rem);color:var(--ink);letter-spacing:.3px}
.dates{color:var(--muted)}
.site-header{background:linear-gradient(135deg,rgba(124,111,197,.18),rgba(106,163,135,.18));backdrop-filter:saturate(1.2) blur(8px);position:sticky;top:0;z-index:5;border-bottom:1px solid rgba(255,255,255,.06)}
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem 1.25rem;margin:1rem 0;border:1px solid rgba(255,255,255,.06)}
.obit-text p{margin:.5rem 0}
.service-list{list-style:none;padding-left:0;margin:0}
.service-list li{padding:.3rem 0;border-bottom:1px dashed rgba(255,255,255,.08)}
.service-list li:last-child{border-bottom:none}
.hint{color:var(--muted);margin:.5rem 0}
.hint.small{font-size:.9rem}
.site-footer{border-top:1px solid rgba(255,255,255,.06);margin-top:2rem}
/* Slideshow */
.slideshow{position:relative;border-radius:var(--radius);overflow:hidden}
.slideshow .stage{
  margin:0; position:relative;
  /* Fixed stage shape; change 16/9 if you want a different frame */
  aspect-ratio:4/3; background:#0c0c0f;
}
.slideshow img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:contain; /* was: cover */
  display:block; background:#0c0c0f;
}
.slideshow .nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.35);border:none;color:white;font-size:2rem;line-height:1;width:44px;height:44px;border-radius:50%;cursor:pointer;display:grid;place-items:center}
.slideshow .prev{left:.5rem}
.slideshow .next{right:.5rem}
.slideshow .nav:hover{background:rgba(0,0,0,.55)}
figcaption{position:absolute;left:0;bottom:0;width:100%;padding:.6rem .8rem;background:linear-gradient(transparent,rgba(0,0,0,.6));color:#fff;font-size:.95rem}
.thumbs{display:flex;gap:.5rem;overflow:auto;padding:.5rem 0}
.thumbs button{border:none;background:#0e0f12;border-radius:10px;overflow:hidden;cursor:pointer;opacity:.7;outline:none}
.thumbs button[aria-current="true"]{outline:2px solid var(--accent);opacity:1}
.thumbs img{display:block;height:64px;aspect-ratio:4/3;object-fit:cover}
/* Embeds grid */
.embed-grid{display:grid;grid-template-columns:1fr;gap:1rem}
@media(min-width:800px){.embed-grid{grid-template-columns:1fr 1fr}}
a{color:var(--accent-2)}
