/* Seasonal looks (seasons.py). The theme's colours arrive as custom properties on <html>:
   --season-a / -a2 (accent, light accent), --season-b / -b2 (second colour), --season-glow,
   --season-cast (laid over the hero picture) and --season-dim (a filter on it).
   Only the header line, the homepage hero and its buttons change; the wiki and every other page
   keep their own colours. Loaded only while a theme is on. */

html[data-season] .site-top { border-bottom-color: color-mix(in srgb, var(--season-a) 45%, transparent); }
html[data-season] .site-top::before { background: linear-gradient(90deg, var(--season-b), var(--season-a), var(--season-b)); }
html[data-season] .site-brand,
html[data-season] .site-brand:hover { color: var(--season-a2); }

/* The hero takes the theme's colours through the tokens its own rules already use. */
html[data-season] .home-hero {
    --gold: var(--season-a);
    --gold-light: var(--season-a2);
    --crimson: var(--season-b);
    --crimson-light: var(--season-b2);
    border-bottom-color: color-mix(in srgb, var(--season-a) 40%, transparent);
}
html[data-season] .home-hero::before { filter: var(--season-dim); }
html[data-season] .home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--season-cast);
    mix-blend-mode: color;
}
html[data-season] .home-hero-in { position: relative; z-index: 1; }
html[data-season] .home-ip { border-color: color-mix(in srgb, var(--season-a) 55%, transparent); }
html[data-season] .home-ip:hover,
html[data-season] .home-ip:focus-visible { border-color: var(--season-a2); background: color-mix(in srgb, var(--season-a) 12%, rgba(10,7,3,.82)); }
html[data-season] .home-party img {
    filter: drop-shadow(0 12px 12px rgba(0,0,0,.55)) drop-shadow(0 0 22px color-mix(in srgb, var(--season-glow) 30%, transparent));
}

/* The animation (static/js/season-fx.js) draws behind the text and the Pokémon. */
.home-hero .home-fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
@media (min-width: 761px) {   /* quieter under the text column, so it stays easy to read */
    .home-hero .home-fx {
        -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.35) 38%, #000 62%);
        mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.35) 38%, #000 62%);
    }
}

/* The banner line above the eyebrow. */
.home-season {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .9rem;
    padding: .3rem .85rem;
    border-radius: 999px;
    font: 700 .82rem/1.3 var(--font-ui);
    color: #1a120a;
    background: linear-gradient(90deg, var(--season-a), var(--season-a2));
    box-shadow: 0 0 18px color-mix(in srgb, var(--season-glow) 40%, transparent);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.home-season:hover,
.home-season:focus-visible {
    color: #1a120a;
    transform: translateY(-1px);
    box-shadow: 0 0 24px color-mix(in srgb, var(--season-glow) 60%, transparent);
}
@media (max-width: 520px) {
    .home-season { font-size: .76rem; margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .home-season { transition: none; }
}
