/* Holiday dress for the home page (added 21 Nov 2026). Kept separate from site.css.
   Shown only while js/holiday.js has put class "holiday" on <html> (until 6 Jan 2027). */
.hd-lights, .hd-bow, .hd-note, .hd-garland { display: none; }
.holiday { --hd-cranberry: #a3243b; --hd-gold: #b8892f; --hd-pine: #2f7a5b; }
@media (prefers-color-scheme: dark) { .holiday { --hd-gold: #d4a64a; } }

/* String of lights hung under the header */
.holiday .hd-lights { display: block; height: 2.6rem; margin: -.25rem 0 -1.5rem; pointer-events: none; overflow: hidden; }
.holiday .hd-lights svg { width: 104%; margin-left: -2%; height: 100%; display: block; }
.holiday .hd-lights path { stroke: var(--ink); opacity: .55; }
.hd-bulb { animation: hd-twinkle 2.6s ease-in-out infinite; }
.hd-bulb:nth-of-type(3n) { animation-delay: .9s; }
.hd-bulb:nth-of-type(3n+1) { animation-delay: 1.7s; }
@keyframes hd-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* Each cover on the shelf tied with a ribbon and a bow; it comes off on hover or focus */
.holiday .shelf { padding-top: .6rem; }
.holiday .shelf a { position: relative; }
.holiday .shelf a::after { content: ""; position: absolute; left: 0; right: 0; top: 74%; height: 9%; max-height: 14px; min-height: 6px; transform: translateY(-50%);
  background: linear-gradient(180deg, #0000, #fff3 40%, #0000), var(--hd-cranberry); box-shadow: 0 0 0 1px #0003; transition: opacity .4s ease; }
.holiday .hd-bow { display: block; position: absolute; left: 50%; top: 74%; width: 56%; max-width: 74px; height: auto; transform: translate(-50%, -50%); transition: opacity .4s ease, transform .4s ease; }
.holiday .shelf a:hover::after, .holiday .shelf a:focus-visible::after { opacity: 0; }
.holiday .shelf a:hover .hd-bow, .holiday .shelf a:focus-visible .hd-bow { opacity: 0; transform: translate(-50%, -90%) rotate(-8deg); }

/* A gift tag under the shelf, pointing to the gift guide */
.holiday .hd-note { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.75rem 0 0; }
.hd-tag[hidden] { display: none; }
.hd-tag { position: relative; display: inline-block; background: #f6efe0; color: #2a2118; text-decoration: none; font-size: .95rem; line-height: 1.3; padding: .45rem 1rem .45rem 2.1rem;
  clip-path: polygon(1.1rem 0, 100% 0, 100% 100%, 1.1rem 100%, 0 50%); box-shadow: 0 1px 0 #0002; transform: rotate(-1.5deg); transition: transform .2s ease; }
.hd-tag::before { content: ""; position: absolute; left: .85rem; top: 50%; width: .45rem; height: .45rem; margin-top: -.225rem; border-radius: 50%; background: #0f2b23; box-shadow: inset 0 0 0 1.5px #d4a64a; }
.hd-tag b { font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: #a3243b; margin-right: .35rem; }
.hd-tag:hover, .hd-tag:focus-visible { transform: rotate(0) translateY(-2px); }
.hd-tag:focus-visible { outline: 2px solid var(--hd-gold); outline-offset: 4px; }
.hd-sign { font-family: var(--display); font-size: 1.35rem; color: var(--brass); }

/* Garland between the hero and the books */
.holiday .hd-garland { display: block; height: 22px; margin: 0 auto; max-width: 68rem; opacity: .85;
  background: radial-gradient(circle at 11px 11px, var(--hd-cranberry) 4px, transparent 5px) 0 0 / 66px 22px repeat-x,
    radial-gradient(circle at 11px 11px, var(--hd-gold) 4px, transparent 5px) 22px 0 / 66px 22px repeat-x,
    radial-gradient(circle at 11px 11px, var(--hd-pine) 4px, transparent 5px) 44px 0 / 66px 22px repeat-x; }

@media (prefers-reduced-motion: reduce) {
  .hd-bulb { animation: none; }
  .holiday .shelf a::after, .holiday .hd-bow, .hd-tag { transition: none; }
}
@media (max-width: 46rem) { .holiday .hd-lights { height: 1.6rem; margin-bottom: -1rem; } .hd-sign { font-size: 1.15rem; } }
