/* =========================================
   JNKVERSE — LUXURY JENNIE HOMEPAGE
   Layout based on your approved sketch
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');

:root {
    --ruby: #b51f48;
    --rose: #f0a0b7;
    --cream: #f4e8e2;
    --ink: #28151b;
    --white: #fffafc;
    --line: rgba(255, 225, 234, 0.2);
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #100408;
    color: var(--white);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* HOMEPAGE BACKGROUND */

.homepage {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background-color: #18030a;
    background-image:
        linear-gradient(
            90deg,
            rgba(15, 1, 6, 0.48) 0%,
            rgba(25, 1, 9, 0.15) 48%,
            rgba(20, 1, 7, 0.12) 75%,
            rgba(15, 1, 6, 0.35) 100%
        ),
        linear-gradient(
            0deg,
            rgba(12, 1, 5, 0.48),
            transparent 42%,
            rgba(15, 1, 6, 0.08)
        ),
        url("../assets/images/jennie-hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.homepage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 50% 45%,
        transparent 38%,
        rgba(12, 0, 5, 0.16) 100%
    );
}

/* NAVIGATION */

.navbar {
    position: relative;
    z-index: 20;
    min-height: 86px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(18, 2, 8, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.13em;
    white-space: nowrap;
}

.logo > span:not(.logo-symbol) {
    color: rgba(255, 250, 252, 0.65);
    font-weight: 400;
}

.logo-symbol {
    margin-right: 8px;
    color: var(--rose);
    font-size: 15px;
    text-shadow: 0 0 18px rgba(240, 160, 183, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 38px);
}

.nav-links a {
    position: relative;
    padding: 10px 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--rose);
    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--rose);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* MOBILE MENU BUTTON */

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 225, 234, 0.35);
    background: rgba(20, 0, 8, 0.35);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 19px;
    height: 1px;
    margin: 5px auto;
    background: var(--white);
    transition: transform 0.3s ease;
}

/* HERO */

.hero {
    position: relative;
    isolation: isolate;
    flex: 1;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 40px 5vw 55px;
}

.hero::before,
.hero::after {
    content: none;
    display: none;
}

/*
   MAIN CONTENT
   Keep the title to the right of Jennie's face.
   Avoid placing the heading over the center-left
   of the hero background.
*/

.hero-content {
    position: absolute;
    z-index: 5;
    top: 45%;
    left: 64%;
    width: 32%;
    max-width: 460px;
    margin: 0;
    text-align: center;
    transform: translate(-50%, -50%);
}

.page-count {
    margin-bottom: 25px;
    color: var(--rose);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.page-count span {
    color: rgba(255, 250, 252, 0.65);
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--rose);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.34em;
}

/* KEEP THE ORIGINAL JNKVERSE HEADING FONT */

.hero h1 {
    font-family: "Bodoni Moda", serif;
    font-size: clamp(62px, 6.1vw, 100px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.055em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 235, 240, 0.94);
}

/* HANDWRITTEN "FOR JENNIE" ACCENT */

