/* =====================================================================
   EJ Theme Toggle — light mode for ericjohnart.com
   Scoped under html[data-theme="light"]. Dark remains the default.
   Brand gold/orange is kept on buttons; text accents are darkened
   just enough to stay readable on cream.
   ===================================================================== */

html[data-theme="light"]{
  color-scheme:light;
  --ej-bg:#f6efe3;
  --ej-bg-deep:#e9dfcc;
  --ej-surface:#fffaf1;
  --ej-ink:#1c1428;
  --ej-ink-soft:#3d3348;
  --ej-muted:#655875;
  --ej-line:rgba(90,50,130,.22);
  --ej-gold:#9a5a00;
  --ej-gold-bright:#ffc23d;
  --ej-orange:#c24e00;
  --ej-cyan:#0a6a88;
  --ej-purple:#6b3aad;
}

/* ---------- page shell ---------- */
html[data-theme="light"] body:has(.ej-page),
html[data-theme="light"] body:has(.ej-header),
html[data-theme="light"] body:has(.ejpp){
  background:var(--ej-bg)!important;
  color:var(--ej-ink)!important;
}
html[data-theme="light"] body:has(.ej-page) .wp-site-blocks,
html[data-theme="light"] body:has(.ej-header) .wp-site-blocks,
html[data-theme="light"] body:has(.ejpp) .wp-site-blocks{
  background:var(--ej-bg)!important;
  color:var(--ej-ink);
}
html[data-theme="light"] .ej-page{
  background-color:var(--ej-bg)!important;
  background:var(--ej-bg)!important;
  color:var(--ej-ink)!important;
}
html[data-theme="light"] .ej-page .ej-hero,
html[data-theme="light"] .ej-page .ej-about,
html[data-theme="light"] .ej-page .ej-split{color:var(--ej-ink)}
html[data-theme="light"] body:has(.ej-page) .has-vivid-purple-background-color{background-color:var(--ej-bg)!important}
html[data-theme="light"] body:has(.ej-page) .wp-site-blocks > footer:not(.ej-footer-part),
html[data-theme="light"] body:has(.ej-page) .wp-site-blocks > footer:not(.ej-footer-part) .wp-social-link{color:var(--ej-ink)!important}
html[data-theme="light"] .ej-page p a{color:var(--ej-gold)!important}
html[data-theme="light"] .ej-page h1,
html[data-theme="light"] .ej-page h2,
html[data-theme="light"] .ej-page h3{color:var(--ej-ink)}

/* ---------- neon type (ink + a soft glow, so it still feels lit) ---------- */
html[data-theme="light"] .ej-neon{
  color:var(--ej-ink)!important;
  text-shadow:0 0 2px #fff,0 0 12px rgba(95,208,255,.4),0 0 26px rgba(138,60,255,.22)!important;
}
html[data-theme="light"] .ej-neon--orange{
  color:#8a2a00!important;
  text-shadow:0 0 2px #fff8e8,0 0 14px rgba(255,122,26,.4),0 0 28px rgba(255,61,46,.2)!important;
}
html[data-theme="light"] .ej-neon--gold{
  color:var(--ej-gold)!important;
  text-shadow:0 0 2px #fff8e8,0 0 16px rgba(255,194,61,.5),0 0 30px rgba(255,122,26,.25)!important;
}
html[data-theme="light"] .ej-kicker{color:var(--ej-cyan)!important}
html[data-theme="light"] .ej-kicker--gold{color:var(--ej-gold)!important}

/* ---------- buttons ---------- */
html[data-theme="light"] .ej-btn--ghost .wp-block-button__link{
  background:transparent!important;
  border-color:var(--ej-purple)!important;
  color:var(--ej-ink)!important;
  box-shadow:0 0 10px rgba(107,58,173,.18),inset 0 0 10px rgba(107,58,173,.08);
}
html[data-theme="light"] .ej-btn--live .wp-block-button__link{
  color:var(--ej-ink)!important;
  border-color:#ff3d2e!important;
  background:rgba(255,61,46,.08)!important;
}

