/* Reset default margins */
body {
  margin: 0;
  font-family: 'Lato Light', Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
}

h1 {
  font-size: 3rem;
  font-weight: 400;
  text-align: left;
  font-family: 'Caveat', cursive;
  font-feature-settings: "calt" 0, "liga" 0; /* turn off alternates and ligatures */
  -moz-font-feature-settings: "calt" 0, "liga" 0;
  -webkit-font-feature-settings: "calt" 0, "liga" 0;
}

h2 {
  font-weight: 400;
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 0.2rem 2rem;
  position: sticky;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  max-width: 100vw;
}

/* Logo / Site Title */
.navbar .logo {
  font-family: 'Caveat', cursive;
  font-feature-settings: "calt" 0, "liga" 0; /* turn off alternates and ligatures */
  -moz-font-feature-settings: "calt" 0, "liga" 0;
  -webkit-font-feature-settings: "calt" 0, "liga" 0;
  font-size: 2.25rem;
  font-weight: 100;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 20px;
}

/* Links container */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

/* Individual links */
.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar ul a.active {
  font-weight: bold;
}

.navbar ul a:hover {
  color: #000;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

/* 🔽 Responsive layout */
@media (max-width: 600px) {
  .navbar {
    padding: 0.2rem 0.1rem; /* shrink side padding */
  }

  .navbar ul {
    display: none;
  }

  .menu-toggle {
    display: block; /* show the hamburger */
  }

  .nav-links {
    display: none; /* hidden by default */
    flex-direction: column;
    position: absolute;
    top: 60px; /* below navbar */
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex; /* toggle menu */
    gap: 0.5rem;  /* <-- this controls vertical spacing */
  }
}

/* Main content padding */
main {
  padding: 2rem;
}