:root {
  --bg: #07080a;
  --fg: #e9edf2;
  --muted: rgba(233, 237, 242, 0.68);
  --cyan: #49d7ff;
  --amber: #ffb84a;
  --line: rgba(73, 215, 255, 0.2);
  --main: "Geist", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1100px 800px at 16% 12%, rgba(73, 215, 255, 0.1), transparent 55%),
    radial-gradient(900px 640px at 84% 18%, rgba(255, 184, 74, 0.09), transparent 60%),
    radial-gradient(1200px 900px at 60% 92%, rgba(132, 255, 99, 0.05), transparent 55%),
    var(--bg);
  color: var(--fg);
  font-family: var(--main);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 2px,
    transparent 4px
  );
  content: "";
  pointer-events: none;
}

.page-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 68px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.site-head a {
  color: inherit;
  text-decoration: none;
}

.site-head__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-head__mark {
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(73, 215, 255, 0.75);
}

.site-head__return {
  color: var(--cyan) !important;
}

.page-intro {
  margin-bottom: 54px;
}

.page-intro::before {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  content: "DIRECTORY / 01";
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.page-intro p {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.link-section {
  margin-top: 48px;
}

.link-section h2 {
  margin: 0 0 14px;
  color: var(--fg);
  font-size: clamp(22px, 4vw, 29px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.link-section ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.link-section li {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.link-section li::before {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(73, 215, 255, 0.8);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.link-section a {
  display: flex;
  min-height: 52px;
  padding: 14px 34px 14px 23px;
  align-items: center;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: clamp(14px, 2.5vw, 17px);
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms ease, padding-left 160ms ease, background 160ms ease;
}

.link-section a::after {
  position: absolute;
  right: 3px;
  color: rgba(73, 215, 255, 0.58);
  content: "↗";
  font-size: 12px;
}

.link-section a[href^="../"]::after {
  content: "→";
}

.link-section a:hover {
  padding-left: 29px;
  background: linear-gradient(90deg, rgba(73, 215, 255, 0.07), transparent 70%);
  color: var(--fg);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 76px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

footer a {
  color: var(--cyan);
  text-decoration: none;
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 24px, 760px);
    padding-top: 18px;
  }

  .site-head {
    margin-bottom: 48px;
  }

  .page-intro {
    margin-bottom: 42px;
  }

  .link-section {
    margin-top: 40px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-section a {
    transition: none;
  }
}
