/* Adapted from Adam Argyle's GUI Challenges theme switch (Apache-2.0).
   https://github.com/argyleink/gui-challenges/tree/main/theme-switch
   Modified: ordinary CSS, existing colors and compact size; icon shows the target theme.
   Open Props easing curves by Adam Argyle (MIT). License copies: /licenses/. */
#resume-theme-button {
  --theme-ease-elastic-3:cubic-bezier(.5,1.25,.75,1.25);
  --theme-ease-elastic-4:cubic-bezier(.5,1.5,.75,1.25);
  --theme-ease-3:cubic-bezier(.25,0,.3,1);
  --theme-ease-out-5:cubic-bezier(0,0,0,1);
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
#resume-theme-button .sun-and-moon { width:13.2px;height:13.2px;overflow:visible;stroke-linecap:round; }
.sun-and-moon > :is(.moon,.sun,.sun-beams) { transform-origin:center center; }
.sun-and-moon > .sun { fill:currentColor; }
.sun-and-moon > .sun-beams { stroke:currentColor;stroke-width:2px; }
html:not(.dark) .sun-and-moon > .sun { transform:scale(1.75); }
html:not(.dark) .sun-and-moon > .sun-beams { opacity:0; }
html:not(.dark) .sun-and-moon > .moon > circle { transform:translateX(-7px); }
@supports (cx:1px) {
  html:not(.dark) .sun-and-moon > .moon > circle { transform:translateX(0);cx:17px; }
}
/* The site owner explicitly requests the full documented animation.
   Keep its timing and easing active independently of the system motion setting. */
.sun-and-moon > .sun { transition:transform .5s var(--theme-ease-elastic-3); }
.sun-and-moon > .sun-beams { transition:transform .5s var(--theme-ease-elastic-4),opacity .5s var(--theme-ease-3); }
.sun-and-moon .moon > circle { transition:transform .25s var(--theme-ease-out-5); }
@supports (cx:1px) {
  .sun-and-moon .moon > circle { transition:cx .25s var(--theme-ease-out-5); }
}
html:not(.dark) .sun-and-moon > .sun { transition-timing-function:var(--theme-ease-3);transition-duration:.25s; }
html:not(.dark) .sun-and-moon > .sun-beams { transform:rotateZ(-25deg);transition-duration:.15s; }
html:not(.dark) .sun-and-moon > .moon > circle { transition-delay:.25s;transition-duration:.5s; }
