:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #101010;
  --muted: #8a8781;
  --hairline: rgba(16, 16, 16, 0.12);
  --surface: #ffffff;
  --focus: rgba(16, 16, 16, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/geist-latin-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-rendering: geometricPrecision;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: opacity 150ms var(--ease);
}

a:hover,
.text-button:hover {
  opacity: 0.68;
}

button {
  border: 0;
}

.shell {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 64px 20px;
  overflow-x: clip;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 360px);
  gap: 40px;
  text-transform: lowercase;
}

.intro,
.bio,
.experience,
.footer {
  width: min(100%, 360px);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

.avatar {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--bg);
  border-radius: 999px;
  background: #21c45d;
}

.name,
.muted,
.bio p,
.experience p,
.experience time,
.footer {
  margin: 0;
}

.muted,
.experience time,
.footer {
  color: var(--muted);
}

.bio {
  display: flex;
  flex-direction: column;
}

.spacer {
  line-height: 1;
}

.hover-token {
  position: relative;
  display: inline-block;
  outline: none;
}

.token-label,
.text-button {
  cursor: pointer;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.hover-token:focus-visible .token-label,
.text-button:focus-visible,
.experience a:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.card-stack {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 20;
  width: 150px;
  height: 178px;
  pointer-events: none;
  transform: translateX(-50%);
}

.hover-card {
  position: absolute;
  inset: 0;
  width: 150px;
  height: 178px;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 14px;
  background: #eee;
  box-shadow: 0 22px 54px rgba(25, 23, 20, 0.18);
  object-fit: cover;
  opacity: 0;
  transform: translate3d(0, 12px, 0) rotate(0deg) scale(0.96);
  transition:
    opacity 220ms var(--ease),
    transform 360ms var(--ease);
  transition-delay: 0ms;
}

.hover-token:hover .hover-card,
.hover-token:focus-visible .hover-card {
  opacity: 1;
  transform: translate3d(var(--dx), 0, 0) rotate(var(--rotate)) scale(1);
  transition-delay: var(--delay);
}

.copy-wrap {
  position: relative;
  display: inline-block;
}

.copy-toast {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 10;
  width: max-content;
  max-width: 160px;
  padding: 5px 8px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(25, 23, 20, 0.12);
  font-size: 12px;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition:
    opacity 180ms var(--ease),
    transform 180ms var(--ease);
  white-space: nowrap;
}

.copy-wrap.is-copied .copy-toast {
  opacity: 1;
  transform: translate(-50%, 0);
}

.experience {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.experience-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 20px;
}

.experience-row time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.footer {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-bottom: 8px;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-up 640ms var(--ease) forwards;
}

.bio .reveal:nth-of-type(1) {
  animation-delay: 120ms;
}

.bio .reveal:nth-of-type(3) {
  animation-delay: 190ms;
}

.bio .reveal:nth-of-type(5) {
  animation-delay: 260ms;
}

.bio .reveal:nth-of-type(7) {
  animation-delay: 330ms;
}

.bio .reveal:nth-of-type(9) {
  animation-delay: 400ms;
}

.experience.reveal {
  animation-delay: 500ms;
}

.footer.reveal {
  animation-delay: 620ms;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-height: 760px) and (min-width: 720px) {
  .shell {
    align-items: center;
  }
}

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

  .profile {
    gap: 34px;
  }

  .experience-row {
    gap: 14px;
  }

  .card-stack {
    left: 0;
    transform: translateX(-18px);
  }
}

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