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

html,
body {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.9rem;
    font-weight: 100;
    letter-spacing: 0.03rem;
    line-height: 1.5;
    color: #292419;
    background-color: #F4F5F1;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.4s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
}

h1 {
    font-weight: 100;
}

h1 a {
    text-decoration: none;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

header {
    font-size: 3rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    color: #F4F5F1;
    padding: 1rem;
    position: absolute;
    text-transform: uppercase;
}

header a {
    pointer-events: auto;
}

.background {
    position: relative;
    scroll-snap-align: start;
}

.background img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* ============================================
   MOOD SECTION - Draggable & Resizable Images
   ============================================ */
.mood-wrapper {
    position: relative;
    width: 100vw;
    min-height: 100vh;
}

.mood {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#stamp {
    position: absolute;
    top: 20rem;
    left: 10rem;
    width: 28rem;
    padding: 2.5rem;
    text-align: justify;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 999;
}

#stamp a {
    text-decoration: underline;
}

#stamp p.tight {
    margin-bottom: 0;
}

.mood-item {
    position: absolute;
    user-select: none;
    cursor: move;
    touch-action: none;
}

.mood-item img {
    width: 100%;
    pointer-events: none;
}

.mood-item figcaption {
    font-size: 0.8rem;
}

.mood-item.size-small {
    width: 150px;
}

.mood-item.size-medium {
    width: 200px;
}

.mood-item.size-large {
    width: 300px;
}

/* ============================================
   NAV & INFO POPUP
   ============================================ */
nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5rem;
    padding-inline: 2.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    transition: color 0.3s ease;
}

nav button {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

#info-popup {
    position: fixed;
    bottom: 0;
    right: -100%;
    height: 10rem;
    width: min(15rem, 100%);
    padding: 2rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: right 500ms ease-out, color 0.3s ease;
    z-index: 1002;
}

#info-popup.show {
    right: 0;
}

#info-popup button,
#info-popup address,
#info-popup a {
    color: inherit;
}

address {
    font-size: 0.9rem;
    line-height: 1.7;
    font-style: normal;
}

#overlay {
    position: fixed;
    inset: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

#overlay.show {
    opacity: 1;
}

#close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    z-index: 1;
}

footer {
    padding: 3rem;
    color: #252525;
    background-color: #F4F5F1;
} 

footer p {
    margin-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.container {
    max-width: 1200px;
    margin: 5rem auto;
}

:focus-visible {
    outline: 2px solid #8B7355;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media screen and (max-width: 768px) {
    #stamp {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        margin: 2rem auto;
        padding: 2rem;
    }

    main {
        padding: 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Mood wrapper on mobile */
    .mood-wrapper {
        min-height: auto;
    }

    /* Mood section: stack images vertically on mobile */
    .mood {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 1rem;
        height: auto;
        min-height: auto;
    }

    .mood-item {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        cursor: default;
    }

    .mood-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}