/* ---------- header + nav ---------- */
html[data-theme="light"] .ej-header{
  background:rgba(246,239,227,.92);
  border-bottom:1px solid var(--ej-line);
  color:var(--ej-ink);
}
html[data-theme="light"] .ej-brand a{
  color:var(--ej-ink)!important;
  text-shadow:0 0 8px rgba(95,208,255,.35),0 0 18px rgba(138,60,255,.18);
}
html[data-theme="light"] .ej-brand strong{color:var(--ej-gold);text-shadow:none}
html[data-theme="light"] .ej-nav .wp-block-navigation-item__content{
  color:var(--ej-ink)!important;
  opacity:.88;
}
html[data-theme="light"] .ej-nav .wp-block-navigation-item__content:hover,
html[data-theme="light"] .ej-nav .current-menu-item > .wp-block-navigation-item__content{
  color:var(--ej-cyan)!important;
  opacity:1;
}
html[data-theme="light"] .ej-nav .wp-block-navigation__responsive-container-open,
html[data-theme="light"] .ej-nav .wp-block-navigation__responsive-container-close{color:var(--ej-ink)}
html[data-theme="light"] .ej-nav .wp-block-navigation__responsive-container.is-menu-open{
  background:rgba(246,239,227,.98)!important;
  color:var(--ej-ink)!important;
}
@media (max-width:640px){
  html[data-theme="light"] .ej-nav .wp-block-navigation__responsive-container.is-menu-open{
    background:rgba(246,239,227,.98)!important;
  }
}

