/* ==========================================================================
   theme_light.css — the blog reads in light mode.

   When the blog column is on screen, columns.js puts .blogLight on <html>.
   The page background cross-fades from the dark tile to the white tile
   (a .lightLayer over the body background, under the columns) and the post
   panels fade from black to white, timed with the column slide. Leaving
   the blog fades back. The header always stays dark.
   Loaded after every other stylesheet so these win.
   ========================================================================== */

/* The white page background, faded in over the dark one. Only exists with
   the column layout; without JS the page stays dark. */
.lightLayer {
    display: none;
}
.hasColumns .lightLayer {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, #fff 0, rgba(255, 255, 255, 0.6) 4%, rgba(255, 255, 255, 0) 12%,
            rgba(255, 255, 255, 0) 88%, rgba(255, 255, 255, 0.6) 96%, #fff 100%),
        url('tiled_bg_white.webp');
    background-size: 100% 100%, 1024px 1024px;
    background-repeat: no-repeat, repeat;
    background-color: white;
    opacity: 0;
    transition: opacity var(--columnSlide) ease;
}
.blogLight .lightLayer {
    opacity: 1;
}

/* Post panels fade along with it. */
.blogPost,
.blogTitle,
.blogBody p,
.blogBody a,
.blogVideo,
.blogImages img {
    transition: background-color var(--columnSlide) ease, color var(--columnSlide) ease,
        border-color var(--columnSlide) ease;
}
.blogLight .blogPost {
    background-color: #fff;
}
.blogLight .blogPost,
.blogLight .blogBody p {
    color: #111;
}
.blogLight .blogBody a:link,
.blogLight .blogBody a:visited,
.blogLight .blogBody .blogLink a {
    color: #00747a;                 /* the site's cyan is hard to read on white */
}
.blogLight .blogBody a:hover {
    color: #555;
}
.blogLight .blogVideo {
    background-color: #f2f2f2;
    border-color: #c8c8c8;
}
.blogLight .blogImages img {
    border-color: #c8c8c8;
}

/* No fade for jumps that don't slide (a link straight to a post on load,
   the first paint, reduced motion). */
.columnsLoading .lightLayer,
.columns.noSlide .lightLayer,
.columnsLoading .blogPost,
.columnsLoading .blogPost *,
.columns.noSlide .blogPost,
.columns.noSlide .blogPost * {
    transition: none;
}
@media (prefers-reduced-motion: reduce) {
    .lightLayer,
    .blogPost,
    .blogPost * {
        transition: none;
    }
}
