/* Decorative squares. The page positions .deco-squares (top/right) inside a
   position: relative parent; its right edge is the small square's right edge. */
.deco-squares {
  --deco-lg: clamp(22px, calc(22px + (64 - 22) * (100vw - 992px) / (1920 - 992)), 64px);
  --deco-sm: clamp(12px, calc(12px + (34 - 12) * (100vw - 992px) / (1920 - 992)), 34px);
  position: absolute;
  width: calc(var(--deco-lg) + var(--deco-sm) * 2);
  height: calc(var(--deco-lg) * 1.8 + var(--deco-sm));
  pointer-events: none;
  --parallax-rate: 0.3;
}

.deco-squares__square {
  position: absolute;
  display: block;
}

.deco-squares__square--lg {
  top: 0;
  left: 0;
  width: var(--deco-lg);
  height: var(--deco-lg);
  background: var(--deco-lg-color, #e5ab79);
}

.deco-squares__square--sm {
  right: 0;
  bottom: 0;
  width: var(--deco-sm);
  height: var(--deco-sm);
  background: var(--deco-sm-color, #a8d3c4);
}

/* Rotated -90deg: swap the wrapper's width and height, and move the large
   square to the bottom-left and the small one to the top-right. */
.deco-squares--rotated {
  width: calc(var(--deco-lg) * 1.8 + var(--deco-sm));
  height: calc(var(--deco-lg) + var(--deco-sm) * 2);
}

.deco-squares--rotated .deco-squares__square--lg {
  top: auto;
  bottom: 0;
}

.deco-squares--rotated .deco-squares__square--sm {
  top: 0;
  bottom: auto;
}