
:root{
  --bg:#f6efe7;
  --surface:#fffdfa;
  --surface-2:#f3e6d4;
  --ink:#19242c;
  --muted:#5e6570;
  --line:#d8c6af;
  --primary:#0a4f6d;
  --primary-strong:#08384c;
  --accent:#b78e46;
  --shadow:0 12px 30px rgba(18,35,45,.08);
  --radius:22px;
  --radius-sm:14px;
  --container:min(1120px, calc(100vw - 2rem));
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at top, rgba(10,79,109,.06), transparent 28%),
    linear-gradient(180deg, #fbf6f0 0%, var(--bg) 100%);
  color:var(--ink);
  font-family: Tahoma, "Arial", sans-serif;
  line-height:1.8;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:var(--container);margin-inline:auto}
.site-header{
  position:sticky;
  top:0;
  z-index:30;
  backdrop-filter:saturate(180%) blur(14px);
  background:rgba(251,246,240,.9);
  border-bottom:1px solid rgba(183,142,70,.18);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:78px;
}
.brand{display:flex;flex-direction:column;gap:.1rem}
.brand-mark{
  font-size:1.35rem;
  font-weight:700;
  color:var(--primary-strong);
}
.brand-sub{
  font-size:.88rem;
  color:var(--muted);
}
.site-nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:.35rem;
}
.nav-link{
  padding:.65rem .9rem;
  border-radius:999px;
  font-size:.96rem;
  color:var(--primary-strong);
}
.nav-link:hover,.nav-link.is-active{
  background:rgba(10,79,109,.08);
}
.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  color:var(--primary-strong);
  border-radius:999px;
  padding:.65rem 1rem;
  font:inherit;
  cursor:pointer;
}
main{padding:1.4rem 0 4rem}
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:1rem 0 1.2rem;
  font-size:.92rem;
  color:var(--muted);
}
.breadcrumbs a:hover{color:var(--primary)}
.crumb-sep{opacity:.5}
.page-hero,.home-hero{
  position:relative;
  overflow:hidden;
  border-radius:32px;
  min-height:260px;
  margin:1.2rem 0 1.8rem;
  box-shadow:var(--shadow);
}
.page-hero{
  background:
    linear-gradient(135deg, rgba(8,56,76,.96), rgba(10,79,109,.9));
  color:#fff;
}
.page-hero::after{
  content:"";
  position:absolute;
  inset:auto -80px -80px auto;
  width:260px;height:260px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.22), transparent 65%);
  pointer-events:none;
}
.page-hero.compact{min-height:200px}
.hero-surface,.home-hero-panel{
  position:relative;
  z-index:1;
  padding:2rem clamp(1.2rem,2vw,2.3rem);
  max-width:760px;
}
.hero-eyebrow{
  margin:0 0 .65rem;
  font-size:.88rem;
  letter-spacing:.04em;
  color:#d8e8f0;
}
.page-hero h1,.home-hero h1{
  margin:0;
  font-size:clamp(2rem,4vw,3.25rem);
  line-height:1.15;
}
.hero-intro{
  margin:.9rem 0 0;
  color:rgba(255,255,255,.9);
  max-width:60ch;
}
.home-hero{
  background:
    linear-gradient(110deg, rgba(6,27,37,.78), rgba(6,27,37,.3) 55%, rgba(6,27,37,.82)),
    var(--hero-image) center/cover no-repeat;
  color:#fff;
  min-height:420px;
  display:flex;
  align-items:center;
}
.home-hero-author{
  margin:.6rem 0 1rem;
  font-size:1.25rem;
  color:#dceef7;
}
.identity-list{
  list-style:none;
  padding:0;
  margin:0 0 1.2rem;
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}
.identity-list li{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:.4rem .85rem;
  font-size:.93rem;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-top:1.2rem;
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  border:none;
  border-radius:999px;
  padding:.9rem 1.25rem;
  background:var(--accent);
  color:#1e1608;
  font-weight:700;
  box-shadow:0 8px 18px rgba(183,142,70,.25);
}
.button.secondary{
  background:rgba(255,255,255,.12);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:none;
}
.button.full{width:100%}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:1rem;
  margin:0 0 2.2rem;
}
.stat-card{
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:var(--radius);
  padding:1.25rem;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
.stat-value{font-size:2rem;font-weight:800;color:var(--primary-strong)}
.stat-label{color:var(--muted)}
.content-section{margin:2.4rem 0}
.section-heading{margin-bottom:1rem}
.section-kicker{
  margin:0 0 .4rem;
  color:var(--primary);
  font-size:.95rem;
}
.section-heading h2{margin:0;font-size:1.75rem}
.card-grid,.section-grid,.poem-grid,.gallery-grid{
  display:grid;
  gap:1rem;
}
.card-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.section-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.poem-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.gallery-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.card-link,.section-card,.poem-card-link{
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  display:block;
  height:100%;
}
.card-link:hover,.section-card:hover,.poem-card-link:hover{
  transform:translateY(-2px);
  transition:transform .18s ease, box-shadow .18s ease;
  box-shadow:0 16px 34px rgba(18,35,45,.12);
}
.card-cover{
  aspect-ratio:4/3;
  overflow:hidden;
  background:linear-gradient(180deg,#f3e6d4,#ead9c2);
}
.card-cover img{width:100%;height:100%;object-fit:cover}
.card-body,.section-card,.poem-card-link{padding:1rem 1.05rem}
.card-body h3,.section-card h3,.poem-card h3{margin:.25rem 0 .55rem;font-size:1.18rem}
.card-body p,.section-card p,.poem-card p{margin:0;color:var(--muted)}
.card-tag,.poem-card-tag,.section-pill{
  display:inline-flex;
  background:rgba(10,79,109,.08);
  color:var(--primary-strong);
  border-radius:999px;
  padding:.3rem .7rem;
  font-size:.83rem;
  margin-bottom:.5rem;
}
.section-count{
  display:inline-block;
  margin-top:.8rem;
  font-weight:700;
  color:var(--accent);
}
.quote-block{
  background:linear-gradient(135deg, rgba(10,79,109,.95), rgba(10,79,109,.75));
  color:#fff;
  border-radius:32px;
  padding:1.6rem 1.7rem;
  box-shadow:var(--shadow);
}
.quote-block blockquote{margin:0;font-size:1.12rem}
.callout{
  margin:2.4rem 0;
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:1.2rem;
  align-items:center;
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:28px;
  padding:1.3rem 1.4rem;
  box-shadow:var(--shadow);
}
.callout.slim{margin-top:1.2rem}
.callout-eyebrow{
  margin:0 0 .35rem;
  color:var(--primary);
  font-size:.92rem;
}
.callout h2{margin:0 0 .45rem}
.callout p{margin:0;color:var(--muted)}
.callout-actions{
  display:flex;
  flex-direction:column;
  gap:.7rem;
}
.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin:0 0 1rem;
}
.tab{
  display:inline-flex;
  padding:.65rem .95rem;
  background:rgba(10,79,109,.06);
  color:var(--primary-strong);
  border-radius:999px;
}
.tab.is-active{background:var(--primary);color:#fff}
.search-panel{
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:22px;
  padding:1rem;
  box-shadow:var(--shadow);
  margin-bottom:1rem;
}
.search-label{display:block;margin-bottom:.45rem;font-weight:700}
.search-input{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:.95rem 1rem;
  font:inherit;
  background:#fff;
}
.search-empty{
  text-align:center;
  color:var(--muted);
  margin-top:1rem;
}
.poem-card{height:100%}
.poem-card-subtitle{
  font-size:.95rem;
  color:var(--primary);
  margin:.1rem 0 .6rem;
}
.poem-card-meta{
  margin-top:.85rem;
  color:var(--accent);
  font-weight:700;
  font-size:.92rem;
}
.poem-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  margin:-.3rem 0 1rem;
}
.poem-meta span{
  background:rgba(10,79,109,.08);
  color:var(--primary-strong);
  border-radius:999px;
  padding:.4rem .75rem;
  font-size:.88rem;
}
.poem-subtitle{
  margin:0 0 1.2rem;
  color:var(--primary);
  font-size:1.02rem;
}
.poem-article,.prose-card{
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:28px;
  padding:1.4rem clamp(1rem,2vw,2rem);
  box-shadow:var(--shadow);
}
.poem-fragment{
  text-align:center;
  font-size:1.16rem;
  line-height:2.1;
}
.poem-fragment table{
  width:min(100%, 44rem)!important;
  margin-inline:auto;
}
.poem-fragment td{vertical-align:top}
.poem-fragment p,
.poem-fragment center{margin:0 0 .65rem}
.poem-fragment hr{
  border:none;
  border-top:1px solid var(--line);
  width:60%;
  margin:1.4rem auto;
}
.prose-fragment{
  text-align:right;
  font-size:1.07rem;
  line-height:2;
}
.prose-fragment p{margin:.2rem 0 .9rem}
.prose-fragment center{
  display:block;
  text-align:center;
  margin:1rem auto;
  font-weight:700;
  color:var(--primary-strong);
}
.prose-fragment table{
  width:min(100%, 100%)!important;
  border-collapse:separate;
  border-spacing:1rem;
}
.prose-fragment ul{
  margin:.3rem 0 1rem;
  padding-right:1.1rem;
}
.prose-fragment li{margin:.45rem 0}
.signature{
  margin-top:1.6rem !important;
  font-weight:700;
  color:var(--primary-strong);
}
.dedication-card{
  max-width:740px;
  margin-inline:auto;
  text-align:center;
  font-size:1.1rem;
}
.bio-hero-card{
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:28px;
  padding:1.2rem;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:minmax(180px, 220px) 1fr;
  gap:1.2rem;
  align-items:center;
  margin-bottom:1rem;
}
.bio-portrait img{
  width:100%;
  border-radius:20px;
  border:1px solid rgba(183,142,70,.25);
  box-shadow:0 10px 24px rgba(18,35,45,.08);
}
.bio-tagline{
  margin:0 0 .65rem;
  color:var(--primary);
  font-weight:700;
}
.bio-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}
.bio-columns ul{
  list-style:disc;
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:28px;
  padding:1.2rem 1.4rem;
  margin:0;
  box-shadow:var(--shadow);
}
.bio-columns li{margin:.65rem 0}
.gallery-card{
  margin:0;
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.gallery-link{
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#efe3d1;
}
.gallery-link img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.gallery-card figcaption{
  padding:.85rem .95rem 1rem;
  display:grid;
  gap:.25rem;
  color:var(--muted);
}
.gallery-seq{
  font-size:.82rem;
  color:var(--accent);
  font-weight:700;
}
.memorial-layout{
  display:grid;
  grid-template-columns:minmax(220px, 320px) 1fr;
  gap:1rem;
  align-items:start;
}
.memorial-aside{
  position:sticky;
  top:100px;
  display:grid;
  gap:.8rem;
}
.memorial-aside img{
  border-radius:22px;
  border:1px solid rgba(183,142,70,.18);
  box-shadow:var(--shadow);
}
.memorial-text p{margin:0 0 1rem}
.memorial-closing{
  font-weight:700;
  color:var(--primary-strong);
}
.poem-nav{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:.75rem;
  align-items:center;
  margin-top:1rem;
}
.poem-nav-link{
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:999px;
  padding:.8rem 1rem;
  box-shadow:var(--shadow);
  min-height:54px;
  display:flex;
  align-items:center;
}
.poem-nav-link.center{justify-self:center}
.site-footer{
  border-top:1px solid rgba(183,142,70,.18);
  background:rgba(255,255,255,.55);
  backdrop-filter:saturate(160%) blur(8px);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:1.2rem;
  padding:1.3rem 0 2rem;
}
.footer-title{
  margin:0 0 .3rem;
  font-weight:700;
  color:var(--primary-strong);
}
.footer-text{
  margin:0;
  color:var(--muted);
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
  align-items:flex-start;
}
.footer-links a{
  color:var(--primary);
}
.archive-list{
  margin:0;
  padding-right:1.2rem;
}
.archive-list li{margin:.55rem 0}
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(8,16,22,.88);
  z-index:100;
  display:grid;
  place-items:center;
  padding:1rem;
}
.lightbox[hidden]{display:none}
.lightbox-figure{
  margin:0;
  max-width:min(1100px, 95vw);
  max-height:90vh;
  display:grid;
  gap:.75rem;
  justify-items:center;
}
.lightbox-image{
  max-width:100%;
  max-height:78vh;
  border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,.35);
}
.lightbox-caption{
  color:#fff;
  text-align:center;
}
.lightbox-close{
  position:absolute;
  top:1rem;
  left:1rem;
  width:48px;
  height:48px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:2rem;
  cursor:pointer;
}
.hidden-by-search{display:none !important}
code{
  background:rgba(10,79,109,.08);
  border-radius:.45rem;
  padding:.08rem .35rem;
}
@media (max-width: 860px){
  .nav-toggle{display:inline-flex}
  .site-nav{
    position:absolute;
    inset-inline:1rem;
    top:calc(100% + .5rem);
    display:none;
    flex-direction:column;
    background:rgba(251,246,240,.98);
    border:1px solid rgba(183,142,70,.18);
    border-radius:22px;
    padding:.75rem;
    box-shadow:var(--shadow);
  }
  body.nav-open .site-nav{display:flex}
  .callout,
  .bio-hero-card,
  .memorial-layout{
    grid-template-columns:1fr;
  }
  .memorial-aside{position:static}
  .bio-columns{grid-template-columns:1fr}
  .poem-nav{grid-template-columns:1fr}
  .poem-nav-link.center{justify-self:stretch}
  .footer-inner{flex-direction:column}
}
@media (max-width: 640px){
  .home-hero{min-height:360px}
  .page-hero,.home-hero{border-radius:24px}
  .poem-fragment,.prose-fragment{font-size:1rem}
}



