/* hub.thog.me — quick links, same visual language as thog.me. */

@font-face {
  font-family: "Nunito Variable";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #010208;
  --fg: #f6f9ff;
  --muted: #8b96a9;
  --hairline: rgba(255, 255, 255, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Nunito Variable", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#starfield {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 50% 46%, rgba(76, 124, 255, 0.09), transparent 70%),
    radial-gradient(135% 100% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.hub {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 4vh, 2.6rem);
  padding: clamp(2.5rem, 8vmin, 5rem) min(6vmin, 2rem);
}

.brand {
  margin: 0;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
}

.brand a {
  color: var(--fg);
  text-decoration: none;
  text-shadow:
    0 0 18px rgba(170, 200, 255, 0.3),
    0 0 60px rgba(110, 160, 255, 0.22);
  transition: text-shadow 0.35s ease;
}

.brand a:hover,
.brand a:focus-visible {
  text-shadow:
    0 0 22px rgba(190, 215, 255, 0.5),
    0 0 80px rgba(120, 170, 255, 0.35);
}

.grid {
  width: min(100%, 880px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 0.85rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.35s ease, background 0.35s ease,
    box-shadow 0.35s ease, transform 0.35s ease;
}

.card:hover,
.card:focus-visible {
  border-color: rgba(160, 200, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(90, 140, 255, 0.16);
}

.card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: color 0.35s ease, background 0.35s ease;
}

.card:hover .card-icon,
.card:focus-visible .card-icon {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.09);
}

.card-icon--text {
  font-size: 1.05rem;
  font-weight: 800;
}

.icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-text {
  min-width: 0;
}

.card-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-desc {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noscript {
  margin: 0;
  color: var(--muted);
}

:focus-visible {
  outline: 1px solid rgba(150, 190, 255, 0.65);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Quick reveal: the hub is a utility page, so links show up fast. */
.js .brand,
.js .card {
  visibility: hidden;
}

@keyframes rise {
  from {
    visibility: hidden;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(12px);
  }
  to {
    visibility: visible;
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.js .brand {
  animation: rise 1.2s cubic-bezier(0.19, 0.8, 0.22, 1) 0.2s both;
}

.js .card {
  animation: rise 0.9s cubic-bezier(0.19, 0.8, 0.22, 1)
    calc(0.45s + var(--i, 0) * 0.07s) both;
}

@media (prefers-reduced-motion: reduce) {
  .js .brand,
  .js .card {
    visibility: visible;
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
