.events {
  scroll-margin-top: 1rem;
  background: #f4f1eb;
}

.moments-layout {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  max-width: 64rem;
  margin-inline: auto;
}

.events #events-title {
  font-size: clamp(1.65rem, 9vw, 3.625rem);
}

.moments-intro > p:last-of-type {
  max-width: 44ch;
  margin: .85rem 0 0;
  color: #59544d;
}

.moments-intro .search {
  align-items: center;
  gap: .55rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.moments-intro .search:not(.is-open) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.moments-intro .search:focus-within {
  border-color: #927035;
  box-shadow: 0 0 0 3px #a37e3b30;
}

.moment-search-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d6c9b3;
  border-radius: 50%;
  background: #fbf8f2;
  color: #594728;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.moment-search-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.moment-search-toggle:hover { background: #f0e5d1; }
.moment-search-toggle:active { transform: scale(.95); }
.moment-search-toggle:focus-visible { outline: 2px solid #755925; outline-offset: 3px; }
.moments-intro .search input { width: min(60vw, 22rem); padding-inline: .75rem; }
.moments-layout .empty { margin: 0; padding: 1.5rem 0; text-align: start; }
.more-moments { display: grid; gap: .85rem; }
.more-moments > h3 {
  margin: 0;
  color: #211a12;
  font: 700 clamp(1.1rem, 2vw, 1.35rem)/1.25 Manrope, sans-serif;
}

.event-list { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
.event-list:empty { display: none; }

.moment-card {
  display: grid;
  grid-template-columns: clamp(4.25rem, 20vw, 7rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(.65rem, 2vw, 1.25rem);
  padding: clamp(.65rem, 1.5vw, 1rem);
  border: 1px solid #dcd3c4;
  border-radius: .7rem;
  background: #fbf8f2;
  color: #211a12;
  transition: border-color .2s ease;
}

.moment-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: .35rem;
  background: #e8e0d3;
  object-fit: cover;
  object-position: center;
}

.moment-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  overflow-wrap: anywhere;
}

.moment-status {
  width: fit-content;
  margin: 0 0 .35rem;
  padding: .16rem .52rem;
  border-radius: 1rem;
  background: #ede4d5;
  color: #514632;
  font-size: .875rem;
  font-weight: 700;
}

.moment-details .moment-name {
  margin: 0 0 .22rem;
  font: 700 clamp(1.075rem, 2.2vw, 1.375rem)/1.18 Manrope, sans-serif;
}

.moment-date, .moment-subtitle, .moment-location { margin: 0; font-size: .9375rem; }
.moment-date { color: #6a4c1f; font-weight: 600; }
.moment-subtitle { color: #443b30; font-weight: 600; }
.moment-location { color: #594f43; }

.moment-details .request-btn {
  position: relative;
  overflow: hidden;
  min-height: 2.75rem;
  width: fit-content;
  max-width: 100%;
  margin-top: .65rem;
  padding: .55rem clamp(.6rem, 2vw, 1rem);
  border: 1px solid #9d8457;
  border-radius: .35rem;
  color: #493619;
  background: transparent;
  font: 700 .9375rem/1.2 Manrope, sans-serif;
  transition: background .2s ease, transform .2s ease;
}

.moment-details .request-btn:hover { background: #efe4d0; }
.moment-details .request-btn:focus-visible { outline: 2px solid #755925; outline-offset: 3px; }
.moment-details .request-btn:active { transform: scale(.98); }

.moment-card--featured {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1rem, 2.7vw, 2.1rem);
  overflow: hidden;
  padding: clamp(.75rem, 2vw, 1.55rem);
  border-color: #332a20;
  border-radius: .95rem;
  background: #1a1816;
  color: #fcf7ee;
  box-shadow: 0 14px 38px #39291122;
}

.moment-card--featured > img {
  aspect-ratio: 1 / 1;
  height: auto;
  padding: clamp(.25rem, .8vw, .55rem);
  border: 1px solid rgb(255 230 194 / .24);
  border-radius: .82rem;
  background: #171512;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 8px 24px rgb(0 0 0 / .2);
  object-fit: contain;
  transition: filter .35s ease;
}

.moment-card--featured .moment-details {
  justify-content: center;
  padding: .1rem .4rem .6rem;
}

.moment-feature-label {
  margin: 0 0 .5rem;
  color: #e6c78d;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.moment-card--featured .moment-name {
  margin-bottom: .48rem;
  font-size: clamp(1.9rem, 4.35vw, 3.65rem);
  letter-spacing: -.045em;
}

.moment-card--featured .moment-status { background: #433727; color: #f3dfbd; }
.moment-card--featured .moment-date { color: #e6c78d; }
.moment-card--featured .moment-location, .moment-card--featured .moment-subtitle { color: #e5ded1; }

.moment-card--featured .request-btn {
  margin-top: 1.15rem;
  padding-inline: 1.15rem;
  border-color: transparent;
  background: #e6c78d;
  color: #1c150d;
}

.moment-card--featured .request-btn:hover { background: #f4dcae; }
.moment-card--featured .request-btn:focus-visible { outline-color: #f7dca6; }

@media (hover: hover) {
  .moment-card:not(.moment-card--featured):hover { border-color: #ad9466; }
  .moment-card--featured:hover > img { filter: brightness(1.035); }
}

@media (min-width: 665px) {
  .moment-card--featured { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); align-items: center; }
  .moment-card--featured .moment-details { padding: .65rem clamp(.45rem, 1.5vw, 1.25rem) .65rem 0; }
}

@media (min-width: 760px) {
  .moment-card:not(.moment-card--featured) { align-items: center; }
  .moment-card:not(.moment-card--featured) .moment-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
  }
  .moment-card:not(.moment-card--featured) .moment-details > :not(.request-btn) { grid-column: 1; }
  .moment-card:not(.moment-card--featured) .request-btn {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: center;
    margin-top: 0;
  }
}

@media (min-width: 900px) {
  .events #events-title { font-size: clamp(2.1rem, 4.3vw, 3.625rem); }
}

@media (prefers-reduced-motion: reduce) {
  .moment-card, .moment-card > img, .moment-details .request-btn { transition: none; }
  .moment-card--featured:hover > img { filter: none; }
  .moment-details .request-btn:active { transform: none; }
}
