:root {
  color-scheme: dark;

  --bg-0: #050a14;
  --bg-1: #081222;
  --bg-2: #0c1c33;
  --bg-3: #10264a;
  --bg-4: #0a1b3a;

  --ink: #e6ecf7;
  --ink-2: #9fb2d0;
  --ink-3: #7288ad;

  --line: #172a45;
  --accent: #5b9dff;

  --edge: #0a1830;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html {
  min-height: 100%;
  background: linear-gradient(
    180deg,
    var(--edge),
    var(--bg-3) 50%,
    var(--edge)
  );
  background-color: var(--edge);
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(clamp(2rem, 8vh, 5rem) + env(safe-area-inset-top, 0px))
    calc(1.5rem + env(safe-area-inset-right, 0px))
    calc(clamp(2rem, 8vh, 5rem) + env(safe-area-inset-bottom, 0px))
    calc(1.5rem + env(safe-area-inset-left, 0px));
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    60% 50% at 50% 38%,
    rgb(91 157 255 / 0.09),
    transparent 70%
  );
  pointer-events: none;
}

.card {
  position: relative;
  width: 100%;
  max-width: 27rem;
  margin-inline: auto;
}

.card > * {
  animation: fadeUp 0.6s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

h1 {
  font-size: clamp(1.6rem, 5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.role {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
}

.bio {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  max-width: 24rem;
  color: var(--ink-2);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.stack li {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.015);
}

.label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.work {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.work-list {
  margin-top: 0.5rem;
}

.work-list li + li {
  border-top: 1px solid rgb(23 42 69 / 0.6);
}

.work-list a {
  display: block;
  padding: 0.85rem 0.7rem;
  margin-inline: -0.7rem;
  border-radius: 8px;
  transition: background-color 0.25s var(--ease);
}

.work-list .row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.work-list .name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.work-list .arrow {
  width: 0.65rem;
  height: 0.65rem;
  flex: none;
  color: var(--ink-3);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    color 0.25s var(--ease);
}

.work-list .desc {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.work-list .meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  opacity: 0.7;
}

@media (hover: hover) {
  .work-list a:hover {
    background-color: rgb(91 157 255 / 0.06);
  }

  .work-list a:hover .name {
    color: var(--ink);
  }

  .work-list a:hover .arrow {
    opacity: 1;
    transform: none;
    color: var(--accent);
  }
}

@media (hover: none) {
  .work-list .arrow {
    opacity: 0.5;
    transform: none;
  }
}

.contact {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.social {
  display: flex;
  gap: 0.35rem;
  margin-inline-end: -0.4rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: var(--ink-3);
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.social svg {
  width: 1.15rem;
  height: 1.15rem;
}

.social a:hover {
  color: var(--ink);
  background-color: rgb(91 157 255 / 0.08);
}

:where(a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .card > * {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .work-list .arrow {
    opacity: 0.5;
    transform: none;
  }
}

