@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600&family=Cormorant+Garamond:ital,wght@0,600;1,600&family=Inter:wght@400;500;600&display=swap");

.lp-agenda {
  --lp-ink: #071a26;
  --lp-deep-sea: #0b2d3d;
  --lp-sea: #17606a;
  --lp-brass: #c9933f;
  --lp-coral: #b74c3f;
  --lp-parchment: #f4ead2;
  --lp-foam: #fffaf0;
  --lp-muted: #5f6d70;
  color: var(--lp-ink);
  font-family: "Inter", sans-serif;
  position: relative;
}

.lp-agenda::before {
  background:
    radial-gradient(circle at 10% 20%, rgb(201 147 63 / 12%), transparent 25rem),
    linear-gradient(135deg, rgb(11 45 61 / 4%) 25%, transparent 25%) 0 0 / 24px 24px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.lp-agenda > * {
  position: relative;
}

.lp-agenda__masthead {
  background: var(--lp-ink);
  color: var(--lp-foam);
  min-height: 360px;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 8vw, 110px);
}

.lp-agenda__masthead::after {
  border: 1px solid rgb(201 147 63 / 42%);
  border-radius: 50%;
  content: "";
  height: 340px;
  position: absolute;
  right: -110px;
  top: -125px;
  width: 340px;
}

.lp-agenda__eyebrow,
.lp-event__place,
.lp-agenda-dialog__eyebrow {
  color: var(--lp-brass);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.lp-agenda h2 {
  color: inherit;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.82;
  margin: 0;
  max-width: 760px;
}

.lp-agenda__intro {
  color: rgb(255 250 240 / 76%);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
  margin: 32px 0 0;
  max-width: 620px;
}

.lp-agenda__compass {
  align-items: center;
  border: 1px solid var(--lp-brass);
  border-radius: 50%;
  display: flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 42px;
  position: relative;
  width: 52px;
}

.lp-agenda__compass::before,
.lp-agenda__compass::after {
  background: var(--lp-brass);
  content: "";
  height: 72px;
  left: 25px;
  position: absolute;
  top: -11px;
  transform: scaleX(0.45) rotate(45deg);
  width: 1px;
}

.lp-agenda__compass::after {
  transform: scaleX(0.45) rotate(-45deg);
}

.lp-agenda__compass span {
  color: var(--lp-brass);
  font: 600 0.65rem/1 "Barlow Condensed", sans-serif;
  left: 21px;
  position: absolute;
  top: -17px;
}

.lp-agenda__filters {
  align-items: end;
  background: var(--lp-parchment);
  display: grid;
  gap: 18px;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  margin: -32px auto 56px;
  max-width: 1180px;
  padding: 24px;
  width: calc(100% - 40px);
}

.lp-agenda__filters label {
  display: grid;
  gap: 8px;
}

.lp-agenda__filters label > span {
  font: 600 0.75rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lp-agenda__filters input,
.lp-agenda__filters select {
  background: var(--lp-foam);
  border: 1px solid rgb(7 26 38 / 20%);
  border-radius: 0;
  color: var(--lp-ink);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.lp-agenda__filters button,
.lp-agenda__button {
  align-items: center;
  background: var(--lp-coral);
  border: 1px solid var(--lp-coral);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: 600 0.82rem/1 "Barlow Condensed", sans-serif;
  justify-content: center;
  letter-spacing: 0.1em;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lp-agenda__filters button:hover,
.lp-agenda__button:hover {
  background: var(--lp-ink);
  border-color: var(--lp-ink);
  color: #fff;
  transform: translateY(-2px);
}

.lp-agenda__filters :focus-visible,
.lp-event__more:focus-visible,
.lp-agenda__pagination button:focus-visible,
.lp-agenda-dialog :focus-visible {
  outline: 3px solid var(--lp-brass);
  outline-offset: 3px;
}

.lp-agenda__status,
.lp-agenda__grid,
.lp-agenda__pagination,
.lp-agenda__credit {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  width: calc(100% - 40px);
}

.lp-agenda__status {
  border-bottom: 1px solid rgb(7 26 38 / 18%);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 28px;
  padding-bottom: 16px;
}

.lp-agenda__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-event {
  animation: lp-rise 380ms ease both;
  animation-delay: var(--delay);
  background: var(--lp-foam);
  border-bottom: 3px solid var(--lp-brass);
  box-shadow: 0 16px 40px rgb(7 26 38 / 9%);
  min-width: 0;
  overflow: hidden;
}

.lp-event__media {
  aspect-ratio: 16 / 10;
  background: var(--lp-deep-sea);
  display: block;
  overflow: hidden;
  position: relative;
}

.lp-event__media::after {
  background: linear-gradient(180deg, transparent 48%, rgb(7 26 38 / 76%));
  content: "";
  inset: 0;
  position: absolute;
}

.lp-event__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.75, 0.25, 1);
  width: 100%;
}

.lp-event:hover .lp-event__media img {
  transform: scale(1.035);
}

.lp-event__date {
  bottom: 16px;
  color: #fff;
  font: 600 0.8rem/1.2 "Barlow Condensed", sans-serif;
  left: 18px;
  letter-spacing: 0.06em;
  position: absolute;
  text-transform: uppercase;
  z-index: 1;
}

.lp-event__body {
  padding: 24px;
}

.lp-event__title {
  color: var(--lp-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.02;
  margin: 0 0 16px;
}

.lp-event__title a {
  color: inherit;
  text-decoration: none;
}

.lp-event__title a:hover {
  color: var(--lp-coral);
}

.lp-event__excerpt {
  color: var(--lp-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0 0 22px;
}

.lp-event__more {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--lp-coral);
  color: var(--lp-ink);
  cursor: pointer;
  font: 600 0.82rem/1.4 "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  padding: 0 0 4px;
  text-transform: uppercase;
}

.lp-event__more:hover {
  color: var(--lp-coral);
}

.lp-agenda__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 48px 0 24px;
}

.lp-agenda__pagination button {
  background: transparent;
  border: 1px solid rgb(7 26 38 / 24%);
  color: var(--lp-ink);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
}

.lp-agenda__pagination button.is-current {
  background: var(--lp-ink);
  color: #fff;
}

.lp-agenda__pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.lp-agenda__credit {
  color: var(--lp-muted);
  font-size: 0.78rem;
  padding: 24px 0 56px;
  text-align: center;
}

.lp-agenda__credit a {
  color: var(--lp-sea);
}

.lp-agenda__guide {
  background: var(--lp-deep-sea);
  color: var(--lp-foam);
  padding: clamp(48px, 8vw, 88px) max(24px, calc((100% - 1180px) / 2));
}

.lp-agenda__guide h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
  max-width: 760px;
}

.lp-agenda__guide-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
}

