/* Shared memorial palette. Reader rules apply only to Frank's volume. */
body.frank-theme,
body.frank-tribute {
  --frank-navy:#091722;
  --frank-panel:#122936;
  --frank-teal:#23454b;
  --frank-cobalt:#284e70;
  --frank-copper:#d8ad88;
  --frank-cream:#f5ecdc;
  --frank-muted:#d7d5cb;
  --frank-line:#b5947359;
  position:relative;
  isolation:isolate;
  color:var(--frank-cream);
  background:#091722;
}
body.frank-theme::before,
body.frank-tribute::before {
  content:"";
  position:fixed;
  z-index:-1;
  inset:0;
  pointer-events:none;
  /* A quiet continuation of the headstone's garden, with dark text-safe edges. */
  background-image:
    linear-gradient(180deg,#08151b85 0%,#091722b3 48%,#081620e0 100%),
    radial-gradient(ellipse at 50% 30%,transparent 10%,#06131b66 100%),
    url('/tributes/frank/memorial-garden-background.webp?v=garden-1');
  background-position:center,center,58% center;
  background-size:cover;
  background-repeat:no-repeat;
}
body.frank-theme a {color:#f0cfaa}
body.frank-theme :focus-visible {outline:3px solid #ffe0b5;outline-offset:5px}
.frank-sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

.frank-theme > header {border-bottom:1px solid var(--frank-line);background:#081824b8}
.frank-theme .tribute-kicker {margin:0 0 .55rem;color:#e2bb94;font:italic 1.15rem/1.5 Georgia,serif;letter-spacing:.025em}
.frank-theme .photo-album {padding-top:2rem;border-top:1px solid var(--frank-line)}
.frank-theme .photo-album h2 {color:var(--frank-cream)}
.frank-theme .album-grid figcaption {color:var(--frank-cream);line-height:1.5}
.frank-theme .album-grid img {box-shadow:0 .5rem 1.6rem #0004}
.frank-theme .book-links {gap:.75rem 1rem;margin-top:1.25rem}
.frank-theme .book-links .guestbook-link {justify-content:center;min-height:48px;margin:0;padding:.7rem 1.1rem;border:1px solid #bd987482;border-radius:.3rem;background:#142d3bd9;font-weight:600;text-align:center;line-height:1.4;text-decoration:none}
.frank-theme .book-links .guestbook-link:hover {border-color:#e5bf97;background:#1b3c4d}
.frank-theme .ebook-hint {margin-top:.85rem;color:var(--frank-muted);line-height:1.5}
.frank-theme .illustration-credit {margin:1.5rem 0;font-size:.85rem;line-height:1.6;text-align:center}
.frank-theme .sound button {background:#112a39;border-color:#bd987482}
.frank-theme #frank-counter {background:#0a1d2be8;border-color:var(--frank-line)}

.frank-guestbook.frank-theme main {padding-top:1.5rem}
.frank-guestbook.frank-theme .guestbook-heading {
  padding-bottom:clamp(1.5rem,5vw,2.5rem);
  background:linear-gradient(135deg,#183c49f5,#0e2230f5);
  border-color:#bd987475;
  box-shadow:0 1rem 3rem #0003;
}
.frank-guestbook.frank-theme .guestbook-heading::before {
  inset:0;
  clip-path:none;
  background:url('/tributes/frank/tribute-motifs.webp?v=action-reference-4') center 45% / 100% auto no-repeat;
  opacity:1;
  filter:none;
}
.frank-guestbook.frank-theme .guestbook-heading::after {
  height:3px;
  background:linear-gradient(90deg,#315d82,#dab18b 45%,#dfc7a9 55%,#315d82);
}
.frank-guestbook.frank-theme .guestbook-kicker {color:#ecc7a1}
.frank-guestbook.frank-theme .guestbook-places {color:#e1ded1}
.frank-guestbook.frank-theme form,
.frank-guestbook.frank-theme #saved,
.frank-guestbook.frank-theme #receipt,
.frank-guestbook.frank-theme #queue,
.frank-guestbook.frank-theme #other-section,
.frank-guestbook.frank-theme #removed-section,
.frank-guestbook.frank-theme #edition {
  padding:clamp(1rem,4vw,1.65rem);
  border:1px solid var(--frank-line);
  border-radius:.4rem;
  background:#0c202ded;
}
.frank-guestbook.frank-theme form {margin-top:2rem}
.frank-guestbook.frank-theme fieldset > label:first-child {margin-top:0}
.frank-guestbook.frank-theme input:not([type=checkbox]),
.frank-guestbook.frank-theme textarea {background:#081823;border-color:#6e8c9e;color:#fff8e9}
.frank-guestbook.frank-theme input[type=checkbox] {accent-color:#d9b18c}
.frank-guestbook.frank-theme .ebook-download {background:#17313fed;border-color:#bd98747a}
.frank-guestbook.frank-theme .ebook-button,
.frank-guestbook.frank-theme button.primary {background:#ead8bb;border-color:#e6c39b;color:#132330}
.frank-guestbook.frank-theme .ebook-button:hover,
.frank-guestbook.frank-theme button.primary:hover {background:#fae8c9}
.frank-guestbook.frank-theme .field-help,
.frank-guestbook.frank-theme .ebook-help {color:#dedacb}
.frank-guestbook.frank-theme #signatures .guest-signature {border-color:var(--frank-line)}

/* The room around the book carries the theme; reading-paper preferences stay intact. */
body.frank-tribute {
  --background:var(--frank-navy);
  --panel:#142b3a;
  --soft:#d2d4ce;
  --text:var(--frank-cream);
  --copper:#e5bd94;
  --border:#806c5d;
}
body.frank-tribute .masthead {background:#0a1c29ed;border-color:var(--frank-line)}
body.frank-tribute .theatre {
  background-image:linear-gradient(#0b1c29ad,#0a1824d9),url('/tributes/frank/memorial-garden-background.webp?v=garden-1');
  background-position:center,58% center;
  background-size:cover;
  background-repeat:no-repeat;
}
body.frank-tribute .reader-dock {background:#0b1b28ee}
body.frank-tribute .reader-settings,
body.frank-tribute .reader-mute {background:#102c3bef;border-color:#b89977;color:#fff1dc}
body.frank-tribute .frank-share {border-color:#bc967375;background:#142e3b;color:#f0cfaa}
body.frank-tribute .frank-ebook-download {background:#ead8bb;color:#132330;border-color:#e6c39b}
body.frank-tribute button:hover:not(:disabled),
body.frank-tribute .file-button:hover {background:#244657}
body.frank-tribute button.primary {background:#e7c8a4;color:#152532;border-color:#e7c8a4}
body.frank-tribute button.primary:hover:not(:disabled) {background:#f6ddbc}
body.frank-tribute .full-nav {background:#102632}
body.frank-tribute .full-nav .full-pop {background:#163344;border-color:#9d886e}
body.frank-tribute .frank-book-notice {border-color:#caa27b;color:#eee0cb}
body.frank-tribute .gate .cloth {background:linear-gradient(#0b1b2a40,#091a23c2),url('/tributes/frank/memorial-garden-background.webp?v=garden-1') center / cover;border-color:#b99a76}
body.frank-tribute .gate .foil {border-color:#c6ab8777}

@media (max-width:900px) {
  body.frank-theme::before,body.frank-tribute::before {background-position:center,center,53% center}
}
@media (max-width:600px) {
  .frank-theme .book-links .guestbook-link {flex:1 1 14rem}
}
@media (prefers-reduced-motion:reduce) {
  .frank-theme .memorial-cinematic,.frank-theme .memorial-cinematic img,.frank-theme .memorial-cinematic .action {transition:none;transform:none}
}
@media print {
  body.frank-theme {background:#fff;color:#111}
  body.frank-theme::before,body.frank-tribute::before {display:none}
  .frank-guestbook.frank-theme .guestbook-heading {background:#fff;box-shadow:none;color:#111}
  .frank-guestbook.frank-theme .guestbook-heading::before,.frank-guestbook.frank-theme .guestbook-heading::after {display:none}
  .frank-guestbook.frank-theme #edition {padding:0;border:0;background:#fff}
  .frank-guestbook.frank-theme .guestbook-kicker,.frank-guestbook.frank-theme .guestbook-places {color:#333}
}
