:root {
  color-scheme: dark;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --ink: #111722;
  --panel: #111722;
  --paper: #e9e5dc;
  --muted: #b4b7bd;
  --line: rgba(224, 228, 234, 0.16);
  --accent: #c49a76;
}

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

html {
  overflow-x: clip;
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 3%, rgba(61, 69, 82, 0.22), transparent 46rem),
    linear-gradient(180deg, #111722 0%, #151b27 58%, #111722 100%);
  color: var(--paper);
}

.memorial {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2rem, 5vw, 4.75rem) clamp(1rem, 4vw, 3.5rem) 2rem;
}

.memorial__memories {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(82vh, 48rem);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 26%, #000 48%, #000 52%, transparent 72%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 26%, #000 48%, #000 52%, transparent 72%);
}

.memory-frame {
  position: absolute;
  top: clamp(12rem, 23vh, 17rem);
  width: min(36vw, 34rem);
  height: clamp(13rem, 28vw, 22rem);
}

.memory-frame--left {
  left: -1.5rem;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.8) 44%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.8) 44%, transparent 100%);
}

.memory-frame--right {
  right: -1.5rem;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.78) 42%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.78) 42%, transparent 100%);
}

.memory-frame--right::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 23, 34, 0.97) 0%, rgba(17, 23, 34, 0.78) 28%, transparent 54%);
  content: "";
  pointer-events: none;
}

.memory {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.77) brightness(0.78);
}

.memory--left {
  object-position: 74% center;
}

.memory--right {
  object-position: 100% center;
}

.memorial__content {
  width: min(100%, 68rem);
  margin-inline: auto;
}

.masthead {
  position: relative;
  isolation: isolate;
  width: min(100%, 55.0625rem);
  margin: 0 auto clamp(2rem, 4.5vw, 3.75rem);
  padding: 0.5rem 0;
}

.masthead::before {
  position: absolute;
  z-index: -1;
  inset: 10% -12%;
  background-image: url("/images/banner-2010.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  content: "";
  filter: blur(1.6rem);
  opacity: 0.32;
  transform: scale(1.1);
}

.masthead img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(230, 232, 235, 0.16);
  box-shadow: 0 0.9rem 3rem rgba(0, 0, 0, 0.26);
}