/* --- Publish polish layer --- */
:root{
  --bg:#f7f0e8;
  --surface:#fffdf9;
  --surface-2:#f2e7d7;
  --ink:#16232b;
  --muted:#5f6670;
  --line:#dcc8ae;
  --primary:#0c5574;
  --primary-strong:#08384c;
  --accent:#b8893c;
  --accent-2:#e8d4af;
  --shadow:0 18px 44px rgba(16,32,40,.08);
  --shadow-soft:0 10px 26px rgba(16,32,40,.06);
  --radius:24px;
  --radius-sm:16px;
  --container:min(1140px, calc(100vw - 2rem));
}
html{scroll-padding-top:96px}
body{
  color:var(--ink);
  line-height:1.9;
  text-rendering:optimizeLegibility;
}
main{padding:1rem 0 5rem}
section,article,aside,[id]{scroll-margin-top:96px}
img{height:auto}
a,button,input{font:inherit}
:focus-visible{
  outline:3px solid rgba(184,137,60,.35);
  outline-offset:3px;
}
.skip-link{
  position:fixed;
  top:1rem;
  right:1rem;
  z-index:150;
  background:var(--primary-strong);
  color:#fff;
  padding:.75rem 1rem;
  border-radius:999px;
  transform:translateY(-160%);
  transition:transform .2s ease;
  box-shadow:var(--shadow);
}
.skip-link:focus{transform:translateY(0)}
.site-header{
  background:rgba(251,247,241,.88);
  box-shadow:0 10px 30px rgba(16,32,40,.04);
}
.header-inner{min-height:82px}
.brand-mark{letter-spacing:.02em}
.site-nav{gap:.45rem}
.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:.7rem 1rem;
  font-weight:600;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.nav-link:hover,
