:root {
  --page: #f5f0e5;
  --page-soft: #faf6ee;
  --page-deep: #ece3d2;
  --paper: rgba(255, 252, 245, 0.9);
  --paper-strong: rgba(255, 251, 244, 0.97);
  --ink: #22312d;
  --ink-soft: #5f6d68;
  --green: #24483d;
  --green-deep: #18372f;
  --green-soft: #6d8578;
  --slate: #627886;
  --gold: #b79252;
  --gold-soft: rgba(183, 146, 82, 0.24);
  --line: rgba(36, 72, 61, 0.24);
  --line-soft: rgba(36, 72, 61, 0.12);
  --shadow: 0 18px 48px rgba(35, 45, 42, 0.08);
  --shell: min(1180px, calc(100vw - 2rem));
  --measure: 42rem;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Baskerville, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.68;
  background:
    radial-gradient(circle at top left, rgba(214, 182, 114, 0.2), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(132, 169, 189, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 28%),
    repeating-linear-gradient(
      90deg,
      rgba(36, 72, 61, 0.018) 0,
      rgba(36, 72, 61, 0.018) 1px,
      transparent 1px,
      transparent 18px
    ),
    linear-gradient(180deg, var(--page-soft) 0%, var(--page) 38%, var(--page-deep) 100%);
}

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

a {
  color: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.72rem 1rem;
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  background: rgba(248, 243, 235, 0.84);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.8rem;
}

.header-mark {
  margin: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.site-nav a,
.detail-link,
.hero-link {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a,
.detail-link,
.hero-link,
.button {
  position: relative;
}

.site-nav a::after,
.detail-link::after,
.hero-link::after,
.button::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.18rem;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0.36);
  opacity: 0.45;
  transition: transform 150ms ease, opacity 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.detail-link:hover,
.detail-link:focus-visible,
.hero-link:hover,
.hero-link:focus-visible,
.button:hover,
.button:focus-visible {
  color: var(--green);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.detail-link:hover::after,
.detail-link:focus-visible::after,
.hero-link:hover::after,
.hero-link:focus-visible::after,
.button:hover::after,
.button:focus-visible::after {
  transform: scaleX(1);
  opacity: 0.84;
}

.site-nav a:focus-visible,
.detail-link:focus-visible,
.hero-link:focus-visible,
.button:focus-visible,
.gallery-card-link:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.gallery-toggle:focus-visible,
.gallery-collapse-button:focus-visible,
.quote-easter-egg-trigger:focus-visible,
.quote-dialog-next:focus-visible,
.quote-dialog-close:focus-visible {
  outline: 3px solid rgba(132, 169, 189, 0.34);
  outline-offset: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  text-decoration: none;
}

.page-section {
  padding: 2.9rem 0;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.55rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-kicker {
  letter-spacing: 0.12em;
}

.section-heading {
  position: relative;
  max-width: 46rem;
  margin-bottom: 1.3rem;
  padding-bottom: 1rem;
}

.section-heading::after,
.celebration-heading::after,
.written-copy::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(8rem, 32%);
  height: 1px;
  background: linear-gradient(90deg, rgba(36, 72, 61, 0.68), rgba(183, 146, 82, 0.52), transparent);
}

.section-heading-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading-centered::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-heading h2,
.hero-copy h1,
.intro-panel h2,
.story-card h3,
.passion-card h3,
.celebration-card h3,
.donation-card h2,
.closing-card h2,
.written-copy h2,
.written-aside-title,
.not-found-card h1 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.section-heading h2,
.celebration-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-intro,
.celebration-intro,
.written-intro {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 38rem;
}

.section-heading-centered .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 2.85rem 0 1.55rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(36, 72, 61, 0.28), transparent);
}

.hero-glow {
  position: absolute;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.42;
  pointer-events: none;
}

.hero-glow-left {
  left: -10rem;
  top: -5rem;
  background: radial-gradient(circle, rgba(214, 182, 114, 0.34), transparent 68%);
}

.hero-glow-right {
  right: -11rem;
  top: 2rem;
  background: radial-gradient(circle, rgba(132, 169, 189, 0.26), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 1.85rem;
  align-items: end;
}

.hero-copy {
  align-self: center;
  padding: 0.2rem 0 0;
}

.hero-kicker {
  margin: 0 0 0.78rem;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 0.99rem;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.15rem, 8vw, 5.9rem);
}

.hero-years {
  margin: 0.7rem 0 0.88rem;
  color: #8d6c52;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-tribute {
  margin: 0;
  max-width: 30rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.58;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin-top: 1.15rem;
}

.hero-link {
  font-size: 0.99rem;
  font-weight: 600;
}

.hero-notes {
  margin: 1.12rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}

.hero-notes li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-notes li:not(:last-child)::after {
  content: "•";
  margin-left: 0.85rem;
  color: var(--gold);
}

.hero-photo-card {
  position: relative;
  margin: 0;
  padding: 0.72rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.9), rgba(248, 243, 235, 0.92));
  border: 1px solid rgba(36, 72, 61, 0.14);
  box-shadow: var(--shadow);
}

