@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #000;
  color: #fff;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  background: #000;
}

.profile {
  position: relative;
  width: min(100%, 28rem);
  padding: clamp(24px, 6vw, 40px);
  border: 1px solid rgb(255 255 255 / 12%);
}

/* Bright registration marks give the quiet frame a precise, printed edge. */
.profile::before {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(#fff, #fff) top left / 16px 1px,
    linear-gradient(#fff, #fff) top left / 1px 16px,
    linear-gradient(#fff, #fff) top right / 16px 1px,
    linear-gradient(#fff, #fff) top right / 1px 16px,
    linear-gradient(#fff, #fff) bottom left / 16px 1px,
    linear-gradient(#fff, #fff) bottom left / 1px 16px,
    linear-gradient(#fff, #fff) bottom right / 16px 1px,
    linear-gradient(#fff, #fff) bottom right / 1px 16px;
  background-repeat: no-repeat;
}

.identity {
  animation: arrive 700ms both;
}

.identity h1 {
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.075em;
  font-variant-numeric: slashed-zero;
}

.identity p {
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.links {
  display: grid;
  margin-top: clamp(40px, 8vw, 64px);
}

.links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 76px;
  padding: 20px 2px;
  border-top: 1px solid rgb(255 255 255 / 18%);
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  animation: arrive 700ms both;
}

.links a:last-child {
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.links a:nth-child(1) { animation-delay: 70ms; }
.links a:nth-child(2) { animation-delay: 140ms; }
.links a:nth-child(3) { animation-delay: 210ms; }

.links a::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 1px;
  background: #fff;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.link-label {
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.link-arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.25;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.links a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 6px;
}

.links a:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.links a:focus-visible .link-label {
  transform: translateX(6px);
}

.links a:focus-visible .link-arrow {
  transform: translate(3px, -3px);
}

@media (hover: hover) and (pointer: fine) {
  .links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
  }

  .links a:hover .link-label {
    transform: translateX(6px);
  }

  .links a:hover .link-arrow {
    transform: translate(3px, -3px);
  }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 540px) and (min-width: 540px) {
  .profile {
    padding: 24px 32px;
  }

  .identity h1 {
    font-size: 2rem;
  }

  .identity p {
    margin-top: 6px;
  }

  .links {
    margin-top: 24px;
  }

  .links a {
    min-height: 56px;
    padding-block: 14px;
  }
}

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

::selection {
  color: #000;
  background: #fff;
}
