/*
|--------------------------------------------------------------------------
| Landing Page
|--------------------------------------------------------------------------
*/

body:has(.dw-landing) {
  overflow-x: clip;

  background: var(--dw-color-paper);
  color: var(--dw-color-text);
}

.dw-landing {
  min-height: 60vh;
}

.dw-landing__hero {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.dw-landing__hero-content {
  width: min(52rem, 100%);
  margin-inline: auto;

  text-align: center;
}

.dw-landing__eyebrow {
  display: block;

  margin-bottom: 1rem;

  font-family: var(--dw-font-ui);
  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dw-landing__title {
  margin: 0;

  font-family: var(--dw-font-display);
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 300;
  line-height: 0.98;

  text-wrap: balance;
}

.dw-landing__intro {
  width: min(42rem, 100%);

  margin: 1.5rem auto 0;

  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.dw-landing__search {
  width: min(32rem, 100%);

  margin: clamp(2rem, 4vw, 3rem) auto 0;
}

/*
|--------------------------------------------------------------------------
| Editorial hero slider
|--------------------------------------------------------------------------
*/

.dw-landing-hero {
  position: relative;

  overflow: hidden;

  background: var(--dw-color-text);
}

.dw-landing-hero__viewport {
  position: relative;

  min-height: clamp(32rem, 72vh, 48rem);
}

.dw-landing-hero__slide {
  position: absolute;
  inset: 0;

  display: grid;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 500ms var(--dw-ease-standard),
    visibility 500ms var(--dw-ease-standard);
}

.dw-landing-hero__slide.is-active {
  z-index: 1;

  opacity: 1;
  visibility: visible;
}

.dw-landing-hero__image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.dw-landing-hero__overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 66%) 0%,
    rgb(0 0 0 / 38%) 48%,
    rgb(0 0 0 / 12%) 100%
  );
}

.dw-landing-hero__content {
  position: relative;
  z-index: 2;

  align-self: end;
  justify-self: start;

  width: min(40rem, calc(100% - 13rem));

  margin: 0 0 clamp(4.5rem, 7vw, 6rem) clamp(5.5rem, 7vw, 7rem);

  color: #fff;
}

