:root {
  color-scheme: dark;
  --ink: #171813;
  --paper: #f2eee4;
  --gold: #baa477;
  --gold-soft: #d8c9a6;
  --sage: #646b59;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: Montserrat, Arial, sans-serif;
}

.memorial {
  display: grid;
  grid-template-columns: minmax(19rem, 35%) 1fr;
  height: 100svh;
  min-height: 38rem;
  overflow: hidden;
}

.tribute {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(186, 164, 119, 0.11), transparent 26%),
    linear-gradient(145deg, #24261f 0%, #171813 68%);
  border-right: 1px solid rgba(216, 201, 166, 0.24);
}

.tribute::before,
.tribute::after {
  position: absolute;
  content: "";
  width: 14rem;
  height: 28rem;
  border: 1px solid rgba(186, 164, 119, 0.12);
  border-radius: 50%;
  transform: rotate(38deg);
  pointer-events: none;
}

.tribute::before {
  top: -15rem;
  left: -5rem;
}

.tribute::after {
  right: -8rem;
  bottom: -19rem;
}

.tribute__content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.eyebrow,
.date,
.dedication,
.film__caption {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--gold-soft);
  font-size: clamp(0.63rem, 0.75vw, 0.75rem);
  font-weight: 500;
}

h1 {
  margin: 0;
  color: #f7f3e9;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.7rem, 5.8vw, 6.7rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.045em;
}

.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: clamp(1.7rem, 3.4vh, 2.7rem) auto 1.35rem;
  color: var(--gold);
  font-size: 0.55rem;
}

.flourish span {
  width: 2.7rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.flourish span:last-child {
  transform: rotate(180deg);
}

.date {
  margin: 0;
  color: #c9c5b9;
  font-size: clamp(0.64rem, 0.75vw, 0.78rem);
}

blockquote {
  margin: clamp(2.2rem, 5vh, 4.2rem) 0 0;
  color: var(--gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 2.65rem);
  font-style: italic;
  line-height: 1.08;
}

.dedication {
  position: absolute;
  right: 1rem;
  bottom: 1.3rem;
  left: 1rem;
  margin: 0;
  color: rgba(216, 201, 166, 0.58);
  font-size: 0.52rem;
  text-align: center;
}

.film {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(2rem, 5vw, 6rem);
  background:
    radial-gradient(circle at 75% 50%, rgba(100, 107, 89, 0.25), transparent 55%),
    #10110e;
}

.film__frame {
  position: relative;
  width: min(100%, calc((100svh - 9rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - 9rem);
  padding: 0.45rem;
  background: rgba(242, 238, 228, 0.04);
  border: 1px solid rgba(216, 201, 166, 0.34);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.42);
}

.film__frame::before,
.film__frame::after {
  position: absolute;
  z-index: 2;
  content: "";
  width: 2.5rem;
  height: 2.5rem;
  pointer-events: none;
}

.film__frame::before {
  top: -0.65rem;
  left: -0.65rem;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.film__frame::after {
  right: -0.65rem;
  bottom: -0.65rem;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.film__splash {
  position: absolute;
  z-index: 3;
  inset: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(100, 107, 89, 0.34), transparent 55%),
    linear-gradient(145deg, #1f211b, #0d0e0c);
  border: 0;
  opacity: 1;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.film__splash::before {
  position: absolute;
  inset: 1rem;
  content: "";
  border: 1px solid rgba(216, 201, 166, 0.18);
  pointer-events: none;
}

.film__splash:hover .film__play,
.film__splash:focus-visible .film__play {
  color: var(--ink);
  background: var(--gold-soft);
  transform: scale(1.07);
}

.film__splash:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: -0.7rem;
}

.film__splash--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.film__play {
  position: relative;
  width: clamp(4rem, 6vw, 5.4rem);
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  color: var(--gold-soft);
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.film__play::after {
  position: absolute;
  top: 50%;
  left: 52%;
  content: "";
  width: 0;
  height: 0;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.85rem solid currentColor;
  transform: translate(-42%, -50%);
}

.film__prompt {
  margin-bottom: 0.75rem;
  color: var(--gold-soft);
  font-size: clamp(0.64rem, 0.8vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.film__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 2.5vw, 2.7rem);
  font-style: italic;
}

.film__caption {
  position: absolute;
  bottom: clamp(1.35rem, 3vh, 2.2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(82%, 50rem);
  color: rgba(216, 201, 166, 0.68);
  font-size: 0.55rem;
}

.film__caption p {
  margin: 0;
  white-space: nowrap;
}

.film__caption a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.film__caption a:hover,
.film__caption a:focus-visible {
  color: var(--paper);
}

.film__line {
  flex: 1;
  height: 1px;
  background: rgba(216, 201, 166, 0.2);
}

@media (max-width: 760px) {
  .memorial {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .tribute {
    min-height: 44svh;
    padding: 2.6rem 1.5rem 3.2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 201, 166, 0.24);
  }

  h1 {
    font-size: clamp(3.8rem, 19vw, 5.8rem);
  }

  blockquote {
    margin-top: 1.5rem;
    font-size: 1.7rem;
  }

  .flourish {
    margin: 1.4rem auto 1rem;
  }

  .dedication {
    display: none;
  }

  .film {
    min-height: 56svh;
    padding: 2.25rem 1rem 4.5rem;
  }

  .film__frame {
    width: 100%;
    max-height: none;
  }

  .film__caption {
    bottom: 1.4rem;
    width: calc(100% - 2rem);
  }

  .film__line,
  .film__caption p {
    display: none;
  }

  .film__caption a {
    margin: auto;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  blockquote {
    margin-top: 1.5rem;
  }

  .film__frame {
    max-height: calc(100svh - 6rem);
    width: min(100%, calc((100svh - 6rem) * 16 / 9));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
