/* Seasonal layer: remove this stylesheet and noel.js to restore the normal site. */
.site-header {
  overflow: visible;
}

.noel-garland {
  position: absolute;
  z-index: 30;
  top: -3px;
  left: 8%;
  right: 8%;
  height: 15px;
  pointer-events: none;
  border-top: 3px solid #f7f3e7;
  border-radius: 50%;
  background: radial-gradient(ellipse at 2% 2px, #fff 0 5px, transparent 6px) 0 0 / 31px 12px repeat-x;
}

.noel-garland::after {
  content: "";
  position: absolute;
  inset: 3px 0 0;
  background: radial-gradient(circle, #f8c15a 0 3px, transparent 4px) 0 0 / 48px 12px repeat-x,
              radial-gradient(circle, #df6054 0 3px, transparent 4px) 12px 0 / 48px 12px repeat-x,
              radial-gradient(circle, #73b99b 0 3px, transparent 4px) 24px 0 / 48px 12px repeat-x,
              radial-gradient(circle, #a5bde7 0 3px, transparent 4px) 36px 0 / 48px 12px repeat-x;
  filter: drop-shadow(0 1px 3px #f4d99a);
}

body:not([data-page="admin"]) .button {
  overflow: visible;
}

/* The usual shine extends outside an unclipped button, so hide it in winter. */
body:not([data-page="admin"]) .button::after {
  display: none;
}

body:not([data-page="admin"]) .button::before {
  content: "";
  position: absolute;
  z-index: 10;
  pointer-events: none;
  top: -4px;
  left: 3%;
  right: 3%;
  height: 15px;
  border-radius: 12px 12px 0 0;
  background: url("assets/snow-trim.svg") left top / 120px 16px repeat-x;
  transition: filter .2s ease, transform .2s ease;
}

body:not([data-page="admin"]) .button:hover::before,
body:not([data-page="admin"]) .button:focus-visible::before {
  filter: brightness(1.08) drop-shadow(0 2px 3px rgba(255,255,255,.55));
  transform: translateY(-1px);
}

body[data-page] .noel-snowy-panel {
  position: relative;
  overflow: visible;
}
.noel-panel-snow {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  top: -1px;
  left: 2%;
  right: 2%;
  height: 20px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: url("assets/snow-trim.svg") left top / 180px 24px repeat-x;
  opacity: .94;
}

.noel-snowfall {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}

.noel-flake {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fffaf0;
  opacity: .65;
  animation: noel-fall var(--duration) linear var(--delay) infinite;
}

@keyframes noel-fall {
  from { transform: translate3d(0, -10px, 0); }
  to { transform: translate3d(30px, calc(100vh + 20px), 0); }
}

@media (max-width: 700px) {
  .noel-garland { left: 12%; right: 12%; }
  .noel-flake:nth-child(n+15) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .noel-snowfall { display: none; }
}
