.moments-heading { max-width: 820px; margin: 0 auto; }
.moments-home { padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px) 70px; }
.moments-home-heading { max-width: 820px; margin: 0 auto 36px; }
.moments-home-heading .eyebrow { color: #788771; }
.moments-home-heading h2 { margin: 15px 0 12px; font: 400 clamp(32px, 5vw, 58px)/1.18 var(--serif); letter-spacing: -.055em; }
.moments-home-heading p { margin: 0; color: #827d73; font-size: 13px; line-height: 1.8; }
.moments-heading p { max-width: 560px; }
.moments-shell { max-width: 820px; margin: 0 auto 30px; }
.moments-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid #e9e1d8;
  border-radius: 18px;
  background: linear-gradient(125deg, #f1f2e9, #f7f1eb 72%, #f4ede4);
}
.moments-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #50644d;
  color: #fbfbf1;
  font: italic 27px/1 Georgia, serif;
}
.moments-profile strong, .moment-meta strong { display: block; font: 600 14px/1.4 system-ui, sans-serif; letter-spacing: .02em; }
.moments-profile small { display: block; color: #827d73; font-size: 11px; margin-top: 3px; }
.moments-source { margin-left: auto; color: #817c72; font-size: 11px; white-space: nowrap; }
.moments-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 29px 0 6px;
}
.moments-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.moments-filters button, #moments-refresh {
  border: 1px solid #e4dcd3;
  border-radius: 999px;
  background: transparent;
  color: #6d665e;
  padding: 7px 14px;
  font-size: 11px;
  line-height: 1.4;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.moments-filters button:hover, #moments-refresh:hover { border-color: #b7a99b; color: #302c29; }
.moments-filters button.active { background: #e8eee4; border-color: #b7c6b1; color: #36503a; }
#moments-refresh { flex: 0 0 auto; }
#moments-refresh:disabled { opacity: .5; cursor: default; }
.moments-feed { min-height: 240px; }
.moment-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 30px 3px 30px 0;
  border-bottom: 1px solid #ece5de;
}
.moment-card::after { content: ''; position: absolute; left: 19px; top: 82px; bottom: -9px; width: 1px; background: #d8dfd2; }
.moment-card:last-child::after { display: none; }
.moments-avatar--small { width: 40px; height: 40px; flex-basis: 40px; font-size: 23px; }
.moment-main { min-width: 0; }
.moment-meta { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.moment-meta time { color: #918b83; font-size: 11px; }
.moment-card h2 { margin: 12px 0 7px; font: 400 clamp(19px, 2.4vw, 24px)/1.55 var(--serif); letter-spacing: -.03em; }
.moment-body { margin: 10px 0 17px; color: #56524e; font-size: 13px; line-height: 2; overflow-wrap: anywhere; }
.moment-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: 600px;
  margin: 15px 0 14px;
  border-radius: 12px;
  overflow: hidden;
}
.moment-images--single { grid-template-columns: 1fr; max-width: 450px; }
.moment-image { display: block; padding: 0; border: 0; aspect-ratio: 1; background: #e7e8de; overflow: hidden; cursor: zoom-in; }
.moment-images--single .moment-image { aspect-ratio: 4 / 3; }
.moment-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.moment-image:hover img { transform: scale(1.045); }
.moment-category { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: #edf0e8; color: #667860; font-size: 10px; }
.moments-footnote { margin: 22px 0 0; color: #918b83; font-size: 11px; }
.moments-message { padding: 80px 0; color: #8e887d; text-align: center; font-size: 13px; }
.moments-empty {
  margin-top: 18px;
  padding: clamp(50px, 9vw, 85px) 24px;
  border: 1px solid #e9e4dc;
  border-radius: 18px;
  background: linear-gradient(145deg, #f4f5ec, #f8f3ec);
  text-align: center;
}
.moments-empty span { display: block; color: #9aaa91; font: 32px Georgia, serif; }
.moments-empty h2 { margin: 11px 0 7px; font: 400 clamp(20px, 3vw, 27px)/1.5 var(--serif); }
.moments-empty p { margin: 0; color: #89847b; font-size: 12px; }
.moments-lightbox { max-width: min(94vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; overflow: visible; background: transparent; }
.moments-lightbox::backdrop { background: #151914df; backdrop-filter: blur(6px); }
.moments-lightbox img { display: block; max-width: min(94vw, 1100px); max-height: 88vh; object-fit: contain; border-radius: 12px; }
.moments-lightbox-close { position: absolute; right: -8px; top: -42px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f8f7f2; color: #2e342d; font-size: 25px; line-height: 1; }
@media (max-width: 620px) {
  .moments-profile { padding: 17px; }
  .moments-avatar { width: 42px; height: 42px; flex-basis: 42px; font-size: 24px; }
  .moments-source { font-size: 9px; }
  .moments-toolbar { align-items: flex-start; margin-top: 22px; }
  .moments-filters { gap: 6px; }
  .moments-filters button, #moments-refresh { padding: 6px 10px; font-size: 10px; }
  .moment-card { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 26px 0; }
  .moments-avatar--small { width: 34px; height: 34px; flex-basis: 34px; font-size: 20px; }
  .moment-card::after { left: 16px; top: 73px; }
  .moment-body { font-size: 12px; }
  .moment-images { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .moments-filters button, #moments-refresh, .moment-image img { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .moment-card { animation: card-appear .5s cubic-bezier(.2,.7,.2,1) backwards; }
  .moment-card:nth-child(2) { animation-delay: .045s; }
  .moment-card:nth-child(3) { animation-delay: .09s; }
  .moment-card:nth-child(n+4) { animation-delay: .135s; }
}