.nav-link.is-active{
  background:rgba(12,85,116,.08);
  color:var(--primary-strong);
}
.nav-link:active{transform:translateY(1px)}
.nav-toggle{
  min-height:44px;
  font-weight:700;
  transition:transform .2s ease, box-shadow .2s ease;
}
.nav-toggle:hover{box-shadow:var(--shadow-soft)}
.nav-toggle:active{transform:translateY(1px)}
.page-hero,.home-hero{
  border:1px solid rgba(183,142,70,.12);
  box-shadow:var(--shadow);
}
.page-hero::before,
.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 38%);
  pointer-events:none;
}
.hero-surface,.home-hero-panel{padding:2.2rem clamp(1.2rem,2.4vw,2.6rem)}
.hero-intro{max-width:62ch}
.home-hero .hero-intro{font-size:1.05rem}
.home-hero-panel{max-width:780px}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top:1rem;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  background:rgba(255,255,255,.14);
  color:#fff;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  padding:.42rem .82rem;
  font-size:.87rem;
}
.page-hero .hero-badge{
  background:rgba(255,255,255,.14);
}
.quick-links{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:.9rem;
  margin:0 0 2.2rem;
}
.quick-link{
  display:grid;
  gap:.18rem;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(183,142,70,.2);
  border-radius:20px;
  padding:1rem 1.1rem;
  box-shadow:var(--shadow-soft);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-link span{font-weight:700;color:var(--primary-strong)}
.quick-link small{color:var(--muted);font-size:.88rem}
.quick-link:hover{
  transform:translateY(-2px);
  border-color:rgba(12,85,116,.22);
  box-shadow:var(--shadow);
}
.stats-grid{gap:1.1rem;margin-bottom:1.4rem}
.stat-card{
  position:relative;
  overflow:hidden;
  padding:1.35rem 1.2rem;
}
.stat-card::after{
  content:"";
  position:absolute;
  inset:auto -1.8rem -1.8rem auto;
  width:90px;
  height:90px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(184,137,60,.12), transparent 68%);
}
.section-heading{display:flex;flex-direction:column;gap:.25rem}
.section-heading h2{font-size:clamp(1.55rem,2.4vw,2rem)}
.card-grid,.section-grid,.poem-grid,.gallery-grid{gap:1.15rem}
.card-link,.section-card,.poem-card-link,.gallery-card,.search-panel,.prose-card,.poem-article,.bio-hero-card,.bio-columns ul,.callout,.stat-card{
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-link:hover,.section-card:hover,.poem-card-link:hover,.gallery-card:hover,.search-panel:hover,.callout:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 46px rgba(16,32,40,.11);
}
.card-cover{
  background:
    linear-gradient(180deg, rgba(232,212,175,.25), rgba(232,212,175,.55)),
    linear-gradient(135deg,#f7ebdb,#eedec9);
}
.card-cover img,.gallery-link img{
  transition:transform .35s ease;
}
.card-link:hover .card-cover img,
.gallery-card:hover .gallery-link img{transform:scale(1.035)}
.card-body,.section-card,.poem-card-link{padding:1.15rem 1.15rem 1.2rem}
.card-body h3,.section-card h3,.poem-card h3{line-height:1.4}
.button{
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.button:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(183,142,70,.22);
}
.button:active{transform:translateY(1px)}
.button.secondary{
  background:rgba(12,85,116,.05);
  color:var(--primary-strong);
  border:1px solid rgba(12,85,116,.16);
  box-shadow:none;
}
.home-hero .button.secondary,
.page-hero .button.secondary,
.quote-block .button.secondary{
  background:rgba(255,255,255,.14);
  color:#fff;
  border-color:rgba(255,255,255,.22);
}
.callout{
  gap:1.4rem;
  align-items:center;
  padding:1.5rem 1.55rem;
}
.callout-actions{justify-self:end}
.tabs{
  gap:.65rem;
  margin:0 0 1.15rem;
  align-items:stretch;
}
.tab{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.72rem 1rem;
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(12,85,116,.08);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.tab:hover{transform:translateY(-1px)}
.tab.is-active{
  background:var(--primary);
  color:#fff;
  box-shadow:0 14px 28px rgba(12,85,116,.18);
}
.tab-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1.9rem;
  height:1.9rem;
  padding:0 .45rem;
  border-radius:999px;
  background:rgba(255,255,255,.55);
  color:var(--primary-strong);
  font-size:.78rem;
  font-weight:700;
}
.tab.is-active .tab-count{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.search-panel{
  padding:1.1rem 1.15rem 1rem;
}
.search-row{display:flex;gap:.75rem;align-items:center}
.search-input{
  min-height:50px;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.03);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.search-input:focus{
  border-color:rgba(12,85,116,.35);
  box-shadow:0 0 0 4px rgba(12,85,116,.08);
  outline:none;
}
.search-meta{
  margin:.65rem 0 0;
  color:var(--muted);
  font-size:.92rem;
}
.search-meta [data-search-count]{
  font-weight:800;
  color:var(--primary-strong);
}
.poem-grid{align-items:stretch}
.poem-card-link{display:flex;flex-direction:column;justify-content:space-between}
.poem-card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.poem-article,.prose-card{
  max-width:980px;
  margin-inline:auto;
}
.poem-article{
  position:relative;
  padding:1.55rem clamp(1rem,2.2vw,2.2rem);
}
.poem-article::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  border-radius:28px 28px 0 0;
  background:linear-gradient(90deg, var(--accent), rgba(184,137,60,.12));
}
.poem-fragment{
  font-size:1.18rem;
  line-height:2.25;
  max-width:44rem;
  margin-inline:auto;
}
.poem-fragment p,.poem-fragment center{margin:0 0 .8rem}
.poem-fragment table{width:min(100%, 46rem)!important}
.prose-fragment{
  font-size:1.08rem;
  line-height:2.06;
}
.prose-fragment p{margin:.25rem 0 1rem}
.poem-meta{
  gap:.55rem;
  margin:.1rem 0 1rem;
}
.poem-meta span{
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(12,85,116,.08);
}
.bio-hero-card{
  gap:1.4rem;
  padding:1.35rem;
}
.bio-columns ul{padding:1.3rem 1.55rem}
.gallery-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.gallery-card{position:relative}
.gallery-link{
  position:relative;
  aspect-ratio:4/3;
  background:
    linear-gradient(180deg, rgba(232,212,175,.22), rgba(232,212,175,.48)),
    #efe3d1;
}
.gallery-link::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:34%;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.08));
  pointer-events:none;
}
.gallery-card figcaption{
  padding:1rem 1rem 1.1rem;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,1));
}
.gallery-seq{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:2rem;
  height:2rem;
  border-radius:999px;
  background:rgba(184,137,60,.12);
}
.memorial-layout{gap:1.2rem}
.memorial-aside{top:102px}
.memorial-aside img{background:#fff}
.quote-block{
  border:1px solid rgba(255,255,255,.12);
  padding:1.75rem 1.85rem;
}
.quote-block p{margin:0}
.site-footer{
  margin-top:2rem;
  border-top:1px solid rgba(183,142,70,.16);
  background:rgba(255,255,255,.66);
}
.footer-inner{
  align-items:flex-start;
  padding:1.45rem 0 2rem;
}
.footer-links{
  gap:.65rem;
}
.footer-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.55rem .9rem;
  border-radius:999px;
  background:rgba(12,85,116,.05);
  transition:background .18s ease, transform .18s ease;
}
.footer-links a:hover{
  background:rgba(12,85,116,.1);
  transform:translateY(-1px);
}
.lightbox{
  padding:1rem;
  backdrop-filter:blur(6px);
}
.lightbox-figure{
  position:relative;
  gap:.9rem;
  width:min(1100px, 95vw);
}
.lightbox-counter{
  color:#fff;
  font-size:.92rem;
  letter-spacing:.03em;
  text-align:center;
}
.lightbox-image{
  background:#fff;
  padding:.15rem;
}
.lightbox-caption{
  max-width:min(90vw, 56rem);
  font-size:1rem;
  line-height:1.8;
}
.lightbox-close,.lightbox-nav{
  position:absolute;
  width:52px;
  height:52px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:2rem;
  cursor:pointer;
  display:grid;
  place-items:center;
  transition:background .18s ease, transform .18s ease;
}
.lightbox-close:hover,.lightbox-nav:hover{
  background:rgba(255,255,255,.24);
  transform:scale(1.04);
}
.lightbox-close{top:1rem;left:1rem}
.lightbox-nav{top:50%;transform:translateY(-50%)}
.lightbox-prev{right:1rem}
.lightbox-next{left:1rem}
.lightbox-prev:hover,.lightbox-next:hover{transform:translateY(-50%) scale(1.04)}
.back-to-top{
  position:fixed;
  left:1rem;
  bottom:1rem;
  z-index:120;
  width:48px;
  height:48px;
  border:none;
  border-radius:50%;
  background:var(--primary-strong);
  color:#fff;
  box-shadow:var(--shadow);
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}
.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.back-to-top:hover{background:var(--primary)}
.page-404 .hero-actions{
  margin-top:1rem;
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
}
.page-404 .hero-actions .button.secondary{
  background:#fff;
  color:var(--primary-strong);
}
@media (max-width: 860px){
  html{scroll-padding-top:88px}
  .header-inner{min-height:76px}
  .site-nav{
    max-height:min(72vh, 28rem);
    overflow:auto;
  }
  .tabs{
    overflow:auto;
    flex-wrap:nowrap;
    padding-bottom:.2rem;
    scrollbar-width:thin;
  }
  .tab{flex:0 0 auto}
  .callout-actions{justify-self:stretch}
  .quick-links{grid-template-columns:1fr 1fr}
  .lightbox-prev{right:.65rem}
  .lightbox-next{left:.65rem}
}
@media (max-width: 640px){
  .quick-links{grid-template-columns:1fr}
  .hero-surface,.home-hero-panel{padding:1.6rem 1.15rem 1.75rem}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .poem-fragment{font-size:1.04rem;line-height:2.05}
  .prose-fragment{font-size:1rem}
  .lightbox-close,.lightbox-nav{width:46px;height:46px}
  .back-to-top{left:.8rem;bottom:.8rem}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}


