/* Font files recovered from the public portfolio before Adobe Portfolio expiry. */
@font-face {
  font-family: spdk;
  src: url("spdk.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: lhnq;
  src: url("lhnq.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: nqyg;
  src: url("nqyg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

/* Keep the recovered Adobe navigation usable on narrow screens.  The original
   responsive stylesheet hides this navigation behind a menu that cannot be
   reconstructed without Adobe's runtime services. */
@media (max-width: 932px) {
  .site-header {
    width: 100%;
    padding-bottom: 22px;
  }

  .site-header nav {
    display: block !important;
    padding: 12px 16px 0;
    text-align: center;
  }

  .site-header nav .pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 16px;
  }

  .site-header nav .gallery-title,
  .site-header nav .page-title {
    display: inline-block;
    padding: 0 !important;
  }

  .site-header nav .gallery-title a,
  .site-header nav .page-title a {
    display: inline-block;
    font-size: clamp(19px, 5vw, 27px);
    line-height: 1.15;
  }

  .site-header nav .social {
    display: block;
    margin-top: 10px;
  }
}

/* Preserve the original fade, while making page and in-page navigation feel
   deliberate rather than abrupt. */
html { scroll-behavior: smooth; }
.transition-in,
.transition-out {
  -webkit-animation-duration: .36s;
  animation-duration: .36s;
}

nav a,
.project-cover .title {
  transition: color .22s ease, opacity .22s ease, transform .22s ease;
}

/* The recovered theme used near-black inactive links on a black header.
   Keep the original palette, but retain readable contrast for every section. */
nav .page-title a { color: #d8d8d8; }
nav .page-title a:hover,
nav .page-title a:focus-visible { color: #ffd2f9; }
nav .gallery-title a:not(.active) { color: #bfebff; }


nav a:hover,
nav a:focus-visible {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .transition-in,
  .transition-out,
  nav a,
  .project-cover .title {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
