:root {
  color-scheme: dark;
  --page: #080b16;
  --ink: #f4f1ea;
  --muted: #bbc3d1;
  --line: #343d51;
  font-family: system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.wrap { width: min(calc(100% - 48px), 1160px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: 16px; z-index: 3; transform: translateY(-160%); padding: .6rem .9rem; background: var(--page); }
.skip:focus { transform: translateY(0); }

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-header > a:last-child, .site-footer { color: var(--muted); font-size: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; text-decoration: none; }
.brand > span { display: grid; width: 2rem; aspect-ratio: 1; place-items: center; background: #f4e9d0; color: #111723; border-radius: 5px; }
h1 { font: 400 clamp(2.5rem, 6.5vw, 5.6rem)/.98 Georgia, serif; letter-spacing: -.055em; text-align: center; margin: .5em 0 .35em; }
h1 em { font-weight: 400; color: #e3bb8d; }

.galaxy { position: relative; isolation: isolate; margin-inline: auto; max-width: 980px; aspect-ratio: 3 / 2; }
.galaxy-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; border: 1px solid #20293b; border-radius: 18px; }

.world {
  --sun-y: 46.4%;
  position: absolute;
  inset: 0;
  text-decoration: none;
  pointer-events: none;
}

.world-art { --sun-x: 25.9%; --energy: 255 177 106; }
.world-software { --sun-x: 73%; --energy: 134 207 255; }
.world:focus-visible { outline: none; }

.star {
  position: absolute;
  left: var(--sun-x);
  top: var(--sun-y);
  width: 27%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(var(--energy) / .6);
  border-radius: 50%;
  box-shadow: 0 0 24px rgb(var(--energy) / .25), inset 0 0 22px rgb(var(--energy) / .16);
  pointer-events: auto;
  transition: box-shadow .22s ease, border-color .22s ease;
}

.world-art .star::after,
.world-software .star::after {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.world-art .star::after { border: 2px solid transparent; border-top-color: rgb(var(--energy) / .8); border-bottom-color: rgb(var(--energy) / .48); }
.world-software .star::after { border: 2px dashed rgb(var(--energy) / .65); }
.world:is(:hover, :focus-visible) .star { border-color: rgb(var(--energy)); box-shadow: 0 0 34px rgb(var(--energy) / .55), inset 0 0 28px rgb(var(--energy) / .24); }
.world:is(:hover, :focus-visible) .star::after { opacity: 1; }
.world-art:is(:hover, :focus-visible) .star::after { animation: flare 6s ease-in-out infinite alternate; }
.world-software:is(:hover, :focus-visible) .star::after { animation: signal 9s linear infinite; }
@keyframes flare { to { transform: rotate(48deg) scale(1.09); opacity: .52; } }
@keyframes signal { to { transform: rotate(360deg); } }

.energy-track {
  position: absolute;
  inset: 33% 0 auto 85.8%;
  height: 10.3%;
  background: linear-gradient(90deg, transparent 29%, #9ae6ff 47%, #e5faff 50%, transparent 61%) 100% 0 / 270% 100%;
  clip-path: polygon(0 91%, 25% 91%, 43% 55%, 70% 55%, 100% 6%, 100% 12%, 71% 59%, 44% 59%, 26% 96%, 0 96%);
  opacity: 0;
}
.world-software:is(:hover, :focus-visible) .energy-track { opacity: 1; animation: transmit 2.4s ease-in-out infinite; }
@keyframes transmit { to { background-position: 0 0; } }

.world-label {
  position: absolute;
  left: var(--sun-x);
  bottom: 3.8%;
  width: min(40%, 19rem);
  transform: translateX(-50%);
  padding: .9rem 2.7rem .9rem 1rem;
  background: #0c1220;
  border: 1px solid rgb(var(--energy) / .57);
  border-radius: 7px;
  pointer-events: auto;
}

.world-title, .world-detail { display: block; }
.world-title { color: rgb(var(--energy)); font-size: clamp(.95rem, 2.1vw, 1.4rem); font-weight: 700; line-height: 1.18; }
.world-detail { margin-top: .35rem; color: var(--ink); font-size: .83rem; line-height: 1.3; }
.world-arrow { position: absolute; top: .9rem; right: 1rem; color: rgb(var(--energy)); }
.world:is(:hover, :focus-visible) .world-label { background: #151e30; border-color: rgb(var(--energy)); }
.world:focus-visible .world-label { outline: 2px solid rgb(var(--energy)); outline-offset: 4px; }
.site-footer { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.privacy { max-width: 70ch; padding-block: 2.5rem; line-height: 1.65; }
.privacy h1 { text-align: left; font-size: clamp(2rem, 6.5vw, 3.8rem); }
.privacy h2 { font-size: 1.18rem; margin: 1.75rem 0 .5rem; }
.privacy p { margin: .65rem 0; }

@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .galaxy { margin-bottom: 6.6rem; }
  .galaxy-art { border-radius: 10px; }
  .world-label { bottom: -5.9rem; width: 44%; min-height: 5.25rem; padding: .58rem .48rem; }
  .world-title { font-size: .96rem; }
  .world-detail { font-size: .75rem; }
  .world-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .world .star, .world:is(:hover, :focus-visible) .star::after, .world:is(:hover, :focus-visible) .energy-track { animation: none; transition: none; }
}
