* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: linear-gradient(#9A4338, #C46C34, #E88E31);
    min-height: 100vh;
}

.page_wrapper {
    display: grid;
    justify-items: center;
    align-items: start;
    width: 100%;
}

p {
    font-size: 1.56rem;
    font-family: "Inconsolata", monospace;
    margin: 2rem auto;
    max-width: 65ch;
}

/* ── NAV ── */
nav {
    background-color: #E68D31;
    outline: #E57B2F solid 3px;
    position: sticky;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 70px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    padding: 0.75rem 1rem;
}

nav a {
    font-size: clamp(0.9rem, 2vw, 2.44rem);
    text-decoration: none;
    color: white;
    font-family: "Changa One", sans-serif;
    transition: transform 0.3s ease;
    text-align: center;
}

nav a:hover {
    text-decoration: underline;
    text-decoration-color: black;
    transform: scale(1.5);
    display: inline-block;
}

nav a img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* Mobile logo — visible on mobile only */
.nav_logo {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1400;
}

.nav_logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Desktop link row — hidden on mobile */
#top {
    display: none;
}

#top a {
    text-align: center;
}

#top img {
    width: 100px;
}

/* Hamburger — visible on mobile */
.menu_toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1500;
}

.menu_toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.menu_toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu_toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu_toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown — hidden until toggled */
.nav_links {
    display: none;
}

.nav_links a {
    padding: 0.6rem 0.4rem;
    display: block;
    text-align: center;
}

.nav_links.open {
    display: grid;
    position: absolute;
    right: 1rem;
    top: 100%;
    width: 220px;
    padding: 0.5rem 0.75rem;
    background-color: #E68D31;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    grid-template-columns: 1fr;
    gap: 0.5rem;
    justify-items: center;
    z-index: 1400;
}

/* ── POSTER ── */
.poster {
    width: 100%;
    display: grid;
    justify-items: center;
}

.poster img {
    padding-top: 2rem;
    width: 90%;
    height: auto;
}

/* ── HEADLINE TICKER ── */
.headline_background {
    width: 100%;
    overflow: hidden;
    background-color: black;
    color: white;
}

.headline {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.headline_text {
    font-size: clamp(3.5rem, 5vw, 6rem);
    word-spacing: 8px;
    font-weight: bold;
}

@keyframes ticker {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* ── HEADINGS ── */
h1 {
    text-align: center;
    font-size: 3.5rem;
    background-color: #E68D31;
    outline: #E57B2F;
    outline-style: auto;
    outline-width: 3px;
    color: white;
    font-family: "Changa One", sans-serif;
    margin-top: 1.5rem;
    word-spacing: 8px;
}

/* ── SCROLL ANIMATIONS ── */
.observed {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── GRID SECTIONS ── */
#grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
    width: 100%;
}

#grid a {
    text-decoration: none;
    color: #E68D31;
    outline: #E57B2F;
    outline-style: auto;
    outline-width: 3px;
}

/* ── FORM & MAP ── */
#sign_up_sheet {
    display: grid;
    justify-items: center;
    width: 100%;
}

#event_location {
    display: grid;
    justify-items: center;
    width: 100%;
}

.form {
    width: 100%;
    max-width: 640px;
    height: 1100px;
    border: 0;
}

.map {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: 0;
    margin-top: 2rem;
}

/* ── HOSTS ── */
#hosts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    justify-items: center;
    align-items: start;
    width: 100%;
}

#hosts-grid figure {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 0.5rem;
}

#hosts-grid img {
    object-fit: cover;
    aspect-ratio: 2/5;
}

#hosts-grid figcaption {
    font-size: 1.2rem;
    font-family: "Inconsolata", monospace;
    color: rgb(0, 0, 0);
    margin-top: 0.5rem;
    min-height: 3em;
    display: grid;
    align-items: start;
    justify-items: center;
}

/* ── PHOTO GALLERY ── */
#photo_gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    padding: 0 1rem;
}

#photo_gallery img {
    width: 100%;
    height: auto;
    min-height: 150px;
}

/* ── FOOTER ── */
footer {
    width: 100vw;
    background-color: #E68D31;
    outline: #E57B2F;
    outline-style: auto;
    outline-width: 3px;
    color: rgb(240 240 240 / 1);
    text-align: center;
    padding: 1rem;
}

footer p {
    text-align: center;
    margin: 0 auto;
}

/* ── FONT UTILITIES ── */
.changa-one-regular {
    font-family: "Changa One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.changa-one-regular-italic {
    font-family: "Changa One", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.inconsolata-regular {
    font-family: "Inconsolata", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

/* ── BREAKPOINTS ── */
@media screen and (min-width: 601px) {
    nav {
        height: 100px;
        grid-template-columns: 1fr;
    }

    #top {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        width: 100%;
        align-items: center;
        justify-items: center;
    }

    /* Hide mobile logo on desktop */
    .nav_logo {
        display: none;
    }

    .menu_toggle {
        display: none;
    }

    .nav_links,
    .nav_links.open {
        display: none;
    }

    .poster img {
        width: 600px;
    }

    #hosts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #photo_gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 800px) {
    #grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1200px) {
    #grid {
        grid-template-columns: repeat(4, 1fr);
    }
}