:root {
  color-scheme: light dark;

  --bg: #f6f7fb;
  --bg-glow-a: rgba(99, 100, 255, 0.16);
  --bg-glow-b: rgba(250, 92, 92, 0.12);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-hover: #ffffff;
  --border: rgba(15, 17, 23, 0.1);
  --text: #14161d;
  --text-muted: #5b6070;
  --shadow: 0 1px 2px rgba(15, 17, 23, 0.06), 0 8px 24px rgba(15, 17, 23, 0.06);
  --shadow-hover: 0 2px 4px rgba(15, 17, 23, 0.08), 0 14px 34px rgba(15, 17, 23, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --bg-glow-a: rgba(99, 100, 255, 0.22);
    --bg-glow-b: rgba(250, 92, 92, 0.14);
    --surface: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.085);
    --border: rgba(255, 255, 255, 0.1);
    --text: #eef0f6;
    --text-muted: #9aa1b4;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 34px rgba(0, 0, 0, 0.45);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(2rem, 8vh, 5rem) 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 12% -10%, var(--bg-glow-a), transparent 60%),
    radial-gradient(50rem 36rem at 92% 108%, var(--bg-glow-b), transparent 60%);
  background-attachment: fixed;

  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 30rem;
}

/* --- intro ------------------------------------------------------------- */

.intro {
  text-align: center;
  margin-bottom: 2rem;
}

.intro h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* --- links ------------------------------------------------------------- */

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9375rem 1.125rem;

  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);

  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease;
}

.link:hover,
.link:focus-visible {
  background-color: var(--surface-hover);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

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

.link:active {
  transform: translateY(0);
}

.link__icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--accent);
  transition: transform 0.18s ease;
}

.link:hover .link__icon {
  transform: scale(1.1);
}

.link__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.link__title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.link__handle {
  color: var(--text-muted);
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link__arrow {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
  transition: transform 0.18s ease, opacity 0.18s ease, stroke 0.18s ease;
}

.link:hover .link__arrow,
.link:focus-visible .link__arrow {
  opacity: 1;
  stroke: var(--accent);
  transform: translateX(3px);
}

/* --- footer ------------------------------------------------------------ */

.foot {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.foot p {
  margin: 0;
}

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