:root {
  color-scheme: dark;
  --ink: #111313;
  --paper: #e3e1da;
  --muted: #b2b3ab;
  --line: rgba(227, 225, 218, 0.22);
  --moss: #6d7566;
  --ash: #272b28;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button { font: inherit; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(400px, 1.12fr);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  width: 1px;
  height: calc(100% - 72px);
  background: var(--line);
  position: absolute;
  left: 46.4%;
  top: 36px;
  z-index: 2;
}

.hero-copy {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 72px clamp(28px, 8vw, 126px) 64px;
  position: relative;
}

.eyebrow, .section-label, footer p:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
}

.eyebrow { margin-bottom: 28px; }

h1, h2, p { margin-top: 0; }

h1, h2 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 1.18;
  margin-bottom: 32px;
}

.lead {
  font-family: "Noto Serif SC", "Songti SC", serif;
  color: #d2d3cb;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 17px;
}

.intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  margin-bottom: 0;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  position: absolute;
  bottom: 48px;
}

.scroll-cue span {
  display: block;
  height: 1px;
  width: 38px;
  background: var(--muted);
}

.hero-image {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  background: #252a27;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 19, 19, 0.3), rgba(17, 19, 19, 0.03) 50%, rgba(17, 19, 19, 0.25));
  pointer-events: none;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.08) brightness(0.64) sepia(0.13);
}

.hero-image figcaption {
  color: #d1d1ca;
  font-size: 12px;
  line-height: 1.65;
  max-width: 190px;
  position: absolute;
  right: clamp(24px, 5vw, 68px);
  bottom: 48px;
  z-index: 1;
}

.dedication, .archive {
  padding: 136px clamp(28px, 9vw, 150px);
}

.dedication {
  background: var(--paper);
  color: var(--ink);
}

.dedication .section-label, .archive .section-label {
  color: #686a63;
}

.dedication-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(230px, 360px);
  gap: clamp(52px, 13vw, 180px);
  align-items: start;
  margin-top: 62px;
}

h2 {
  font-size: clamp(32px, 3.7vw, 56px);
  line-height: 1.38;
  margin-bottom: 0;
}

.dedication-copy { padding-top: 36px; max-width: 500px; }

.dedication-copy p {
  color: #41443e;
  font-size: 16px;
  line-height: 2;
  margin-bottom: 24px;
}

.dedication-copy p:last-child { margin-bottom: 0; }

.portrait { margin: 0; }

.portrait-frame {
  background: #141614;
  border: 1px solid #6c6e67;
  box-shadow: 11px 11px 0 #b9b8b0;
  padding: 11px;
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 54% center;
  filter: grayscale(1) contrast(1.12) brightness(0.92);
}

.portrait figcaption {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.portrait strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 21px;
  font-weight: 500;
}

.portrait span {
  color: #656760;
  font-size: 12px;
}

.memory-band {
  min-height: 470px;
  background: var(--ash);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 92px clamp(28px, 14vw, 224px);
  overflow: hidden;
  position: relative;
}

.memory-band::before, .memory-band::after {
  content: "";
  position: absolute;
  height: 1px;
  background: rgba(227, 225, 218, 0.16);
}

.memory-band::before { width: 20%; left: 0; top: 66px; }
.memory-band::after { width: 14%; right: 0; bottom: 66px; }

.memory-band p {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.42;
  margin: 0;
  position: relative;
  z-index: 1;
}

.memory-band em {
  color: #b7beb0;
  font-style: normal;
}

