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

:root {
  color-scheme: dark;
  --void: #050505;
  --text: #fafafa;
  --subtle: #a3a3a3;
  --muted: #7a7a7a;
  --accent: #22d3ee;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--void); color: var(--text); font-size: 1rem; line-height: 1.5; }
::selection { background: rgb(34 211 238 / 20%); }

main {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem max(1.5rem, env(safe-area-inset-right)) 3rem max(1.5rem, env(safe-area-inset-left));
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle 424.264px at center, rgb(34 211 238 / 3%), transparent 70%);
}

.profile { width: 100%; max-width: 20rem; }
.intro { margin-bottom: 4rem; }
h1 { margin: 0; font-size: 1.25rem; line-height: 1.4; letter-spacing: -.025em; font-weight: 400; }
.intro p { margin: .25rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.428571; }
.projects { display: flex; flex-direction: column; }

.project {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .75rem;
  color: var(--subtle);
  text-decoration: none;
  transition: color 200ms ease;
}
.project:first-child { margin-bottom: .5rem; color: var(--text); }
.project > span { min-width: 0; overflow-wrap: anywhere; }
.project:nth-child(1) { animation-delay: 50ms; }
.project:nth-child(2) { animation-delay: 100ms; }
.project:nth-child(3) { animation-delay: 150ms; }
.project:nth-child(4) { animation-delay: 200ms; }
.external { width: .875rem; height: .875rem; flex: none; color: var(--muted); opacity: 0; transition: opacity 200ms ease, transform 200ms ease; }
a.project::after { content: ""; position: absolute; bottom: .5rem; left: 0; width: 100%; height: 1px; background: rgb(34 211 238 / 40%); transform: scaleX(0); transform-origin: left; transition: transform 300ms ease-out; }

.socials { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 5%); font-size: .875rem; line-height: 1.428571; letter-spacing: .05em; animation-delay: 250ms; }
.socials a, .socials > span { position: relative; white-space: nowrap; color: var(--muted); text-decoration: none; transition: color 200ms ease; }
.socials a::before { content: ""; position: absolute; inset: -.25rem; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 1px; }
a.project:focus-visible { color: var(--text); }
a.project:focus-visible .external { opacity: 1; transform: translateX(2px); }
a.project:focus-visible::after { transform: scaleX(1); }
.socials a:focus-visible { color: var(--text); }

@media (hover: hover) {
  a.project:hover { color: var(--text); }
  a.project:hover .external { opacity: 1; transform: translateX(2px); }
  a.project:hover::after { transform: scaleX(1); }
  .socials a:hover { color: var(--text); }
}

@media (prefers-reduced-motion: no-preference) {
  .enter { animation-name: enter; animation-duration: 600ms; animation-timing-function: cubic-bezier(.16, 1, .3, 1); animation-fill-mode: backwards; }
  @keyframes enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .ambient { display: none; }
  a.project { color: LinkText; }
  a.project .external { opacity: 1; }
  a:focus-visible { outline-color: Highlight; }
}
