/*
 * What's New on the Hill: listing page and article sections
 * Layout: agency deck "Dempsey Hill Website Refresh" (2026-08-07).
 * Colours, shapes and spacing: Figma file "Dempsey Hill Website" as of
 * 2026-11-03, frame by frame (the listing and the gallery article keep
 * Figma's greys: #1b1b1b / #e7ddd1 / #aaa296 / #f2f2f2) (frames are 1440 wide with a 1234px content area), on the site
 * palette #fafafa / #d2b698 / #5f5042 / #3c281e. Desktop type sizes, line
 * heights and gaps are Figma's px values (Futura Medium, line height = the
 * font's own 1.33); bold uses FuturaStd-Heavy, the nearest bold the site has.
 *
 * Article pages are stacks of section templates, rendered by js/whats-new.js
 * from the CMS:
 *   .wnHeader    - eyebrow, headline, standfirst, image bleeding to the right edge
 *                  (tan #d2b698 background, brown #5f5042 text)
 *   .wnFeature   - headline, body, optional info block (Visit / Reservations /
 *                  Website) and BOOK NOW button; --imgLeft or --imgRight.
 *                  Backgrounds alternate by themselves: light, darkest brown, light...
 *   .wnSpotlight - full-bleed image with a darkest-brown panel
 *   .wnGallery   - eyebrow, headline, image slider, text (opens an article on its own)
 */

.wnPage {
  min-height: 100vh;
  background: #fafafa;
  color: #5f5042;
  font-family: "futura-webfont", Arial, sans-serif;
}

.wnPage h1, .wnPage h2, .wnPage h3 {
  font-family: "futura-webfont", Arial, sans-serif;
  font-weight: normal;
  color: inherit;
  margin: 0;
}

.wnPage p {
  font-family: "futura-webfont", Arial, sans-serif;
  color: inherit;
  font-size: 14px;
  line-height: 1.33;
  margin: 0 0 1.33em;
}

.wnPage p:last-child {
  margin-bottom: 0;
}

.wnPage a {
  color: inherit;
}

/* links typed in the CMS text (tenant names, Book Now, websites) are underlined */
.wnPage p a {
  text-decoration: underline;
}

.wnPage strong, .wnPage b {
  font-family: "FuturaStd-Heavy", "futura-webfont", Arial, sans-serif;
  font-weight: normal;
}

.wnPage .wnTenant {
  color: inherit;
  text-decoration: underline;
  font-family: "FuturaStd-Heavy", "futura-webfont", Arial, sans-serif;
}

.wnImg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 27px;
}

/* ---------- listing page ---------- */

.wnIntro {
  text-align: center;
  padding: 97px 20px 63px;
}

.wnIntro h1 {
  font-size: 72px;
  line-height: 100px;
  text-transform: uppercase;
  color: #363533;
}

.wnPage .wnIntro p {
  color: #363533;
  font-size: 20px;
  line-height: 1.33;
  max-width: 565px;
  margin: 14px auto 0;
}

.wnGrid {
  max-width: 863px;
  margin: 0 auto;
  padding: 0 20px;
}

.wnGrid:after {
  content: "";
  display: table;
  clear: both;
}

.wnPage .wnCard {
  float: left;
  width: 48.7%;
  width: calc((100% - 21px) / 2);
  margin: 0 21px 25px 0;
  display: block;
  background: #1b1b1b;
  color: #e7ddd1;
  text-decoration: none;
}

.wnCard:nth-child(2n) {
  margin-right: 0;
}

.wnCard:nth-child(2n+1) {
  clear: left;
}

.wnPage .wnCard:hover, .wnPage .wnCard:focus {
  color: #e7ddd1;
  text-decoration: none;
}

.wnCardImg {
  height: 233px;
  overflow: hidden;
}

.wnCardImg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}

.wnCard:hover .wnCardImg img {
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}

.wnCardBody {
  position: relative;
  min-height: 142px;
  padding: 20px 34px 50px;
}

.wnEyebrow {
  display: block;
  font-size: 12px;
  line-height: 1.33;
  text-transform: uppercase;
  margin-bottom: 11px;
}

.wnCard .wnEyebrow {
  color: #e7ddd1;
}

.wnCardTitle {
  display: block;
  font-size: 16px;
  line-height: 1.33;
}

.wnCardArrow {
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  border: 1.5px solid #aaa296;
  border-radius: 50%;
  color: #aaa296;
  text-align: center;
  line-height: 24px;
  font-size: 24px;
}

/* cards beyond the first page stay hidden until LOAD MORE */
.wnPage .wnCard.is-hidden {
  display: none;
}

.wnLoadMore {
  clear: both;
  text-align: center;
  padding: 92px 20px 80px;
}

