body:has(.hero) { background: #31497e; }
body:has(.hero) .topbar { background: #111b38; border-bottom: 3px solid #a4a8ed; }
body:has(.hero) .topbar nav { max-width: none; min-height: 58px; padding: 0 clamp(1rem, 5vw, 5rem); justify-content: flex-start; gap: 0 .9rem; }
body:has(.hero) .topbar a { color: #f8f2db; }
body:has(.hero) .topbar a:first-child { margin-right: auto; font-weight: bold; color: #cfccff; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 61px); display: grid; place-items: center;
  padding: 4rem 1.2rem; background: #7589bd;
}
.hero-sky { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hero-content { width: min(100%, 49rem); text-align: center; transform: translateY(calc(-50% - 0.8svh)); }
.wordmark { position: relative; z-index: 1; margin: 0; pointer-events: none; }
.wordmark img { display: block; width: 100%; height: auto; }
.hero form { width: min(84%, 39rem); margin: -4.8% auto 0; }
.hero .search {
  display: flex; max-width: none; gap: .35rem; background: #5147c0;
  padding: .5rem; border: 3px solid #201467; border-top-width: 0;
  border-radius: 0 0 .75rem .75rem; box-shadow: 0 .3rem 0 #292186;
}
.hero .search input, .hero .search button { font-family: var(--terminal-font); }
.hero .search input {
  border: 2px solid #302579; border-radius: .35rem 0 0 .35rem;
  background: #f5f5dc; color: #181349;
}
.hero .search button {
  border: 2px solid #302579; border-radius: 0 .35rem .35rem 0;
  background: #bcf6e9; color: #181349;
}
.hero .search button:hover { background: #dbfbab; }
.hero :focus-visible, body:has(.hero) .topbar :focus-visible { outline-color: #ffe286; }
@media (max-width: 480px) {
  body:has(.hero) .topbar nav { gap: 0 .65rem; padding-inline: .8rem; }
  body:has(.hero) .topbar a { font-size: .78rem; }
  .hero { padding-inline: .9rem; }
  .hero form { width: 88%; }
  .hero .search { padding: .3rem; gap: .25rem; }
  .hero .search button { padding-inline: .6rem; }
}
@media (max-height: 560px) {
  .hero-content { width: min(100%, 49rem, 150svh); }
}
