
/* =====================================================
   ANDREA MICHIELAN
   SINGLE EVENT
===================================================== */

.am-single-event,
.am-single-event * {
    box-sizing: border-box;
}

.am-single-event {
    --am-event-bg: #FCFCFA;
    --am-event-bg-soft: #F7F6F3;
    --am-event-white: #FFFFFF;

    --am-event-dark: #061616;
    --am-event-text: #4F5553;
    --am-event-muted: #747B78;

    --am-event-accent: #7FA7A0;
    --am-event-accent-light: #D8ECE8;

    --am-event-primary: #1B8A8A;
    --am-event-primary-dark: #126B6B;

    --am-event-line: rgba(6,22,22,.10);

    width: 100%;
    overflow: hidden;

    background:
        var(--am-event-bg);

    color:
        var(--am-event-dark);

    font-family:
        "Manrope",
        sans-serif;
}

.am-single-event__inner {
    width: 100%;
    max-width: 1380px;

    margin:
        0 auto;

    padding:
        0 70px;
}


/* =====================================================
   HERO
===================================================== */

.am-single-event-hero {
    position: relative;

    overflow: hidden;

    padding:
        105px
        0
        80px;

    background:
        var(--am-event-bg);
}

.am-single-event-hero::before {
    content: "";

    position: absolute;

    top: -390px;
    right: -310px;

    width: 820px;
    height: 820px;

    border:
        1px solid
        rgba(127,167,160,.11);

    border-radius:
        50%;

    box-shadow:
        0 0 0 105px
        rgba(127,167,160,.02);

    pointer-events: none;
}


/* =====================================================
   BACK LINK
===================================================== */

.am-single-event__back {
    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 11px;

    margin-bottom:
        65px;

    color:
        var(--am-event-primary-dark);

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        .17em;

    text-decoration:
        none;

    text-transform:
        uppercase;
}

.am-single-event__back span:first-child {
    font-size:
        19px;

    line-height:
        1;

    transition:
        transform .3s ease;
}


/* =====================================================
   HERO GRID
===================================================== */

.am-single-event-hero__grid {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(330px,410px);

    gap:
        clamp(60px,9vw,145px);

    align-items:
        end;
}


/* =====================================================
   LABELS
===================================================== */

.am-single-event__labels {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom:
        28px;
}

.am-single-event__label {
    display:
        inline-flex;

    align-items:
        center;

    min-height:
        34px;

    padding:
        8px
        14px;

    border:
        1px solid
        rgba(18,107,107,.20);

    border-radius:
        999px;

    color:
        var(--am-event-primary-dark);

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        .15em;

    text-transform:
        uppercase;
}

.am-single-event__label--status {
    border-color:
        var(--am-event-primary);

    background:
        var(--am-event-primary);

    color:
        #FFFFFF;
}

.am-single-event__label--full {
    border-color:
        #333333;

    background:
        #333333;

    color:
        #FFFFFF;
}


/* =====================================================
   TITLE
===================================================== */

.am-single-event__title {
    width:
        min(100%,900px);

    margin: 0;

    color:
        var(--am-event-dark);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(65px,7vw,104px);

    font-weight:
        400;

    line-height:
        .94;

    letter-spacing:
        -.052em;

    overflow-wrap:
        break-word;
}

.am-single-event__date-lead {
    display: flex;

    align-items: center;

    gap: 17px;

    margin:
        36px
        0
        0;

    color:
        var(--am-event-primary-dark);

    font-size:
        11px;

    font-weight:
        700;

    letter-spacing:
        .18em;

    text-transform:
        uppercase;
}

.am-single-event__date-lead::before {
    content: "";

    display: block;

    width: 42px;
    height: 1px;

    background:
        var(--am-event-accent);
}


/* =====================================================
   INFO PANEL
===================================================== */

.am-single-event-info {
    padding:
        31px;

    border:
        1px solid
        var(--am-event-line);

    background:
        rgba(247,246,243,.70);
}

.am-single-event-info__eyebrow {
    display: block;

    margin-bottom:
        22px;

    color:
        var(--am-event-primary-dark);

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        .18em;

    text-transform:
        uppercase;
}

