/* ============================================================
   1Memorial — black with a quiet shine.
   Deep obsidian ground, champagne gold, glass surfaces with a
   specular top edge. Motion is slow and never playful.
   ============================================================ */

:root {
  /* Ground */
  --black:      #08080a;
  --black-2:    #0d0d11;
  --raise:      #121217;

  /* Champagne */
  --gold:       #c8a96a;
  --gold-lit:   #e6d2a8;
  --gold-deep:  #8f7440;

  /* Ink */
  --text:       #ece9e3;
  --muted:      #9d978d;
  --faint:      #6b665e;

  /* Lines & glass */
  --line:       rgba(255, 255, 255, 0.09);
  --line-soft:  rgba(255, 255, 255, 0.055);
  --glass:      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.014) 46%, rgba(255,255,255,.006));
  --shine:      inset 0 1px 0 rgba(255, 255, 255, 0.085);
  --lift:       0 18px 44px -18px rgba(0, 0, 0, 0.9);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --r:     16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The shine: one broad, very soft highlight anchored top-centre. */
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(64rem 34rem at 50% -14rem, rgba(200, 169, 106, 0.11), transparent 68%),
    radial-gradient(40rem 26rem at 88% 6%, rgba(140, 150, 190, 0.05), transparent 70%);
}
body > *:not(.page-glow) { position: relative; z-index: 1; }

img, video { max-width: 100%; display: block; }
a { color: var(--gold-lit); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, .display { font-family: var(--serif); font-weight: 300; line-height: 1.16; margin: 0 0 .5em; letter-spacing: .004em; }

::selection { background: rgba(200, 169, 106, .26); }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1.15rem clamp(1.1rem, 5vw, 4rem);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 60;
}

.brand { display: flex; align-items: baseline; gap: .42rem; font-family: var(--serif); font-size: 1.3rem; color: var(--text); }
.brand-mark {
  font-size: 1.5rem;
  background: linear-gradient(150deg, var(--gold-lit), var(--gold) 46%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-word { letter-spacing: .06em; font-weight: 300; }
.brand-by {
  font-family: var(--sans); font-size: .56rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: .28em; color: var(--faint);
  margin-left: .55rem; align-self: center; white-space: nowrap;
}
.brand-sub {
  display: block; font-family: var(--sans); font-size: .58rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: .34em; color: var(--faint); margin-bottom: .1rem;
}
.brand-name { font-family: var(--serif); font-style: italic; font-size: 1.32rem; color: var(--gold-lit); }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a {
  font-size: .735rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: .19em; color: var(--muted);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color .35s, border-color .35s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); border-bottom-color: var(--gold); }
.site-nav a.nav-cta {
  border: 1px solid rgba(200, 169, 106, .42);
  border-radius: 999px; padding: .5rem 1.15rem; color: var(--gold-lit);
  background: linear-gradient(180deg, rgba(200,169,106,.16), rgba(200,169,106,.04));
  box-shadow: var(--shine);
}
.site-nav a.nav-cta:hover { background: linear-gradient(180deg, rgba(200,169,106,.3), rgba(200,169,106,.1)); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 34px; height: 26px; padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 4px; right: 4px; height: 1px; background: var(--text);
  transition: transform .3s;
}
.nav-toggle span:first-child { top: 9px; }
.nav-toggle span:last-child { top: 16px; }

/* ---------- Layout ---------- */

main { min-height: 58vh; }

.section { padding: clamp(2.6rem, 6vw, 5.5rem) clamp(1.1rem, 5vw, 4rem); max-width: 1080px; margin: 0 auto; }
.section.narrow { max-width: 620px; }
.section.mid { max-width: 820px; }

.rule { width: 66px; height: 1px; margin: 1.25rem 0; background: linear-gradient(90deg, var(--gold), rgba(200,169,106,0)); }
.centered { text-align: center; }
.centered .rule { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.eyebrow {
  font-size: .655rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: .38em; color: var(--gold); margin-bottom: 1rem;
}
.lede { color: var(--muted); font-size: 1.02rem; max-width: 40em; }
.centered .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3.4rem, 9vw, 7.5rem) clamp(1.1rem, 5vw, 4rem) clamp(2.4rem, 5vw, 4rem); text-align: center; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.1rem);
  margin: 0 0 .3em;
  background: linear-gradient(168deg, #fffdf8 6%, var(--gold-lit) 48%, var(--gold-deep) 108%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .dates {
  font-family: var(--serif); font-size: clamp(1rem, 2.1vw, 1.36rem);
  letter-spacing: .3em; color: var(--muted); text-transform: uppercase;
}
.hero .quote {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.14rem, 2.5vw, 1.6rem);
  color: var(--gold-lit); max-width: 30em; margin: 1.9rem auto 0; line-height: 1.55;
}
.hero-actions { margin-top: clamp(2rem, 4vw, 3rem); display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }

