:root {
  --ink: #242925;
  --muted: #68716b;
  --forest: #172d27;
  --forest-soft: #274a40;
  --cream: #f5f0e6;
  --paper: #fffdf9;
  --gold: #c49a68;
  --line: rgba(36, 41, 37, .14);
  --shadow: 0 24px 70px rgba(18, 35, 30, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
font { color: inherit !important; font-family: inherit !important; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--forest);
  font: 600 13px/1.4 "DM Sans", sans-serif;
}
.skip-link:focus { transform: none; }

.memorial-header {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(196,154,104,.19), transparent 28%),
    radial-gradient(circle at 82% 76%, rgba(111,148,132,.14), transparent 32%),
    linear-gradient(145deg, #101c19, var(--forest) 58%, #203d35);
}
.memorial-header::before,
.memorial-header::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.memorial-header::before { width: 430px; height: 430px; top: -250px; right: 8%; }
.memorial-header::after { width: 600px; height: 600px; bottom: -470px; left: -120px; }
.memorial-nav {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font: 600 12px/1.4 "DM Sans", sans-serif;
  letter-spacing: .04em;
}
.memorial-nav a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s ease; }
.memorial-nav a:hover, .memorial-nav a:focus-visible { color: #fff; }
.back-link span { display: inline-block; margin-right: 8px; transition: transform .2s ease; }
.back-link:hover span { transform: translateX(-4px); }
.header-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 105px 0 110px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font: 600 10px/1.4 "DM Sans", sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2 { font-weight: 500; }
h1 {
  margin: 0;
  font-size: clamp(72px, 11vw, 142px);
  line-height: .93;
  letter-spacing: -.045em;
}
.dates {
  margin: 22px 0 0;
  color: rgba(255,255,255,.64);
  font: 500 13px/1.5 "DM Sans", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dates span { margin: 0 12px; color: var(--gold); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px 0 22px; color: var(--gold); font-size: 12px; }
.ornament span { width: 50px; height: 1px; background: rgba(196,154,104,.45); }
.dedication { max-width: 560px; margin: 0 auto; color: rgba(255,255,255,.76); font-size: 20px; font-style: italic; }

.memorial-main { position: relative; z-index: 2; width: min(1040px, calc(100% - 40px)); margin: -48px auto 100px; }
.eulogy { padding: 76px 95px 90px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.eulogy > p:not(.photo-row):not(.byline):not(.eyebrow) { max-width: 720px; margin: 0 auto 28px; }
.byline {
  max-width: 720px;
  margin: 0 auto 54px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 12px/1.5 "DM Sans", sans-serif;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.byline strong { color: var(--ink); }
.eulogy h2 {
  max-width: 720px;
  margin: 72px auto 26px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 15px;
  margin: 46px -34px 50px;
}
.photo-row font { display: contents; }
.photo-row img {
  width: 100% !important;
  height: 430px !important;
  object-fit: cover;
  border: 0;
  border-radius: 14px;
  filter: saturate(.92) contrast(.97);
}
.photo-row-opening { margin-top: 0; }
.photo-row-opening img:first-child { object-position: center 38%; }
.photo-row-opening img:last-child { object-position: center 28%; }
.photo-row-single { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.photo-row-single img { height: 520px !important; }
.photo-row-final { grid-template-columns: repeat(3, 1fr); margin-top: 58px; }
.photo-row-final img { height: 330px !important; }

.song-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 25px;
  max-width: 780px;
  margin: 78px auto 0;
  padding: 34px;
  border-radius: 18px;
  background: var(--forest);
  color: #fff;
}
.song-mark { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: var(--gold); font: 400 30px/1 "Newsreader", serif; }
.song-card .eyebrow { margin-bottom: 6px; }
.song-card h2 { margin: 0 0 19px; padding: 0; border: 0; color: #fff; font-size: 30px; }
.song-card audio { width: 100%; height: 43px; display: block; margin: 0 0 11px; }
.download-link { color: rgba(255,255,255,.63); font: 600 11px/1.4 "DM Sans", sans-serif; text-decoration: none; }
.download-link:hover { color: #fff; }
.closing-note { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; margin-top: 70px; color: var(--gold); text-align: center; }
.closing-note p { margin: 0; color: var(--forest); font-size: 24px; font-style: italic; }

.memorial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px max(20px, calc((100% - 1160px) / 2));
  background: #101c19;
  color: rgba(255,255,255,.52);
  font: 500 12px/1.5 "DM Sans", sans-serif;
}
.memorial-footer p { margin: 0; }
.memorial-footer a { color: #d9b78d; text-decoration: none; }
.memorial-footer a:hover { color: #fff; }

@media (max-width: 800px) {
  body { font-size: 18px; }
  .memorial-header { min-height: 540px; }
  .header-content { padding-top: 90px; }
  .eulogy { padding: 62px 42px 72px; }
  .photo-row { margin-inline: 0; }
  .photo-row img { height: 350px !important; }
  .photo-row-single img { height: 440px !important; }
  .photo-row-final { grid-template-columns: 1fr 1fr; }
  .photo-row-final img:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .memorial-nav { width: calc(100% - 28px); height: 70px; }
  .memorial-nav > a:last-child { display: none; }
  .header-content { width: calc(100% - 28px); padding: 92px 0 105px; }
  h1 { font-size: 68px; }
  .dates { font-size: 10px; }
  .dedication { font-size: 17px; }
  .memorial-main { width: calc(100% - 20px); margin-top: -32px; }
  .eulogy { padding: 46px 20px 60px; border-radius: 19px; }
  .byline { margin-bottom: 34px; }
  .eulogy h2 { margin-top: 58px; font-size: 35px; }
  .photo-row, .photo-row-final { grid-template-columns: 1fr; gap: 10px; margin: 36px 0 40px; }
  .photo-row img, .photo-row-single img, .photo-row-final img { height: auto !important; max-height: 500px; }
  .photo-row-final img:last-child { grid-column: auto; }
  .song-card { grid-template-columns: 1fr; margin-top: 55px; padding: 25px 20px; }
  .song-mark { width: 58px; height: 58px; }
  .song-card h2 { font-size: 27px; }
  .memorial-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