.hero h1 span::after {
    content: "for Jennie";
    position: absolute;
    z-index: 2;
    left: 1%;
    bottom: -0.52em;
    color: var(--rose);
    font-family: "Allura", cursive;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    -webkit-text-stroke: 0;
    transform: rotate(-6deg);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

/* DESCRIPTION */

.hero-text {
    width: 100%;
    max-width: 410px;
    margin: 43px auto 0;
    color: rgba(255, 245, 248, 0.96);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}

/* ENTER BUTTON */

.enter-button {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 27px auto 0;
    padding: 17px 22px;
    border: 1px solid rgba(240, 160, 183, 0.8);
    border-radius: 2px;
    background: rgba(24, 0, 8, 0.78);
    color: var(--white);
    backdrop-filter: blur(8px);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.enter-button span {
    font-size: 17px;
    transition: transform 0.3s ease;
}

.enter-button:hover {
    transform: translateY(-2px);
    border-color: var(--rose);
    background: rgba(181, 31, 72, 0.92);
    box-shadow: 0 8px 28px rgba(181, 31, 72, 0.25);
}

.enter-button:hover span {
    transform: translateX(4px);
}

/* SMALL HERO DETAILS */

.hero-meta {
    position: absolute;
    z-index: 4;
    color: rgba(255, 225, 234, 0.75);
    font-size: 8px;
    letter-spacing: 0.24em;
    pointer-events: none;
}

.left-meta {
    left: 5vw;
    bottom: 28px;
}

.right-meta {
    right: 4vw;
    bottom: 28px;
    writing-mode: vertical-rl;
}

/* =========================================
   SCRAPBOOK / POLAROIDS
   ========================================= */

.ruby-scrapbook {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

/* BASE POLAROID FRAME */

.scrap-photo {
    position: absolute;
    width: clamp(140px, 11vw, 175px);
    margin: 0;
    padding: 7px 7px 23px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: var(--cream);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.12);
    transform-origin: center;
}

.scrap-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* CAPTIONS */

.scrap-photo figcaption {
    position: static;
    width: 100%;
    margin-top: 6px;
    padding: 0 22px 0 3px;
    color: #382027;
    font-family: "Courgette", cursive;
    font-size: clamp(10px, 0.9vw, 12px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: left;
    overflow-wrap: break-word;
}

/* HEART ON EACH POLAROID */

.scrap-photo::after {
    content: "♡";
    position: absolute;
    right: 8px;
    bottom: 5px;
    color: #a51e32;
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1;
    pointer-events: none;
}

/* PINK TAPE */

.scrap-photo::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: -9px;
    left: 32%;
    width: 36%;
    height: 18px;
    background: rgba(241, 165, 185, 0.66);
    transform: rotate(-8deg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

/*
   DESKTOP PHOTO POSITIONS
   1 = upper-left
   2 = lower-left, overlapping 1
   3 = upper-right
   4 = middle-right, overlapping 3
   5 = lower-right, shifted inward
*/

/* PHOTO 1 — STREET */

.scrap-street {
    top: 5%;
    left: 3%;
    right: auto;
    bottom: auto;
    width: clamp(145px, 11vw, 175px);
    z-index: 2;
    transform: rotate(-10deg);
}

/* PHOTO 2 — COWBOY HAT */

.scrap-cowboy {
    top: 48%;
    left: 3.4%;
    right: auto;
    bottom: auto;
    width: clamp(145px, 11vw, 175px);
    z-index: 3;
    transform: rotate(10deg);
}

/* RIGHT-SIDE POLAROIDS — REFERENCE LAYOUT */

/* Slightly smaller, equal-sized right Polaroids */
.scrap-red,
.scrap-wink,
.scrap-smile {
    width: 170px;
    max-width: none;
}

/* PHOTO 3 — TOP-RIGHT, AS IN YOUR SKETCH */
.scrap-red {
    top: 1%;
    right: 13%;
    z-index: 3;
    transform: rotate(-8.8deg);
}

/* 4 — Striped outfit: overlapping from the right */
.scrap-wink {
    top: 24%;
    right: 1.8%;
    z-index: 5;
    transform: rotate(-8.8deg);
}

/* 5 — Smile: lower down and shifted left */
.scrap-smile {
    bottom: 1%;
    right: 11.5%;
    z-index: 4;
    transform: rotate(9deg);
}

/* REMOVE LINE DOODLES AND HANDWRITTEN NOTES */

.scrap-doodle-line,
.scrap-arrow,
.scrap-note {
    display: none !important;
}

/* SMALL HEART / STAR ACCENTS ONLY */

.scrap-doodle {
    position: absolute;
    color: var(--rose);
    font-family: "Allura", cursive;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.doodle-one {
    top: 22%;
    left: 22%;
    font-size: clamp(30px, 3.2vw, 40px);
    transform: rotate(-12deg);
}

.doodle-two {
    right: 20%;
    bottom: 17%;
    font-size: 25px;
    transform: rotate(10deg);
}

/* =========================================
   STREAM / VOTE / PLAY CARDS
   ========================================= */

.explore {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    background: rgba(12, 2, 6, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.explore-item {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 118px;
    padding: 18px 22px;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: border-color 0.3s ease;
}

.explore-item:first-child {
    border-left: 1px solid var(--line);
}

.explore-item:nth-child(1) {
    background-image:
        linear-gradient(
            90deg,
            rgba(15, 2, 7, 0.88),
            rgba(15, 2, 7, 0.45)
        ),
        url("../assets/images/stream-bg.png");
}

.explore-item:nth-child(2) {
    background-image:
        linear-gradient(
            90deg,
            rgba(15, 2, 7, 0.88),
            rgba(15, 2, 7, 0.45)
        ),
        url("../assets/images/jennie-vote.png");
}

.explore-item:nth-child(3) {
    background-image:
        linear-gradient(
            90deg,
            rgba(15, 2, 7, 0.88),
            rgba(15, 2, 7, 0.45)
        ),
        url("../assets/images/play-jennie.png");
}

.explore-item:hover {
    border-color: rgba(240, 160, 183, 0.65);
}

.explore-item span {
    color: var(--rose);
    font-size: 10px;
    letter-spacing: 0.25em;
}

.explore-item strong {
    font-family: "Bodoni Moda", serif;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.explore-item small {
    color: rgba(255, 240, 245, 0.85);
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
}

.explore-item b {
    position: absolute;
    right: 20px;
    bottom: 17px;
    color: var(--rose);
    font-size: 20px;
    transition: transform 0.25s ease;
}

.explore-item:hover b {
    transform: translate(3px, -3px);
}

/* =========================================
   TABLET
   ========================================= */

@media (min-width: 801px) and (max-width: 1100px) {
    .navbar {
        padding: 0 3vw;
    }

    .nav-links {
        gap: 17px;
    }

    .hero {
        min-height: 590px;
        padding: 45px 3vw 65px;
    }

    .hero-content {
        top: 46%;
        left: 63%;
        width: 34%;
    }

    .hero h1 {
        font-size: clamp(54px, 5.7vw, 76px);
    }

    .hero h1 span::after {
        font-size: 30px;
    }

    .page-count {
        margin-bottom: 23px;
    }

    .hero-text {
        margin-top: 40px;
        font-size: 12px;
    }

    .scrap-photo {
        width: 105px;
        padding: 5px 5px 19px;
    }

    .scrap-street {
        top: 8%;
        left: 2%;
    }

    .scrap-cowboy {
        top: 49%;
        left: 3%;
    }


    .scrap-photo figcaption {
        font-size: 10px;
    }

    .doodle-two {
        display: none;
    }
}

/* =========================================
   MOBILE NAVIGATION
   ========================================= */

@media (max-width: 800px) {
    .navbar {
        min-height: 70px;
        padding: 0 20px;
    }

    .logo {
        font-size: 18px;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        position: relative;
        z-index: 1001;
    }

    .menu-button span {
        margin: 0 auto;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        background: rgba(10, 0, 5, 0.98);
        border-bottom: 1px solid var(--line);
        transition:
            max-height 0.35s ease,
            opacity 0.25s ease;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 17px 26px;
        font-size: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links.mobile-open {
        max-height: 420px;
        opacity: 1;
    }

    .menu-button.menu-open span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .menu-button.menu-open span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .homepage {
        background-position: center, center, 58% center;
    }

    .hero {
        min-height: 680px;
        padding: 55px 22px 125px;
        align-items: center;
    }

    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        text-align: center;
        transform: none;
    }

    .page-count {
        margin-bottom: 28px;
    }

    .hero h1 {
        font-size: clamp(58px, 12vw, 84px);
    }

    .hero h1 span::after {
        bottom: -0.48em;
        font-size: clamp(28px, 8vw, 40px);
    }

    .hero-text {
        max-width: 320px;
        margin: 42px auto 0;
        font-size: 12px;
        line-height: 1.8;
        text-align: center;
    }

    .enter-button {
        margin: 28px auto 0;
    }

    .right-meta {
        display: none;
    }

    .left-meta {
        left: 22px;
        bottom: 20px;
        font-size: 7px;
    }

    /* Keep the mobile hero uncluttered.
       Desktop retains all five Polaroids. */

    .scrap-cowboy,
    .scrap-red,
    .scrap-wink,
    .scrap-smile,
    .scrap-note,
    .doodle-one,
    .doodle-two {
        display: none;
    }

    .scrap-street {
        top: auto;
        bottom: 10px;
        left: 18px;
        width: 78px;
        padding: 5px 5px 18px;
        transform: rotate(-6deg);
    }

    .scrap-street figcaption {
        font-size: 10px;
    }

    .scrap-photo::before {
        top: -6px;
        height: 12px;
    }

    .scrap-photo::after {
        right: 6px;
        bottom: 4px;
        font-size: 16px;
    }

    .explore {
        grid-template-columns: 1fr;
    }

    .explore-item {
        min-height: 105px;
        padding: 17px 22px;
        background-position: center 40%;
    }
}

/* SMALL PHONES */

@media (max-width: 420px) {
    .navbar {
        padding: 0 17px;
    }

    .logo {
        font-size: 16px;
        letter-spacing: 0.1em;
    }

    .hero {
        min-height: 640px;
        padding-left: 17px;
        padding-right: 17px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero h1 span::after {
        font-size: 29px;
    }

    .hero-text {
        max-width: 275px;
        margin-top: 40px;
    }

    .scrap-street {
        width: 66px;
        bottom: 8px;
        left: 12px;
    }

    .explore-item strong {
        font-size: 24px;
    }
}

/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* MOBILE POLAROID FIX */
@media (max-width: 600px) {
    .scrap-photo {
        width: 125px;
        max-width: 125px;
    }

    .scrap-photo figcaption {
        font-size: 11px;
        line-height: 1.35;
        overflow-wrap: normal;
        word-break: normal;
    }

    .scrap-photo img {
        width: 100%;
        height: auto;
        display: block;
    }
}