/* RuneHQ farewell memorial: responsive memorial and guestbook presentation. */
:root {
  --navy: #0b315d;
  --navy-deep: #061d3a;
  --blue: #1f669b;
  --blue-soft: #7db5d5;
  --sky: #cce9f8;
  --sky-light: #e9f6fc;
  --marble: #f4f3ee;
  --parchment: #f7efd9;
  --gold: #aa8953;
  --line: rgba(27, 79, 121, 0.34);
  --white: #fff;
  --shadow: 0 12px 34px rgba(15, 54, 87, 0.18);
  --left-corner-mask: radial-gradient(
    ellipse 118% 108% at left bottom,
    #000 0 48%,
    rgba(0, 0, 0, 0.92) 62%,
    rgba(0, 0, 0, 0.38) 78%,
    transparent 100%
  );
  --right-corner-mask: radial-gradient(
    ellipse 118% 108% at right bottom,
    #000 0 48%,
    rgba(0, 0, 0, 0.92) 62%,
    rgba(0, 0, 0, 0.38) 78%,
    transparent 100%
  );
  --serif: Georgia, "Times New Roman", Times, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  color: var(--navy-deep);
  background: var(--sky);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid #f4b842;
  outline-offset: 4px;
  border-radius: 3px;
}

p,
h1,
h2,
h3,
blockquote,
figure {
  margin-top: 0;
}

p,
li,
a,
small,
strong {
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  min-height: 44px;
  color: var(--white);
  background: var(--navy-deep);
  border: 2px solid var(--white);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, 1480px);
  margin-inline: auto;
  min-width: 0;
}

.site-frame {
  display: grid;
  grid-template-areas: "left memorial right";
  grid-template-columns:
    clamp(10rem, 12vw, 13rem)
    minmax(0, 1fr)
    clamp(10rem, 12vw, 13rem);
  align-items: start;
  gap: clamp(0.75rem, 1.25vw, 1.5rem);
  width: min(100% - 2rem, 118rem);
  margin-inline: auto;
  min-width: 0;
}

.site-frame > main {
  grid-area: memorial;
  min-width: 0;
  overflow: clip;
  box-shadow: 0 0 30px rgba(6, 29, 58, 0.14);
}

.runehq-sidebar {
  align-self: stretch;
  min-width: 0;
  padding-top: clamp(1rem, 2vw, 1.75rem);
}

.runehq-sidebar--left {
  grid-area: left;
}

.runehq-sidebar--right {
  grid-area: right;
}

.runehq-sidebar__panel {
  position: sticky;
  top: calc(78px + 1rem);
  overflow: hidden;
  padding: 1.15rem 0.8rem 1rem;
  color: var(--navy-deep);
  background: var(--parchment);
  border: 1px solid rgba(122, 91, 43, 0.42);
  border-radius: 0.35rem;
  box-shadow: var(--shadow);
}

.runehq-sidebar__panel::before,
.runehq-sidebar__panel::after {
  position: absolute;
  right: 0.65rem;
  left: 0.65rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
}

.runehq-sidebar__panel::before {
  top: 0.55rem;
}

.runehq-sidebar__panel::after {
  bottom: 0.55rem;
}

