/* Ink, timber and night sky in the margins of the lodge's editorial layouts. */
.rooms {
  isolation: isolate;
  padding-bottom: clamp(34px, 3.9vw, 66px);
  background-size: min(15.5vw, 300px) auto;
}
.rooms::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: var(--edge);
  bottom: 5px;
  width: clamp(120px, 16.8vw, 302px);
  height: 45%;
  background: url("assets/raised-tent.svg") left bottom / contain no-repeat;
}
.night-art {
  width: clamp(135px, 18.5%, 420px);
}
.night-art::after {
  content: "";
  position: absolute;
  inset: 21% 0 auto auto;
  width: 65%;
  aspect-ratio: 350 / 198;
  background: url("assets/southern-stars.svg") right center / contain no-repeat;
}
.terrain-art { height: clamp(112px, 16.5vw, 335px); }

/* Plates occupy their own strip below the copy, including on short phone screens. */
.illustrated-page,
.story-section:has(> .margin-plate) {
  position: relative;
  isolation: isolate;
  --plate-height: clamp(125px, 12.5vw, 214px);
  padding-bottom: calc(var(--plate-height) + clamp(20px, 2.3vw, 40px));
}
.margin-plate {
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: var(--plate-height, clamp(125px, 12.5vw, 214px));
  overflow: hidden;
  pointer-events: none;
}
.margin-plate::before, .margin-plate::after {
  content: "";
  position: absolute;
  bottom: 0;
  background-repeat: no-repeat;
}
.margin-plate--ridge::before {
  left: 0;
  width: 25%;
  height: 70%;
  background-image: url("assets/rooms-contours.svg");
  background-position: left bottom;
  background-size: contain;
}
.margin-plate--ridge::after {
  right: 0;
  width: min(81%, calc(var(--plate-height, 174px) * 5.12), 1080px);
  aspect-ratio: 800 / 153;
  background-image: url("assets/naukluft-profile.svg");
  background-size: 100% auto;
  background-position: right top;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 21%);
  mask-image: linear-gradient(90deg, transparent, #000 21%);
}
.margin-plate--timber {
  background: url("assets/footer-terrain.svg") left bottom / 100% 33% no-repeat;
}
.margin-plate--timber::before {
  left: 0;
  width: 30%;
  height: 55%;
  background: url("assets/rooms-contours.svg") left bottom / contain no-repeat;
}
.margin-plate--timber::after {
  right: clamp(22px, 8vw, 152px);
  width: 58%;
  height: 100%;
  background: url("assets/raised-tent.svg") right bottom / contain no-repeat;
}
.margin-plate--sky::before {
  right: 0;
  width: min(74%, 930px);
  height: 100%;
  border-radius: 100% 0 0 0 / 100% 0 0 0;
  background: url("assets/southern-stars.svg") 88% 12% / auto 88% no-repeat,
    radial-gradient(ellipse at 100% 100%, #56403c 10%, #302b30 54%, #202329 90%);
}
.margin-plate--sky::after {
  inset-inline: 0;
  height: 70%;
  background: url("assets/footer-terrain.svg") right bottom / 100% 100% no-repeat;
}
@media (min-width: 701px) and (max-width: 900px) {
  .rooms { padding-bottom: 44px; }
  .rooms::before { width: 17vw; }
  .night-art { width: 15%; }
}
@media (max-width: 700px) {
  .rooms {
    padding-bottom: clamp(80px, 16vw, 102px);
    background-size: clamp(94px, 23%, 165px) auto;
  }
  .rooms::before {
    left: var(--edge);
    bottom: 1px;
    width: 42%;
    height: clamp(74px, 14vw, 96px);
  }
  .night-art { width: 16%; }
  .night-art::after { top: 22%; width: 76%; }
  .terrain-art {
    height: clamp(82px, 18vw, 123px);
    background-position: right bottom;
    background-size: 120% 100%;
  }
  .illustrated-page,
  .story-section:has(> .margin-plate) {
    --plate-height: clamp(82px, 20vw, 126px);
    padding-bottom: calc(var(--plate-height) + 19px);
  }
  .margin-plate--ridge::before { width: 21%; height: 57%; }
  .margin-plate--ridge::after { width: 85%; }
  .margin-plate--timber::before { width: 35%; height: 51%; }
  .margin-plate--timber::after { right: 4%; width: 60%; }
  .margin-plate--sky::before {
    width: 78%;
    background-size: auto 83%, cover;
    background-position: 90% 12%, center;
  }
  .margin-plate--sky::after { background-size: 125% 100%; }
}
@media print {
  .rooms::before, .night-art::after, .margin-plate { display: none; }
  .illustrated-page, .story-section:has(> .margin-plate) { padding-bottom: 1rem; }
}