.dw-landing-hero__eyebrow {
  display: block;

  margin-bottom: 1.25rem;

  font-family: var(--dw-font-ui);
  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dw-landing-hero__title {
  max-width: 32rem;

  margin: 0;

  font-family: var(--dw-font-display);
  font-size: clamp(2.9rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 0.95;

  text-wrap: balance;
}

.dw-landing-hero__intro {
  max-width: 30rem;

  margin: 1.25rem 0 0;

  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.6;
}

.dw-landing-hero__link {
  display: inline-flex;

  margin-top: 1.75rem;

  border-bottom: 1px solid currentcolor;

  padding-bottom: 0.25rem;

  color: inherit;

  font-family: var(--dw-font-ui);
  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.dw-landing-hero__link:focus-visible,
.dw-landing-hero__button:focus-visible,
.dw-landing-hero__dot:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Slider arrow buttons
|--------------------------------------------------------------------------
*/

.dw-landing-hero__button {
  position: absolute;
  top: 50%;

  z-index: 6;

  display: inline-grid;
  place-items: center;

  width: clamp(2.6rem, 3.4vw, 3.25rem);
  height: clamp(2.6rem, 3.4vw, 3.25rem);

  border: 0;
  border-radius: 50%;

  padding: 0;

  background: #000;
  color: #fff;

  cursor: pointer;

  opacity: 0.92;

  transform: translateY(-50%) scale(1);

  transition:
    transform 220ms var(--dw-ease-standard),
    opacity 220ms var(--dw-ease-standard),
    box-shadow 220ms var(--dw-ease-standard);
}

.dw-landing-hero__button::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;

  display: block;

  width: 0.72rem;
  height: 0.72rem;

  border-top: 0.17rem solid #fff;
  border-right: 0.17rem solid #fff;

  transform-origin: center;
}

.dw-landing-hero__previous {
  left: clamp(0.75rem, 1.5vw, 1.5rem);
}

.dw-landing-hero__previous::before {
  transform: translate(-42%, -50%) rotate(-135deg);
}

.dw-landing-hero__next {
  right: clamp(0.75rem, 1.5vw, 1.5rem);
}

.dw-landing-hero__next::before {
  transform: translate(-58%, -50%) rotate(45deg);
}

.dw-landing-hero:hover .dw-landing-hero__button,
.dw-landing-hero:focus-within .dw-landing-hero__button {
  transform: translateY(-50%) scale(1.18);

  box-shadow: 0 0 0 1px rgb(255 255 255 / 15%);
}

.dw-landing-hero__button:hover {
  transform: translateY(-50%) scale(1.3);
}

/*
|--------------------------------------------------------------------------
| Slider dots
|--------------------------------------------------------------------------
*/

.dw-landing-hero__dots {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.8rem;

  min-height: 3.5rem;

  background: var(--dw-color-paper);

  color: var(--dw-color-text);
}

.dw-landing-hero__dot {
  width: 0.78rem;
  height: 0.78rem;

  border: 1px solid currentcolor;
  border-radius: 50%;

  padding: 0;

  background: transparent;

  cursor: pointer;

  opacity: 0.55;

  transition:
    opacity var(--dw-duration-fast) var(--dw-ease-standard),
    transform var(--dw-duration-fast) var(--dw-ease-standard),
    background-color var(--dw-duration-fast) var(--dw-ease-standard);
}

.dw-landing-hero__dot:hover {
  opacity: 0.9;

  transform: scale(1.15);
}

.dw-landing-hero__dot.is-active {
  background: currentcolor;

  opacity: 1;

  transform: scale(1.22);
}

/*
|--------------------------------------------------------------------------
| Discovery strip
|--------------------------------------------------------------------------
*/

.dw-landing__discovery {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);

  border-bottom: 1px solid var(--dw-color-border);
}

.dw-landing__search {
  width: min(34rem, 100%);

  margin-inline: auto;
}

/*
|--------------------------------------------------------------------------
| Landing section headers
|--------------------------------------------------------------------------
*/

.dw-landing-section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.dw-landing-section-header__eyebrow {
  display: block;

  margin-bottom: 0.65rem;

  font-family: var(--dw-font-ui);
  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dw-landing-section-header__title {
  margin: 0;

  font-family: var(--dw-font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Featured Articles
|--------------------------------------------------------------------------
*/

.dw-landing-articles {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.dw-landing-articles__grid {
  display: grid;

  grid-template-columns:
    minmax(0, 2fr)
    minmax(0, 1fr);

  gap: clamp(2rem, 4vw, 4rem);
}

.dw-landing-article {
  display: grid;

  gap: 1.25rem;
}

.dw-landing-article--lead {
  grid-row: span 2;
}

.dw-landing-article__image-link {
  display: block;

  overflow: hidden;
}

.dw-landing-article__image {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  transition: transform 400ms var(--dw-ease-standard);
}

.dw-landing-article--lead .dw-landing-article__image {
  aspect-ratio: 16 / 10;
}

.dw-landing-article:hover .dw-landing-article__image {
  transform: scale(1.025);
}

.dw-landing-article__body {
  max-width: 42rem;
}

.dw-landing-article__title {
  margin: 0;

  font-family: var(--dw-font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.05;
}

.dw-landing-article--lead .dw-landing-article__title {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.dw-landing-article__title a {
  color: inherit;

  text-decoration: none;
}

.dw-landing-article__intro {
  margin: 0.9rem 0 0;

  line-height: 1.65;
}

.dw-landing-article__read-more {
  display: inline-flex;

  margin-top: 1rem;

  border-bottom: 1px solid currentcolor;

  padding-bottom: 0.2rem;

  color: inherit;

  font-family: var(--dw-font-ui);
  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .dw-landing-articles__grid {
    grid-template-columns: 1fr;
  }

  .dw-landing-article--lead {
    grid-row: auto;
  }

  .dw-landing-article__image,
  .dw-landing-article--lead .dw-landing-article__image {
    aspect-ratio: 16 / 10;
  }
}

/*
|--------------------------------------------------------------------------
| Featured Places
|--------------------------------------------------------------------------
*/

.dw-landing-places {
  padding-block: clamp(4rem, 8vw, 7rem);

  border-top: 1px solid var(--dw-color-border);
}

.dw-landing-places__grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.dw-landing-place {
  display: grid;

  align-content: start;

  gap: 1.15rem;
}

.dw-landing-place__image-link {
  display: block;

  overflow: hidden;

  background: var(--dw-color-surface);
}

.dw-landing-place__image {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 5;

  object-fit: cover;

  transition: transform 400ms var(--dw-ease-standard);
}

.dw-landing-place:hover .dw-landing-place__image {
  transform: scale(1.025);
}

.dw-landing-place__body {
  display: grid;

  align-content: start;
}

.dw-landing-place__meta {
  display: flex;
  flex-wrap: wrap;

  gap: 0.35rem 0.75rem;

  margin: 0 0 0.7rem;

  font-family: var(--dw-font-ui);
  font-size: 0.68rem;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dw-landing-place__meta span + span::before {
  content: "·";

  margin-right: 0.75rem;
}

.dw-landing-place__title {
  margin: 0;

  font-family: var(--dw-font-display);
  font-size: clamp(1.55rem, 2.1vw, 2.2rem);
  font-weight: 300;
  line-height: 1.05;
}

.dw-landing-place__title a {
  color: inherit;

  text-decoration: none;
}

.dw-landing-place__intro {
  margin: 0.85rem 0 0;

  line-height: 1.6;
}

.dw-landing-place__link {
  justify-self: start;

  margin-top: 1rem;

  border-bottom: 1px solid currentcolor;

  padding-bottom: 0.2rem;

  color: inherit;

  font-family: var(--dw-font-ui);
  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .dw-landing-places__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dw-landing-places__grid {
    grid-template-columns: 1fr;
  }

  .dw-landing-place__image {
    aspect-ratio: 16 / 10;
  }
}

/*
|--------------------------------------------------------------------------
| Upcoming Events
|--------------------------------------------------------------------------
*/

.dw-landing-events {
  padding-block: clamp(4rem, 8vw, 7rem);

  border-top: 1px solid var(--dw-color-border);
}

.dw-landing-events__grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 4rem);
}

.dw-landing-event {
  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);

  gap: clamp(1.4rem, 3vw, 2.25rem);

  align-items: start;
}

.dw-landing-event__image-link {
  display: block;

  overflow: hidden;

  background: var(--dw-color-surface);
}

.dw-landing-event__image {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  transition: transform 400ms var(--dw-ease-standard);
}

.dw-landing-event:hover .dw-landing-event__image {
  transform: scale(1.025);
}

.dw-landing-event__body {
  align-self: center;
}

.dw-landing-event__type {
  display: block;

  margin-bottom: 0.65rem;

  font-family: var(--dw-font-ui);
  font-size: 0.68rem;
  font-weight: 600;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dw-landing-event__schedule {
  display: flex;
  flex-wrap: wrap;

  gap: 0.3rem 0.8rem;

  margin-bottom: 0.8rem;

  font-family: var(--dw-font-ui);
  font-size: 0.78rem;

  line-height: 1.4;
}

.dw-landing-event__date {
  font-weight: 600;
}

.dw-landing-event__time {
  opacity: 0.72;
}

.dw-landing-event__time::before {
  content: "·";

  margin-right: 0.8rem;
}

.dw-landing-event__title {
  margin: 0;

  font-family: var(--dw-font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
  font-weight: 300;
  line-height: 1.04;
}

.dw-landing-event__title a {
  color: inherit;

  text-decoration: none;
}

.dw-landing-event__venue {
  margin: 0.7rem 0 0;

  font-family: var(--dw-font-ui);
  font-size: 0.82rem;
  font-weight: 500;
}

.dw-landing-event__intro {
  margin: 0.9rem 0 0;

  line-height: 1.6;
}

.dw-landing-event__link {
  display: inline-flex;

  margin-top: 1rem;

  border-bottom: 1px solid currentcolor;

  padding-bottom: 0.2rem;

  color: inherit;

  font-family: var(--dw-font-ui);
  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .dw-landing-events__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dw-landing-event {
    grid-template-columns: 1fr;
  }

  .dw-landing-event__image {
    aspect-ratio: 16 / 10;
  }
}

/*
|--------------------------------------------------------------------------
| Wide-screen hero refinement
|--------------------------------------------------------------------------
*/

@media (min-width: 1281px) {
  .dw-landing-hero__content {
    margin-bottom: clamp(3.5rem, 4vw, 4.5rem);
  }

  .dw-landing-hero__title {
    max-width: 31rem;

    font-size: clamp(2.8rem, 4.8vw, 4.9rem);

    line-height: 0.98;
  }

  .dw-landing-hero__eyebrow {
    margin-bottom: 1.35rem;
  }
}

/*
|--------------------------------------------------------------------------
| Responsive hero alignment
|--------------------------------------------------------------------------
*/

@media (max-width: 1280px) {
  .dw-landing-hero__content {
    width: min(36rem, calc(100% - 9rem));

    margin-left: clamp(1.25rem, 4vw, 3rem);
  }

  .dw-landing-hero__title {
    max-width: 30rem;

    font-size: clamp(2.75rem, 5.7vw, 4.85rem);
  }

  .dw-landing-hero__intro {
    max-width: 28rem;
  }
}

@media (max-width: 980px) {
  .dw-landing-hero__viewport {
    min-height: 38rem;
  }

  .dw-landing-hero__content {
    width: auto;

    margin: 0 4.75rem 4.75rem 4.75rem;
  }

  .dw-landing-hero__title {
    max-width: 28rem;

    font-size: clamp(2.5rem, 7vw, 4.25rem);
  }

  .dw-landing-hero__intro {
    max-width: 26rem;
  }
}

@media (max-width: 640px) {
  .dw-landing-hero__content {
    width: auto;

    margin: 0 4rem 4.25rem 4rem;
  }

  .dw-landing-hero__title {
    max-width: 100%;

    font-size: clamp(2.35rem, 10vw, 3.5rem);
    line-height: 0.98;
  }

  .dw-landing-hero__intro {
    max-width: 100%;

    font-size: 1rem;
    line-height: 1.55;
  }

  .dw-landing-hero__button {
    width: 2.65rem;
    height: 2.65rem;
  }

  .dw-landing-hero__button::before {
    width: 0.7rem;
    height: 0.7rem;

    border-top-width: 0.16rem;
    border-right-width: 0.16rem;
  }

  .dw-landing-hero__previous {
    left: 0.5rem;
  }

  .dw-landing-hero__next {
    right: 0.5rem;
  }

  .dw-landing-hero__dots {
    min-height: 3rem;
    gap: 0.65rem;
  }

  .dw-landing-hero__dot {
    width: 0.72rem;
    height: 0.72rem;
  }
}