.runehq-sidebar__eyebrow {
  margin-bottom: 0.3rem;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.runehq-sidebar h2 {
  margin-bottom: 0.85rem;
  color: var(--navy);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.15;
  text-align: center;
}

.runehq-sidebar__links {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.runehq-sidebar__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.48rem 0.62rem;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(31, 102, 155, 0.2);
  border-radius: 0.24rem;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.runehq-sidebar__links a::before {
  flex: 0 0 auto;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.55rem;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(170, 137, 83, 0.18);
  content: "";
}

.runehq-sidebar__links a:hover {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  transform: translateX(2px);
}

.runehq-sidebar__links a:hover::before {
  background: var(--white);
}

@media (max-width: 74rem) {
  .site-frame {
    grid-template-areas:
      "memorial memorial"
      "left right";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: min(100% - 2rem, 70rem);
    padding-top: 1rem;
  }

  .runehq-sidebar {
    padding-top: 0;
  }

  .runehq-sidebar__panel {
    position: static;
  }

  .runehq-sidebar__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .site-frame {
    grid-template-areas:
      "memorial"
      "left"
      "right";
    grid-template-columns: minmax(0, 1fr);
  }
}

.decorative {
  pointer-events: none;
  user-select: none;
}

.hero__scenery--left,
.gene-deb__flowers,
.history__scenery,
.tributes__flower--left,
.farewell__scenery,
.connected__flowers--left {
  -webkit-mask-image: var(--left-corner-mask);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: var(--left-corner-mask);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.hero__scenery--right,
.gene-deb__lilies,
.tributes__flower--right,
.connected__flowers--right {
  -webkit-mask-image: var(--right-corner-mask);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: var(--right-corner-mask);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--white);
  background: rgba(8, 43, 78, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 15px rgba(4, 29, 55, 0.26);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 2rem, 1480px);
  min-height: 78px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.7rem;
  min-height: 52px;
  color: var(--white);
  text-decoration: none;
}

.brand__shield {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  line-height: 1;
}

.brand__name {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 #000;
}

.brand__tagline {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: clamp(0.25rem, 1vw, 1rem);
  min-width: 0;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  color: var(--white);
  border-bottom: 2px solid transparent;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  border-bottom-color: #d7b56e;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  display: grid;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.45rem;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.sky-section,
.marble-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
}

.sky-section {
  background-color: var(--sky);
}

.sky-section::before {
  position: absolute;
  inset: 1.35rem 5% auto;
  z-index: -1;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  content: "";
}

.marble-section {
  background-color: var(--marble);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(31, 73, 106, 0.13);
}

.marble-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-size: 62px 62px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  content: "";
}

.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-size: clamp(0.74rem, 1vw, 0.93rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(3rem, 7.2vw, 7rem);
  letter-spacing: -0.025em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85);
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 0.45rem;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: min(100%, 17rem);
  margin: 0.5rem auto 1rem;
}