.flower {
  width: clamp(125px, 18vw, 225px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  position: relative;
  opacity: 0.9;
}

.flower i {
  width: 31%;
  height: 72%;
  background: #d9d9d0;
  border-radius: 50% 50% 42% 42%;
  position: absolute;
  top: 14%;
  left: 35%;
  transform-origin: 50% 78%;
}

.flower i:nth-child(1) { transform: rotate(0deg); }
.flower i:nth-child(2) { transform: rotate(45deg); }
.flower i:nth-child(3) { transform: rotate(90deg); }
.flower i:nth-child(4) { transform: rotate(135deg); }
.flower i:nth-child(5) { transform: rotate(180deg); }
.flower i:nth-child(6) { transform: rotate(225deg); }
.flower i:nth-child(7) { transform: rotate(270deg); }
.flower i:nth-child(8) { transform: rotate(315deg); }

.flower b {
  display: block;
  width: 27%;
  aspect-ratio: 1;
  background: #707766;
  border-radius: 50%;
  position: absolute;
  left: 37%;
  top: 37%;
}

.archive {
  background: #171a18;
}

.archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 62px;
}

.archive-head > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 220px;
  margin-bottom: 8px;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 90px;
}

.archive-list article {
  min-height: 190px;
  padding: 25px 26px 24px 0;
  border-right: 1px solid var(--line);
}

.archive-list article:not(:first-child) { padding-left: 26px; }
.archive-list article:last-child { border-right: 0; }

.archive-list span {
  color: #aeb4a8;
  font-size: 12px;
}

.archive-list p {
  color: #e2e0d8;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  line-height: 1.8;
  margin: 38px 0 0;
}

.tribute {
  background: #c8c8c0;
  color: var(--ink);
  min-height: 530px;
  padding: 92px 28px;
  display: grid;
  place-items: center;
  text-align: center;
}

.tribute-inner { max-width: 520px; }
.tribute .section-label { color: #60645e; margin-bottom: 36px; }
.tribute h2 { margin-bottom: 18px; }

.tribute-inner > p:not(.section-label):not(.tribute-count) {
  color: #4d504b;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 34px;
}

.tribute button {
  appearance: none;
  border: 1px solid #333733;
  border-radius: 0;
  color: #e3e1da;
  background: #242824;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tribute button:hover { background: #596255; }
.tribute button:active { transform: translateY(1px); }
.tribute button:focus-visible { outline: 2px solid #111313; outline-offset: 4px; }

.button-flower { color: #d8dacd; font-size: 17px; line-height: 1; }

.tribute-count {
  color: #62655f;
  font-size: 12px;
  margin: 22px 0 0;
}

footer {
  background: var(--ink);
  padding: 30px clamp(28px, 9vw, 150px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

footer p:first-child { color: #d5d3cc; font-size: 12px; margin-bottom: 0; }
footer p:last-child { text-align: right; margin-bottom: 0; }

@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; }
  .hero::before { display: none; }
  .hero-copy { min-height: 64svh; padding: 62px 28px 86px; }
  h1 { font-size: 48px; margin-bottom: 25px; }
  .scroll-cue { bottom: 34px; }
  .hero-image, .hero-image img { min-height: 47svh; height: 47svh; }
  .hero-image img { object-position: 56% center; }
  .hero-image figcaption { bottom: 27px; right: 28px; max-width: 180px; }
  .dedication, .archive { padding-top: 88px; padding-bottom: 88px; }
  .dedication-grid { grid-template-columns: 1fr; gap: 42px; margin-top: 42px; }
  .dedication-copy { padding-top: 28px; }
  .portrait { max-width: 300px; }
  .memory-band { min-height: 390px; padding: 70px 28px; gap: 18px; }
  .memory-band::before { top: 35px; }
  .memory-band::after { bottom: 35px; }
  .flower { width: 115px; margin-right: -20px; }
  .archive-head { display: block; margin-top: 42px; }
  .archive-head > p { margin-top: 18px; margin-bottom: 0; }
  .archive-list { grid-template-columns: 1fr; margin-top: 50px; }
  .archive-list article, .archive-list article:not(:first-child) { min-height: auto; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .archive-list article:last-child { border-bottom: 0; }
  .archive-list p { margin-top: 16px; }
  .tribute { min-height: 465px; }
  footer { display: block; padding-top: 28px; padding-bottom: 28px; }
  footer p:last-child { text-align: left; margin-top: 9px; }
}
