:root {
  --ink: #1b110c;
  --brown: #5c2f1b;
  --rust: #9b4f2f;
  --gold: #d3a85b;
  --cream: #fff8eb;
  --blue: #c7ebff;
  --lavender: #e4b6df;
  --glass: rgba(20, 13, 10, 0.76);
  --line: rgba(255, 255, 255, 0.20);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #1d1714;
  color: var(--cream);
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.8;
}

body::selection {
  background: var(--gold);
  color: var(--ink);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: #000;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 7, 7, 0.22), rgba(8, 7, 7, 0.72)),
    radial-gradient(circle at 50% 35%, rgba(255, 192, 109, 0.16), transparent 36%),
    url("https://fthmb.tqn.com/hOCfEr6F1J8fXgZAKDBRVfplu7k=/2117x1416/filters:fill(auto,1)/GettyImages-159574647-593163745f9b589eb459459b.jpg")
    center / cover no-repeat;
}

.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(22, 13, 9, 0.70);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Pacifico", cursive;
  font-size: clamp(22px, 3vw, 31px);
  text-decoration: none;
  color: var(--lavender);
  text-shadow: 1px 2px 6px #000;
}

.site-menu {
  display: flex;
  gap: 28px;
}

.site-menu a {
  color: var(--cream);
  font-size: 15px;
  text-decoration: none;
  transition: color .2s ease;
}

.site-menu a:hover,
.site-menu a:focus {
  color: var(--blue);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 27px;
  height: 2px;
  margin: 5px 0;
  background: white;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 120px 20px 80px;
  text-align: center;
}

.hero-content {
  width: min(980px, 94%);
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 28px;
  background: rgba(18, 10, 7, 0.48);
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(13px, 1.8vw, 17px);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Pacifico", cursive;
  font-weight: 400;
}

h1 {
  margin: 0;
  color: var(--lavender);
  font-size: clamp(55px, 11vw, 108px);
  line-height: 1.1;
  text-shadow: 4px 4px 12px rgba(0,0,0,.72);
}

.hero-subtitle {
  margin: 20px 0 32px;
  color: var(--blue);
  font-size: clamp(20px, 3.6vw, 32px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid rgba(255,255,255,.68);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-3px);
}

.button.primary {
  background: var(--cream);
  color: var(--ink);
}

.button.secondary {
  background: rgba(255,255,255,.07);
  color: white;
}

.scroll-cue {
  position: absolute;
  bottom: 20px;
  font-size: 46px;
  line-height: 1;
  text-decoration: none;
  animation: bob 1.8s infinite;
}

.section {
  padding: clamp(70px, 9vw, 120px) 20px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: auto;
}

.story-section {
  background:
    linear-gradient(rgba(20, 11, 7, .73), rgba(20, 11, 7, .83)),
    url("https://render.fineartamerica.com/images/images-profile-flow/400/images/artworkimages/mediumlarge/3/the-magnificent-cross-7-pretty-place-chapel-greenville-sc-panorama-overlook-landscape-art-reid-callaway.jpg")
    center / cover fixed no-repeat;
}

.two-column {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(30px, 6vw, 75px);
  align-items: center;
}

.section-heading h2,
.center-heading h2,
.poem-card h2,
.final-message h2 {
  margin: 0 0 20px;
  color: var(--lavender);
  font-size: clamp(40px, 7vw, 67px);
  line-height: 1.2;
}

.lead {
  color: var(--blue);
  font-size: clamp(17px, 2.2vw, 21px);
}

.story-card,
.poem-card {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow);
}

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

.memories-section {
  background:
    radial-gradient(circle at top left, rgba(156,79,47,.35), transparent 35%),
    linear-gradient(135deg, #21130e, #3b2117 55%, #17100d);
}

.center-heading {
  max-width: 800px;
  margin: 0 auto 45px;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.photo-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform .5s ease, opacity .4s ease;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0,0,0,.78));
}

.photo-card span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  color: white;
  font-family: "Pacifico", cursive;
  font-size: 26px;
  text-align: left;
}

