/* Same tokens as the explorer so the two pages read as one site. */
:root {
  --bg: #000000;
  --ink: #ece8f4;
  --dim: #6b6680;
  --line: #1d1b2a;
  --magenta: #ff2bd6;

  --display: "Bahnschrift", "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.portal {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.portal-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 2rem;
}

.title {
  margin: 0;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.lede { margin: 0 0 0.35em; max-width: 34ch; color: var(--dim); }

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  align-content: center;
  max-width: 60ch;
}

.links a {
  display: grid;
  gap: 0.3rem;
  color: inherit;
  text-decoration: none;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  transform: scale(1);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.link-name {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.link-note { color: var(--dim); }

.links a:hover,
.links a:focus-visible {
  transform: scale(1.02);
  animation: wobble 900ms ease-in-out infinite;
}

.links a:hover .link-name,
.links a:focus-visible .link-name { color: var(--magenta); }

/* The original rocked hovered buttons a couple of degrees either way. */
@keyframes wobble {
  0%   { transform: scale(1.02) rotate(0deg); }
  25%  { transform: scale(1.02) rotate(0.4deg); }
  75%  { transform: scale(1.02) rotate(-0.4deg); }
  100% { transform: scale(1.02) rotate(0deg); }
}

.portal-foot { color: var(--dim); border-top: 1px solid var(--line); padding-top: 1rem; }

@media (max-width: 720px) {
  .portal-head { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
  .link-name { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .links a { transition: none; }
  .links a:hover, .links a:focus-visible { animation: none; transform: none; }
}