.wnPage .wnLoadMoreBtn {
  display: inline-block;
  min-width: 212px;
  height: 52px;
  padding: 0 24px;
  line-height: 48px;
  border: 2px solid #1b1b1b;
  border-radius: 9px;
  background: transparent;
  color: #1b1b1b;
  font-family: "futura-webfont", Arial, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
}

.wnPage .wnLoadMoreBtn:hover, .wnPage .wnLoadMoreBtn:focus {
  background: #1b1b1b;
  border-color: #1b1b1b;
  color: #fafafa;
}

/* ---------- section 1: article header ---------- */

.wnHeader {
  background: #d2b698;
  color: #5f5042;
  padding: 120px 0 72px;
  overflow: hidden;
}

.wnHeader:after {
  content: "";
  display: table;
  clear: both;
}

.wnHeaderText {
  float: left;
  width: 42%;
  padding: 31px 30px 0 7.8%;
}

.wnHeaderText > * {
  max-width: 392px;
}

.wnHeader .wnEyebrow {
  text-transform: none;
  margin-bottom: 7px;
}

.wnHeader h1 {
  font-size: 48px;
  line-height: 1.33;
  margin-bottom: 14px;
}

.wnPage .wnHeader p {
  font-size: 16px;
}

.wnHeaderImg {
  float: right;
  width: 53%;
  height: 488px;
}

.wnHeaderImg .wnImg {
  border-radius: 70px 0 0 70px;
}

/* ---------- section 2: editorial feature ---------- */

/* light block: off-white background, brown text */
.wnFeature {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 52px 7.8% 48px;
  background: #fafafa;
  color: #5f5042;
}

/* header is section 1, so the 2nd feature, 4th feature... are dark */
.wnFeature:nth-of-type(odd) {
  background: #3c281e;
  color: #ffffff;
}

.wnFeatureImg {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -ms-flex-item-align: start;
  align-self: flex-start;
  width: 436px;
  max-width: 46%;
  height: 420px;
}

