

@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: #24529f;
  --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-menu);
  font-size: 1.05rem;
  font-weight: 400;
  color: #25529f;
    text-decoration: none;
}

.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: #24529f;
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover{ opacity: .65; }


.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; }
}
