/* Continuous rails, independently scaled corners: no stretching the illustration. */
.christmas-trim {
  --edge: clamp(2px, .45vmin, 6px);
  --stick: clamp(5px, 1vmin, 12px);
  --leaf: clamp(25px, 6.8vmin, 80px);
  --stripe: calc(var(--stick) * 1.25);
  position: fixed;
  inset: max(env(safe-area-inset-top, 0px), var(--edge))
         max(env(safe-area-inset-right, 0px), var(--edge))
         max(env(safe-area-inset-bottom, 0px), var(--edge))
         max(env(safe-area-inset-left, 0px), var(--edge));
  pointer-events: none;
  z-index: 105;
}
.christmas-trim > span { position: absolute; display: block; }
.christmas-trim .cane-rail {
  box-sizing: border-box;
  border: 1px solid #352823;
  border-radius: 2px;
  background: linear-gradient(var(--shine, 180deg), #fff6, transparent 45%, #43241e38),
    repeating-linear-gradient(122deg, #fffaec 0 var(--stripe), #a52835 var(--stripe),
      #c74044 calc(var(--stripe) + 1px), #b63039 calc(2 * var(--stripe)));
}
.cane-rail.top, .cane-rail.bottom { left: var(--stick); right: var(--stick); height: var(--stick); }
.cane-rail.left, .cane-rail.right { top: var(--stick); bottom: var(--stick); width: var(--stick); --shine: 90deg; }
.cane-rail.top, .holly-corner.nw, .holly-corner.ne { top: 0; }
.cane-rail.bottom, .holly-corner.sw, .holly-corner.se { bottom: 0; }
.cane-rail.left, .holly-corner.nw, .holly-corner.sw { left: 0; }
.cane-rail.right, .holly-corner.ne, .holly-corner.se { right: 0; }
.christmas-trim .holly-corner {
  width: var(--leaf); height: var(--leaf);
  background: url("/assets/christmas-holly-corner.svg") center / contain no-repeat;
}
.holly-corner.ne { transform: scaleX(-1); }
.holly-corner.sw { transform: scaleY(-1); }
.holly-corner.se { transform: scale(-1); }
.christmas-preview-notice {
  padding: .7rem 1rem;
  text-align: center;
  background: #243d31;
  color: #fff5de;
  font: 1rem/1.5 Georgia, serif;
}
.christmas-preview-notice a { color: inherit; text-underline-offset: .2em; }
@media print { .christmas-trim, .christmas-preview-notice { display: none; } }
