.masthead { z-index: 1; }
.home-audio { position: relative; }
.theme-trigger {
  display: grid;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #e5e2d580;
  border-radius: 50%;
  background: #191a17;
}
.theme-trigger:hover, .theme-trigger[aria-expanded="true"] { border-color: #f0e4c5; }
.theme-record {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #1a1b18 0 11%, #d8d1b4 12% 17%, #777666 19% 25%, transparent 26%),
    repeating-radial-gradient(circle, transparent 0 2px, #1118 2.5px 3px),
    conic-gradient(from 30deg, #8f9688, #dfceac 15%, #585e57 28%, #262c2c 46%, #8b9b97 58%, #d9cec0 71%, #4c5352 85%, #8f9688);
  animation: theme-spin 4s linear infinite paused;
}
.home-audio[data-state="playing"] .theme-record { animation-play-state: running; }
.theme-glyph {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding-left: 1px;
  border-radius: 50%;
  background: #1a1b18e6;
  color: #f5edda;
  font-size: .62rem;
  line-height: 1;
}
.home-audio[data-state="playing"] .theme-glyph { visibility: hidden; }
.home-audio[data-state="playing"] .theme-trigger:is(:hover, :focus-visible) .theme-glyph { visibility: visible; }
@keyframes theme-spin { to { transform: rotate(1turn); } }

.theme-panel {
  position: absolute;
  inset: 100% auto auto -70px;
  width: min(236px, calc(100vw - 50px));
  padding: .85rem;
  border: 1px solid #777a72;
  background: #171918;
  box-shadow: 0 12px 32px #070908a0;
}
.theme-actions { display: flex; gap: .4rem; margin-bottom: .65rem; }
.theme-actions button {
  min-height: 44px;
  flex: 1;
  padding: .3rem .4rem;
  border: 1px solid #777a72;
  font-size: .85rem;
}
.theme-actions button:hover, .theme-actions button[aria-pressed="true"] { border-color: #eee6d2; }
.theme-volume { display: flex; justify-content: space-between; font-size: .85rem; }
#theme-volume { display: block; width: 100%; height: 26px; margin: .15rem 0 0; accent-color: #e6d3a8; }
.theme-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 600px) {
  .home .masthead { flex-wrap: wrap; row-gap: .2rem; padding-bottom: .5rem; }
  .home .public-nav { flex: 1 0 100%; margin-inline-start: 0; }
  .home .title { top: max(25%, 150px); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-record { animation: none; }
}