/* Portrait with a gold rim and soft bloom */
.portrait, .portrait-empty {
  width: clamp(140px, 20vw, 196px); aspect-ratio: 1;
  border-radius: 50%; margin: 0 auto clamp(1.6rem, 3vw, 2.4rem);
  object-fit: cover;
  border: 1px solid rgba(200, 169, 106, .38);
  padding: 5px; background: var(--black-2);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 24px 60px -22px rgba(200,169,106,.4), var(--shine);
}
.portrait-empty {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 3.4rem; color: rgba(200, 169, 106, .5);
}

/* ---------- Memorial hero: the portrait as the centrepiece ----------
   The photograph appears twice — once vastly blurred and darkened as a ground
   that drifts almost imperceptibly, and once crisp inside a gold-rimmed arch.
   The arch echoes a chapel window; the sheen is a slow specular pass over the
   glass. Everything melts into the page black at the bottom edge. */

.mhero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 4.5vw, 3.8rem) clamp(1.1rem, 5vw, 4rem) clamp(2rem, 4vw, 3.2rem);
  text-align: center;
  isolation: isolate;
}
/* Barely-there ground: heavily blurred and darkened so it reads as depth, not
   as a second copy of the photograph competing with the first. */
.mhero-back {
  position: absolute; inset: -10%;
  z-index: -2;
  background-size: cover; background-position: center;
  filter: blur(72px) brightness(.2) saturate(.5);
  transform: scale(1.2);
}
/* Vignette + fade into the page so there is no hard seam */
.mhero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 46% at 50% 34%, transparent 32%, rgba(8,8,10,.62) 100%),
    linear-gradient(rgba(8,8,10,.5), rgba(8,8,10,.12) 26%, rgba(8,8,10,.72) 78%, var(--black) 100%);
}

/* The framed photograph.
   Deliberately shape-agnostic: families upload whatever they have — a head-and-
   shoulders portrait, a wide family group, a snapshot. The frame shrink-wraps the
   image and is bounded by HEIGHT, so a landscape photo never grows to fill the
   page and a tall portrait never towers. Nothing is cropped. */
.mhero-figure {
  display: inline-block;
  margin: 0 auto clamp(1.4rem, 2.8vw, 2.1rem);
  padding: 6px;
  line-height: 0;
  border-radius: 14px;
  max-width: min(90vw, 540px);
  background: linear-gradient(168deg, rgba(230,210,168,.5), rgba(200,169,106,.2) 46%, rgba(143,116,64,.42));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 26px 60px -26px rgba(0,0,0,.92),
    0 0 52px -24px rgba(200,169,106,.28);
}
.mhero-figure img {
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  max-height: min(42vh, 360px);
  border-radius: 9px;
  background: var(--black-2);
}
/* No portrait yet — a quiet ornament rather than an empty rectangle. */
.mhero-empty {
  width: clamp(132px, 16vw, 168px); aspect-ratio: 1;
  margin: 0 auto clamp(1.4rem, 2.8vw, 2.1rem);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3rem);
  color: rgba(200, 169, 106, .42);
  border: 1px solid rgba(200, 169, 106, .3);
  background: linear-gradient(180deg, rgba(200,169,106,.1), transparent);
  box-shadow: var(--shine);
}

