@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=DM+Mono:wght@300;400&display=swap');

/* Base */

body {
  background:

    radial-gradient(
      circle at top left,
      rgba(255,255,255,0.85),
      transparent 30%
    ),

    linear-gradient(
      to bottom,
      #ffffff 0%,
      var(--off-white) 52%,
      #f5f1ec 100%
    ) !important;

  min-height: 100vh;
}

/* Hero */

.party-hero-section {
    width: 100%;
}

.party-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            160deg,
            rgba(17, 17, 17, 0.74) 0%,
            rgba(17, 17, 17, 0.38) 60%,
            rgba(17, 17, 17, 0.58) 100%
        ),
        url("./assets/party-hero.png");

    background-size: 115%;
    background-position: center;
    animation: heroZoomOut 18s ease forwards;
}

/* Zoom Out Animation */

@keyframes heroZoomOut {

    from {
        background-size: 115%;
    }

    to {
        background-size: 100%;
    }

}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    flex-shrink: 0;
    background: linear-gradient(
        to right,
        transparent,
        var(--bright-pink),
        transparent
    );
}

.party-hero-content {
    position: relative;
    z-index: 4;
    padding: 0 64px 72px;
    max-width: 780px;
    text-align: center;
}

.party-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--off-white);
    margin-bottom: 20px;
    text-align: center;
}

.party-h2 {
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0;
    font-family: "Bodoni Moda", serif;
    font-size: 6.2rem;
    font-weight: 400;
  line-height: 1;
  margin-bottom: 18px;
}

.party-h2 strong {
    font-style: normal;
    font-weight: 700;
    display: block;
}

/* Wedding Party Section */

.wedding-party-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.wedding-party-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.party-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 40px;
}

.image-wrap {
    position: relative;
    margin-bottom: 22px;
}

.image-wrap::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            var(--champagne)
        );

    border-radius: 2px;

    z-index: 1;
}

.pink-wrap::before {
    background: linear-gradient(
        180deg,
        #f5d6df,
        #ff4f8b
    );
}

.image-wrap img {
    position: relative;
    z-index: 2;
} 

/* Group */

.party-group:not(:last-child) {
    margin-bottom: 120px;
    padding-bottom: 120px;
    border-bottom:
        1px solid rgba(184, 149, 106, 0.18);
}

.party-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 64px;
    padding-bottom: 20px;
    border-bottom:
        2px solid rgba(184, 149, 106, 0.28);
}

.party-heading p {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(28, 28, 28, 0.55);
    margin: 0;
}

.party-heading h2 {
    font-family: var(--heading-font);
    font-size: 4.2rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: var(--soft-black);
    margin: 0;
    transform: translateY(4px);
}

.party-heading::after {
    content: attr(data-count);
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(184, 149, 106, 0.6);
    align-self: end;
}

/* Grid */

.party-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top:
        1px solid rgba(184, 149, 106, 0.18);
    border-left:
        1px solid rgba(184, 149, 106, 0.18);
}

.party-card {
    position: relative;
    padding: 32px 28px 40px;
    background: transparent;
    border-right:
        1px solid rgba(184, 149, 106, 0.18);
    border-bottom:
        1px solid rgba(184, 149, 106, 0.18);
    text-align: left;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.party-card:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: translateY(-4px);
}

.party-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    margin-bottom: 22px;
    border-radius: 2px;
    filter:
        sepia(6%)
        contrast(1.02)
        brightness(1.01);
    transition:
        transform 0.35s ease,
        filter 0.35s ease,
        box-shadow 0.35s ease;
    box-shadow:
        0 18px 45px rgba(70, 45, 35, 0.08);
}

.party-card:hover img {
    transform: translateY(-2px);
    filter:
        sepia(0%)
        contrast(1.04);
}

.party-card h3 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--soft-black);
    margin: 0 0 6px;
}

.party-card .party-role {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bright-pink);
    display: block;
    margin-bottom: 14px;
}

/* Bio */

.party-card p {
    font-family: var(--body-text);
    font-size: 0.94rem;
    line-height: 1.9;
    color: rgba(28, 28, 28, 0.72);
    margin: 0;
}

/* Responsive */

@media (max-width: 1100px) {

    .party-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .party-hero {
        min-height: 70vh;
        align-items: center;
        justify-content: center;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        animation: none;
    }

    .party-hero-content {
        padding: 0 28px;
    }

    .party-h2 {
        font-size: 3.4rem;
    }

    .wedding-party-section {
        padding: 80px 0;
    }

    .party-container {
        padding: 0 24px;
    }

    .party-group:not(:last-child) {
        margin-bottom: 80px;
        padding-bottom: 80px;
    }

    .party-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .party-heading h2 {
        font-size: 2.6rem;
        transform: none;
    }

    .party-grid {
        grid-template-columns: 1fr;
    }

    .party-card {
        padding: 24px 20px 32px;
    }

}

.maid-of {
    color: var(--bright-pink);
}

.best-man {
    color: var(--champagne);
}