.lp-agenda__guide-grid section {
  border-top: 1px solid rgb(201 147 63 / 52%);
  padding-top: 20px;
}

.lp-agenda__guide-grid h3 {
  color: var(--lp-foam);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  margin: 0 0 14px;
}

.lp-agenda__guide-grid p {
  color: rgb(255 250 240 / 72%);
  line-height: 1.7;
  margin: 0;
}

.lp-agenda-dialog {
  background: var(--lp-foam, #fffaf0);
  border: 0;
  box-shadow: 0 28px 90px rgb(0 0 0 / 35%);
  color: var(--lp-ink, #071a26);
  font-family: "Inter", sans-serif;
  max-height: min(760px, 90vh);
  max-width: 720px;
  overflow: auto;
  padding: clamp(28px, 6vw, 64px);
  width: calc(100% - 32px);
}

.lp-agenda-dialog::backdrop {
  background: rgb(7 26 38 / 78%);
  backdrop-filter: blur(4px);
}

.lp-agenda-dialog__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  position: absolute;
  right: 12px;
  top: 12px;
}

.lp-agenda-dialog h3 {
  font: 600 clamp(2rem, 6vw, 3.6rem)/0.95 "Cormorant Garamond", serif;
  margin: 0 0 20px;
}

.lp-agenda-dialog__date {
  color: var(--lp-coral, #b74c3f);
  font-weight: 600;
}

.lp-agenda-dialog__description {
  line-height: 1.75;
  white-space: pre-line;
}

.lp-agenda-dialog__address {
  border-left: 3px solid var(--lp-brass, #c9933f);
  margin: 24px 0;
  padding-left: 16px;
}

.lp-agenda-dialog__reception {
  background: var(--lp-parchment, #f4ead2);
  border-left: 3px solid var(--lp-coral, #b74c3f);
  line-height: 1.6;
  margin: 24px 0 0;
  padding: 14px 16px;
}

.lp-agenda-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lp-agenda__button--ghost {
  background: transparent;
  color: var(--lp-ink, #071a26);
}

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .lp-agenda__filters {
    grid-template-columns: 1fr 1fr;
  }

  .lp-agenda__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-agenda__guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .lp-agenda__masthead {
    min-height: 330px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .lp-agenda__filters,
  .lp-agenda__grid {
    grid-template-columns: 1fr;
  }

  .lp-agenda__filters {
    margin-bottom: 40px;
    width: calc(100% - 24px);
  }

  .lp-agenda__status,
  .lp-agenda__grid,
  .lp-agenda__pagination,
  .lp-agenda__credit {
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-event {
    animation: none;
  }

  .lp-event__media img,
  .lp-agenda__filters button,
  .lp-agenda__button {
    transition: none;
  }
}
