/* === FONTS === */
@font-face {
    font-family: "Neue Haas Display Bold";
    src: url(../assets/fonts/NeueHaasDisplayBold.ttf);
}

@font-face {
    font-family: "Neue Haas Display Roman";
    src: url(../assets/fonts/NeueHaasDisplayRoman.ttf);
}

/* === RESET & BASE === */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Ensure body is at least viewport height */
    font-family: 'Neue Haas Display Roman';
    background-color: #eee159;
    color: #e30613;
    text-align: center;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Make main fill remaining space naturally */
main {
    flex: 1 0 auto; /* flex-grow, flex-shrink, flex-basis */
    display: flex;
    flex-direction: column;
    justify-content: center; /* center content if short */
    align-items: center;
    padding: 1rem 1rem;
    position: relative; /* needed for slides-container absolute positioning */
}

/* Optionally style templates (kept hidden) */
.page-template {
    display: none;
}

/* === HEADER TITLE / NAVIGATION === */
.title {
    font-family: 'Neue Haas Display Bold';
    font-size: clamp(2.7rem, 9vw, 8rem);
    letter-spacing: 0.08em;
    margin: 2rem 0 0 0;
}

.top-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
}

.top-nav .nav-link {
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #e30613;
    /* adjust to your palette */
    font-family: "Neue Haas Display Roman";
    text-transform: lowercase;
}

.top-nav .nav-link:hover {
    opacity: 1;
}

.top-nav .nav-link.active {
    opacity: 1;
    font-family: "Neue Haas Display Bold";
}


/* === FOOTER === */
footer {
    flex-shrink: 0;
    font-size: clamp(0.6rem, 1vw, 1rem);
    opacity: 0.8;
}

footer a {
    color: #e30613;
    text-decoration: none;
}

a {
    color: #e30613;
    font-weight: bold;
}

footer a:hover {
    opacity: 0.7;
}

/* === RESPONSIVE FIXES === */
@media (max-width: 768px) {
    body {
        height: 100dvh;
    }

    main {
        padding: 2rem 1rem 1rem;
    }

    .title {
        font-size: clamp(2rem, 10vw, 4rem);
        margin: 1.5rem 0 1rem;
    }

    footer {
        margin-top: auto;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .top-nav {
      position: relative;
      top: auto;
      right: auto;
      margin-top: .5rem;
      margin-bottom: 0;
      padding: 0;
      justify-content: center; /* center it below title */
    }
  }