@supports (aspect-ratio: 1 / 1) {
  .wnFeatureImg {
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.wnFeatureText {
  width: 418px;
  max-width: 46%;
  position: relative;
}

.wnFeature--imgRight {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
}

/* Figma: headline boxes ~418px wide, paragraphs ~380px */
.wnFeatureText p {
  max-width: 380px;
}

.wnFeatureText h2 {
  font-size: 28px;
  line-height: 1.33;
  margin: 0 0 10px;
}

.wnVisit {
  margin-top: 30px;
}

.wnVisit .wnBtn {
  margin-top: 25px;
}

.wnPage .wnBtn {
  display: inline-block;
  min-width: 212px;
  height: 52px;
  padding: 0 20px;
  line-height: 48px;
  border: 2px solid #5f5042;
  border-radius: 9px;
  text-align: center;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: underline;
  color: inherit;
  background: transparent;
  -webkit-transition: background 0.2s, color 0.2s, border-color 0.2s;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.wnPage .wnBtn:hover, .wnPage .wnBtn:focus {
  background: #5f5042;
  border-color: #5f5042;
  color: #f9f6ef;
}

/* on the dark block the button is outlined in white */
.wnPage .wnFeature:nth-of-type(odd) .wnBtn {
  border-color: #ffffff;
}

.wnPage .wnFeature:nth-of-type(odd) .wnBtn:hover,
.wnPage .wnFeature:nth-of-type(odd) .wnBtn:focus {
  background: #f9f6ef;
  border-color: #f9f6ef;
  color: #3c281e;
}

/* ---------- section 3: spotlight (featured content module) ---------- */

.wnSpotlight {
  position: relative;
  height: 572px;
  background: #3c281e center / cover no-repeat;
}

.wnSpotlightPanel {
  position: absolute;
  top: 50%;
  right: 7.8%;
  width: 436px;
  min-height: 436px;
  max-height: 90%;
  overflow: auto;
  padding: 28px 44px 18px;
  border-radius: 27px;
  background: #3c281e;
  color: #f9f6ef;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.wnSpotlightPanel h3 {
  font-size: 28px;
  line-height: 1.33;
  margin-bottom: 13px;
}

.wnPage .wnSpotlightPanel .wnBtn {
  border-color: #f9f6ef;
  text-decoration: none;
  margin: 4px 0 12px;
}

.wnPage .wnSpotlightPanel .wnBtn:hover,
.wnPage .wnSpotlightPanel .wnBtn:focus {
  background: #f9f6ef;
  color: #3c281e;
}

/* ---------- section 4: gallery (headline, image slider, text) ---------- */

/* Figma's article 3 frame: light grey page, near-black text */
.wnPage:has(.wnGallery), .wnGallery, .wnGallery ~ .wnBack {
  background: #f2f2f2;
}

.wnGallery, .wnGallery ~ .wnBack {
  color: #1b1b1b;
}

.wnGallery {
  padding: 197px 9.7% 70px;
}

.wnGallery > * {
  max-width: 814px;
}

.wnGallery > .wnGalleryText {
  max-width: 798px;
}

.wnGallery .wnEyebrow {
  text-transform: none;
  margin-bottom: 5px;
}

.wnGallery h1 {
  max-width: 584px;
  font-size: 48px;
  line-height: 1.33;
  margin-bottom: 25px;
}

.wnPage .wnGalleryText p {
  font-size: 16px;
}

.wnGalleryStage {
  position: relative;
  overflow: hidden;
  border-radius: 70px;
  background: #e9e4dc;
  aspect-ratio: 814 / 488;
  margin-left: -13px; /* Figma sets the image 13px left of the text */
}

.wnGallerySlide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.wnGallerySlide.is-active {
  opacity: 1;
}

.wnGalleryArrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 56px;
  margin-top: -28px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.wnGalleryArrow:before {
  content: "";
  position: absolute;
  top: 11px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}

.wnGalleryArrow--prev {
  left: 2%;
}

.wnGalleryArrow--prev:before {
  left: 10px;
  border-right: 23px solid #232321;
}

.wnGalleryArrow--next {
  right: 2%;
}

.wnGalleryArrow--next:before {
  right: 10px;
  border-left: 23px solid #232321;
}

.wnGalleryDots {
  text-align: center;
  margin-top: 12px;
}

.wnGalleryDot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #aaa296;
  cursor: pointer;
}

.wnGalleryDot.is-active {
  background: #232321;
}

.wnGalleryText {
  margin-top: 35px;
}

/* ---------- back link ---------- */

.wnBack {
  padding: 30px 7% 50px;
  background: #fafafa;
  color: #5f5042;
  font-size: 16px;
}

.wnBack a {
  text-decoration: underline;
}

/* ---------- states while js/whats-new.js loads from the CMS ---------- */

.wnLoading {
  min-height: 600px;
}

.wnPage .wnMessage {
  text-align: center;
  padding: 40px 20px;
}

.wnPreview {
  padding: 10px 7.8%;
  background: #fff3c4;
  color: #5f5042;
  font-size: 15px;
}

/* ---------- tablet / mobile ---------- */

@media screen and (max-width: 992px) {
  /* the site uses <meta name="viewport" content="width=640">, so phones shrink
     everything by ~0.6; these sizes come out at roughly 13-14px body on a phone */
  .wnPage p {
    font-size: 22px;
  }

  .wnIntro h1 {
    font-size: 54px;
  }

  .wnPage .wnIntro p {
    font-size: 24px;
  }

  .wnEyebrow {
    font-size: 15px;
  }

  .wnHeader .wnEyebrow {
    font-size: 17px;
  }

  .wnCardTitle {
    font-size: 24px;
  }

  .wnFeatureText h2 {
    font-size: 36px;
  }

  .wnPage .wnBtn, .wnPage .wnLoadMoreBtn {
    font-size: 20px;
  }

  .wnSpotlightPanel h3 {
    font-size: 30px;
  }

  .wnBack {
    font-size: 20px;
  }

  .wnHeader {
    padding: 40px 0 0;
  }

  .wnHeaderImg .wnImg {
    border-radius: 40px 0 0 40px;
  }

  .wnHeaderText, .wnHeaderImg,
  .wnFeature .wnFeatureImg, .wnFeature .wnFeatureText {
    float: none;
    width: 100%;
  }

  .wnHeaderText {
    padding: 0 30px 30px;
  }

  .wnHeader h1 {
    font-size: 46px;
  }

  .wnPage .wnHeader p {
    font-size: 23px;
  }

  .wnHeaderImg {
    height: 340px;
    padding-left: 30px;
  }

  .wnFeature {
    display: block;
    padding: 40px 30px;
  }

  .wnFeature .wnFeatureImg {
    max-width: none;
    height: 340px;
    aspect-ratio: auto;
    margin-bottom: 26px;
  }

  .wnFeatureText {
    min-height: 0;
  }

  .wnGallery {
    padding: 50px 30px 40px;
  }

  .wnPage .wnGalleryText p {
    font-size: 24px;
  }

  .wnHeaderText > *, .wnFeature .wnFeatureText, .wnFeatureText p {
    max-width: none;
  }

  .wnGallery h1 {
    font-size: 46px;
    margin-bottom: 30px;
  }

  .wnGallery .wnEyebrow {
    font-size: 17px;
  }

  .wnGalleryStage {
    border-radius: 40px;
    margin-left: 0;
  }

  .wnSpotlight {
    height: auto;
    padding: 260px 30px 30px;
  }

  .wnSpotlightPanel {
    position: static;
    width: auto;
    min-height: 0;
    max-height: none;
    -webkit-transform: none;
    transform: none;
  }
}

@media screen and (max-width: 700px) {
  .wnPage .wnCard {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}
