/* ==========================================================================
   Binary field: one shared canvas behind every public and admin page.

   The digits are pre-rendered into two small offscreen tiles (base + lit) by
   binary-field.js. The visible canvas only blits those tiles and a masked
   spotlight, so there are no thousands of animated DOM nodes and no per-digit
   text layout work on every frame.
   ========================================================================== */

.binary-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    direction: ltr;
    opacity: 0;
    transition: opacity 600ms ease;
}

.binary-field.is-ready {
    opacity: 1;
}

/* Keep every top-level content region above the canvas. */
.site-main,
.site-footer,
.admin-shell {
    position: relative;
    z-index: 1;
}

:root[data-theme="light"] body {
    background:
        radial-gradient(circle at 12% 4%, rgba(var(--brand-rgb), 0.14), transparent 32rem),
        radial-gradient(circle at 88% 68%, rgba(var(--brand-rgb), 0.1), transparent 36rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 52%, var(--bg-subtle) 100%);
    background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
    .binary-field {
        transition: none;
    }
}
