/* Holiday skin for the door calendar (christmas.html). Layers on styles.css and
   calendar.css: same layout and door mechanics, new colors and decorations. */

.holiday {
  --pine: #0F3B2E;
  --pine-deep: #0A281F;
  --berry: #A4243B;
  --berry-deep: #7C1729;
  --tinsel: #D9A92E;
  --snow: #FFFDF7;
  --frost: #EAF2EC;
  background: var(--snow);
}

/* Gentle falling snow over the whole page. Purely decorative. */
.snow {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 20px 30px, rgba(255, 255, 255, .9) 50%, transparent 51%),
    radial-gradient(2px 2px at 90px 120px, rgba(255, 255, 255, .8) 50%, transparent 51%),
    radial-gradient(3px 3px at 160px 60px, rgba(255, 255, 255, .7) 50%, transparent 51%),
    radial-gradient(2px 2px at 230px 170px, rgba(255, 255, 255, .85) 50%, transparent 51%),
    radial-gradient(4px 4px at 300px 20px, rgba(255, 255, 255, .6) 50%, transparent 51%);
  background-size: 320px 220px;
  animation: snowfall 18s linear infinite;
  opacity: .9;
}
@keyframes snowfall {
  from { background-position: 0 0; }
  to { background-position: 60px 660px; }
}

/* Head: a deep pine band with a string of lights along its bottom edge. */
.holiday .cal-head {
  position: relative; padding: 52px 0 44px; color: var(--frost);
  background:
    radial-gradient(1200px 300px at 80% -40%, rgba(217, 169, 46, .18), transparent 70%),
    linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%);
}
.holiday .cal-head-inner { border-bottom: 0; padding-bottom: 0; }
.holiday .cal-head h1 { color: var(--snow); }
.holiday .cal-head h1::before {
  content: "\2605"; display: block; font-size: .5em; line-height: 1; margin-bottom: .35em; color: var(--tinsel);
}
.holiday .cal-head .lede { color: rgba(234, 242, 236, .88); }
.holiday .cal-head .series { color: var(--tinsel); }

