#card { background: radial-gradient(ellipse at 50% 8%, #29474b, transparent 46%), #102827; }
#after-bedtime {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 4vw, 66px) 6% clamp(18px, 3.5vw, 48px);
  background: #102333;
  color: #fff2d6;
}
.frosted-window, .frosted-window img { position: absolute; inset: 0; width: 100%; height: 100%; }
.frosted-window { z-index: -2; }
.frosted-window img { object-fit: cover; object-position: center bottom; }
#after-bedtime .winter-scenery { bottom: 27%; }
.winter-vignette {
  width: min(100%, 925px); margin: 0 auto; display: grid;
  grid-template-columns: 1fr minmax(240px, 48%); align-items: center;
}
.winter-dedication { z-index: 1; }
.winter-dedication h2 {
  font: clamp(37px, 6.4vw, 81px)/.95 S,Georgia,serif; letter-spacing: -.045em; margin: 0;
  text-shadow: 0 2px 10px #0b1728;
}
.winter-dedication h2 em { color: #ffdca0; }
.winter-dedication p {
  max-width: 31ch; margin: 14px 0 0;
  font: italic clamp(17px, 1.6vw, 22px)/1.4 Georgia,serif; text-shadow: 0 1px 6px #071222;
}
#shake-globe {
  justify-self: center; position: relative; display: block; width: 100%;
  background: none; color: #402014; border: 0; padding: 0;
  touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
#shake-globe:active { cursor: grabbing; }
#shake-globe:focus-visible { outline: 2px dashed #f1d69c; outline-offset: 2px; }
#shake-globe::before {
  content: ""; position: absolute; left: 18%; right: 16%; bottom: -.8%; height: 7%;
  background: radial-gradient(ellipse, #120d0ee0, transparent 70%); pointer-events: none;
}
.winter-glass { display: block; position: relative; aspect-ratio: 1; transform-origin: 50% 96%; }
.globe-shell { display: block; width: 100%; height: 100%; pointer-events: none; }
.globe-inlay, .water-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.globe-keepsake { opacity: 0; }
.globe-inside .globe-keepsake { opacity: 1; }
.globe-print { transform-origin: 160px 196px; }
.brass-engraving {
  position: absolute; top: 80.9%; left: 33%; right: 33%; transform: translateY(-50%);
  font: italic 600 clamp(13px, 1.6vw, 21px)/1 Georgia, serif; text-align: center;
  text-shadow: 0 1px 0 #ffe5a480; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  body:not(:has(#quiet[aria-pressed="true"])) .globe-keepsake { transition: opacity .45s ease; }
  body:not(:has(#quiet[aria-pressed="true"])) .globe-inside .globe-keepsake { transition-delay: .18s; }
  body:not(:has(#quiet[aria-pressed="true"])) .globe-inside .globe-print { animation: raise-print .75s .11s both; }
  @keyframes raise-print {
    from { transform: translateY(21px) rotate(4deg) scale(.94); }
    72% { transform: translateY(-1px) rotate(-1deg); }
    to { transform: none; }
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  #after-bedtime { padding: 30px 14px 15px; }
  .winter-vignette { grid-template-columns: 1fr; gap: 12px; }
  .winter-dedication { display: contents; }
  .winter-dedication h2 { text-align: center; font-size: clamp(35px, 10vw, 48px); }
  .winter-dedication h2 br { display: none; }
  .winter-dedication h2 em::before { content: " "; }
  .winter-dedication p { grid-row: 3; align-self: start; min-height: 3lh; font-size: 16px; text-align: center; margin: 0 auto; }
  #shake-globe { grid-row: 2; width: min(83vw, 340px); }
  .brass-engraving { font-size: clamp(13px, 3.8vw, 18px); }
}
@media (orientation: landscape) and (max-height: 520px) {
  #after-bedtime { padding-block: 17px; }
  #shake-globe { max-width: min(42vw, 77svh); }
  .brass-engraving { font-size: 13px; }
}
