/*
 * Twinkle Lights: holiday landing pages (/thanksgiving, /hanukkah, /new-year). Loaded after base.css
 * and home.css, whose captions, scenes, strand rows (.styles), badges and closing these pages reuse.
 *
 * - The hero is a .scene: a painting with the app's light layer on top (Frame layout for
 *   Thanksgiving and Hanukkah, Draped swags for New Year), live snow on Hanukkah and New Year.
 * - The light layers were rendered for a desktop with a 24 pt menu bar. The page header is that
 *   menu bar here, and it is taller (--bar-h), so the canvas moves down by the difference and the
 *   top row of lights stays under the header instead of behind it.
 */

/* =========================================================================
   Hero
   ========================================================================= */

.scene--holiday .scene-art { top: calc(var(--bar-h) - 24 * var(--pt)); }
/* The snow canvas sits between the painting and the lights, in document order (home.css puts it
   behind the hero for the home page). */
.scene--holiday .snow { z-index: auto; }

.scene--holiday { --copy-top: 150; }
.scene--holiday h1 { font-size: clamp(2.5rem, calc(80 * var(--pt)), 5.4rem); }
.scene--holiday .caption p { font-size: clamp(1.1rem, calc(28 * var(--pt)), 1.9rem); }
.scene--holiday .caption p.eyebrow { font-size: clamp(0.95rem, 1.3vw, 1.15rem); }
/* The peach harvest sky and the bright snow need the denser glow for 4.5:1 under the words. */
.scene--thanksgiving .caption::before,
.scene--hanukkah .caption::before,
.scene--new-year .caption::before { --scrim: 0.64; }

/* The strand rows (home.css .styles): the list of light names reads better in a narrower column. */
.holiday .styles .caption p { max-width: 52rem; }

/* =========================================================================
   The countdown widget (New Year's Eve)
   ========================================================================= */

.holiday-widget {
    overflow: clip;            /* the caption's scrim reaches past the padding */
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem clamp(3rem, 6vw, 5rem);
    text-align: center;
    background:
        radial-gradient(ellipse 45% 60% at 50% 50%, rgb(150 110 60 / 0.22), rgb(0 0 0 / 0) 70%),
        linear-gradient(180deg, #161A38 0%, #20264D 50%, #171B3A 100%);
}
.holiday-widget > .caption { max-width: 46rem; margin: 0 auto; }
.holiday-widget h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.holiday-widget .caption p { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
/* The widget capture (360 x 170, transparent corners): corner radius 22 of 360 pt, as on the home page. */
.holiday-widget-img {
    display: block;
    width: 100%; max-width: 22rem; height: auto;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    border-radius: 6.1% / 12.9%;
    box-shadow: 0 8px 26px rgb(0 0 0 / 0.35);
}

/* =========================================================================
   How it works: one card for the Mac, one for iPhone and iPad
   ========================================================================= */

.holiday-how {
    overflow: clip;
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, #2A2547 0%, #171B3A 100%);
}
.holiday-how h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.holiday-cards {
    max-width: 62rem; margin: clamp(2rem, 4vw, 3rem) auto 0;
    display: grid; gap: 1rem;
    font-family: var(--rounded); color: var(--cream);
}
@media (min-width: 48rem) {
    .holiday-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.holiday-card {
    padding: 1.4rem 1.5rem;
    border-radius: 18px;
    background: rgb(255 255 255 / 0.06);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.holiday-card h3 { margin: 0; font-family: var(--rounded); font-size: 1.45rem; font-weight: 800; color: var(--gold); }
.holiday-card p { margin: 0.6rem 0 0; max-width: none; font-size: 1.08rem; line-height: 1.5; overflow-wrap: break-word; }
.holiday-card strong { font-weight: 700; }

/* =========================================================================
   Phone layout
   ========================================================================= */

@media (max-width: 40rem) {
    .scene--holiday h1 { font-size: calc(80 * 38rem / 900); }
    .scene--holiday .caption p { font-size: calc(28 * 38rem / 900); }
    .scene--holiday { --below: 2.5rem; }
}