.am-single-event-info__rows {
    display:
        grid;

    border-top:
        1px solid
        var(--am-event-line);
}

.am-single-event-info__row {
    display: grid;

    grid-template-columns:
        100px
        minmax(0,1fr);

    gap:
        17px;

    padding:
        15px
        0;

    border-bottom:
        1px solid
        var(--am-event-line);
}

.am-single-event-info__label {
    color:
        var(--am-event-accent);

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        .14em;

    text-transform:
        uppercase;
}

.am-single-event-info__value {
    min-width: 0;

    color:
        var(--am-event-text);

    font-size:
        13px;

    line-height:
        1.55;

    overflow-wrap:
        break-word;
}

.am-single-event-info__value--highlight {
    color:
        var(--am-event-primary-dark);

    font-weight:
        700;
}


/* =====================================================
   BOOK BUTTON
===================================================== */

.am-single-event-info__button {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap:
        18px;

    width: 100%;

    min-height:
        58px;

    margin-top:
        25px;

    padding:
        14px
        18px
        14px
        24px;

    border-radius:
        999px;

    background:
        var(--am-event-primary);

    color:
        #FFFFFF;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        .14em;

    text-decoration:
        none;

    text-transform:
        uppercase;

    transition:
        background-color .3s ease,
        transform .3s ease;
}

.am-single-event-info__button-arrow {
    display: flex;

    align-items: center;

    justify-content:
        center;

    flex:
        0 0 38px;

    width: 38px;
    height: 38px;

    border:
        1px solid
        rgba(255,255,255,.50);

    border-radius:
        50%;

    font-size:
        19px;
}

.am-single-event-info__full {
    margin:
        24px
        0
        0;

    color:
        var(--am-event-muted);

    font-size:
        12px;

    line-height:
        1.7;
}


/* =====================================================
   HERO IMAGE
===================================================== */

.am-single-event-cover {
    position: relative;

    z-index: 2;

    width: 100%;

    margin-top:
        80px;

    aspect-ratio:
        16 / 7.8;

    overflow: hidden;

    background:
        #DDEBE8;
}

.am-single-event-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.am-single-event-cover__fallback {
    position: absolute;

    inset: 0;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #E0EFEC,
            #B0CEC8 50%,
            #7FA7A0
        );
}

.am-single-event-cover__fallback::before,
.am-single-event-cover__fallback::after {
    content: "";

    position: absolute;

    border:
        1px solid
        rgba(255,255,255,.42);
}

.am-single-event-cover__fallback::before {
    top: 10%;
    left: 10%;

    width: 72%;
    height: 75%;

    transform:
        rotate(-2deg);
}

.am-single-event-cover__fallback::after {
    top: 23%;
    left: 28%;

    width: 62%;
    height: 61%;

    transform:
        rotate(1.5deg);
}


/* =====================================================
   BODY
===================================================== */

.am-single-event-body {
    padding:
        115px
        0
        135px;

    background:
        var(--am-event-bg-soft);
}

.am-single-event-body__grid {
    display: grid;

    grid-template-columns:
        190px
        minmax(0,760px);

    gap:
        clamp(55px,8vw,115px);

    justify-content:
        center;

    align-items:
        start;
}


/* =====================================================
   BODY SIDE
===================================================== */

.am-single-event-body__side {
    position: sticky;

    top: 120px;
}

.am-single-event-body__side-label {
    display: block;

    margin-bottom:
        18px;

    color:
        var(--am-event-primary-dark);

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        .18em;

    text-transform:
        uppercase;
}

.am-single-event-body__side-line {
    width: 100%;
    height: 1px;

    margin-bottom:
        20px;

    background:
        var(--am-event-line);
}

.am-single-event-body__side p {
    margin: 0;

    color:
        var(--am-event-muted);

    font-size:
        12px;

    line-height:
        1.75;
}


/* =====================================================
   CONTENT
===================================================== */

.am-single-event-content {
    min-width: 0;
}

.am-single-event-content__eyebrow {
    display: block;

    margin-bottom:
        21px;

    color:
        var(--am-event-primary-dark);

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        .18em;

    text-transform:
        uppercase;
}