/* Added memorial and final-photo enhancements */
.prose-card > h2:first-child,
.memorial-summary h2,
.memorial-text h2,
.feature-content h2{
  margin-top:0;
}
.memorial-main{
  display:grid;
  gap:1rem;
}
.fact-stack{
  display:grid;
  gap:.75rem;
}
.fact-card{
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:20px;
  padding:1rem 1.05rem;
  box-shadow:var(--shadow);
}
.fact-label{
  display:block;
  color:var(--muted);
  font-size:.84rem;
  margin-bottom:.35rem;
}
.fact-card strong{
  color:var(--primary-strong);
  font-size:1rem;
  line-height:1.7;
}
.memorial-facts .fact-card{
  background:rgba(255,255,255,.78);
}
.timeline-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:1rem;
  margin-top:1rem;
}
.timeline-item{
  background:linear-gradient(180deg, rgba(10,79,109,.06), rgba(10,79,109,.03));
  border:1px solid rgba(12,85,116,.12);
  border-radius:22px;
  padding:1rem 1rem 1.05rem;
}
.timeline-date{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:2rem;
  padding:.35rem .75rem;
  border-radius:999px;
  background:rgba(184,137,60,.14);
  color:var(--primary-strong);
  font-size:.82rem;
  font-weight:700;
  margin-bottom:.7rem;
}
.timeline-item h3{
  margin:.1rem 0 .35rem;
  font-size:1.08rem;
}
.timeline-item p{
  margin:0;
  color:var(--muted);
}
.memorial-note{
  margin:0 0 1rem !important;
  color:var(--primary);
  font-weight:700;
}
.feature-panel{
  display:grid;
  grid-template-columns:minmax(260px, 360px) 1fr;
  gap:1.2rem;
  align-items:center;
  background:var(--surface);
  border:1px solid rgba(183,142,70,.18);
  border-radius:28px;
  padding:1.3rem;
  box-shadow:var(--shadow);
}
.feature-media{
  display:block;
}
.feature-media .gallery-link{
  aspect-ratio:3 / 4;
  background:#fff;
  border-radius:22px;
}
.feature-media .gallery-link img{
  object-fit:contain;
  background:#fff;
  padding:.35rem;
}
.feature-content p{
  margin:.25rem 0 .85rem;
  color:var(--muted);
}
.document-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
}
.document-card .gallery-link{
  aspect-ratio:4 / 5;
  background:#fff;
  padding:.75rem;
}
.document-card .gallery-link img{
  object-fit:contain;
  background:#fff;
  border-radius:12px;
  box-shadow:0 8px 22px rgba(18,35,45,.08);
}
.document-card figcaption{
  gap:.4rem;
}
.document-card figcaption small{
  color:var(--muted);
  line-height:1.75;
}
.memorial-related{
  margin-top:.25rem;
}
@media (max-width: 860px){
  .feature-panel{
    grid-template-columns:1fr;
  }
  .timeline-list{
    grid-template-columns:1fr;
  }
}


