@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: block;
  src: url("assets/cormorant-garamond-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: block;
  src: url("assets/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("assets/pt-serif-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("assets/pt-serif-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #1a191a;
}

body {
  color: #111;
  font-family: Manrope, sans-serif;
  font-size: clamp(18px, 1.1458333333vw, 22px);
  font-weight: 300;
  letter-spacing: -0.1px;
  line-height: 1.4;
}

img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-block;
  height: auto;
  max-width: 100%;
}

.site-menu {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: rgba(35, 34, 35, 0.58);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  transform: translateX(-50%);
}

.site-menu a {
  padding: 7px 16px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.site-menu a:active {
  transform: scale(0.98);
}

.site-menu .is-active {
  color: #1a191a;
  background: rgba(255, 255, 255, 0.94);
}

.memorial {
  min-height: 100vh;
  padding: 1vw 2vw;
  display: flex;
  flex-direction: row;
  background: #1a191a;
}

.portrait-panel,
.tribute-panel {
  width: 50%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  justify-content: center;
  align-items: center;
}

.portrait {
  width: 99%;
  max-width: 99%;
}

.ornament {
  width: 30%;
  max-width: 30%;
}

h1,
.dates,
.farewell {
  margin: 0;
  padding: 0;
  line-height: 1;
  text-align: center;
  color: #e7e7e7;
}

h1 {
  font-family: "Cormorant Garamond", sans-serif;
  font-size: 2.9vw;
  font-weight: 700;
}

.dates {
  font-family: "PT Serif", sans-serif;
  font-size: 1.6vw;
  font-weight: 400;
}

.divider {
  width: 100%;
  padding-block: 15px;
  display: flex;
  justify-content: center;
}

.divider::before {
  width: 27%;
  border-top: 0.1vw solid #e7e7e7;
  content: "";
}

.obituary,
.farewell {
  width: 78%;
  max-width: 78%;
  font-family: "Cormorant Garamond", sans-serif;
  color: #e7e7e7;
  text-align: center;
}

.obituary {
  font-size: 1vw;
  font-weight: 500;
  line-height: 1.4;
}

.farewell {
  font-size: 1.5vw;
  font-weight: 600;
}

.farewell a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.farewell a:hover,
.farewell a:focus {
  color: #fda304;
}

@media (max-width: 1365px) {
  .memorial {
    padding: 50px 20px 20px;
    flex-direction: column;
    gap: 30px;
    background: #262626;
  }

  .portrait-panel,
  .tribute-panel {
    width: 100%;
    padding: 20px;
    gap: 30px;
  }

  .portrait {
    width: 100%;
    max-width: 100%;
  }

  .ornament {
    width: 397px;
    max-width: 397px;
  }

  h1 {
    font-size: 58px;
  }

  .dates {
    font-size: 55px;
  }

  .divider {
    padding-block: 0;
  }

  .divider::before {
    border-top-width: 0.1vw;
  }

  .obituary,
  .farewell {
    width: 100%;
    max-width: 100%;
  }

  .obituary {
    font-size: 30px;
  }

  .farewell {
    font-size: 33px;
  }
}

@media (max-width: 767px) {
  .site-menu {
    top: 10px;
    width: max-content;
    max-width: calc(100vw - 20px);
  }

  .site-menu a {
    padding: 7px 12px 8px;
    font-size: 15px;
  }

  .memorial {
    padding: 50px 10px 30px;
    gap: 10px;
  }

  .portrait-panel {
    padding: 0;
  }

  .tribute-panel {
    gap: 20px;
  }

  .ornament {
    width: 190px;
    max-width: 190px;
  }

  h1 {
    font-size: 31px;
  }

  .dates {
    font-size: 22px;
  }

  .obituary {
    margin-top: -12px;
    font-size: 15px;
  }

  .farewell {
    font-size: 18px;
  }
}