.ornament::before,
.ornament::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.ornament span {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.section-intro {
  max-width: 52rem;
  min-width: 0;
}

.section-intro--center {
  margin-inline: auto;
  text-align: center;
}

.section-intro > p:last-child {
  margin-bottom: 0;
}

.section-intro__lead,
.hero__lead {
  color: var(--navy);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.35;
}

.hero {
  display: grid;
  place-items: center;
  min-height: clamp(430px, 44vw, 640px);
  padding: 5rem 0 4.25rem;
}

.hero__content {
  max-width: 58rem;
  text-align: center;
}

.hero__reflection {
  max-width: 44rem;
  margin: 1.15rem auto 0;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.hero__scenery,
.hero__dove {
  position: absolute;
  z-index: 0;
}

.hero__scenery--left {
  left: 0;
  bottom: 0;
  width: clamp(210px, 21vw, 300px);
}

.hero__scenery--right {
  right: 0;
  bottom: 0;
  width: clamp(180px, 18vw, 252px);
}

.hero__dove--left {
  left: clamp(3%, 12vw, 15%);
  top: 2.5rem;
  width: clamp(105px, 10vw, 184px);
}

.hero__dove--right {
  right: clamp(2%, 10vw, 13%);
  top: 4rem;
  width: clamp(96px, 9vw, 166px);
}

.gene-deb {
  padding: clamp(3.25rem, 5vw, 5rem) 0;
}

.gene-deb__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.15fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.gene-deb__intro {
  text-align: center;
}

.gene-deb__intro .ornament {
  max-width: 11rem;
}

.gene-deb__decision {
  grid-column: 1 / -1;
  max-width: 48rem;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  text-align: center;
}

.gene-deb__flowers,
.gene-deb__lilies {
  position: absolute;
  z-index: 0;
  bottom: 0;
}

.gene-deb__flowers {
  left: 0;
  width: clamp(72px, 7vw, 112px);
}

.gene-deb__lilies {
  right: 0;
  width: clamp(130px, 14vw, 214px);
}

.portrait-single {
  display: grid;
  place-items: center;
  min-width: 0;
}

.memorial-portrait-frame {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 0.65rem;
  background: #d7c6a8;
  border: 1px solid #806844;
  box-shadow: 0 9px 20px rgba(35, 53, 66, 0.2), inset 0 0 0 4px #f3e9d6;
  transform: rotate(-0.4deg);
}

.memorial-portrait {
  display: block;
  width: 504px;
  max-width: 100%;
  height: auto;
  border: 1px solid #142c41;
}

.memorial-portrait-frame figcaption {
  padding: 0.5rem 0.25rem 0.1rem;
  color: var(--navy-deep);
  font-size: 1rem;
  text-align: center;
}

.parchment-note {
  position: relative;
  margin-bottom: 0;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  color: var(--navy);
  background: var(--parchment);
  border: 1px solid rgba(150, 119, 70, 0.42);
  box-shadow: var(--shadow);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  line-height: 1.45;
  text-align: center;
  transform: rotate(-1deg);
}

.parchment-note p:last-child {
  margin-bottom: 0;
}

.history {
  padding: clamp(3.5rem, 5vw, 5.5rem) 0 clamp(4rem, 6vw, 6rem);
}

.history__scenery {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  width: clamp(150px, 16vw, 214px);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 1.1rem;
  right: 5%;
  left: 5%;
  z-index: -1;
  height: 1px;
  background: var(--line);
  content: "";
}

.timeline__item {
  position: relative;
  min-width: 0;
  padding: 3rem clamp(0.35rem, 0.6vw, 0.7rem) 0;
  text-align: center;
}

.timeline__item::before {
  position: absolute;
  top: 0.72rem;
  left: 50%;
  width: 13px;
  height: 13px;
  background: var(--navy);
  border: 3px solid var(--sky-light);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--navy);
  content: "";
  transform: translateX(-50%);
}

.timeline time {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 700;
}

.timeline h3 {
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  overflow-wrap: normal;
}

.timeline p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.tributes {
  padding: clamp(3.5rem, 5vw, 5.5rem) 0;
}

.tributes__flower {
  position: absolute;
  z-index: 0;
  bottom: 0;
}

.tributes__flower--left {
  left: 0;
  width: clamp(100px, 10vw, 145px);
}

.tributes__flower--right {
  right: 0;
  width: clamp(96px, 10vw, 139px);
}

.guestbook-signing {
  position: relative;
  z-index: 2;
  max-width: 64rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(247, 239, 217, 0.94);
  border: 1px solid rgba(122, 91, 43, 0.42);
  border-radius: 2px;
  box-shadow: 0 7px 20px rgba(22, 58, 88, 0.12);
}

.guestbook-signing__heading {
  margin-bottom: 1.25rem;
  text-align: center;
}

.guestbook-signing__heading h3 {
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.guestbook-signing__heading p {
  margin-bottom: 0;
}

.guestbook-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.guestbook-form__field {
  min-width: 0;
}

.guestbook-form__field--wide {
  grid-column: 1 / -1;
}

.guestbook-form label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--navy-deep);
  font-size: 0.94rem;
  font-weight: 700;
}

.guestbook-form label span,
.guestbook-form__help,
.guestbook-form__actions p {
  color: #416785;
  font-size: 0.82rem;
  font-weight: 400;
}

.guestbook-form input,
.guestbook-form textarea {
  display: block;
  width: 100%;
  padding: 0.72rem 0.78rem;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(27, 79, 121, 0.4);
  border-radius: 2px;
  font: inherit;
  line-height: 1.4;
}

.guestbook-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.guestbook-form__help {
  margin: 0.3rem 0 0;
}

.guestbook-form__errors,
.guestbook-errors,
.guestbook-notice {
  color: #742016;
  background: #fff1ed;
  border: 1px solid #b75042;
}

.guestbook-errors,
.guestbook-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
}

.guestbook-notice--success {
  color: #174d2c;
  background: #edf8f0;
  border-color: #4f8961;
}

.guestbook-errors p,
.guestbook-errors ul,
.guestbook-notice,
.guestbook-form__errors ul {
  margin-bottom: 0;
}

.guestbook-form__errors {
  margin-top: 0.4rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.86rem;
}

