

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

@font-face{
  font-family: 'BRUSHHOUR';
  src: url('../assets/fonts/Brush-Hour-Regular.otf') format('opentype');
  font-display: swap;
}

@font-face{
  font-family: 'Nothing You Could Do';
  src: url('../assets/fonts/cafe/nothing-you-could-do-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root{
  --nav-ink-deep: #000;
  --nav-gold:     #2c2c2d;
  --nav-paper:    #fff;
  --font-nav-display:    'BRUSHHOUR', cursive;
  --font-nav-menu:       'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-nav-handwritten: 'Nothing You Could Do', cursive;
}

.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease;
}

.nav-logo{
  font-family: var(--font-nav-display);
  font-size: 1.4rem;
  color: var(--nav-ink-deep);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links{
  display: flex;
  gap: clamp(1rem, 3vw, 2.4rem);
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-nav-menu);
  font-weight: 400;
  font-size: 1.05rem;
}
.nav-links a{
  position: relative;
  color: #242424;
  text-decoration: none;
}
.nav-links a::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 5 C12.5 4.2 12.5 4.2 25 5 C37.5 5.8 37.5 5.8 50 5 C62.5 4.2 62.5 4.2 75 5 C87.5 5.8 87.5 5.8 100 5' fill='none' stroke='%23000000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 24px 8px;
  background-position: left center;
  transition: right .35s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{ right: 0; }


.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar{
  display: block;
  width: 100%; height: 2px;
  background: var(--nav-ink-deep);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2){ opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--nav-paper);
    flex-direction: column;
    justify-content: safe center;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 6.5rem 2rem 3.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 199;
  }
  .nav-links.is-open{ transform: translateX(0); }

  .nav-links{ counter-reset: navitem; }
  .nav-links li{
    counter-increment: navitem;
    display: flex;
    align-items: baseline;
    gap: .65rem;
  }
  .nav-links li::before{
    content: "(" counter(navitem, decimal-leading-zero) ")";
    font-family: var(--font-nav-menu);
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--nav-ink-deep);
    opacity: .5;
  }
  .nav-links a{
    font-family: var(--font-nav-menu);
    font-size: 1.3rem;
    line-height: 1;
    color: var(--nav-ink-deep);
  }

  .nav-links li:nth-child(1) a{ display:inline-block; transform: rotate(-1.5deg); }
  .nav-links li:nth-child(2) a{ display:inline-block; transform: rotate(1.2deg); }
  .nav-links li:nth-child(3) a{ display:inline-block; transform: rotate(-1deg); }
  .nav-links li:nth-child(4) a{ display:inline-block; transform: rotate(1.6deg); }

  .nav-toggle{ display: flex; z-index: 201; }
}
