/* Used by every page: colours, the footer, and the small logo link */
:root {
  --void: #040920;
  --deep: #0a1440;
  --nebula: #2747c9;
  --electric: #4d7dff;
  --ice: #a9c4ff;
  --silver: #e8edf7;
  --muted: #aab6d6;
  --line: rgba(169, 196, 255, .22);
  --danger: #ff9aa8;
  --display: "Krona One", "Anuphan", sans-serif;
}
/* The galaxy behind a page: <body class="galaxy"> plus <canvas id="stars">. Set --a and --b to recolour it. */
:root { --a: #2747c9; --b: #7a4dff; }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* Two nebula layers, oversized so their edges never show as they drift */
.galaxy::before, .galaxy::after {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
}
.galaxy::before {
  background:
    radial-gradient(60vw 60vw at 65% 45%, color-mix(in srgb, var(--a) 55%, transparent), transparent 70%),
    radial-gradient(50vw 40vw at 22% 20%, rgba(39, 71, 201, .3), transparent 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.galaxy::after {
  background: radial-gradient(48vw 48vw at 78% 78%, color-mix(in srgb, var(--b) 42%, transparent), transparent 70%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(-9%, -6%) scale(1); } to { transform: translate(9%, 7%) rotate(8deg) scale(1.15); } }
@keyframes drift-b { from { transform: translate(8%, 7%) scale(1.1); } to { transform: translate(-14%, -12%) rotate(-10deg) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .galaxy::before, .galaxy::after { animation: none; } }

.brand-link { display: inline-flex; align-items: center; gap: .75rem; color: var(--silver); font: 400 .95rem/1.2 var(--display); text-decoration: none; }
.brand-link img { width: 44px; height: 44px; border: 1px solid var(--ice); border-radius: 50%; background: radial-gradient(circle, var(--deep), var(--void)); object-fit: contain; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  padding: 2rem clamp(1rem, 4vw, 3rem) 1.25rem;
  border-top: 1px solid var(--line);
  background: #060d2e;
  color: var(--silver);
  font: 400 .9rem/1.6 "Anuphan", sans-serif;
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.footer-socials { display: flex; gap: .5rem; }
.footer-socials a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--silver); }
.footer-socials a:hover { color: var(--ice); }
.footer-socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-copy { grid-column: 1 / -1; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
@media (max-width: 640px) {
  .site-footer { grid-template-columns: minmax(0, 1fr); }
}
