

:root {
  color-scheme: dark;
  --bg: #060d18;
  --text: #ffffff;
  --muted: #b3c2d9;
  --btn-bg: #0b1f3b;
  --btn-border: #123a63;
  --btn-hover: #123a63;
  --shadow: rgba(0, 0, 0, 0.5);
  --icon: #b3c2d9;
  --icon-hover: #f6c445;
  --pill-bg: #0b1f3b;
  --pill-text: #ffffff;
  --sunken: #040a12;
  --rule: #123a63;
  --focus: #f6c445;
  --radius: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

::selection {
  background: var(--focus);
  color: var(--bg);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--btn-bg);
  color: var(--text);
  border: 1px solid var(--btn-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.slide {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}



.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--btn-border);
  background: var(--sunken);
  box-shadow: 0 8px 24px var(--shadow);
}

@media (max-width: 480px) {
  .avatar {
    width: 160px;
    height: 160px;
  }
}



.title-wrap h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 1.5rem 0 0.25rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}



.main-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 170px;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  background: var(--btn-bg);
  color: var(--text);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--shadow);
  text-decoration: none;
  transition: transform 0.12s linear, background-color 0.12s linear, border-color 0.12s linear;
}

.button svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.button:hover {
  background: var(--btn-hover);
  border-color: var(--focus);
  transform: scale(1.05);
}



.social-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin: 0 0 2rem;
  padding: 0;
}

.social-row a.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  color: var(--icon);
  text-decoration: none;
  transition: transform 0.12s linear, color 0.12s linear;
}

.social-row a.social svg {
  width: 22px;
  height: 22px;
}

.social-row a.social:hover {
  color: var(--icon-hover);
  transform: scale(1.15);
}

.social-row a.social-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  color: var(--icon);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: var(--radius);
}

.social-row a.social-text:hover {
  color: var(--icon-hover);
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltiptext {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 90px;
  background: var(--pill-bg);
  color: var(--pill-text);
  border: 1px solid var(--btn-border);
  border-radius: 6px;
  box-shadow: 0 3px 0 var(--shadow);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s linear, transform 0.12s linear;
  z-index: 10;
}

.tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--pill-bg) transparent;
}

.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



.projects hr {
  width: 24px;
  margin: 2rem auto 1.5rem;
  border: 1px solid var(--rule);
}

.projects h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.projects ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.projects a {
  display: inline-block;
  padding: 0.3rem 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.projects a:hover {
  color: var(--icon-hover);
}



.footer {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
}



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

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.avatar-wrap {
  animation: drop 0.8s ease-out 0.05s backwards;
}

.title-wrap {
  animation: rise 0.8s ease-out 0.35s backwards;
}

.main-links a:nth-of-type(1) {
  animation: rise 0.5s ease-out 0.7s backwards;
}

.main-links a:nth-of-type(2) {
  animation: rise 0.5s ease-out 0.8s backwards;
}

.social-row li {
  animation: rise 0.5s ease-out backwards;
}

.social-row li:nth-child(1) {
  animation-delay: 1s;
}

.social-row li:nth-child(2) {
  animation-delay: 1.1s;
}

.social-row li:nth-child(3) {
  animation-delay: 1.2s;
}

.social-row li:nth-child(4) {
  animation-delay: 1.3s;
}

.social-row li:nth-child(5) {
  animation-delay: 1.4s;
}

.footer,
.projects {
  animation: fade 1s ease-out 1.5s backwards;
}

@media (prefers-reduced-motion: reduce) {
  .avatar-wrap,
  .title-wrap,
  .main-links a,
  .social-row li,
  .footer,
  .projects {
    animation: none;
  }

  .button,
  .social-row a.social,
  .tooltiptext {
    transition: none;
  }
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