.notice {
  position: relative;
  width: min(100%, 53rem);
  margin-inline: auto;
  border: 1px solid rgba(228, 232, 238, 0.19);
  background: rgba(13, 18, 27, 0.91);
  box-shadow: 0 2rem 5.5rem rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.notice__bar {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  background: rgba(229, 233, 239, 0.035);
  color: #e0e2e6;
  font-size: 0.79rem;
  letter-spacing: 0.08em;
}

.notice__label::before {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.65rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  vertical-align: 0.02em;
}

.notice__date {
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.notice__body {
  padding: clamp(1.25rem, 4vw, 2.75rem);
}

.notice__state {
  margin: 0;
  color: #d7d4cb;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  line-height: 1.7;
}

.farewell {
  margin: clamp(1.4rem, 3vw, 2rem) 0 0;
  padding-left: clamp(1rem, 2.5vw, 1.6rem);
  border-left: 2px solid rgba(196, 154, 118, 0.78);
  color: #f0ece3;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 450;
  letter-spacing: 0.055em;
  line-height: 1.9;
}

.farewell p {
  margin: 0;
}

.farewell p + p {
  margin-top: 0.95rem;
}

.farewell__credit {
  margin: 1rem 0 0;
  color: #aeb2ba;
  font-size: 0.8125rem;
  letter-spacing: 0.055em;
  text-align: right;
}

.visitor {
  margin-top: clamp(2rem, 5vw, 3.3rem);
  padding-top: clamp(1.5rem, 3.5vw, 2.35rem);
  border-top: 1px solid var(--line);
}

.visitor__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.visitor h1 {
  max-width: 44rem;
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.45;
  text-wrap: pretty;
}

.visitor__message {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: #c6c8cd;
  font-size: clamp(0.94rem, 1.5vw, 1.02rem);
  line-height: 1.9;
  text-wrap: pretty;
}

.reply {
  margin-top: clamp(1.5rem, 3.5vw, 2.2rem);
}

.reply__action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.reply__button {
  min-height: 2.9rem;
  min-width: 9rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(196, 154, 118, 0.78);
  border-radius: 2px;
  background: rgba(196, 154, 118, 0.18);
  color: #f3e6d8;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  transition: background 180ms ease, border-color 180ms ease;
}

.reply__button:hover:not(:disabled) {
  border-color: #e1b994;
  background: rgba(196, 154, 118, 0.28);
}

.reply__button:focus-visible {
  outline: 2px solid #e1b994;
  outline-offset: 4px;
}

.reply__button:disabled {
  cursor: default;
  opacity: 0.7;
}

.reply__count {
  color: #d0c5b8;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.045em;
}

.reply__status {
  margin: 0.7rem 0 0;
  color: #edc2a0;
  font-size: 0.8rem;
}

.reply__status:empty {
  display: none;
}

.reply__note {
  margin: 0.8rem 0 0;
  color: #aeb2ba;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.archive {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.archive summary {
  display: flex;
  width: fit-content;
  min-height: 3.25rem;
  align-items: center;
  gap: 0.8rem;
  color: #d4d5d8;
  cursor: pointer;
  font-size: 0.88rem;
  letter-spacing: 0.055em;
  list-style: none;
}

.archive summary::-webkit-details-marker {
  display: none;
}

.archive summary::after {
  width: 0.46rem;
  height: 0.46rem;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.archive[open] summary::after {
  transform: rotate(135deg);
}

.archive summary:hover {
  color: #fff;
}

.archive summary:focus-visible {
  border-radius: 1px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.archive__text {
  max-width: 100%;
  margin: 0;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid var(--line);
  color: #c6c8cd;
  font-family: inherit;
  font-size: clamp(0.88rem, 1.45vw, 0.98rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.memorial__footer {
  width: min(100%, 53rem);
  margin: 1.35rem auto 0;
  color: #aeb2ba;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: center;
}

.memorial__footer p {
  margin: 0;
}

@media (min-width: 761px) {
  .memorial {
    padding-top: clamp(2rem, 2.5vw, 3rem);
  }

  .masthead {
    width: min(100%, 53vw, 50rem);
    margin-bottom: clamp(1.5rem, 1.8vw, 2rem);
    padding-block: 0;
  }

  .notice__body {
    padding: clamp(1.25rem, 1.65vw, 1.5rem);
  }

  .farewell {
    margin-top: 1rem;
  }

  .visitor {
    margin-top: clamp(1.75rem, 2.4vw, 2.25rem);
    padding-top: clamp(1.5rem, 1.8vw, 1.75rem);
  }

  .reply {
    margin-top: clamp(1.25rem, 1.5vw, 1.5rem);
  }
}

@media (max-width: 760px) {
  .memorial {
    padding-top: 2rem;
  }

  .memorial__memories {
    height: 34rem;
  }

  .memory {
    opacity: 0.2;
  }

  .memory-frame {
    top: 10rem;
    width: min(76vw, 21rem);
    height: 13rem;
  }

  .memory-frame--left {
    left: -3rem;
  }

  .memory-frame--right {
    display: none;
  }

  .masthead {
    margin-bottom: 1.5rem;
  }

  .masthead::before {
    inset-inline: 1.25rem;
    filter: blur(1.15rem);
    opacity: 0.24;
  }

  .notice__body {
    padding: 1.35rem clamp(1rem, 5vw, 1.5rem) 1.5rem;
  }
}

@media (max-width: 380px) {
  .notice__bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .farewell {
    padding-left: 0.85rem;
    font-size: 1rem;
  }

  .visitor h1 {
    font-size: 1.42rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