.guestbook-form__errors ul,
.guestbook-errors ul {
  padding-left: 1.25rem;
}

.guestbook-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.guestbook-form__verification {
  min-height: 65px;
}

.guestbook-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.guestbook-form__actions button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0.68rem 1.25rem;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy-deep);
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.guestbook-form__actions button:hover {
  background: var(--blue);
}

.guestbook-form__actions p {
  margin: 0;
  line-height: 1.4;
}

.guestbook-messages {
  scroll-margin-top: 7rem;
}

.tribute-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 36rem));
  align-items: start;
  gap: clamp(1rem, 2vw, 1.7rem);
  justify-content: center;
  margin-top: clamp(1.4rem, 2.5vw, 2rem);
}

@media (max-width: 60rem) {
  .tribute-grid {
    grid-template-columns: minmax(0, 36rem);
  }
}

.tribute-card:only-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.tribute-card {
  position: relative;
  min-width: 0;
  max-width: 36rem;
  padding: clamp(1.35rem, 2.25vw, 1.75rem);
  width: 100%;
  background: rgba(255, 255, 255, 0.83);
  border: 1px solid rgba(27, 79, 121, 0.24);
  border-radius: 2px;
  box-shadow: 0 7px 20px rgba(22, 58, 88, 0.12);
}

.tribute-card__portrait {
  float: left;
  width: clamp(86px, 9vw, 118px);
  height: clamp(86px, 9vw, 118px);
  margin: 0 1rem 0.65rem 0;
  object-fit: cover;
  border: 5px solid #e6dac1;
  box-shadow: 0 3px 10px rgba(10, 40, 64, 0.2);
}

.tribute-card__mark {
  float: left;
  margin: -0.4rem 0.7rem 0 0;
  color: #8fa5b5;
  font-size: 3.6rem;
  line-height: 1;
}

.tribute-card__mark--close {
  float: none;
  margin: -0.35rem 0 -1rem;
  text-align: right;
}

.tribute-card__body {
  min-width: 0;
  color: #193c5d;
  font-size: 1.02rem;
  line-height: 1.65;
}

.rich-text > :first-child {
  margin-top: 0;
}

.rich-text > :last-child {
  margin-bottom: 0;
}

.rich-text blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--blue-soft);
}

.rich-text a {
  font-weight: 700;
}

.tribute-card__footer {
  clear: both;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(28, 79, 119, 0.2);
  text-align: right;
}

.tribute-card__footer h3 {
  margin-bottom: 0.15rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.tribute-card__footer p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.tribute-card:target {
  border-color: #b38331;
  box-shadow: 0 0 0 3px rgba(179, 131, 49, 0.2), 0 7px 20px rgba(22, 58, 88, 0.12);
  scroll-margin-top: 7rem;
}

.guestbook-page-summary {
  margin: 1.7rem 0 0;
  color: #47657e;
  font-size: 0.92rem;
  text-align: center;
}

.guestbook-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.guestbook-pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guestbook-pagination__page,
.guestbook-pagination__direction,
.guestbook-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(27, 79, 121, 0.32);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.guestbook-pagination__direction {
  min-width: 6.25rem;
}

.guestbook-pagination__page:hover,
.guestbook-pagination__direction:hover {
  color: var(--white);
  background: var(--navy);
}

.guestbook-pagination__page--current {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.guestbook-pagination__direction--disabled {
  color: #718395;
  background: rgba(236, 239, 240, 0.68);
  cursor: default;
}

.guestbook-pagination__ellipsis {
  min-width: 2rem;
  padding-right: 0.25rem;
  padding-left: 0.25rem;
  background: transparent;
  border-color: transparent;
}

.empty-tributes {
  max-width: 48rem;
  margin: clamp(2.25rem, 4vw, 3.5rem) auto 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(27, 79, 121, 0.22);
  text-align: center;
}

.empty-tributes p:last-child {
  margin-bottom: 0;
}

@media (max-width: 42rem) {
  .guestbook-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .guestbook-form__field--wide {
    grid-column: auto;
  }

  .guestbook-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .guestbook-form__actions button {
    width: 100%;
  }

  .guestbook-pagination {
    flex-wrap: wrap;
  }

  .guestbook-pagination__pages {
    order: 3;
    justify-content: center;
    width: 100%;
  }

  .guestbook-pagination__direction {
    flex: 1 1 8rem;
  }
}

.farewell {
  padding: clamp(3.25rem, 5vw, 5rem) 0;
}

@media (min-width: 769px) {
  .farewell {
    padding-bottom: clamp(11rem, 14vw, 13rem);
  }
}

.farewell__scenery {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  width: clamp(165px, 18vw, 235px);
  height: auto;
}

.farewell__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.farewell__copy {
  max-width: 54rem;
}

.farewell__note {
  justify-self: end;
  max-width: 24rem;
}

.connected {
  min-height: 390px;
  padding: clamp(3.25rem, 5vw, 5rem) 0 clamp(5.5rem, 8vw, 7rem);
}

.connected__inner {
  max-width: 72rem;
}

.connected__flowers {
  position: absolute;
  z-index: 0;
  bottom: 0;
}

.connected__flowers--left {
  left: 0;
  width: clamp(210px, 23vw, 330px);
}

.connected__flowers--right {
  right: 0;
  width: clamp(175px, 18vw, 254px);
}

.community-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.community-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  min-height: 70px;
  padding: 0.8rem 1rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 86, 132, 0.28);
  box-shadow: 0 5px 13px rgba(17, 62, 95, 0.1);
  text-decoration: none;
}

