
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ev-hero {
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding: 8vh 6vw 9vh;
  background:
    linear-gradient(90deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.15) 48%, rgba(5,5,5,0) 70%),
    url("images/events/hero.jpg") center 42% / cover no-repeat;
}
.ev-hero-copy { max-width: 38rem; position: relative; z-index: 1; }
.ev-hero h1 {
  margin: 0 0 1rem;
  max-width: 11em;
  font-size: clamp(3rem, 5.4vw, 4.7rem);
  line-height: .96;
  letter-spacing: -.015em;
  text-transform: none;
  color: #f7f3ec;
}
.ev-hero .lede { max-width: 34rem; color: #efe8dc; font-size: 1.02rem; }
.ev-edge {
  position: absolute;
  right: 1.5rem;
  top: 46%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  letter-spacing: .28em;
  font-size: .62rem;
  text-transform: uppercase;
  color: rgba(244,239,230,.82);
  z-index: 1;
}
.ev-edge::before {
  content: "";
  width: 1px;
  height: 2.4rem;
  background: rgba(198,164,106,.85);
  margin-bottom: .35rem;
}

.types { padding: 3.2rem 4vw 2.6rem; }
.types h2 {
  margin: .15rem 0 1.35rem;
  font-size: clamp(2.1rem, 3.5vw, 3.15rem);
  line-height: 1.05;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}
.type-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: .7rem .7rem .95rem;
  background: #090909;
}
.type-card img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 8px;
}
.type-card h3 {
  margin: .85rem .15rem .25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 1.28rem;
}
.type-card p {
  margin: 0 .15rem;
  color: #d7d0c4;
  font-size: .95rem;
  line-height: 1.35;
}

.calendar { padding: .4rem 4vw 2.6rem; }
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: .4rem;
}
.cal-head h2 {
  margin: .1rem 0 0;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 500;
}
.cal-filter select {
  margin: 0;
  min-width: 11.5rem;
  background: transparent;
  border: 1px solid rgba(232,214,176,.45);
  border-radius: 10px;
  padding: .55rem 2rem .55rem .85rem;
  color: #f4efe6;
  letter-spacing: .02em;
}
.cal-list { border-top: 1px solid rgba(255,255,255,.12); }
.cal-row {
  display: grid;
  grid-template-columns: 4.2rem 7.2rem minmax(0, 1fr) auto auto;
  gap: .85rem 1.1rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.cal-row[hidden] { display: none; }
.when { margin: 0; line-height: 1; }
.when span {
  display: block;
  letter-spacing: .16em;
  font-size: .68rem;
  color: #f4efe6;
}
.when strong {
  display: block;
  margin-top: .15rem;
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: .02em;
}
.cal-row img {
  width: 7.2rem;
  height: 3.6rem;
  object-fit: cover;
  border-radius: 8px;
}
.cal-main h3 {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
}
.cal-main p { margin: .15rem 0 0; color: #b7b0a4; font-size: .92rem; }
.etype {
  margin: 0;
  justify-self: end;
  border: 1px solid rgba(198,164,106,.75);
  color: #e7d7b4;
  border-radius: 999px;
  padding: .38rem .8rem;
  font-size: .78rem;
  white-space: nowrap;
}
.view {
  justify-self: end;
  background: none;
  border: none;
  color: #e7d7b4;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .68rem;
  white-space: nowrap;
  padding: .2rem 0;
}
.view:hover { color: #fff; }
.cal-more {
  grid-column: 1 / -1;
  padding: .15rem 0 .35rem 5.3rem;
  color: #d9d1c5;
}
.cal-more p { margin: 0 0 .45rem; }
.cal-more a { color: var(--gold-2); letter-spacing: .08em; font-size: .85rem; }
.cal-empty { color: var(--muted); margin: .8rem 0 0; }

.plan {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2.4rem 5vw;
  background:
    linear-gradient(90deg, rgba(6,5,4,.72) 0%, rgba(6,5,4,.28) 46%, rgba(6,5,4,.15) 100%),
    url("images/events/plan.jpg") center 45% / cover no-repeat;
}
.plan h2 {
  margin: .2rem 0 .55rem;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.05;
}
.plan p { margin: 0; max-width: 28rem; color: #efe8dc; }
.plan-cta { margin: 0; }

@media (max-width: 980px) {
  .type-grid { grid-template-columns: 1fr 1fr; }
  .ev-edge { display: none; }
  .cal-row {
    grid-template-columns: 3.4rem 6.2rem minmax(0, 1fr);
    grid-template-areas:
      "when img main"
      "when img type"
      "when img view";
  }
  .when { grid-area: when; }
  .cal-row img { grid-area: img; width: 6.2rem; }
  .cal-main { grid-area: main; }
  .etype { grid-area: type; justify-self: start; }
  .view { grid-area: view; justify-self: start; }
  .cal-more { padding-left: 0; }
}
@media (max-width: 640px) {
  .type-grid, .plan { grid-template-columns: 1fr; }
  .cal-head { align-items: stretch; flex-direction: column; }
  .cal-filter select { width: 100%; }
  .plan { padding: 1.6rem 1.1rem 1.8rem; }
  .types, .calendar { padding-left: 1.1rem; padding-right: 1.1rem; }
  .ev-hero { padding: 12vh 1.1rem 3.2rem; min-height: 70vh; }
}