.hero-photo-card::before {
  content: "";
  position: absolute;
  inset: -0.8rem -0.8rem auto auto;
  width: 3.9rem;
  height: 3.9rem;
  border-top: 1px solid rgba(183, 146, 82, 0.64);
  border-right: 1px solid rgba(183, 146, 82, 0.64);
  pointer-events: none;
}

.hero-rotator {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid rgba(36, 72, 61, 0.16);
  background: rgba(232, 224, 210, 0.82);
}

.hero-rotator-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-rotator-image.is-active {
  opacity: 1;
}

.hero-photo-fallback {
  min-height: 28rem;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(36, 72, 61, 0.16);
  background: linear-gradient(180deg, rgba(245, 234, 213, 0.94), rgba(235, 243, 239, 0.9));
}

.hero-photo-monogram {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.2rem);
  color: rgba(36, 72, 61, 0.82);
  letter-spacing: 0.08em;
}

.celebration-section {
  padding-top: 1rem;
  padding-bottom: 2.45rem;
}

.celebration-shell {
  position: relative;
  padding: 1.2rem 0 0;
  border-top: 3px double rgba(36, 72, 61, 0.18);
}

.celebration-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 32%),
    repeating-linear-gradient(
      90deg,
      rgba(36, 72, 61, 0.018) 0,
      rgba(36, 72, 61, 0.018) 1px,
      transparent 1px,
      transparent 14px
    );
  pointer-events: none;
}

.celebration-heading {
  position: relative;
  max-width: 42rem;
  padding-bottom: 0.95rem;
}

.celebration-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 1.15rem;
  align-items: start;
}

.celebration-card {
  padding: 1rem 1rem 0.98rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.75), rgba(249, 245, 237, 0.58));
}

.celebration-card-main {
  box-shadow: inset 0 0 0 1px rgba(36, 72, 61, 0.05);
}

.celebration-directions {
  display: grid;
  gap: 0.8rem;
}

.celebration-card h3 {
  margin-bottom: 0.52rem;
  font-size: 1.72rem;
}

.celebration-date-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-items: center;
  margin: 0 0 0.5rem;
  color: var(--green-deep);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.celebration-address,
.celebration-card p:last-child,
.intro-panel p:last-child,
.donation-card p,
.closing-card p,
.footer-note,
.gallery-note,
.gallery-expanded-note,
.written-copy p,
.written-aside-note {
  color: var(--ink-soft);
}

.celebration-address {
  margin: 0 0 0.8rem;
  font-size: 0.98rem;
}

.celebration-directions-intro {
  margin: 0;
  font-size: 0.95rem;
}

.direction-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.direction-item {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(36, 72, 61, 0.1);
}

.direction-item:first-child {
  padding-top: 0;
  border-top: none;
}

.direction-item dt {
  margin: 0 0 0.24rem;
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.direction-item dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.62;
}

.intro-panels,
.story-section,
.passions-section,
.written-section,
.donation-section,
.closing-section,
.gallery-section {
  border-top: 1px solid var(--line-soft);
}

.intro-panels {
  padding-top: 2.15rem;
  padding-bottom: 2.3rem;
}

.intro-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.intro-panel {
  padding-left: 1rem;
  border-left: 1px solid rgba(36, 72, 61, 0.18);
}

.intro-panel h2 {
  margin-bottom: 0.5rem;
  font-size: 1.55rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(240px, 0.62fr);
  gap: 1.9rem;
  align-items: start;
}

.story-stack {
  display: grid;
  gap: 1.18rem;
}

.story-card {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.story-card h3 {
  margin-bottom: 0.66rem;
  font-size: 1.68rem;
}

.story-card p {
  max-width: var(--measure);
  margin: 0 0 0.88rem;
  font-family: var(--serif);
  font-size: 1.11rem;
  line-height: 1.76;
}

.story-card:first-child p:first-of-type::first-letter {
  float: left;
  margin: 0.08rem 0.42rem 0 0;
  color: var(--green);
  font-size: 3.3rem;
  line-height: 0.9;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.quote-column {
  position: sticky;
  top: 5rem;
  display: grid;
  gap: 0.95rem;
  padding-top: 3.55rem;
}

.pull-quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(183, 146, 82, 0.56);
}

.pull-quote p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.5;
}

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