.community-link:hover,
.community-link:focus-visible {
  background: var(--white);
  border-color: var(--blue);
}

.community-link__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--navy);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
}

.community-link strong,
.community-link small {
  display: block;
}

.community-link small {
  margin-top: 0.1rem;
  color: #416785;
  font-size: 0.78rem;
}

.site-footer {
  color: #dcebf6;
  background: var(--navy-deep);
  text-align: center;
}

.site-footer__inner {
  padding: 2.25rem 0;
}

.site-footer p {
  margin-bottom: 0.4rem;
}

.site-footer__source {
  max-width: 58rem;
  margin: 1rem auto 0;
  color: #adc4d5;
  font-size: 0.76rem;
}

.noscript-note {
  position: fixed;
  z-index: 200;
  right: 1rem;
  bottom: 1rem;
  max-width: 26rem;
  margin: 0;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy-deep);
  border: 1px solid var(--white);
  font-size: 0.85rem;
}

@media (max-width: 1120px) {
  .site-nav {
    gap: 0;
  }

  .site-nav__link {
    padding-inline: 0.48rem;
    font-size: 0.74rem;
  }

  .gene-deb__layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  }

  .gene-deb__layout .parchment-note {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 40rem;
  }

  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline__item {
    padding-top: 2.4rem;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 78px;
  }

  body {
    font-size: 16px;
  }

  .page-shell {
    width: min(100% - 2rem, 46rem);
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand__shield {
    width: 43px;
    height: 43px;
  }

  .brand__name {
    font-size: 1.65rem;
  }

  .brand__tagline {
    font-size: 0.58rem;
  }

  .site-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: 500px;
    padding-top: 4rem;
  }

  .hero__content {
    max-width: 36rem;
  }

  .hero__dove--left {
    left: 0;
    top: 1.5rem;
  }

  .hero__dove--right {
    right: -2.5rem;
    top: 2.5rem;
  }

  .hero__scenery--left {
    left: -3.5rem;
  }

  .hero__scenery--right {
    right: -4rem;
  }

  .gene-deb__layout {
    grid-template-columns: 1fr;
    max-width: 42rem;
  }

  .portrait-single {
    width: min(100%, 34rem);
    margin-inline: auto;
  }

  .gene-deb__layout .parchment-note {
    grid-column: auto;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .farewell__layout {
    grid-template-columns: 1fr;
  }

  .farewell__note {
    justify-self: center;
  }

  .community-links {
    grid-template-columns: 1fr;
    width: min(100%, 34rem);
    margin-inline: auto;
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3.1rem);
  }

  .hero {
    min-height: 540px;
    padding-bottom: 6.5rem;
  }

  .hero__dove--left {
    width: 94px;
  }

  .hero__dove--right {
    display: none;
  }

  .hero__scenery--left {
    width: 230px;
  }

  .hero__scenery--right {
    width: 210px;
  }

  .timeline {
    grid-template-columns: 1fr;
    width: min(100%, 29rem);
    margin-inline: auto;
  }

  .timeline__item {
    padding: 0.35rem 0 1.5rem 2.6rem;
    text-align: left;
  }

  .timeline__item::before {
    top: 0.5rem;
    left: 0.7rem;
    transform: none;
  }

  .timeline__item::after {
    position: absolute;
    top: 1.35rem;
    bottom: -0.5rem;
    left: 1.07rem;
    width: 1px;
    background: var(--line);
    content: "";
  }

  .timeline__item:last-child::after {
    display: none;
  }

  .tributes__flower,
  .gene-deb__flowers,
  .gene-deb__lilies {
    opacity: 0.48;
  }

  .tribute-card__portrait,
  .tribute-card__mark {
    float: none;
  }

  .tribute-card__portrait {
    margin: 0 auto 1rem;
  }

  .tribute-card__mark {
    margin: 0 0 -0.5rem;
  }

  .tribute-card__mark--close {
    margin: -0.35rem 0 -1rem;
  }

  .tribute-card__footer {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .site-header__inner {
    width: min(100% - 1rem, 100%);
    gap: 0.5rem;
  }

  .brand {
    gap: 0.4rem;
  }

  .brand__shield {
    width: 46px;
    height: 46px;
  }

  .brand__name {
    font-size: 1.45rem;
  }

  .brand__tagline {
    letter-spacing: 0.1em;
  }

  .mobile-nav summary {
    width: 48px;
    justify-content: center;
    color: transparent;
    font-size: 0;
  }

  .mobile-nav summary::before {
    width: 22px;
    height: 15px;
    border-top: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    box-shadow: inset 0 5px 0 -3px var(--white);
    content: "";
  }

  .page-shell {
    width: min(100% - 1.5rem, 100%);
  }

  .hero {
    min-height: 760px;
    padding-top: 3.5rem;
    padding-bottom: 14rem;
  }

  .hero__lead br {
    display: none;
  }

  .hero__reflection {
    padding-inline: 0.35rem;
  }

  .portrait-single {
    width: min(100%, 22rem);
  }

  .history,
  .tributes,
  .farewell,
  .connected,
  .gene-deb {
    padding-top: 3rem;
  }

  .connected {
    padding-bottom: 8rem;
  }

  .community-link {
    min-height: 72px;
  }

  .connected__flowers--left {
    left: -4rem;
  }

  .connected__flowers--right {
    right: -3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  @page {
    margin: 0.7in;
  }

  html,
  body {
    overflow: visible;
    color: #111;
    background: #fff;
    font-size: 11pt;
  }

  .skip-link,
  .site-nav,
  .mobile-nav,
  .decorative,
  .noscript-note {
    display: none !important;
  }

  .site-header {
    position: static;
    color: #111;
    background: #fff;
    border-bottom: 1px solid #777;
    box-shadow: none;
  }

  .brand {
    color: #111;
  }

  .sky-section,
  .marble-section,
  .tribute-card,
  .community-link,
  .parchment-note,
  .empty-tributes {
    color: #111;
    background: #fff;
    box-shadow: none;
  }

  .sky-section,
  .marble-section {
    overflow: visible;
    break-inside: avoid;
  }

  .hero {
    min-height: 0;
    padding: 1.4rem 0;
  }

  .gene-deb,
  .history,
  .tributes,
  .farewell,
  .connected {
    padding: 1.25rem 0;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tribute-grid {
    grid-template-columns: 1fr 1fr;
  }

  .community-links {
    grid-template-columns: 1fr;
  }

  .community-link {
    min-height: 0;
    padding: 0.25rem 0;
    border: 0;
  }

  a {
    color: #111;
    text-decoration: none;
  }

  .site-footer {
    color: #111;
    background: #fff;
    border-top: 1px solid #777;
  }

  .site-footer__source {
    color: #333;
  }
}