.am-single-event-content__heading {
    margin:
        0
        0
        42px;

    color:
        var(--am-event-dark);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(45px,4.6vw,64px);

    font-weight:
        400;

    line-height:
        1;

    letter-spacing:
        -.04em;
}


/* WordPress content */

.am-single-event-content__body {
    color:
        var(--am-event-text);
}

.am-single-event-content__body p {
    margin:
        0
        0
        28px;

    font-size:
        17px;

    line-height:
        1.9;
}

.am-single-event-content__body > p:first-child {
    color:
        var(--am-event-dark);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        28px;

    line-height:
        1.55;
}

.am-single-event-content__body h2 {
    margin:
        70px
        0
        25px;

    color:
        var(--am-event-dark);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(39px,4vw,52px);

    font-weight:
        400;

    line-height:
        1.05;

    letter-spacing:
        -.035em;
}

.am-single-event-content__body h3 {
    margin:
        52px
        0
        21px;

    color:
        var(--am-event-dark);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        32px;

    font-weight:
        500;

    line-height:
        1.1;
}

.am-single-event-content__body ul,
.am-single-event-content__body ol {
    margin:
        0
        0
        30px;

    padding-left:
        25px;
}

.am-single-event-content__body li {
    margin-bottom:
        10px;

    color:
        var(--am-event-text);

    font-size:
        16px;

    line-height:
        1.75;
}

.am-single-event-content__body blockquote {
    margin:
        55px
        0;

    padding:
        35px
        0
        35px
        30px;

    border-left:
        2px solid
        var(--am-event-primary);

    color:
        var(--am-event-dark);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        31px;

    line-height:
        1.3;
}

.am-single-event-content__body img {
    max-width: 100%;
    height: auto;
}


/* =====================================================
   FINAL CTA
===================================================== */

.am-single-event-cta {
    position: relative;

    overflow: hidden;

    padding:
        115px
        0;

    background:
        var(--am-event-dark);

    color:
        #FFFFFF;
}

.am-single-event-cta::before {
    content: "";

    position: absolute;

    top: -330px;
    right: -260px;

    width: 690px;
    height: 690px;

    border:
        1px solid
        rgba(143,175,169,.14);

    border-radius:
        50%;

    box-shadow:
        0 0 0 95px
        rgba(143,175,169,.025);
}

.am-single-event-cta__grid {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    gap:
        clamp(50px,8vw,130px);

    align-items:
        center;
}

.am-single-event-cta__label {
    display: block;

    margin-bottom:
        20px;

    color:
        #8FAFA9;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        .20em;

    text-transform:
        uppercase;
}

.am-single-event-cta__title {
    width:
        min(100%,850px);

    margin: 0;

    color:
        #F7F6F3;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(48px,5.3vw,74px);

    font-weight:
        400;

    line-height:
        1;

    letter-spacing:
        -.045em;
}

.am-single-event-cta__title em {
    color:
        #8FAFA9;

    font-weight:
        400;

    font-style:
        italic;
}

