:root {
  --ink: #16181b;
  --ink-soft: #4b4f55;
  --paper: #ece7de;
  --paper-bright: #f6f1e8;
  --line: rgba(22, 24, 27, 0.14);
  --line-strong: rgba(22, 24, 27, 0.24);
  --button: rgba(255, 255, 255, 0.68);
  --shadow: 0 16px 36px rgba(22, 24, 27, 0.06);
  --shadow-hover: 0 20px 40px rgba(22, 24, 27, 0.08);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-refined: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    linear-gradient(180deg, var(--paper-bright) 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 34%),
    repeating-linear-gradient(90deg, rgba(22, 24, 27, 0.04) 0, rgba(22, 24, 27, 0.04) 1px, transparent 1px, transparent 112px);
  opacity: 0.26;
}

body::after {
  content: "";
  position: fixed;
  inset: -8%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 22%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle at 50% 100%, rgba(22, 24, 27, 0.035) 0%, rgba(22, 24, 27, 0) 54%);
  opacity: 0.34;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  animation: ambientShift 30s var(--ease-refined) infinite alternate;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.link-hub {
  width: min(100%, 560px);
  display: grid;
  gap: 22px;
}

.kicker {
  margin: 0;
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: riseIn 560ms var(--ease-out) forwards;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.92;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: riseIn 560ms var(--ease-out) 70ms forwards;
}

.links-list {
  display: grid;
  gap: 13px;
}

.link-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--button);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  animation: riseIn 560ms var(--ease-out) forwards;
  transition:
    transform 180ms var(--ease-refined),
    border-color 180ms var(--ease-refined),
    background 180ms var(--ease-refined),
    box-shadow 180ms var(--ease-refined);
}

.link-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0) 52%);
  opacity: 0.62;
  transition: opacity 180ms var(--ease-refined);
}

.link-item:hover,
.link-item:focus-visible {
  transform: translateY(-2px) scale(1.004);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-hover);
}

.link-item:active {
  transform: scale(0.982);
  transition-duration: 90ms;
}

.link-item:hover::before,
.link-item:focus-visible::before {
  opacity: 1;
}

.link-item:focus-visible {
  outline: 2px solid rgba(22, 24, 27, 0.12);
  outline-offset: 3px;
}

.link-item-disabled {
  justify-content: center;
  cursor: default;
  color: rgba(22, 24, 27, 0.52);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.link-item-disabled::before {
  opacity: 0.3;
}

.link-item-disabled:hover,
.link-item-disabled:focus-visible,
.link-item-disabled:active {
  transform: none;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.link-label {
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.link-arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms var(--ease-refined);
}

.link-item:hover .link-arrow,
.link-item:focus-visible .link-arrow {
  transform: rotate(45deg) translate(1px, -1px);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientShift {
  0% {
    transform: translate3d(-1%, -0.5%, 0) scale(1.01);
    opacity: 0.3;
  }

  100% {
    transform: translate3d(1%, 0.7%, 0) scale(1.03);
    opacity: 0.38;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .link-hub {
    gap: 18px;
  }

  .link-item {
    padding: 16px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body::after {
    animation: none;
  }
}
