/*
Theme Name: Starzie
Theme URI: https://starzie.org
Author: Starzie
Description: Starzie's own WordPress theme -- dark, cosmic, matching the
  real Starzie brand (see starzie-frontend's own dark-mode palette:
  near-black background, sky-blue-to-blue accent gradient, white text).
  A block theme (theme.json + templates/parts) as of 2026-09-23 -- this
  file is required WordPress theme-header metadata plus one small,
  deliberate exception (see the CSS below the header comment): colors,
  typography, and layout still live in theme.json; the previous
  hand-rolled CSS (.starzie-header/.starzie-nav/etc.) applied to
  classic-theme markup this theme no longer renders (header.php/
  footer.php/index.php are gone -- see templates/ and parts/).
Version: 0.7.0
Requires at least: 6.4
Requires PHP: 8.1
License: Unlicense
Text Domain: starzie
*/

/* 2026-09-24: parts/header.html's sticky positioning. Originally done
   via the Group block's native "position" block support (style.position
   in the block's JSON attrs, serialized into the saved HTML's inline
   style/class) -- real bug hit live: the editor flagged the saved
   header as invalid ("Resolve Block" / Convert to HTML.../Convert to
   Blocks), meaning the hand-written inline style/class didn't
   byte-match what WordPress's own style engine would regenerate from
   those attributes. Rather than keep guessing at that serialization
   format with no running editor to verify against, moved to a plain
   className (starzie-sticky-header) + real CSS -- a custom className
   is never subject to block-attribute validation, only attributes
   WordPress itself derives styles/classes from are, so this class of
   bug can't recur here.

   2026-09-25: real bug fixed -- position: sticky did not actually work
   live (most likely cause, not directly confirmed: an ancestor wrapper
   from theme.json's own layout classes, e.g. is-layout-constrained/
   alignfull, with overflow or height behavior that breaks sticky
   positioning -- sticky is notoriously sensitive to ancestor CSS in a
   way fixed isn't). Switched to position: fixed + width: 100% (fixed
   takes the element out of flow entirely, so it needs an explicit
   width or it shrinks to content) + margin-top: 1em, confirmed working
   by live test against the real deployed theme, not guessed. */
.starzie-sticky-header {
  position: fixed;
  width: 100%;
  top: 0;
  margin-top: 1em;
  z-index: 50;
  background-color: var(--wp--preset--color--background);
}
