/* Holiday gift guide (gift-guide.html only). Kept separate from site.css. */
.gg { --pine: #0f2b23; --pine-2: #163a30; --cranberry: #a3243b; --gold: #d4a64a; --cream: #f6efe0; --tag-ink: #2a2118; }

/* Hero: a night sky over the pines, a string of lights, falling snow */
.gg-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, var(--pine-2), var(--pine) 70%); color: var(--cream); padding: 4.5rem 0 3.5rem; margin-bottom: 1rem; }
.gg-hero .wrap { position: relative; z-index: 2; }
.gg-kicker { font-family: var(--display); text-transform: uppercase; letter-spacing: .18em; font-size: .9rem; color: var(--gold); margin: 0 0 .5rem; }
.gg-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: .95; margin: 0 0 1rem; color: var(--cream); }
.gg-title span { color: var(--gold); }
.gg-lede { font-size: 1.15rem; max-width: 34rem; margin: 0 0 2rem; color: #e9e2d0; }
.gg-lede a { color: var(--gold); }

/* String of lights along the top */
.gg-lights { position: absolute; z-index: 1; top: 0; left: -2%; width: 104%; height: 3.2rem; pointer-events: none; }
.gg-lights svg { width: 100%; height: 100%; display: block; }
.gg-bulb { animation: gg-twinkle 2.4s ease-in-out infinite; }
.gg-bulb:nth-child(3n) { animation-delay: .8s; }
.gg-bulb:nth-child(3n+1) { animation-delay: 1.6s; }
@keyframes gg-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Snow: three layers of soft dots drifting down */
.gg-snow, .gg-snow::before, .gg-snow::after { position: absolute; inset: -100% 0 0 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff8, transparent), radial-gradient(3px 3px at 90px 140px, #fff6, transparent), radial-gradient(2px 2px at 160px 80px, #fff9, transparent), radial-gradient(1.5px 1.5px at 230px 200px, #fff7, transparent);
  background-size: 260px 260px; animation: gg-fall 22s linear infinite; }
.gg-snow::before { content: ""; background-size: 340px 340px; animation-duration: 34s; opacity: .7; }
.gg-snow::after { content: ""; background-size: 190px 190px; animation-duration: 16s; opacity: .5; }
@keyframes gg-fall { to { transform: translateY(50%); } }

/* The gift list: six tags that jump to each book */
.gg-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.gg-list a { display: inline-block; text-decoration: none; }

/* A gift tag: cream card, notched end, a hole and a bit of string */
.gg-tag { position: relative; display: inline-block; background: var(--cream); color: var(--tag-ink); font-family: var(--text); 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); }
.gg-tag::before { content: ""; position: absolute; left: .85rem; top: 50%; width: .45rem; height: .45rem; margin-top: -.225rem; border-radius: 50%; background: var(--pine); box-shadow: inset 0 0 0 1.5px var(--gold); }
.gg-tag b { font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--cranberry); margin-right: .35rem; }
.gg-list li:nth-child(even) .gg-tag { transform: rotate(1.2deg); }
.gg-list a:hover .gg-tag, .gg-list a:focus-visible .gg-tag { transform: rotate(0) translateY(-2px); }
.gg-list a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Each book: the tag above the title, the cover tied with a ribbon */
.gg-book .gg-tag { margin-bottom: 1rem; }
.gg-gift { position: relative; display: block; max-width: 15rem; }
.gg-gift .book-two-cover { display: block; }
.gg-gift::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 74%; height: 14px; margin-top: -7px; background: linear-gradient(180deg, #0000, #fff3 40%, #0000), var(--cranberry); box-shadow: 0 0 0 1px #0003; transition: opacity .4s ease, transform .4s ease; }
.gg-bow { position: absolute; z-index: 2; left: 50%; top: 74%; width: 74px; height: 50px; margin: -25px 0 0 -37px; transition: opacity .4s ease, transform .4s ease; }
.gg-gift:hover::after, .gg-book:focus-within .gg-gift::after { opacity: 0; transform: scaleX(1.08); }
.gg-gift:hover .gg-bow, .gg-book:focus-within .gg-bow { opacity: 0; transform: translateY(-14px) rotate(-8deg); }
.gg-unwrap { font-size: .85rem; color: var(--muted); font-style: italic; margin: .5rem 0 0; }

/* Garland divider between books */
.gg-garland { height: 22px; margin: 1rem auto; max-width: 68rem; background: radial-gradient(circle at 11px 11px, var(--cranberry) 4px, transparent 5px) 0 0 / 66px 22px repeat-x, radial-gradient(circle at 11px 11px, var(--gold) 4px, transparent 5px) 22px 0 / 66px 22px repeat-x, radial-gradient(circle at 11px 11px, #2f7a5b 4px, transparent 5px) 44px 0 / 66px 22px repeat-x; opacity: .85; }

/* Closing card */
.gg-close { background: var(--pine); color: var(--cream); padding: 2.5rem 0; margin-top: 2rem; }
.gg-close a { color: var(--gold); }
.gg-close .share { color: #e9e2d0; }
.gg-sign { font-family: var(--display); font-size: 1.6rem; color: var(--gold); margin: 1rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  .gg-bulb, .gg-snow, .gg-snow::before, .gg-snow::after { animation: none; }
  .gg-gift::after, .gg-bow, .gg-tag { transition: none; }
}
@media (max-width: 46rem) { .gg-lights { height: 1.4rem; } .gg-hero { padding-top: 3rem; } }