.am-single-event-cta__button {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap: 14px;

    min-height:
        58px;

    padding:
        18px
        30px;

    border:
        1px solid
        rgba(143,175,169,.55);

    border-radius:
        999px;

    color:
        #FFFFFF;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        .16em;

    text-decoration:
        none;

    text-transform:
        uppercase;

    white-space:
        nowrap;

    transition:
        color .3s ease,
        background-color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.am-single-event-cta__button svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        1.6;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


/* =====================================================
   HOVER
===================================================== */

@media(hover:hover) {

    .am-single-event__back:hover
    span:first-child {
        transform:
            translateX(-4px);
    }

    .am-single-event-info__button:hover {
        background:
            var(--am-event-primary-dark);

        transform:
            translateY(-2px);
    }

    .am-single-event-cta__button:hover {
        border-color:
            #D8ECE8;

        background:
            #D8ECE8;

        color:
            var(--am-event-dark);

        transform:
            translateY(-2px);
    }
}


/* =====================================================
   <= 1180
===================================================== */

@media(max-width:1180px) {

    .am-single-event__inner {
        padding:
            0 48px;
    }

    .am-single-event-hero__grid {
        gap:
            65px;
    }
}


/* =====================================================
   TABLET
===================================================== */

@media(max-width:1024px) {

    .am-single-event-hero {
        padding:
            95px
            0
            70px;
    }

    .am-single-event__back {
        margin-bottom:
            50px;
    }

    .am-single-event-hero__grid {
        grid-template-columns:
            1fr;

        gap:
            50px;
    }

    .am-single-event-info {
        width:
            min(100%,600px);
    }

    .am-single-event-cover {
        margin-top:
            65px;

        aspect-ratio:
            16 / 9;
    }

    .am-single-event-body {
        padding:
            95px
            0
            115px;
    }

    .am-single-event-body__grid {
        grid-template-columns:
            145px
            minmax(0,1fr);

        gap:
            50px;
    }

    .am-single-event-cta__grid {
        grid-template-columns:
            1fr;

        gap:
            40px;
    }

    .am-single-event-cta__button {
        justify-self:
            start;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:767px) {

    .am-single-event__inner {
        padding:
            0 20px;
    }

    .am-single-event-hero {
        padding:
            70px
            0
            55px;
    }

    .am-single-event-hero::before {
        right:
            -390px;

        width:
            600px;

        height:
            600px;
    }

    .am-single-event__back {
        margin-bottom:
            37px;
    }

    .am-single-event__labels {
        margin-bottom:
            22px;
    }

    .am-single-event__label {
        min-height:
            30px;

        padding:
            7px
            11px;

        font-size:
            8px;
    }

    .am-single-event__title {
        font-size:
            clamp(48px,13vw,64px);

        line-height:
            .97;
    }

    .am-single-event__date-lead {
        margin-top:
            28px;

        font-size:
            9px;

        letter-spacing:
            .15em;
    }

    .am-single-event__date-lead::before {
        width:
            28px;
    }

    .am-single-event-info {
        padding:
            25px
            21px;
    }

    .am-single-event-info__row {
        grid-template-columns:
            88px
            minmax(0,1fr);

        gap:
            12px;
    }

    .am-single-event-cover {
        margin-top:
            48px;

        aspect-ratio:
            4 / 3;
    }

    .am-single-event-body {
        padding:
            72px
            0
            90px;
    }

    .am-single-event-body__grid {
        display:
            block;
    }

    .am-single-event-body__side {
        position:
            static;

        margin-bottom:
            46px;

        padding-bottom:
            25px;

        border-bottom:
            1px solid
            var(--am-event-line);
    }

    .am-single-event-content__heading {
        margin-bottom:
            32px;

        font-size:
            42px;
    }

    .am-single-event-content__body p {
        font-size:
            16px;

        line-height:
            1.82;
    }

    .am-single-event-content__body > p:first-child {
        font-size:
            25px;

        line-height:
            1.5;
    }

    .am-single-event-content__body h2 {
        margin-top:
            58px;

        font-size:
            38px;
    }

    .am-single-event-content__body h3 {
        font-size:
            29px;
    }

    .am-single-event-content__body blockquote {
        margin:
            45px
            0;

        padding:
            29px
            0
            29px
            21px;

        font-size:
            28px;
    }

    .am-single-event-cta {
        padding:
            85px
            0;
    }

    .am-single-event-cta__title {
        font-size:
            43px;
    }

    .am-single-event-cta__button {
        width:
            100%;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media(max-width:390px) {

    .am-single-event__inner {
        padding:
            0 17px;
    }

    .am-single-event__title {
        font-size:
            45px;
    }

    .am-single-event-info__row {
        grid-template-columns:
            80px
            minmax(0,1fr);
    }

    .am-single-event-content__heading {
        font-size:
            39px;
    }

    .am-single-event-cta__title {
        font-size:
            40px;
    }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media(prefers-reduced-motion:reduce) {

    .am-single-event *,
    .am-single-event *::before,
    .am-single-event *::after {
        animation:
            none !important;

        transition:
            none !important;
    }
}


:is(.am-single-event-info__button, .am-single-event-cta__button):focus-visible { outline:3px solid currentColor; outline-offset:3px; }
@media (pointer:coarse) {
  :is(.am-single-event-info__button, .am-single-event-cta__button) { min-width:44px; min-height:44px; }
}