.passion-card {
  padding-top: 0.82rem;
  border-top: 1px solid var(--line);
}

.passion-card h3 {
  margin-bottom: 0.46rem;
  font-size: 1.42rem;
}

.passion-card p {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
}

.written-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(228, 236, 229, 0.1), rgba(249, 245, 237, 0.12));
}

.written-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.74fr);
  gap: 1.5rem;
  align-items: start;
}

.written-copy {
  position: relative;
  padding-bottom: 1rem;
}

.written-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.written-copy p {
  max-width: 40rem;
}

.written-aside {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.75), rgba(249, 245, 237, 0.58));
}

.written-book-figure {
  margin: 0;
}

.written-book-frame {
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(36, 72, 61, 0.14);
  box-shadow: 0 12px 28px rgba(35, 45, 42, 0.08);
}

.written-book-image {
  display: block;
  width: 100%;
  max-width: 18rem;
  margin: 0 auto;
  border: 1px solid rgba(36, 72, 61, 0.12);
}

.written-aside-label {
  margin: 0 0 0.45rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.written-aside-title {
  font-size: 1.55rem;
}

.written-aside-note {
  margin-bottom: 0;
}

.donation-card,
.closing-card,
.not-found-card {
  max-width: 50rem;
}

.donation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.35rem;
  align-items: end;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.donation-card h2,
.closing-card h2 {
  margin-bottom: 0.6rem;
  font-size: 2rem;
}

.donation-link {
  white-space: nowrap;
}

.closing-card {
  margin: 0 auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing-card p {
  margin-left: auto;
  margin-right: auto;
  max-width: 39rem;
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), transparent 28%),
    linear-gradient(180deg, rgba(228, 236, 229, 0.17), rgba(249, 245, 237, 0.16));
}

.gallery-section-final {
  padding-bottom: 3.25rem;
}

.gallery-note {
  margin: -0.3rem auto 1rem;
  max-width: 42rem;
  text-align: center;
  font-size: 0.95rem;
}

.gallery-preview-shell {
  position: relative;
}

.gallery-preview-shell-faded::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3rem;
  background: linear-gradient(180deg, transparent, rgba(245, 240, 229, 0.95));
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.82rem;
}

.gallery-card {
  margin: 0;
}

.gallery-card-link {
  display: block;
  text-decoration: none;
}

.gallery-card-mat {
  display: block;
  padding: 0.42rem;
  background: var(--paper-strong);
  border: 1px solid rgba(36, 72, 61, 0.16);
  box-shadow: 0 10px 26px rgba(35, 45, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.gallery-card-link:hover .gallery-card-mat,
.gallery-card-link:focus-visible .gallery-card-mat {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(35, 45, 42, 0.08);
  border-color: rgba(183, 146, 82, 0.36);
}

.gallery-card-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(36, 72, 61, 0.08);
  background: rgba(232, 224, 210, 0.8);
}

.gallery-collapsible {
  margin-top: 0.85rem;
}

.gallery-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--green);
  font-weight: 600;
  list-style: none;
}

.gallery-toggle::-webkit-details-marker {
  display: none;
}

.gallery-toggle::before {
  content: "+";
  display: inline-block;
  width: 1.2rem;
  color: var(--gold);
  font-size: 1.1rem;
  text-align: center;
}

.gallery-collapsible[open] .gallery-toggle::before {
  content: "−";
}

.gallery-toggle-label-open {
  display: none;
}

.gallery-collapsible[open] .gallery-toggle-label-closed {
  display: none;
}

.gallery-collapsible[open] .gallery-toggle-label-open {
  display: inline;
}

.gallery-expanded {
  margin-top: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.gallery-expanded-note {
  margin: 0 0 0.95rem;
  max-width: 38rem;
  font-size: 0.94rem;
}

.gallery-collapse-button {
  margin-top: 1rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.gallery-empty {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.gallery-empty p {
  margin: 0;
  color: var(--ink-soft);
}

.site-footer {
  padding: 1rem 0 2.4rem;
  border-top: 1px solid var(--line-soft);
}

.quote-easter-egg {
  position: fixed;
  top: clamp(8rem, 38vh, 22rem);
  right: 1rem;
  z-index: 950;
}

.quote-easter-egg-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(4.5rem, 7vw, 5.75rem);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.quote-easter-egg-halo {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 251, 244, 0.96), rgba(255, 251, 244, 0.2) 68%, transparent 72%);
  box-shadow:
    0 10px 26px rgba(35, 45, 42, 0.12),
    0 0 0 1px rgba(183, 146, 82, 0.18);
}

.quote-easter-egg-image {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 10px 24px rgba(24, 55, 47, 0.22));
  opacity: 0.96;
  transform: translateY(0);
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
  animation: quote-easter-egg-drift 10s ease-in-out infinite;
}

