/* --- Custom CSS with Tailwind layers --- */
@layer base {
  /* Global tweaks can go here (optional) */
  /* Example: set default body text color or font */
  /* body { color: #24443a; } */
}

@layer components {
  /* Large hero heading used on the homepage */
  .large-heading {
    font-weight: var(--font-weight-light, 300);
    line-height: var(--text-5xl--line-height, 1);
    font-size: var(--text-12xl, 6rem);
  }

  /* Project links row with small numbers */
  .small-project-link {
    display: relative;
    gap: calc(var(--spacing) * 2);
    align-items: left;
  }

  /* Hero section background helper (optional image) */
  .herosection {
    background-size: cover;
    background-position: center;
    background-color: rgb(236, 248, 243);
  }

  /* Footer helpers */
  .footer { border-top: 1px solid var(--color-gray-300); }
  .project-number-3 { color: var(--color-gray-700); }
  .footer-text { color: var(--color-gray-800); }

  /* Simple bounce animation for the arrow icon */
  .bouncing-icon { animation: bounceY 1.5s infinite; }

  /* --- Navigation styling --- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: color-mix(in oklab, white 70%, transparent);
    border-bottom: 1px solid var(--color-gray-300);
  }
  .site-header__inner {
    max-width: var(--container-6xl);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }
  @media (min-width: 768px) {
    .site-header__inner { padding-left: 1.5rem; padding-right: 1.5rem; }
  }
  @media (min-width: 1024px) {
    .site-header__inner { padding-left: 2rem; padding-right: 2rem; }
  }
  .site-logo img { height: 2rem; width: auto; display: block; }
  .site-links { display: flex; align-items: center; gap: .5rem; }
  @media (min-width: 640px) { .site-links { gap: 1rem; } }
  .site-link {
    color: var(--color-gray-800);
    padding: .5rem .75rem;
    transition: color var(--default-transition-duration) var(--default-transition-timing-function);
  }
  .site-link:hover, .site-link:focus-visible { color: #fe2e63; }
  .site-link[aria-current="page"] { color: #fe2e63; position: relative; }
  .site-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .25rem;
    height: 2px;
    background-color: #fe2e63;
    border-radius: 1px;
  }
}

@layer utilities {
  /* Scroll reveal helpers */
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: revealY 0.6s var(--default-transition-timing-function) forwards;
  }
  .reveal-delay-100 { animation-delay: .1s; }
  .reveal-delay-200 { animation-delay: .2s; }
  .reveal-delay-300 { animation-delay: .3s; }
  .reveal-delay-500 { animation-delay: .5s; }
}

@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes revealY {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bouncing-icon,
  .reveal,
  .reveal-delay-100,
  .reveal-delay-200,
  .reveal-delay-300,
  .reveal-delay-500 { animation: none !important; opacity: 1; transform: none; }
}