/* ---------- hero ---------- */
html[data-theme="light"] .ej-hero{
  background:linear-gradient(90deg,rgba(246,239,227,.94) 0%,rgba(246,239,227,.8) 45%,rgba(246,239,227,.4) 100%),url("https://ericjohnart.com/wp-content/uploads/2026/10/brick-tile.jpg") repeat;
  background-size:auto,300px;
}
html[data-theme="light"] .ej-hero::after{
  background:linear-gradient(90deg,rgba(246,239,227,.82) 0%,rgba(246,239,227,.45) 38%,rgba(246,239,227,0) 55%),linear-gradient(0deg,#f6efe3 0%,rgba(246,239,227,0) 22%),linear-gradient(180deg,rgba(246,239,227,.5) 0%,rgba(246,239,227,0) 14%);
}
@media (max-width:640px){
  html[data-theme="light"] .ej-hero::after{
    background:linear-gradient(0deg,#f6efe3 0%,rgba(246,239,227,0) 35%);
  }
}
html[data-theme="light"] .ej-eyebrow{
  color:#8a2a00!important;
  border-color:rgba(194,78,0,.45);
  background:rgba(255,122,26,.1);
}
html[data-theme="light"] .ej-hero__sub{
  color:var(--ej-gold)!important;
  text-shadow:0 0 10px rgba(255,194,61,.35);
}
html[data-theme="light"] .ej-hero__lede,
html[data-theme="light"] .ej-schedule{color:var(--ej-ink-soft)!important}
html[data-theme="light"] .ej-schedule strong{color:var(--ej-gold)}
html[data-theme="light"] .ej-hero__stat{
  background:rgba(255,250,241,.88);
  border:1px solid rgba(154,90,0,.35);
  color:var(--ej-ink)!important;
}
html[data-theme="light"] .ej-hero__stat strong{
  color:var(--ej-gold);
  text-shadow:0 0 10px rgba(255,194,61,.35);
}

/* ---------- countdown ---------- */
html[data-theme="light"] .ej-countdown{
  background:var(--ej-surface);
  border:1px solid var(--ej-line);
  box-shadow:0 0 24px rgba(107,58,173,.1);
}
html[data-theme="light"] .ej-countdown__label{color:var(--ej-muted)!important}
html[data-theme="light"] .ej-countdown__label strong,
html[data-theme="light"] .ej-countdown .event-countdown,
html[data-theme="light"] .ej-countdown .event-countdown__counter,
html[data-theme="light"] .ej-countdown .event-countdown__counter p,
html[data-theme="light"] .ej-countdown .event-countdown__counter span{color:var(--ej-ink)!important}
html[data-theme="light"] .ej-countdown .event-countdown__counter > p:first-child,
html[data-theme="light"] .ej-countdown .event-countdown__counter > p:nth-child(2) > span{
  background:rgba(10,106,136,.08)!important;
  border:1px solid rgba(10,106,136,.28)!important;
  color:var(--ej-muted)!important;
}
html[data-theme="light"] .ej-countdown .event-countdown__counter strong{
  color:var(--ej-ink)!important;
  text-shadow:none!important;
}

/* ---------- about / split / stats ---------- */
html[data-theme="light"] .ej-about__img figcaption{
  background:linear-gradient(0deg,rgba(28,20,40,.8),rgba(28,20,40,0));
  color:#fff;
}
html[data-theme="light"] .ej-about__copy p,
html[data-theme="light"] .ej-order__copy p,
html[data-theme="light"] .ej-split__copy p{color:var(--ej-ink-soft)}
html[data-theme="light"] .ej-lede{color:var(--ej-ink-soft)!important}
html[data-theme="light"] .ej-stats > p{
  background:var(--ej-surface);
  border:1px solid var(--ej-line);
  color:var(--ej-muted)!important;
}
html[data-theme="light"] .ej-stats strong{color:var(--ej-gold)}
html[data-theme="light"] .ej-pagehead{border-bottom:1px solid var(--ej-line)}

/* ---------- brick / gallery ---------- */
html[data-theme="light"] .ej-brick{
  background:linear-gradient(180deg,#f6efe3 0%,rgba(246,239,227,.88) 14%,rgba(246,239,227,.88) 86%,#f6efe3 100%),url("https://ericjohnart.com/wp-content/uploads/2026/10/brick-tile.jpg") repeat;
  background-size:auto,400px;
}
html[data-theme="light"] .ej-section-head__sub{color:var(--ej-muted)!important}
html[data-theme="light"] .ej-page .wp-block-gallery.ej-grid figure.wp-block-image,
html[data-theme="light"] .ej-page .wp-block-gallery.ej-tiles figure.wp-block-image{
  background:#efe6d4;
  box-shadow:0 8px 24px rgba(28,20,40,.12);
  border:1px solid var(--ej-line);
}

/* ---------- pizza points (site section, not the plugin cards) ---------- */
html[data-theme="light"] .ej-points{
  background:radial-gradient(900px 500px at 85% 40%,rgba(255,122,26,.14),transparent 60%),radial-gradient(800px 500px at 10% 20%,rgba(138,60,255,.1),transparent 60%),#f3ead9;
}
html[data-theme="light"] .ej-points__lede{color:var(--ej-ink-soft)!important}
html[data-theme="light"] .ej-card{
  background:var(--ej-surface);
  border:1px solid var(--ej-line);
}
html[data-theme="light"] .ej-page .ej-card h3{color:var(--ej-gold)}
html[data-theme="light"] .ej-earn li,
html[data-theme="light"] .ej-redeem li{
  color:var(--ej-ink-soft);
  border-bottom:1px dashed rgba(28,20,40,.12);
}
html[data-theme="light"] .ej-earn li:last-child{color:var(--ej-cyan);border:0}
html[data-theme="light"] .ej-earn strong{color:var(--ej-ink)}
html[data-theme="light"] .ej-redeem strong{color:var(--ej-orange)}
html[data-theme="light"] .ej-redeem strong::after{color:var(--ej-muted)}

/* ---------- forms ---------- */
html[data-theme="light"] .ej-page .ej-form-card h3{color:var(--ej-ink)}
html[data-theme="light"] .ej-form label,
html[data-theme="light"] .ej-form .grunion-field-label,
html[data-theme="light"] .ej-form .jetpack-field-label,
html[data-theme="light"] .ej-signup__form label{color:var(--ej-muted)!important}
html[data-theme="light"] .ej-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
html[data-theme="light"] .ej-form select,
html[data-theme="light"] .ej-form textarea,
html[data-theme="light"] .ej-form .ui-selectmenu-button,
html[data-theme="light"] .ej-signup__form input[type=email]{
  color:var(--ej-ink)!important;
  background:#fff!important;
  border:1px solid var(--ej-line)!important;
  color-scheme:light;
}
html[data-theme="light"] .ej-form input:focus,
html[data-theme="light"] .ej-form select:focus,
html[data-theme="light"] .ej-form textarea:focus,
html[data-theme="light"] .ej-signup__form input:focus{
  border-color:var(--ej-cyan)!important;
  box-shadow:0 0 0 3px rgba(10,106,136,.18)!important;
}
html[data-theme="light"] .ej-form__note{color:var(--ej-muted)!important}
html[data-theme="light"] .ej-ticks li{color:var(--ej-ink)}

/* ---------- signup band ---------- */
html[data-theme="light"] .ej-signup{
  background:linear-gradient(120deg,rgba(138,60,255,.1),rgba(61,123,255,.08) 50%,rgba(255,122,26,.1));
  border-top:1px solid var(--ej-line);
  border-bottom:1px solid var(--ej-line);
}
html[data-theme="light"] .ej-signup p{color:var(--ej-ink-soft)}

/* ---------- social + footer ---------- */
html[data-theme="light"] .ej-social .wp-social-link,
html[data-theme="light"] .ej-social .wp-social-link a,
html[data-theme="light"] .ej-social .wp-social-link svg{color:var(--ej-ink)!important}
html[data-theme="light"] .ej-social .ej-icon-pickax a::before{color:var(--ej-ink)}
html[data-theme="light"] .ej-footer{
  background:var(--ej-bg-deep);
  color:var(--ej-ink);
}
html[data-theme="light"] .ej-footer__brand p{color:var(--ej-muted)}
html[data-theme="light"] .ej-footer__mail a{color:var(--ej-gold)!important}
html[data-theme="light"] .ej-footer__links a{color:var(--ej-ink)!important;opacity:.86}
html[data-theme="light"] .ej-footer__links a:hover{color:var(--ej-cyan)!important;opacity:1}
html[data-theme="light"] .ej-footer__base{
  border-top:1px solid var(--ej-line);
  color:var(--ej-muted);
}

/* ---------- Pizza Points plugin ---------- */
html[data-theme="light"] body:has(.ejpp){background:var(--ej-bg)!important;color:var(--ej-ink)}
html[data-theme="light"] body:has(.ejpp) .wp-site-blocks{background:var(--ej-bg)!important}
html[data-theme="light"] .ejpp{color:var(--ej-ink)}
html[data-theme="light"] .ejpp-kicker{color:var(--ej-gold)!important}
html[data-theme="light"] .ejpp-title{
  color:var(--ej-ink)!important;
  text-shadow:0 0 2px #fff8e8,0 0 14px rgba(255,194,61,.4),0 0 28px rgba(255,122,26,.2)!important;
}
html[data-theme="light"] .ejpp-lede{color:var(--ej-ink-soft)}
html[data-theme="light"] .ejpp-lede a,
html[data-theme="light"] .ejpp-switch a,
html[data-theme="light"] .ejpp-links a,
html[data-theme="light"] .ejpp-logout,
html[data-theme="light"] .ejpp-contact a{color:var(--ej-gold)}
html[data-theme="light"] .ejpp-lede a:hover,
html[data-theme="light"] .ejpp-switch a:hover,
html[data-theme="light"] .ejpp-links a:hover,
html[data-theme="light"] .ejpp-logout:hover,
html[data-theme="light"] .ejpp-contact a:hover{color:var(--ej-orange)}
html[data-theme="light"] .ejpp-card{
  background:var(--ej-surface);
  border:1px solid var(--ej-line);
  box-shadow:0 0 0 1px rgba(194,78,0,.12),0 8px 28px rgba(28,20,40,.08);
}
html[data-theme="light"] .ejpp h2.ejpp-card-title,
html[data-theme="light"] .ejpp .ejpp-card-title{color:var(--ej-gold)!important}
html[data-theme="light"] .ejpp-label,
html[data-theme="light"] .ejpp-fieldset legend.ejpp-label,
html[data-theme="light"] .ejpp-contact,
html[data-theme="light"] .ejpp-field-hint,
html[data-theme="light"] .ejpp-switch,
html[data-theme="light"] .ejpp-links{color:var(--ej-muted)!important}
html[data-theme="light"] .ejpp-input,
html[data-theme="light"] .ejpp-form select,
html[data-theme="light"] .ejpp-form textarea{
  color:var(--ej-ink)!important;
  background:#fff!important;
  border-color:var(--ej-line)!important;
  color-scheme:light;
}
html[data-theme="light"] .ejpp-input:focus,
html[data-theme="light"] .ejpp-form select:focus,
html[data-theme="light"] .ejpp-form textarea:focus{border-color:var(--ej-cyan)!important}
html[data-theme="light"] .ejpp-field-note{
  background:rgba(154,90,0,.1);
  color:var(--ej-gold)!important;
}
html[data-theme="light"] .ejpp-radio,
html[data-theme="light"] .ejpp-check{color:var(--ej-ink)}
html[data-theme="light"] .ejpp-dot{color:var(--ej-purple)}
html[data-theme="light"] .ejpp-copy,
html[data-theme="light"] .ejpp-as-note,
html[data-theme="light"] .ejpp-section-title,
html[data-theme="light"] .ejpp-subhead,
html[data-theme="light"] .ejpp-actions__lede,
html[data-theme="light"] .ejpp-points__placeholder,
html[data-theme="light"] .ejpp-need-more,
html[data-theme="light"] .ejpp-history,
html[data-theme="light"] .ejpp-history th,
html[data-theme="light"] .ejpp-history td,
html[data-theme="light"] .ejpp-menu-card__name,
html[data-theme="light"] .ejpp-menu-card__detail,
html[data-theme="light"] .ejpp-ticks li{color:var(--ej-ink)!important}
html[data-theme="light"] .ejpp-as-note,
html[data-theme="light"] .ejpp-menu-card__detail,
html[data-theme="light"] .ejpp-contact,
html[data-theme="light"] .ejpp-actions__lede{color:var(--ej-ink-soft)!important}
html[data-theme="light"] .ejpp-earn li{
  color:var(--ej-ink-soft)!important;
  border-bottom:1px dashed rgba(28,20,40,.14);
}
html[data-theme="light"] .ejpp-earn li:last-child{color:var(--ej-cyan)!important;border:0}
html[data-theme="light"] .ejpp-earn strong{color:var(--ej-ink)!important}
html[data-theme="light"] .ejpp-ticks li{border-color:rgba(28,20,40,.14)}
html[data-theme="light"] .ejpp-menu-card__points,
html[data-theme="light"] .ejpp-menu-card__points .ejpp-price-now,
html[data-theme="light"] .ejpp-menu-card__points .ejpp-price-unit{color:var(--ej-gold)!important;text-shadow:none}
html[data-theme="light"] .ejpp-menu-card__points .ejpp-price-was,
html[data-theme="light"] .ejpp-menu-card__threshold{color:#8a6a3a!important}
html[data-theme="light"] .ejpp-notice,
html[data-theme="light"] .ejpp-balance,
html[data-theme="light"] .ejpp-history thead,
html[data-theme="light"] .ejpp-history tr{border-color:var(--ej-line)}
html[data-theme="light"] #ejpp-confirm,
html[data-theme="light"] .ejpp-dialog,
html[data-theme="light"] dialog.ejpp-confirm,
html[data-theme="light"] #ejpp-confirm-text{
  background:var(--ej-surface);
  color:var(--ej-ink);
  border-color:var(--ej-line);
}

/* ---------- toggle button ---------- */
.ej-theme-toggle{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  margin:0 0 0 8px!important;
  padding:0;
  border-radius:999px;
  border:1.5px solid rgba(180,107,255,.45);
  background:rgba(10,6,18,.55);
  color:#ffc23d;
  cursor:pointer;
  box-shadow:0 0 12px rgba(180,107,255,.25);
  transition:transform .15s,background .2s,color .2s,border-color .2s;
}
.ej-theme-toggle:hover{transform:translateY(-1px)}
.ej-theme-toggle:focus-visible{outline:2px solid #ffc23d;outline-offset:3px}
.ej-theme-toggle__icon{display:none;line-height:0}
html:not([data-theme="light"]) .ej-theme-toggle__sun,
html[data-theme="light"] .ej-theme-toggle__moon{display:block}
html[data-theme="light"] .ej-theme-toggle{
  background:rgba(255,250,241,.95);
  border-color:rgba(154,90,0,.45);
  color:var(--ej-gold,#9a5a00);
  box-shadow:0 0 10px rgba(154,90,0,.18);
}
.ej-theme-toggle--fixed{
  position:fixed;
  top:16px;
  right:16px;
  z-index:100010;
  margin:0!important;
}
@media (prefers-reduced-motion:reduce){
  .ej-theme-toggle{transition:none}
}