/* Added farewell audio player */
.memorial-audio{
  display:grid;
  grid-template-columns:minmax(260px, 1.1fr) minmax(280px, .9fr);
  gap:1.2rem;
  align-items:center;
}
.memorial-audio-copy{
  display:grid;
  gap:.45rem;
}
.memorial-audio-copy h2{
  margin:.15rem 0 0;
}
.memorial-audio-copy p{
  margin:0;
  color:var(--muted);
}
.memorial-audio-player{
  display:grid;
  gap:.8rem;
  align-content:start;
  padding:1rem;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(10,79,109,.06), rgba(10,79,109,.02));
  border:1px solid rgba(12,85,116,.12);
}
.memorial-audio-player audio{
  width:100%;
  border-radius:18px;
}
.audio-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
}
.audio-status{
  margin:0;
  color:var(--primary-strong);
  font-size:.92rem;
  line-height:1.8;
}
@media (max-width: 860px){
  .memorial-audio{
    grid-template-columns:1fr;
  }
}


/* Featured homepage hero and subtle memorial audio */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}
.home-hero-featured{
  background:var(--surface);
  color:var(--ink);
  min-height:0;
  display:block;
}
.home-hero-featured::before,
.home-hero-featured::after{
  display:none;
}
.home-hero-featured .home-hero-artwork{
  position:relative;
  overflow:hidden;
}
.home-hero-featured .home-hero-artwork::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,0) 56%, rgba(13,31,40,.14) 100%);
  pointer-events:none;
}
.home-hero-featured .home-hero-artwork img{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
.home-hero-featured .home-hero-panel{
  max-width:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
  padding:1.35rem 1.45rem 1.5rem;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,240,232,.98));
  border-top:1px solid rgba(183,142,70,.16);
}
.home-hero-featured .home-hero-copy{
  display:grid;
  gap:.32rem;
  max-width:44rem;
}
.home-hero-featured .hero-eyebrow{
  color:var(--primary);
  margin:0;
}
.home-hero-featured h1{
  color:var(--primary-strong);
  margin:0;
  font-size:clamp(1.85rem, 3vw, 2.6rem);
}
.home-hero-featured .home-hero-author{
  color:var(--primary-strong);
  margin:0;
  font-size:1.08rem;
}
.home-hero-featured .hero-intro{
  color:var(--muted);
  margin:.2rem 0 0;
}
.home-hero-featured .hero-actions{
  margin-top:0;
  justify-content:flex-end;
}
.home-hero-featured .button.secondary{
  background:rgba(12,85,116,.05);
  color:var(--primary-strong);
  border:1px solid rgba(12,85,116,.16);
}
.memorial-audio-floating{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:125;
}
.memorial-audio-floating audio{
  display:none;
}
.memorial-audio-toggle{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:999px;
  border:1px solid rgba(183,142,70,.24);
  background:rgba(255,253,249,.92);
  color:var(--primary-strong);
  box-shadow:var(--shadow);
  backdrop-filter:saturate(180%) blur(12px);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.memorial-audio-toggle:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(16,32,40,.12);
}
.memorial-audio-toggle.is-playing{
  background:rgba(12,85,116,.92);
  color:#fff;
  border-color:rgba(255,255,255,.16);
}
.memorial-audio-icon{
  font-size:1rem;
  line-height:1;
  font-weight:700;
  letter-spacing:.04em;
}
@media (max-width: 860px){
  .home-hero-featured .home-hero-panel{
    flex-direction:column;
    align-items:flex-start;
  }
  .home-hero-featured .hero-actions{
    width:100%;
    justify-content:flex-start;
  }
}
@media (max-width: 640px){
  .home-hero-featured .home-hero-panel{
    padding:1.1rem 1rem 1.2rem;
  }
  .memorial-audio-floating{
    right:.8rem;
    bottom:.8rem;
  }
  .memorial-audio-toggle{
    width:44px;
    height:44px;
  }
}


