:root {
    --cream: #f5ece7;
    --brown: #4a332a;
    --dark-brown: #4a332a;
    --text-brown: #4a332a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--cream);
    color: var(--brown);
    font-family: "Montserrat", sans-serif;
}

.hero {
    position: relative;
    isolation: isolate;

    min-height: 100svh;
    padding: clamp(3rem, 9vh, 6rem) 1.5rem;

    display: grid;
    place-items: start center;

    background-image: url("images/windmill.jpeg");
    background-position: center;
    background-size: cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        to bottom,
        rgba(245, 236, 231, 0.82),
        rgba(245, 236, 231, 0.35),
        rgba(74, 51, 42, 0.08)
    );
}

.hero-content {
    max-width: 800px;
    text-align: center;
    color: var(--text-brown);
}

.hero h1 {
    margin: 0;

    color: var(--dark-brown);
    font-family: "Pinyon Script", cursive;
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.8;
}

.couple-names {
    margin: 2rem 0 0.6rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.wedding-date {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
}

@media (max-width: 600px) {
    .hero {
        padding-top: 5rem;
        background-position: 47% center;
    }
}


/* =========================
   WELCOME + LOVE STORY
   ========================= */

.intro-story {
    width: 100%;
}


/* Order of ceremony */

.ceremony-panel {
    min-height: 100svh;
    padding: clamp(4rem, 10vw, 6rem) 1.5rem;

    background-color: var(--dark-brown);
    color: var(--cream);

    display: grid;
    place-items: center;
    text-align: center;
}

.ceremony-content {
    width: 100%;
    max-width: 520px;
}

.ceremony-content h2 {
    margin: 0;

    font-family: "Pinyon Script", cursive;
    font-size: clamp(3.8rem, 15vw, 6rem);
    font-weight: 400;
    line-height: 0.95;
}

.ceremony-ornament {
    width: min(72%, 250px);
    margin: 1.8rem auto 2.2rem;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.7rem;
}

.ceremony-ornament span {
    height: 1px;
    background-color: currentColor;
    opacity: 0.7;
}

.ceremony-ornament b {
    display: block;
    min-width: 2rem;

    font-family: "Cormorant Garamond", serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
}

.ceremony-order {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ceremony-order li {
    margin: 0 0 1.65rem;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1rem, 4vw, 1.22rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.35;
    text-transform: uppercase;
}

.ceremony-order li:last-child {
    margin-bottom: 0;
}

.ceremony-order span {
    display: block;

    margin-top: 0.45rem;

    font-family: "Montserrat", sans-serif;
    font-size: 0.67rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.6;
    text-transform: none;
}

.ceremony-officiant {
    margin: 3.25rem 0 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    line-height: 1.5;
}


/* =========================
   LOVE STORY TIMELINE
   ========================= */

.story-panel {
    min-height: 100svh;

    padding: 4rem 1.5rem;

    background-color: var(--cream);
    color: var(--text-brown);
}

.story-panel h2 {
    margin: 0 auto;

    width: min(100%, 520px);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.8rem, 11vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
}

.timeline {
    position: relative;

    width: min(100%, 420px);
    height: 700px;

    margin: 3rem auto 0;
}

.timeline-line {
    position: absolute;

    width: 100%;
    height: 100%;

    inset: 0;
}

.timeline-line path {
    fill: none;
    stroke: var(--dark-brown);
    stroke-width: 1.3;
    vector-effect: non-scaling-stroke;
}

.timeline-date {
    position: absolute;

    display: flex;
    flex-direction: column;
    gap: 0.3rem;

    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.timeline-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.timeline-cat {
    display: block;
    width: 96px;
    height: 96px;
    margin-bottom: -0.4rem;

    object-fit: contain;
    mix-blend-mode: multiply;
}

.date-one {
    top: 54px;
    right: 5%;
}

.date-two {
    top: 31%;
    right: 70%;
    align-items: center;
    text-align: center;
}

.date-three {
    top: 57%;
    left: 72%;
}

.date-four {
    top: 82%;
    right: 70%;
    align-items: flex-end;
    text-align: right;
}


/* =========================
   BRIDAL PARTY
   ========================= */

.bridal-party-preview {
    min-height: 70svh;

    padding: 2rem;

    background-image:
        linear-gradient(
            rgba(74, 51, 42, 0.25),
            rgba(74, 51, 42, 0.25)
        ),
        url("images/engagement-trees_1.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: var(--cream);

    display: grid;
    place-items: center;

    text-align: center;
}
.bridal-party-preview h2 {
    margin: 0;

    font-family: "Pinyon Script", cursive;
    font-size: clamp(3.5rem, 13vw, 7rem);
    font-weight: 400;
    line-height: 0.9;
}

.bridal-party-details {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 7rem) 1.5rem;

    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;

    background-color: var(--cream);
    color: var(--text-brown);
}

.bridal-party-member {
    width: 100%;
    margin: 0;
    padding: 2.75rem 0;

    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.25rem, 5vw, 3.5rem);

    border-top: 1px solid rgba(74, 51, 42, 0.45);
    border-bottom: 1px solid rgba(74, 51, 42, 0.45);
}

.member-details {
    min-width: 0;
}

.member-number {
    padding-top: 0.45rem;

    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.18em;
}

.member-details h3 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    line-height: 0.95;
}

.member-role {
    margin: 0.9rem 0 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;
    font-style: italic;
}

.member-blurb {
    max-width: 560px;
    margin: 1.5rem 0 0;

    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.8;
}


/* =========================
   THANK YOU
   ========================= */

.thank-you {
    position: relative;
    isolation: isolate;

    min-height: 75svh;
    padding: 2rem;

    display: grid;
    place-items: center;

    background-image: url("images/tractor.jpeg");
    background-position: center 72%;
    background-size: cover;
    color: var(--cream);
    text-align: center;
}

.thank-you::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(74, 51, 42, 0.3);
}

.thank-you h2 {
    margin: 0;

    font-family: "Pinyon Script", cursive;
    font-size: clamp(4.5rem, 16vw, 9rem);
    font-weight: 400;
    line-height: 0.9;
}


/* =========================
   DESKTOP
   ========================= */

@media (min-width: 800px) {

    .intro-story {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ceremony-panel,
    .story-panel {
        min-height: 100vh;
    }

    .ceremony-panel {
        padding: 5rem 4rem;
    }

    .story-panel {
        padding: 5rem 4rem;
    }

    .story-panel h2 {
        margin: 0;
    }

    .timeline {
        margin-top: 3rem;
    }

    .bridal-party-preview {
        min-height: 75vh;
    }

    .bridal-party-details {
        padding-right: 4rem;
        padding-left: 4rem;

        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(4rem, 7vw, 7rem);
        row-gap: 5rem;
    }

    .member-details h3 {
        font-size: clamp(2.7rem, 4.5vw, 4.25rem);
    }

    .thank-you {
        min-height: 85vh;
    }
}