.lights {
  position: absolute; left: 0; right: 0; bottom: -9px; height: 22px; pointer-events: none;
  background:
    radial-gradient(circle at 12px 13px, #F2C14E 5px, transparent 6px) 0 0 / 96px 22px repeat-x,
    radial-gradient(circle at 36px 13px, #E2475E 5px, transparent 6px) 0 0 / 96px 22px repeat-x,
    radial-gradient(circle at 60px 13px, #7FD3A0 5px, transparent 6px) 0 0 / 96px 22px repeat-x,
    radial-gradient(circle at 84px 13px, #8EC5F0 5px, transparent 6px) 0 0 / 96px 22px repeat-x;
  filter: drop-shadow(0 0 4px rgba(255, 230, 160, .6));
  animation: twinkle 3.2s ease-in-out infinite alternate;
}
.lights::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 3px;
  border-top: 2px solid rgba(10, 40, 31, .9); border-radius: 50%;
}
@keyframes twinkle { from { opacity: .75; } to { opacity: 1; } }

.holiday .cal-meter {
  background: rgba(255, 253, 247, .06); border: 1px solid rgba(217, 169, 46, .35);
  border-radius: var(--radius); padding: 16px 18px;
}
.holiday .cal-meter-count { color: var(--snow); }
.holiday .cal-meter-label,
.holiday .cal-meter-note { color: rgba(234, 242, 236, .8); }
.holiday .cal-bar { background: rgba(255, 255, 255, .14); }
.holiday .cal-bar i {
  background: repeating-linear-gradient(-45deg, var(--berry) 0 8px, var(--snow) 8px 16px);
}

.holiday .cal-doors { padding-top: 40px; }
.holiday .cal-rail .btn-outline { border-color: var(--pine); color: var(--pine); }
.holiday .cal-rail .btn-outline:hover { background: var(--pine); color: var(--snow); }

/* Doors are wrapped presents: red and green paper, a gold ribbon, a bow,
   and the day number on a gift tag. */
.holiday .door-front {
  background:
    linear-gradient(90deg, transparent calc(50% - 7px), var(--tinsel) calc(50% - 7px), #F0CB62 50%, var(--tinsel) calc(50% + 7px), transparent calc(50% + 7px)),
    linear-gradient(0deg, transparent calc(50% - 7px), var(--tinsel) calc(50% - 7px), #F0CB62 50%, var(--tinsel) calc(50% + 7px), transparent calc(50% + 7px)),
    linear-gradient(150deg, #B8304A 0%, var(--berry-deep) 100%);
  border: 1px solid #5E1020;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 6px rgba(10, 40, 31, .25);
}
.holiday .door:nth-child(3n + 2) .door-front {
  background:
    linear-gradient(90deg, transparent calc(50% - 7px), var(--tinsel) calc(50% - 7px), #F0CB62 50%, var(--tinsel) calc(50% + 7px), transparent calc(50% + 7px)),
    linear-gradient(0deg, transparent calc(50% - 7px), var(--tinsel) calc(50% - 7px), #F0CB62 50%, var(--tinsel) calc(50% + 7px), transparent calc(50% + 7px)),
    linear-gradient(150deg, #1B5A45 0%, var(--pine-deep) 100%);
  border-color: #06190F;
}
.holiday .door:nth-child(3n) .door-front {
  background:
    linear-gradient(90deg, transparent calc(50% - 7px), var(--berry) calc(50% - 7px), #C8384F 50%, var(--berry) calc(50% + 7px), transparent calc(50% + 7px)),
    linear-gradient(0deg, transparent calc(50% - 7px), var(--berry) calc(50% - 7px), #C8384F 50%, var(--berry) calc(50% + 7px), transparent calc(50% + 7px)),
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, .9) 2px, transparent 3px) 0 0 / 18px 18px,
    linear-gradient(150deg, #FFFFFF 0%, #EDE6D6 100%);
  border-color: #CFC6B2;
}
/* The bow, in place of the plain door knob. */
.holiday .door-front::before {
  inset: auto; left: 50%; top: 6px; width: 30px; height: 16px; margin-left: -15px;
  border: 0; border-radius: 0;
  background:
    radial-gradient(ellipse 8px 7px at 8px 8px, #F0CB62 70%, transparent 72%),
    radial-gradient(ellipse 8px 7px at 22px 8px, #F0CB62 70%, transparent 72%),
    radial-gradient(circle 4px at 15px 9px, #B5881C 90%, transparent 95%);
}
.holiday .door:nth-child(3n) .door-front::before {
  background:
    radial-gradient(ellipse 8px 7px at 8px 8px, #C8384F 70%, transparent 72%),
    radial-gradient(ellipse 8px 7px at 22px 8px, #C8384F 70%, transparent 72%),
    radial-gradient(circle 4px at 15px 9px, var(--berry-deep) 90%, transparent 95%);
}
.holiday .door-front::after { display: none; }
.holiday .door-num {
  position: relative; z-index: 1;
  min-width: 2.1em; padding: .12em .3em; text-align: center;
  background: var(--snow); color: var(--berry-deep); border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
}
.holiday .door-when {
  position: relative; z-index: 1; margin-top: 4px;
  background: rgba(10, 40, 31, .72); color: var(--snow);
  padding: 2px 7px; border-radius: 999px;
}
.holiday .door-back { background: var(--pine-deep); border-color: var(--pine-deep); }
.holiday .door-lock { color: var(--snow); opacity: .85; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.holiday .door.is-locked:not(.is-open) .door-front { filter: saturate(.75) brightness(.9); }

/* Inside a door */
.holiday .door-inside { background: var(--snow); border-color: #D9D2C0; }
.holiday .door-day { color: var(--berry); }
.holiday .door-title { color: var(--pine); }
.holiday .door-more { color: var(--berry); }
.holiday .door.is-open .door-face { box-shadow: -14px 6px 22px rgba(10, 40, 31, .3); }

/* Behind-the-door panel */
.holiday .cal-scrim { background: rgba(10, 40, 31, .62); }
.holiday .cal-sheet {
  border-top: 0; position: relative; padding-top: 34px;
  background:
    linear-gradient(90deg, var(--berry) 0 33.3%, var(--pine) 33.3% 66.6%, var(--tinsel) 66.6%) top / 100% 6px no-repeat,
    var(--snow);
}
.holiday .cal-sheet-day { color: var(--berry); }
.holiday .cal-sheet h2 { color: var(--pine); }
.holiday .cal-sheet-action { background: var(--frost); border-color: #CFE0D4; border-left-color: var(--pine); }
.holiday .cal-close { background: var(--snow); color: var(--pine); }
.holiday .cal-toast { background: var(--pine); }

/* Shop nudge */
.holiday .cal-cta {
  background: linear-gradient(180deg, var(--frost), var(--snow));
  border-top: 0; position: relative;
}
.holiday .cal-cta h2 { color: var(--pine); }
.holiday .cal-cta .btn-primary { background: var(--berry); border-color: var(--berry); }
.holiday .cal-cta .btn-primary:hover { background: var(--berry-deep); border-color: var(--berry-deep); }

@media (prefers-reduced-motion: reduce) {
  .snow { animation: none; opacity: .5; }
  .lights { animation: none; }
}

/* "Get each door by email" band, between the head and the doors. */
.cal-email { padding: 34px 0 6px; }
.cal-email-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
  background: var(--snow); border: 1px solid #D9D2C0; border-left: 5px solid var(--berry);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(10, 40, 31, .07);
}
.cal-email h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 2.6vw, 1.55rem); color: var(--pine); }
.cal-email-copy p { margin: 0; }
.cal-email-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cal-email-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 10px 14px;
  border: 1px solid #CFC6B2; border-radius: 999px; background: var(--white);
  font: 1rem var(--text); color: var(--body);
}
.cal-email-form input[type="email"]:focus { outline: 3px solid rgba(164, 36, 59, .25); border-color: var(--berry); }
.cal-email-form .btn-primary { background: var(--berry); border-color: var(--berry); min-height: 46px; }
.cal-email-form .btn-primary:hover { background: var(--berry-deep); border-color: var(--berry-deep); }
.cal-email-form .btn-primary:disabled { opacity: .6; cursor: progress; }
.cal-email-note { flex-basis: 100%; margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.cal-email-note.is-bad { color: #A3302C; font-weight: 700; }
/* Hidden from people, visible to form-filling bots. */
.cal-email-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) {
  .cal-email-inner { grid-template-columns: 1fr; gap: 16px; }
}