/* home hero links variant */
.home-hero-links{
  isolation:isolate;
  justify-content:flex-start;
  background:
    linear-gradient(92deg, rgba(86,107,118,.98) 0%, rgba(155,169,176,.96) 34%, rgba(87,114,127,.98) 56%, rgba(34,70,88,.99) 82%, rgba(20,53,68,1) 100%);
  min-height:390px;
}
.home-hero-links::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(circle at 44% 50%, rgba(255,255,255,.18), transparent 20%),
    linear-gradient(90deg, rgba(5,34,47,.08) 0%, rgba(255,255,255,.04) 34%, rgba(7,35,48,.18) 100%),
    url("../images/home-hero-artcover.jpg") left center / cover no-repeat;
  opacity:.18;
  transform:scale(1.02);
  transform-origin:center;
  pointer-events:none;
}
.home-hero-links::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.04) 28%, rgba(255,255,255,.12) 43%, rgba(8,47,64,.18) 58%, rgba(8,47,64,.56) 72%, rgba(8,47,64,.9) 100%);
  pointer-events:none;
}
.home-hero-links .home-hero-artcover{
  position:absolute;
  inset:0 31% 0 0;
  width:auto;
  overflow:hidden;
  border-radius:32px 0 0 32px;
  pointer-events:none;
  z-index:1;
}
.home-hero-links .home-hero-artcover::before,
.home-hero-links .home-hero-artcover::after{
  content:"";
  position:absolute;
  inset:0;
}
.home-hero-links .home-hero-artcover::before{
  z-index:1;
  background:
    linear-gradient(90deg, rgba(8,47,64,.18) 0%, rgba(8,47,64,.06) 22%, rgba(255,255,255,0) 56%, rgba(255,255,255,.12) 74%, rgba(10,79,109,.18) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 24%, rgba(7,31,45,.14) 100%);
}
.home-hero-links .home-hero-artcover::after{
  z-index:2;
  background:
    linear-gradient(90deg, rgba(8,47,64,.04) 0%, rgba(8,47,64,.02) 42%, rgba(8,47,64,.08) 58%, rgba(8,47,64,.3) 72%, rgba(8,47,64,.72) 90%, rgba(8,47,64,.96) 100%);
}
.home-hero-links .home-hero-artcover img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  opacity:.96;
  filter:saturate(1.05) contrast(1.03) brightness(1.02);
  -webkit-mask-image:linear-gradient(90deg, #000 0%, #000 88%, rgba(0,0,0,.94) 94%, transparent 100%);
  mask-image:linear-gradient(90deg, #000 0%, #000 88%, rgba(0,0,0,.94) 94%, transparent 100%);
}
.home-hero-links .home-hero-panel{
  flex:0 1 51%;
  max-width:660px;
  padding:clamp(2.35rem,4vw,3.45rem) clamp(1.4rem,3vw,2.8rem);
  text-align:right;
  z-index:3;
}
.home-hero-links .hero-eyebrow{
  margin:0 0 1rem;
  font-size:1.15rem;
  color:rgba(255,255,255,.88);
}
.home-hero-links h1{
  font-size:clamp(3rem,6vw,5rem);
  text-shadow:0 4px 18px rgba(8,56,76,.14);
}
.home-hero-links .home-hero-author{
  margin:.6rem 0 1.25rem;
  font-size:clamp(1.45rem,2.4vw,2rem);
  color:#eef7fb;
}
.home-hero-links .identity-list{
  gap:.7rem;
  margin:0 0 1.35rem;
}
.home-hero-links .identity-list li{
  padding:.55rem 1.1rem;
  font-size:1.04rem;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(6px);
}
.home-hero-links .hero-intro{
  max-width:30em;
  margin:0;
  font-size:clamp(1.06rem,1.9vw,1.28rem);
  line-height:1.9;
  color:rgba(255,255,255,.94);
}
.home-hero-links .hero-actions{
  margin-top:1.7rem;
  gap:.85rem;
}
.home-hero-links .button{
  min-width:10.75rem;
  padding:1rem 1.55rem;
  font-size:1.08rem;
}
.home-hero-links .button.secondary{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
}
@media (min-width: 1300px){
  .home-hero-links .home-hero-artcover{
    inset:0 29% 0 0;
  }
}
@media (max-width: 860px){
  .home-hero-links{min-height:340px}
  .home-hero-links::before{
    opacity:.12;
    background-position:center top;
  }
  .home-hero-links .home-hero-artcover{
    inset:0;
    width:100%;
    border-radius:inherit;
  }
  .home-hero-links .home-hero-artcover img{
    opacity:.36;
    object-position:center top;
    -webkit-mask-image:none;
    mask-image:none;
  }
  .home-hero-links .home-hero-artcover::after{
    background:linear-gradient(180deg, rgba(8,47,64,.12) 0%, rgba(10,79,109,.64) 100%);
  }
  .home-hero-links .home-hero-panel{
    flex-basis:100%;
    max-width:100%;
  }
}
@media (max-width: 640px){
  .home-hero-links .home-hero-panel{padding:1.55rem 1rem 1.7rem}
  .home-hero-links h1{font-size:clamp(2.5rem, 15vw, 3.8rem)}
  .home-hero-links .home-hero-author{font-size:1.2rem}
  .home-hero-links .hero-eyebrow{font-size:1rem}
  .home-hero-links .hero-intro{max-width:none;font-size:1rem}
  .home-hero-links .button{min-width:0;flex:1 1 10rem}
}
