@charset "utf-8";

.main-nav {
  display: flex;
  flex-wrap: wrap;           /* allows two rows again */
  justify-content: left;   /* keeps it centred */
  gap: 1.2rem;               /* slightly tighter spacing */
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
}

/* keep your underline hover */
.main-nav a {
  position: relative;
  padding-bottom: 2px;
}

/* underline hover */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #111;
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* vertical divider between items, spanning both rows */
.main-nav a:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -0.6rem;
  top: -8px;
  bottom: -8px;
  width: 1px;
  background: rgba(0, 0, 0, 0.25);
}

    @media (max-width: 600px) {
  .main-nav {
    flex-direction: row;
    align-items: left;
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .main-nav a:not(:last-child)::before {
    display: none; /* hide dividers on mobile */
      
  }
        body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background-color: #ffffff;
  line-height: 1.6;
    padding-top: 50px;
}
}


.site-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #4C4B53;
    text-align: left;
    letter-spacing: 2px;
    margin: 40px 0 20px 28px; /* left margin matches your site’s rhythm */
    max-width: 900px; /* stops overflow on wide screens */
    padding-right: 20px; /* stops overflow on narrow screens */
}
.menu-toggle {
  position: fixed;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  background-color: #fff;
  opacity: 0.9;
  border-radius: 10px;
  padding: 2px 10px;
  z-index: 100000;
  display: none; /* hidden on desktop */
}

/* Side drawer */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0; /* slide in from right */
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  z-index: 1000001;
}

.sidenav a {
  padding: 8px 32px;
  text-decoration: none;
  font-size: 20px;
  color: #000;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #424141;
  background-color: #FFFFFF;
  font-size: 25px;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  background-color: #fff;
  color: #000;
    z-index: 1000002;
}

/* Mobile only */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none !important;
  }
    /* Drawer ABOVE overlay */
.sidenav {
  z-index: 1000001; /* higher than overlay */
}

/* Overlay BELOW drawer */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1000000; /* lower than drawer */
  display: none;
}

}
/* CSS Document */