.quote-easter-egg-trigger:hover .quote-easter-egg-image,
.quote-easter-egg-trigger:focus-visible .quote-easter-egg-image {
  opacity: 1;
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 30px rgba(24, 55, 47, 0.24));
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0.15rem 0;
}

.footer-test {
  color: var(--green-deep);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-dialog {
  width: min(96vw, 54rem);
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
}

.quote-dialog::backdrop {
  background: rgba(31, 40, 38, 0.56);
}

.quote-dialog-surface {
  display: grid;
  gap: 1rem;
  max-height: calc(100dvh - 1rem);
  padding: 1.35rem 1.4rem 1.15rem;
  overflow-y: auto;
  background:
    radial-gradient(circle at top center, rgba(216, 183, 116, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(252, 248, 241, 0.98), rgba(246, 239, 229, 0.98));
  border: 1px solid rgba(36, 72, 61, 0.16);
  box-shadow: 0 24px 58px rgba(18, 24, 22, 0.22);
}

.quote-dialog-copy {
  text-align: center;
}

.quote-dialog-copy h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.quote-dialog-blockquote {
  margin: 0.35rem 0 0;
}

.quote-dialog-text {
  margin: 0;
  padding: 0 0.15rem;
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4.8vw, 2.7rem);
  line-height: 1.34;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.quote-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.quote-dialog-next,
.quote-dialog-close {
  appearance: none;
  border: 1px solid rgba(36, 72, 61, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  padding: 0.56rem 0.82rem;
  font: inherit;
  cursor: pointer;
}

.quote-dialog-close-form {
  margin: 0;
}

.lightbox-dialog {
  width: min(94vw, 1100px);
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
}

.lightbox-dialog::backdrop {
  background: rgba(31, 40, 38, 0.66);
}

.lightbox-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(252, 248, 241, 0.98), rgba(246, 239, 229, 0.98));
  border: 1px solid rgba(36, 72, 61, 0.16);
  box-shadow: 0 24px 58px rgba(18, 24, 22, 0.22);
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem 0;
}

.lightbox-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lightbox-nav,
.lightbox-close {
  appearance: none;
  border: 1px solid rgba(36, 72, 61, 0.16);
  background: rgba(255, 255, 255, 0.62);
  color: var(--green);
  padding: 0.5rem 0.72rem;
  font: inherit;
  cursor: pointer;
}

.lightbox-nav[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.lightbox-close-form {
  margin: 0;
}

.lightbox-figure {
  margin: 0;
  padding: 0.5rem 0.95rem 0.95rem;
}

.lightbox-frame {
  padding: 0.62rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(36, 72, 61, 0.14);
}

.lightbox-frame img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin: 0 auto;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 0;
}

.not-found-card {
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

@keyframes quote-easter-egg-drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

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

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

  .hero-rotator-image {
    transition: none;
  }

  .quote-easter-egg-image {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .celebration-grid,
  .story-grid,
  .written-grid,
  .donation-card {
    grid-template-columns: 1fr;
  }

  .quote-column {
    position: static;
    padding-top: 0.35rem;
  }
}

@media (max-width: 820px) {
  .page-section {
    padding: 2.7rem 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 2.45rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 12vw, 4.45rem);
  }

  .hero-rotator {
    aspect-ratio: 4 / 4.6;
  }

  .intro-panel-grid,
  .passions-grid {
    grid-template-columns: 1fr;
  }

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

  .lightbox-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 1rem, 100%);
  }

  .quote-easter-egg {
    top: auto;
    right: 0.55rem;
    bottom: 0.85rem;
  }

  .quote-easter-egg-trigger {
    width: 4.1rem;
  }

  .hero-notes {
    display: grid;
    gap: 0.38rem;
  }

  .hero-notes li:not(:last-child)::after {
    content: "";
    margin: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .lightbox-actions {
    flex-wrap: wrap;
  }

  .quote-dialog-surface {
    max-height: calc(100dvh - 0.75rem);
    padding: 1rem 0.95rem 0.95rem;
  }
}
