/* Index / Memorial Page – Split Screen */

@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/DMSerifDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/DMSerifDisplay-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

body.index-page {
  background-color: #030303;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* ── Left panel ── */
#memorial-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 6vw;
}

#memorial-text h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

#memorial-text .subtitle {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  color: #d4d4d4;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 36px 0;
}

.divider {
  width: 36px;
  height: 1px;
  background-color: #333;
  margin-bottom: 28px;
}

#memorial-text .dates {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: #d5d5d5;
  letter-spacing: 0.12em;
  margin: 0 0 52px 0;
}

/* Button */
#memorial-text .button {
  display: inline-block;
  background-color: transparent;
  border: 1px solid #333;
  color: #d8d8d8;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  width: fit-content;
  transition: border-color 0.4s, color 0.4s;
  cursor: pointer;
}

#memorial-text .button span {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  display: inline-block;
  position: relative;
  transition: padding-right 0.4s;
}

#memorial-text .button span::after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: opacity 0.4s, right 0.4s;
}

#memorial-text .button:hover {
  border-color: #777;
  color: #ccc;
  background-color: transparent;
}

#memorial-text .button:hover span {
  padding-right: 22px;
}

#memorial-text .button:hover span::after {
  opacity: 1;
  right: 0;
}

/* ── Right panel (portrait) ── */
#portrait-wrap {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  overflow: hidden;
  background-color: #030303;
}

#portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
}

/* subtle gradient to blend portrait into left panel */
#portrait-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #030303 0%, transparent 18%);
  z-index: 1;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  body.index-page {
    flex-direction: column;
    height: auto;
    overflow: auto;
  }

  #portrait-wrap {
    flex: none;
    max-width: 100%;
    height: auto;
  }

  #portrait {
    object-fit: contain;
    height: auto;
  }

  #portrait-wrap::before {
    background: linear-gradient(to bottom, #030303 0%, transparent 20%);
  }

  #memorial-text {
    padding: 48px 8vw 56px;
  }
}