.photo-card:hover img,
.photo-card:focus img {
  transform: scale(1.045);
  opacity: .88;
}

.quote-section {
  display: grid;
  place-items: center;
  min-height: 48vh;
  text-align: center;
  background:
    linear-gradient(rgba(22,11,7,.52), rgba(22,11,7,.72)),
    url("https://fthmb.tqn.com/hOCfEr6F1J8fXgZAKDBRVfplu7k=/2117x1416/filters:fill(auto,1)/GettyImages-159574647-593163745f9b589eb459459b.jpg")
    center / cover fixed no-repeat;
}

.quote-card {
  width: min(920px, 100%);
}

.quote-card p {
  margin: 0;
  color: var(--cream);
  font-family: "Pacifico", cursive;
  font-size: clamp(35px, 6.5vw, 66px);
  line-height: 1.4;
  text-shadow: 3px 3px 11px #000;
}

.poem-section {
  background:
    radial-gradient(circle at center top, rgba(198,150,81,.18), transparent 42%),
    linear-gradient(180deg, #281710, #120d0a);
}

.poem-card {
  width: min(850px, 100%);
  margin: auto;
  text-align: center;
}

.poem-note {
  margin-top: -12px;
  color: var(--blue);
  font-style: italic;
}

.poem {
  margin-top: 38px;
  color: #eff9ff;
  font-size: clamp(16px, 2vw, 19px);
}

.poem p {
  margin: 0 0 28px;
}

.final-section {
  display: grid;
  place-items: center;
  min-height: 55vh;
  text-align: center;
  background:
    linear-gradient(rgba(25,12,7,.58), rgba(25,12,7,.76)),
    url("https://render.fineartamerica.com/images/images-profile-flow/400/images/artworkimages/mediumlarge/3/the-magnificent-cross-7-pretty-place-chapel-greenville-sc-panorama-overlook-landscape-art-reid-callaway.jpg")
    center / cover no-repeat;
}

.final-message {
  width: min(850px, 100%);
  padding: clamp(30px, 6vw, 62px);
  border-radius: 24px;
  background: rgba(14, 10, 9, .64);
  box-shadow: var(--shadow);
}

.final-message p:not(.kicker) {
  color: var(--blue);
  font-size: clamp(19px, 3vw, 27px);
}

.site-footer {
  padding: 26px 18px;
  background: #0f0a08;
  text-align: center;
}

.site-footer p:first-child {
  margin: 0;
  color: var(--lavender);
  font-family: "Pacifico", cursive;
  font-size: clamp(22px, 4vw, 32px);
}

.footer-small {
  margin: 4px 0 0;
  color: rgba(255,255,255,.66);
  font-size: 13px;
}

.lightbox {
  width: min(900px, 94vw);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0,0,0,.88);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  margin: auto;
  border-radius: 18px;
  box-shadow: 0 20px 80px rgba(0,0,0,.75);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  border: 0;
  background: transparent;
  color: white;
  font-size: 42px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (max-width: 850px) {
  .two-column,
  .gallery {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card img {
    min-height: 0;
  }

  .photo-card img {
    aspect-ratio: 4 / 5;
  }

  .story-section,
  .quote-section {
    background-attachment: scroll;
  }
}

@media (max-width: 700px) {
  .menu-button {
    display: block;
  }

  .site-menu {
    position: absolute;
    top: 100%;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(18, 11, 8, .97);
  }

  .site-menu.open {
    display: flex;
  }

  .site-menu a {
    padding: 12px;
  }

  .hero-content {
    padding-inline: 20px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}


.song-section {
  background:
    radial-gradient(circle at 50% 20%, rgba(211,168,91,.18), transparent 40%),
    linear-gradient(145deg, #1a100c, #382016 58%, #160e0b);
}

.song-card {
  width: min(960px, 100%);
  margin: auto;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--glass);
  box-shadow: var(--shadow);
  text-align: center;
}

.song-card h2 {
  margin: 0 0 18px;
  color: var(--lavender);
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.2;
}

.song-copy {
  max-width: 760px;
  margin: 0 auto 30px;
}

.song-note {
  margin: 8px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(255,255,255,.22);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 16px 45px rgba(0,0,0,.48);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.song-link {
  margin-top: 24px;
}


.legacy-section {
  background:
    radial-gradient(circle at center top, rgba(228,182,223,.16), transparent 42%),
    linear-gradient(160deg, #151015, #2b1b25 55%, #100c0f);
}

.legacy-card {
  width: min(900px, 100%);
  margin: auto;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(18, 12, 17, .80);
  box-shadow: var(--shadow);
  text-align: center;
}

.legacy-card h2 {
  margin: 0 0 10px;
  color: var(--lavender);
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.2;
}

.legacy-dates {
  margin: 0 0 18px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .08em;
}

.gallery {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.photo-card {
  min-height: 390px;
}

.photo-card img {
  min-height: 390px;
}

/* 2026 memorial upgrade: Western wood navigation */
.nav-wrap {
  background:
    linear-gradient(90deg, rgba(48, 25, 14, .95), rgba(105, 57, 30, .94) 22%, rgba(60, 30, 16, .96) 48%, rgba(120, 67, 35, .93) 72%, rgba(50, 26, 15, .96)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, rgba(0,0,0,.03) 2px 5px);
  border-top: 1px solid rgba(255, 222, 163, .2);
  border-bottom: 3px solid rgba(29, 13, 7, .85);
  box-shadow: 0 8px 30px rgba(0,0,0,.34), inset 0 -1px rgba(255,224,173,.14);
  backdrop-filter: blur(8px);
}

.brand {
  color: #ffe1a6;
  text-shadow: 0 2px 0 #3a180c, 0 4px 10px #000;
  white-space: nowrap;
}

.site-menu a {
  position: relative;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0,0,0,.75);
}

.site-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -7px;
  height: 2px;
  background: #ffe1a6;
  transition: left .2s ease, right .2s ease;
}

.site-menu a:hover::after,
.site-menu a:focus::after {
  left: 0;
  right: 0;
}

/* Full-screen memories lightbox */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(10, 7, 6, .96);
  color: white;
}

.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; width: min(92vw, 1500px); height: 92vh; display: grid; grid-template-rows: 1fr auto; gap: 12px; place-items: center; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 18px 70px rgba(0,0,0,.7); }
.lightbox figcaption { font-size: clamp(15px, 2vw, 20px); color: #ffe1a6; text-align: center; padding: 0 70px 18px; }
.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(43, 23, 13, .78);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.lightbox-close { top: 18px; right: 20px; width: 50px; height: 50px; border-radius: 50%; font-size: 34px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 72px; border-radius: 16px; font-size: 50px; line-height: 1; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-close:hover, .lightbox-nav:hover, .lightbox-close:focus, .lightbox-nav:focus { background: rgba(122, 69, 34, .95); outline: 2px solid #ffe1a6; }

/* Floating Our Song controller. User click starts playback; browsers do not permit reliable unsolicited autoplay. */
.music-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(255,225,166,.6);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(105,57,30,.96), rgba(48,25,14,.98));
  color: #fff8eb;
  font: 700 14px/1.2 "Merriweather", Georgia, serif;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  cursor: pointer;
}
.music-dock:hover, .music-dock:focus { transform: translateY(-2px); outline: 2px solid #ffe1a6; }
.music-icon { font-size: 21px; color: #ffe1a6; }
.music-dock.is-playing .music-icon { animation: musicPulse 1.2s ease-in-out infinite; }
@keyframes musicPulse { 50% { transform: scale(1.18) rotate(-8deg); } }

@media (max-width: 900px) {
  .brand { font-size: clamp(18px, 4.8vw, 25px); }
  .lightbox-nav { width: 46px; height: 62px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .music-label { display: none; }
  .music-dock { width: 52px; height: 52px; padding: 0; justify-content: center; }
}