/* Ornamented hairline under the name */
.orn-rule {
  display: flex; align-items: center; justify-content: center; gap: .95rem;
  margin: 1.35rem auto 1.1rem;
}
.orn-rule::before, .orn-rule::after {
  content: ''; height: 1px; width: clamp(38px, 11vw, 116px);
}
.orn-rule::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.orn-rule::after  { background: linear-gradient(90deg, var(--gold), transparent); }
.orn-rule span { color: var(--gold); font-size: .66rem; letter-spacing: .3em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--sans); font-size: .765rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  padding: .96rem 2rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text);
  background: var(--glass); box-shadow: var(--shine);
  transition: border-color .35s, color .35s, transform .35s, box-shadow .35s;
}
.btn:hover { border-color: rgba(200,169,106,.6); color: #fff; transform: translateY(-1px); }
.btn.primary {
  border-color: transparent; color: #17130a;
  background: linear-gradient(168deg, var(--gold-lit), var(--gold) 54%, var(--gold-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 14px 34px -14px rgba(200,169,106,.62);
}
.btn.primary:hover { color: #0d0a04; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 18px 42px -14px rgba(200,169,106,.8); }
.btn.small { padding: .5rem 1.1rem; font-size: .66rem; letter-spacing: .14em; }
.btn.danger { border-color: rgba(196, 96, 84, .5); color: #e3a79d; background: rgba(150, 60, 50, .12); }
.btn.danger:hover { border-color: #c46054; color: #fff; background: rgba(180, 70, 58, .3); }

/* ---------- Cards (glass with a specular top edge) ---------- */

.card {
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shine), var(--lift);
  padding: clamp(1.5rem, 3.4vw, 2.5rem);
  backdrop-filter: blur(6px);
}
.card h2, .card h3 { color: var(--text); }

.service-card { text-align: center; }
.service-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold-lit); }
.service-card .when { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin: 0 0 .2em; }
.service-card .where { color: var(--muted); margin: 0; }

/* Feature + steps (landing) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 1rem; }
.feature { text-align: center; }
.feature .glyph {
  font-family: var(--serif); font-size: 1.6rem; color: var(--gold);
  width: 54px; aspect-ratio: 1; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,169,106,.3); border-radius: 50%;
  background: linear-gradient(180deg, rgba(200,169,106,.14), transparent);
  box-shadow: var(--shine);
}
.feature h3 { font-size: 1.42rem; margin-bottom: .35em; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.55rem; }
.steps li { counter-increment: s; display: flex; gap: 1.15rem; align-items: flex-start; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--serif); font-size: .95rem; color: var(--gold);
  border: 1px solid rgba(200,169,106,.34); border-radius: 50%;
  width: 2.5rem; aspect-ratio: 1; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shine);
}
.steps strong { display: block; font-weight: 400; color: var(--text); font-family: var(--serif); font-size: 1.24rem; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Memorial directory cards */
.memorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 1rem; }
.memorial-card {
  text-align: center; padding: 2rem 1.15rem; color: var(--text);
  transition: transform .4s cubic-bezier(.2,.7,.3,1), border-color .4s;
}
.memorial-card:hover { transform: translateY(-4px); border-color: rgba(200,169,106,.4); color: var(--text); }
.mc-portrait, .mc-empty {
  width: 88px; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.05rem; padding: 3px;
  border: 1px solid rgba(200,169,106,.3); background: var(--black-2);
}
.mc-empty {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.7rem; color: rgba(200,169,106,.45);
}
.mc-name { font-family: var(--serif); font-size: 1.28rem; line-height: 1.25; }
.mc-dates { color: var(--faint); font-size: .77rem; letter-spacing: .13em; text-transform: uppercase; margin-top: .4rem; }

/* ---------- Obituary prose ---------- */

.prose { max-width: 40em; }
.centered .prose { margin: 0 auto; }
.prose p { color: #cec9c0; margin: 0 0 1.15em; }
.prose h2 { font-size: 1.6rem; color: var(--gold-lit); margin: 2em 0 .5em; }
.prose ul { padding-left: 1.1rem; color: #cec9c0; }
.prose li { margin: .3em 0; }

/* ---------- Gallery ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }
.tile {
  position: relative; display: block; padding: 0; cursor: pointer;
  aspect-ratio: 1; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--line-soft); background: var(--raise);
  box-shadow: var(--shine);
  transition: transform .45s cubic-bezier(.2,.7,.3,1), border-color .45s;
}
.tile:hover { transform: translateY(-3px) scale(1.008); border-color: rgba(200,169,106,.45); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.94); transition: filter .5s; }
.tile:hover img, .tile:hover video { filter: saturate(1.04); }
.tile .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.94); font-size: 1.5rem; pointer-events: none;
  background: radial-gradient(circle at center, rgba(0,0,0,.42), rgba(0,0,0,.14));
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.tile .who {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .7rem .55rem;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.9);
  background: linear-gradient(transparent, rgba(0,0,0,.78)); text-align: left;
}
.empty-state { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.empty-state p { margin-bottom: 1.4rem; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; flex-direction: column;
  padding: 3vh 3vw; background: rgba(4, 4, 5, .96); backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 76vh; border-radius: 10px; box-shadow: 0 40px 90px -30px #000; }
.lightbox .cap { color: var(--muted); margin-top: 1.1rem; font-size: .87rem; letter-spacing: .06em; text-align: center; }
.lightbox button {
  position: absolute; background: none; border: 0; color: rgba(255,255,255,.62);
  cursor: pointer; font-family: var(--serif); transition: color .3s;
}
.lightbox button:hover { color: #fff; }
.lightbox .x { top: 1rem; right: 1.4rem; font-size: 2.1rem; }
.lightbox .prev, .lightbox .next { top: 50%; transform: translateY(-50%); font-size: 2.7rem; padding: 1rem .7rem; }
.lightbox .prev { left: .4rem; }
.lightbox .next { right: .4rem; }

/* ---------- Forms ---------- */

form.pretty label {
  display: block; margin: 1.5rem 0 .45rem;
  font-size: .68rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .17em; color: var(--muted);
}
form.pretty input[type=text], form.pretty input[type=password], form.pretty textarea {
  width: 100%; padding: .88rem 1.05rem;
  background: rgba(0, 0, 0, .34);
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font: inherit;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
form.pretty input:focus, form.pretty textarea:focus {
  outline: none; border-color: rgba(200,169,106,.62);
  background: rgba(0,0,0,.5);
  box-shadow: 0 0 0 4px rgba(200, 169, 106, .1);
}
form.pretty input::placeholder, form.pretty textarea::placeholder { color: var(--faint); }
form.pretty textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
form.pretty input[type=file] {
  width: 100%; margin-top: .3rem; padding: .95rem;
  background: rgba(0,0,0,.28); border: 1px dashed var(--line);
  border-radius: 10px; color: var(--muted); font-size: .87rem;
}
form.pretty input[type=file]::file-selector-button {
  margin-right: 1rem; padding: .5rem 1.1rem; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 999px; color: var(--text); font: inherit; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .13em;
}
form.pretty .hint { font-size: .8rem; color: var(--faint); margin-top: .45rem; line-height: 1.6; }

/* Web-address field: fixed domain, editable slug */
.slug-field {
  display: flex; align-items: stretch; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(0, 0, 0, .34); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.slug-field:focus-within { border-color: rgba(200,169,106,.62); box-shadow: 0 0 0 4px rgba(200,169,106,.1); }
.slug-prefix {
  display: flex; align-items: center; padding: .88rem .3rem .88rem 1.05rem;
  color: var(--faint); font-size: .95rem; white-space: nowrap; user-select: none;
}
form.pretty .slug-field input[type=text] {
  flex: 1; min-width: 8rem; border: 0; border-radius: 0;
  background: transparent; padding-left: 0;
  color: var(--gold-lit); letter-spacing: .01em;
}
form.pretty .slug-field input[type=text]:focus { box-shadow: none; background: transparent; }
form.pretty .check { display: flex; gap: .7rem; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--text); font-weight: 300; }
form.pretty .check input { accent-color: var(--gold); margin-top: .35rem; }
form.pretty .btn { margin-top: 1.9rem; }

.notice {
  border: 1px solid rgba(200, 169, 106, .32); border-radius: 12px;
  background: linear-gradient(180deg, rgba(200,169,106,.11), rgba(200,169,106,.03));
  box-shadow: var(--shine);
  padding: 1rem 1.3rem; margin-bottom: 1.6rem; color: var(--gold-lit); font-size: .95rem;
}
.notice.error {
  border-color: rgba(196, 96, 84, .42); color: #eab3a9;
  background: linear-gradient(180deg, rgba(150,60,50,.16), rgba(150,60,50,.05));
}
.aside { text-align: center; color: var(--faint); font-size: .9rem; margin-top: 1.6rem; }

/* ---------- Memorial book ---------- */

.entry {
  position: relative; padding: 2rem 2.1rem 1.6rem;
  background: var(--glass); border: 1px solid var(--line-soft);
  border-radius: var(--r); box-shadow: var(--shine), var(--lift);
  margin-bottom: 1.1rem;
}
.entry::before {
  content: '“'; position: absolute; top: .35rem; left: 1.15rem;
  font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: rgba(200,169,106,.34);
}
.entry .msg {
  font-family: var(--serif); font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  line-height: 1.62; color: #e4e0d8; padding-left: 1.5rem; white-space: pre-line;
}
.entry .sig { text-align: right; margin-top: 1rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .17em; color: var(--faint); }
.entry .sig strong { color: var(--gold-lit); font-weight: 400; }

/* ---------- Program sheet ---------- */

.sheet {
  max-width: 700px; margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4.2rem) clamp(1.4rem, 5vw, 4rem);
  background: var(--glass); border: 1px solid var(--line-soft);
  border-radius: var(--r); box-shadow: var(--shine), var(--lift);
  text-align: center;
}
.sheet .head { padding-bottom: 1.9rem; border-bottom: 1px solid var(--line-soft); margin-bottom: .6rem; }
.sheet .head h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); color: var(--gold-lit); }
.sheet .head .dates { font-family: var(--serif); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-size: .95rem; }
.sheet .head .where { color: var(--muted); font-size: .95rem; margin-top: 1.1rem; }
.sheet h2 {
  font-size: 1.16rem; color: var(--gold); text-transform: uppercase;
  letter-spacing: .27em; margin: 2.5em 0 1em; font-family: var(--sans); font-weight: 400;
}
.sheet ul { list-style: none; padding: 0; margin: 0; }
.sheet li { font-family: var(--serif); font-size: 1.2rem; padding: .42rem 0; color: #e4e0d8; }
.sheet p { color: var(--muted); margin: 0 auto .9em; max-width: 34em; }
.sheet .thanks { margin-top: 2.6rem; padding-top: 1.7rem; border-top: 1px solid var(--line-soft); font-family: var(--serif); font-style: italic; color: var(--gold-lit); }
.portrait-sm { width: 118px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: 0 auto 1.2rem; padding: 3px; border: 1px solid rgba(200,169,106,.34); }

/* ---------- Dashboard / admin rows ---------- */

.admin-wrap { max-width: 1000px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.6rem) clamp(1.1rem, 5vw, 4rem); }
.tabs { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tabs a {
  padding: .58rem 1.25rem; border-radius: 999px; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .15em; color: var(--muted);
  border: 1px solid var(--line-soft); background: var(--glass); box-shadow: var(--shine);
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: #17130a; border-color: transparent; background: linear-gradient(168deg, var(--gold-lit), var(--gold)); }

.row {
  display: flex; gap: 1.15rem; align-items: center; flex-wrap: wrap;
  padding: 1rem 1.2rem; margin-bottom: .7rem;
  background: var(--glass); border: 1px solid var(--line-soft);
  border-radius: 13px; box-shadow: var(--shine);
}
.row .thumb { width: 66px; height: 66px; object-fit: cover; border-radius: 9px; flex: 0 0 auto; border: 1px solid var(--line-soft); }
.row .thumb.round { border-radius: 50%; }
.row .thumb.empty { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.4rem; color: rgba(200,169,106,.44); background: var(--raise); }
.row .meta { flex: 1; min-width: 210px; font-size: .9rem; color: var(--muted); }
.row .meta .who { color: var(--text); font-family: var(--serif); font-size: 1.12rem; }
.row .meta .sub { font-size: .78rem; color: var(--faint); }
.row .acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.row form { display: inline; }
.flag-hidden { color: #e0958a; font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; }
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .84rem; color: var(--muted); word-break: break-all; }

.kv { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.2rem 0; }
.kv td { padding: .62rem 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.kv td:first-child { color: var(--faint); width: 40%; font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; }
.ok { color: #9fd0a8; }
.bad { color: #e0958a; }

/* ---------- Footer ---------- */

.site-footer {
  text-align: center; padding: clamp(2.6rem, 6vw, 4.4rem) 1.5rem 3rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--line-soft); color: var(--muted);
}
.footer-mark { color: var(--gold); font-size: .82rem; letter-spacing: .5em; margin-bottom: 1.1rem; opacity: .85; }
.footer-thanks { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: #ddd8cf; max-width: 34em; margin: 0 auto 1rem; }
.footer-name { font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; color: var(--faint); margin: 0 0 1.1rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; }
.footer-links a { color: var(--faint); }
.footer-links a:hover { color: var(--gold); }
.footer-brand {
  margin: 2rem 0 0; font-family: var(--serif); font-size: 1.08rem;
  letter-spacing: .05em; color: var(--muted);
}
.footer-brand em { font-style: italic; font-size: .82em; color: var(--faint); margin: 0 .12em; }
.footer-brand a { color: var(--gold); }
.footer-brand a:hover { color: var(--gold-lit); }

/* ---------- Mobile ---------- */

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; order: 3; width: 100%; flex-direction: column;
    align-items: flex-start; gap: 0; padding-top: .6rem;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { width: 100%; padding: .95rem 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav a.nav-cta { margin-top: .9rem; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 7px; }
  .row .acts { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Print (program + memorial book) ----------
   Ink on paper: strip the black entirely. */

@media print {
  .page-glow, .site-header, .site-footer, .no-print, .hero-actions { display: none !important; }
  body { background: #fff !important; color: #16150f !important; font-size: 12pt; }
  .sheet, .card, .entry {
    background: #fff !important; border: 0 !important; box-shadow: none !important;
    backdrop-filter: none !important; padding: 0 !important; max-width: none !important;
  }
  .entry { border-bottom: 1px solid #ddd !important; padding: .5cm 0 !important; break-inside: avoid; }
  .entry::before { color: #c8a96a !important; }
  .entry .msg, .sheet li, .prose p, .prose li { color: #16150f !important; }
  .sheet .head h1, .sheet h2, .entry .sig strong, .footer-thanks, .sheet .thanks { color: #7a6534 !important; }
  .sheet .head .dates, .sheet .head .where, .sheet p, .entry .sig { color: #55514a !important; }
  .section { padding: 0 !important; }
  a { color: #16150f !important; }
}
