body[data-note-design="living-memory"] {
  --memory-ink: oklch(18% 0.028 205);
  --memory-paper: oklch(96% 0.025 88);
  --memory-sky: oklch(72% 0.1 226);
  --memory-leaf: oklch(48% 0.1 137);
  --memory-flower: oklch(69% 0.16 25);
  --memory-gold: oklch(81% 0.14 86);
}

body[data-note-design="living-memory"] .article-main {
  padding-top: 5.2rem;
  background: var(--memory-ink);
}

body[data-note-design="living-memory"] .article-main article {
  padding-bottom: 6rem;
  background:
    radial-gradient(circle at 86% 2%, oklch(72% 0.1 226 / 0.16), transparent 27rem),
    linear-gradient(180deg, var(--paper-faint), var(--paper-warm));
}

body[data-note-design="living-memory"] .article-header--art-directed {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: calc(100svh - 5.2rem);
  margin: 0;
  overflow: hidden;
  padding: 0;
  color: var(--memory-ink);
  background: var(--memory-sky);
}

body[data-note-design="living-memory"] .article-hero-media,
body[data-note-design="living-memory"] .article-hero-veil {
  position: absolute;
  inset: 0;
}

body[data-note-design="living-memory"] .article-hero-media {
  z-index: -2;
  overflow: hidden;
}

body[data-note-design="living-memory"] .article-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--hero-position, 66% center);
  animation: living-memory-settle 16s cubic-bezier(0.2, 0.72, 0.12, 1) both;
}

body[data-note-design="living-memory"] .article-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background: repeating-linear-gradient(0deg, transparent 0 4px, oklch(98% 0.02 88 / 0.12) 5px, transparent 6px);
  mix-blend-mode: soft-light;
}

body[data-note-design="living-memory"] .article-hero-veil {
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 42%, oklch(96% 0.025 88 / 0.08) 55%, oklch(96% 0.025 88 / 0.44) 100%),
    linear-gradient(180deg, oklch(17% 0.025 205 / 0.12), transparent 22%, transparent 72%, oklch(17% 0.025 205 / 0.3));
}

body[data-note-design="living-memory"] .article-header__inner {
  width: min(calc(100% - 2rem), 82rem);
  min-height: calc(100svh - 5.2rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(5rem, 10vh, 7.5rem) 0 clamp(4rem, 8vh, 6rem);
  text-align: right;
}

body[data-note-design="living-memory"] .article-header__inner .article-meta {
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  margin-bottom: clamp(1.5rem, 3vh, 2.4rem);
  padding: 0.68rem 0.9rem;
  color: oklch(20% 0.028 205 / 0.72);
  background: oklch(97% 0.02 88 / 0.34);
  border: 1px solid oklch(20% 0.028 205 / 0.14);
  border-radius: 999px;
  box-shadow: 0 18px 50px oklch(24% 0.04 180 / 0.12);
  backdrop-filter: blur(12px);
  animation: living-memory-copy-in 0.8s ease-out both;
}

body[data-note-design="living-memory"] .article-header__inner .article-meta span:first-child {
  display: inline-flex;
  align-items: center;
  color: var(--memory-ink);
  background: var(--memory-gold);
  border-color: oklch(20% 0.028 205 / 0.35);
  padding-block: 0.3rem;
}

body[data-note-design="living-memory"] .article-title--split {
  max-width: none;
  margin: 0 0 clamp(1.25rem, 2.5vh, 2rem);
  color: var(--memory-ink);
  font: 500 clamp(4.2rem, 7.5vw, 7.7rem) / 0.86 var(--font-body);
  letter-spacing: -0.07em;
  overflow-wrap: normal;
  text-transform: none;
  text-shadow: 0 2px 28px oklch(97% 0.02 88 / 0.32);
  animation: living-memory-copy-in 0.95s var(--ease-out) 0.12s both;
}

body[data-note-design="living-memory"] .article-title--split span {
  display: block;
  text-wrap: nowrap;
}

body[data-note-design="living-memory"] .article-title--split span:last-child {
  padding-right: 0.05em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.075em;
}

body[data-note-design="living-memory"] .article-header__inner > p {
  max-width: 38ch;
  margin: 0;
  color: oklch(20% 0.028 205 / 0.78);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  font-weight: 600;
  line-height: 1.42;
  text-shadow: 0 1px 18px oklch(97% 0.02 88 / 0.46);
  text-wrap: pretty;
  animation: living-memory-copy-in 0.95s var(--ease-out) 0.24s both;
}

body[data-note-design="living-memory"] .article-bands {
  height: 0.34rem;
  background: linear-gradient(90deg, var(--memory-leaf) 0 38%, var(--memory-sky) 38% 72%, var(--memory-flower) 72% 88%, var(--memory-gold) 88% 100%);
}

body[data-note-design="living-memory"] .article-copy > p:first-child,
body[data-note-design="living-memory"] .article-copy > p:nth-child(3) {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 1.62rem);
  font-weight: 600;
  line-height: 1.48;
}

@keyframes living-memory-settle {
  from {
    transform: scale(1.045) translate3d(0.4%, 0, 0);
    filter: saturate(0.86) contrast(1.02) brightness(0.92);
  }
  to {
    transform: scale(1.01) translate3d(0, 0, 0);
    filter: saturate(0.98) contrast(1.04) brightness(1);
  }
}

@keyframes living-memory-copy-in {
  from { opacity: 0; transform: translate3d(1.4rem, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 47.98rem) {
  body[data-note-design="living-memory"] .article-main {
    padding-top: 4.8rem;
  }

  body[data-note-design="living-memory"] .article-header--art-directed,
  body[data-note-design="living-memory"] .article-header__inner {
    min-height: calc(100svh - 4.8rem);
  }

  body[data-note-design="living-memory"] .article-hero-media img {
    object-position: 35% center;
  }

  body[data-note-design="living-memory"] .article-hero-veil {
    background:
      linear-gradient(180deg, oklch(96% 0.025 88 / 0.18), oklch(96% 0.025 88 / 0.08) 35%, oklch(96% 0.025 88 / 0.6) 76%, oklch(96% 0.025 88 / 0.82)),
      linear-gradient(90deg, transparent, oklch(96% 0.025 88 / 0.32));
  }

  body[data-note-design="living-memory"] .article-header__inner {
    justify-content: flex-end;
    padding: 5rem 0 3.2rem;
  }

  body[data-note-design="living-memory"] .article-header__inner .article-meta {
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.15rem;
    padding: 0.56rem 0.68rem;
    font-size: 0.59rem;
  }

  body[data-note-design="living-memory"] .article-title--split {
    width: 100%;
    margin-bottom: 1.2rem;
    font-size: clamp(3.15rem, 14.5vw, 4.8rem);
    letter-spacing: -0.06em;
  }

  body[data-note-design="living-memory"] .article-title--split span {
    text-wrap: balance;
  }

  body[data-note-design="living-memory"] .article-header__inner > p {
    max-width: 31ch;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-note-design="living-memory"] .article-hero-media img,
  body[data-note-design="living-memory"] .article-header__inner .article-meta,
  body[data-note-design="living-memory"] .article-title--split,
  body[data-note-design="living-memory"] .article-header__inner > p {
    animation: none;
  }

  body[data-note-design="living-memory"] .article-hero-media img {
    transform: scale(1.01);
    filter: saturate(0.98) contrast(1.04) brightness(1);
  }
}
