/* =================================================
   AIVELLE EDITORIAL — SHARED STYLES
================================================= */

:root {
    --black: #050505;
    --black-soft: #0d0d0d;
    --graphite: #171717;
    --line: #2b2b2b;
    --white: #ffffff;
    --paper: #e8e6e1;
    --mist: #aaa9a4;
    --muted: #7d7d79;
    --accent: #c8a25a;

    --page-gutter: clamp(20px, 4.8vw, 82px);
    --section-space: clamp(96px, 12vw, 190px);
    --grid-gap: clamp(16px, 2vw, 32px);
    --content-max: 1600px;
    --header-height: 88px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* -------------------------------------------------
   Reset and base
-------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    background: var(--black);
}

body {
    margin: 0;

    overflow-x: hidden;

    background: var(--black);
    color: var(--white);

    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.55;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

img {
    display: block;

    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

::selection {
    color: var(--black);
    background: var(--accent);
}

/* -------------------------------------------------
   Accessibility
-------------------------------------------------- */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;

    padding: 12px 16px;

    color: var(--black);
    background: var(--white);

    transform: translateY(-180%);

    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* -------------------------------------------------
   Shared layout
-------------------------------------------------- */

.site-shell {
    width: min(100%, var(--content-max));
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}

.aivelle-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));

    gap: var(--grid-gap);
}

.span-12 {
    grid-column: span 12;
}

.span-10 {
    grid-column: span 10;
}

.span-9 {
    grid-column: span 9;
}

.span-8 {
    grid-column: span 8;
}

.span-7 {
    grid-column: span 7;
}

.span-6 {
    grid-column: span 6;
}

.span-5 {
    grid-column: span 5;
}

.span-4 {
    grid-column: span 4;
}

.span-3 {
    grid-column: span 3;
}

.span-2 {
    grid-column: span 2;
}

.section {
    position: relative;

    padding-block: var(--section-space);

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

/* -------------------------------------------------
   Typography
-------------------------------------------------- */

.eyebrow,
.meta,
.nav-link,
.chapter-number,
.look-number {
    text-transform: uppercase;
    letter-spacing: .18em;

    font-size: 11px;
    line-height: 1.4;
}

.eyebrow {
    margin: 0 0 22px;

    color: var(--accent);
}

.meta {
    color: var(--muted);
}

.section-heading {
    max-width: 900px;
    margin: 0;

    font-size: clamp(42px, 6.2vw, 98px);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: .95;
}

.editorial-title {
    margin: 0;

    font-size: clamp(34px, 4.5vw, 72px);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1;
}

.display-quote {
    margin: 0;

    font-size: clamp(42px, 7vw, 112px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .95;

    text-wrap: balance;
}

.body-copy {
    color: var(--mist);

    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.72;
}

.small-copy {
    color: var(--mist);

    font-size: 14px;
    line-height: 1.75;
}

.accent-line {
    width: 38px;
    height: 1px;
    margin-block: 22px;

    background: var(--accent);
}

.text-link {
    display: inline-flex;
    align-items: center;

    gap: 18px;

    text-transform: uppercase;
    letter-spacing: .18em;

    font-size: 11px;
}

.text-link::after {
    content: "→";

    color: var(--accent);

    font-size: 18px;

    transition: transform .3s var(--ease);
}

.text-link:hover::after,
.text-link:focus-visible::after {
    transform: translateX(6px);
}

/* -------------------------------------------------
   Header
-------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;

    height: var(--header-height);

    border-bottom: 1px solid transparent;

    transition:
        background-color .45s var(--ease),
        border-color .45s var(--ease),
        transform .45s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(5, 5, 5, .91);
    border-bottom-color: var(--line);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 100%;
}

.masthead {
    display: inline-block;

    color: var(--white);

    font-size: 26px;
    font-weight: 400;
    letter-spacing: .40em;
    line-height: 1;

    white-space: nowrap;

    transform: scaleY(.75);
    transform-origin: left center;
}

.desktop-nav {
    display: flex;
    align-items: center;

    gap: clamp(22px, 2.2vw, 42px);
}

.nav-link {
    position: relative;

    color: var(--paper);

    transition: color .55s ease;
}

.nav-link::after {
    content: "";

    position: absolute;
    left: 0;
    right: 100%;
    bottom: -9px;

    height: 1px;

    background: var(--accent);

    transition: right .85s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    right: 0;
}

/* -------------------------------------------------
   Mobile menu
-------------------------------------------------- */

.menu-button {
    display: none;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 24px;
    height: 1px;
    margin: 6px auto;

    background: var(--white);

    transition:
        transform .3s var(--ease),
        opacity .3s ease;
}

.menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 999;

    display: grid;
    place-items: center;

    visibility: hidden;
    opacity: 0;

    background: rgba(5, 5, 5, .98);

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
}

.mobile-menu nav {
    display: grid;

    gap: 26px;

    text-align: center;
}

.mobile-menu .nav-link {
    font-size: 17px;
}

/* =================================================
       Members Area — Desktop navigation
    ================================================= */

    .members-link {

        position:
            relative;

        display:
            inline-flex;

        align-items:
            center;

        justify-content:
            center;

        width:
            34px;

        height:
            34px;

        margin-left:
            2px;

        color:
            var(--white);

        text-decoration:
            none;

        cursor:
            pointer;

        transition:
            color .55s ease;

    }


    .members-link i {

        font-size:
            14px;

        line-height:
            1;

    }


    /*
     * The icon changes to the Aivelle accent colour,
     * but it does not receive the navigation underline.
     */

    .members-link:hover,
    .members-link:focus-visible {

        color:
            var(--accent);

        outline:
            none;

    }


    /* -------------------------------------------------
       Members Area hover popup
    -------------------------------------------------- */

    .members-popup {

        position:
            absolute;

        top:
            calc(100% + 14px);

        left:
            50%;

        z-index:
            30;

        padding:
            11px 16px;

        border:
            1px solid var(--accent);

        border-radius:
            10px;

        background:
            #0b0b0b;

        color:
            var(--accent);

        box-shadow:
            0 12px 30px
            rgba(
                0,
                0,
                0,
                .48
            );

        opacity:
            0;

        visibility:
            hidden;

        pointer-events:
            none;

        white-space:
            nowrap;

        transform:
            translateX(-50%)
            translateY(-7px);

        transition:
            opacity .4s ease,
            visibility .4s ease,
            transform .45s var(--ease);

        text-transform:
            uppercase;

        letter-spacing:
            .16em;

        font-size:
            9px;

        line-height:
            1.2;

    }


    .members-link:hover .members-popup,
    .members-link:focus-visible .members-popup {

        opacity:
            1;

        visibility:
            visible;

        transform:
            translateX(-50%)
            translateY(0);

    }


    /*
     * Small connecting point between the icon
     * and the popup box.
     */

    .members-popup::before {

        content:
            "";

        position:
            absolute;

        top:
            -5px;

        left:
            50%;

        width:
            8px;

        height:
            8px;

        border-top:
            1px solid var(--accent);

        border-left:
            1px solid var(--accent);

        background:
            #0b0b0b;

        transform:
            translateX(-50%)
            rotate(45deg);

    }


    /* =================================================
       Members Area — Mobile navigation
    ================================================= */

    .mobile-members-link {

        display:
            inline-flex;

        align-items:
            center;

        justify-content:
            center;

        gap:
            12px;

        color:
            var(--paper);

        text-decoration:
            none;

        text-transform:
            uppercase;

        letter-spacing:
            .18em;

        font-size:
            17px;

        transition:
            color .45s ease;

    }


    .mobile-members-link i {

        color:
            var(--accent);

        font-size:
            15px;

    }


    .mobile-members-link:hover,
    .mobile-members-link:focus-visible {

        color:
            var(--accent);

        outline:
            none;

    }

/* -------------------------------------------------
   Shared editorial media
-------------------------------------------------- */

.editorial-media {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(200, 162, 90, .12),
            transparent 20%
        ),
        linear-gradient(
            135deg,
            #323232,
            #111111 58%,
            #080808
        );
}

.editorial-media::after {
    content: "";

    position: absolute;
    inset: 0;

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

    pointer-events: none;
}

.editorial-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    /*filter: grayscale(100%);*/

    transition:
        transform 1.2s var(--ease),
        filter .9s ease;
}

.editorial-media:hover img {
    filter: grayscale(100%) contrast(1.07);

    transform: scale(1.025);
}

.ratio-portrait {
    aspect-ratio: 3 / 4;
}

.ratio-tall {
    aspect-ratio: 2 / 3;
}

.ratio-square {
    aspect-ratio: 1;
}

.ratio-landscape {
    aspect-ratio: 4 / 3;
}

.ratio-wide {
    aspect-ratio: 16 / 9;
}

.image-caption {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    margin-top: 12px;

    color: var(--muted);

    text-transform: uppercase;
    letter-spacing: .14em;

    font-size: 9px;
}

/* -------------------------------------------------
   Shared chapter styles
-------------------------------------------------- */

.chapter-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: clamp(48px, 7vw, 104px);
}

.chapter-number {
    color: var(--accent);
}

.chapter-rule {
    flex: 1;

    height: 1px;
    margin-bottom: 7px;

    background: var(--line);
}

/* -------------------------------------------------
   Shared look styles
-------------------------------------------------- */

.look-section {
    padding-block: clamp(100px, 13vw, 200px);

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

.look-header {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: start;

    gap: 30px;

    margin-bottom: clamp(48px, 7vw, 100px);
}

.look-number {
    color: var(--accent);
}

.look-title {
    margin: 0;

    font-size: clamp(44px, 6vw, 90px);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: .94;
}

.wardrobe-list {
    display: grid;

    gap: 13px;

    max-width: 430px;
    margin-top: 34px;
    padding-top: 24px;

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

.wardrobe-item {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    color: var(--mist);

    font-size: 13px;
}

.wardrobe-item span:last-child {
    color: var(--muted);
}

/* -------------------------------------------------
   Shared copy layouts
-------------------------------------------------- */

.split-copy {
    align-items: center;
}

.copy-panel {
    padding: clamp(20px, 5vw, 90px);
}

.copy-panel p {
    max-width: 540px;
}

.asymmetry {
    align-items: start;
}

.asymmetry-offset {
    margin-top: 18%;
}

/* -------------------------------------------------
   Full-bleed moments
-------------------------------------------------- */

.full-bleed {
    position: relative;

    min-height: 80svh;

    overflow: hidden;

    background: #111111;
}

.full-bleed > img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*filter: grayscale(100%);*/
}

.full-bleed-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .82),
            transparent 54%
        );
}

.full-bleed-caption {
    position: absolute;
    left: var(--page-gutter);
    bottom: clamp(34px, 6vw, 88px);
    z-index: 2;

    max-width: 780px;
}

/* -------------------------------------------------
   Newsletter
-------------------------------------------------- */

.newsletter {
    padding-block: clamp(76px, 9vw, 128px);

    background: var(--black-soft);
    border-top: 1px solid var(--line);
}

.newsletter-form {
    display: flex;
    align-items: stretch;

    max-width: 620px;
    margin-top: 38px;

    border-bottom: 1px solid #555555;
}

.newsletter-form input {
    flex: 1;

    min-width: 0;
    padding: 18px 0;

    border: 0;
    outline: 0;

    color: var(--white);
    background: transparent;
}

.newsletter-form input::placeholder {
    color: var(--muted);
}

.newsletter-form button {
    padding: 0 4px 0 20px;

    border: 0;

    color: var(--accent);
    background: transparent;

    text-transform: uppercase;
    letter-spacing: .16em;

    font-size: 10px;

    cursor: pointer;
}

.form-message {
    min-height: 22px;
    margin-top: 12px;

    color: var(--mist);

    font-size: 12px;
}

/* -------------------------------------------------
   Footer
-------------------------------------------------- */

.site-footer {
    padding-block: 68px 34px;

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

.footer-brand {
    margin-bottom: 50px;
}

.footer-nav {
    display: grid;

    gap: 12px;
}

.footer-social {
    display: grid;

    gap: 12px;
}

.footer-small {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    margin-top: 70px;
    padding-top: 25px;

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

    color: var(--muted);

    font-size: 11px;
}

.footer-small a {
    transition: color .35s ease;
}

.footer-small a:hover,
.footer-small a:focus-visible {
    color: var(--accent);
}

/* -------------------------------------------------
   Reveal animation
-------------------------------------------------- */

.reveal {
    opacity: 0;

    transform: translateY(42px);

    transition:
        opacity .9s var(--ease),
        transform .9s var(--ease);
}

.reveal[data-delay="1"] {
    transition-delay: .12s;
}

.reveal[data-delay="2"] {
    transition-delay: .24s;
}

.reveal[data-delay="3"] {
    transition-delay: .36s;
}

.reveal.is-visible {
    opacity: 1;

    transform: none;
}

/* -------------------------------------------------
   Tablet
-------------------------------------------------- */

@media (max-width: 992px) {

    :root {
        --header-height: 76px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .span-10,
    .span-9,
    .span-8,
    .span-7,
    .span-6,
    .span-5,
    .span-4,
    .span-3,
    .span-2 {
        grid-column: span 6;
    }

    .look-header {
        grid-template-columns: 90px 1fr;
    }

}

/* -------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 600px) {

    :root {
        --page-gutter: 20px;
        --grid-gap: 24px;
        --section-space: 82px;
    }

    .masthead {
        font-size: 23px;
        letter-spacing: .34em;
    }

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

    .span-12,
    .span-10,
    .span-9,
    .span-8,
    .span-7,
    .span-6,
    .span-5,
    .span-4,
    .span-3,
    .span-2 {
        grid-column: 1;
    }

    .look-header {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .copy-panel {
        padding: 38px 0 0;
    }

    .asymmetry-offset {
        margin-top: 0;
    }

    .newsletter-form {
        display: grid;
    }

    .newsletter-form button {
        padding: 16px 0;

        text-align: left;
    }

    .site-footer .aivelle-grid {
        justify-items: center;

        text-align: center;
    }

    .footer-nav,
    .footer-social {
        justify-items: center;
        text-align: center;
        gap: 10px;
        margin-bottom: 18px;
    }
    
    .footer-nav:last-child {
        display: flex;
        justify-content: center;
        gap: 22px;
        margin-top: 8px;
      }

    .footer-small {
        display: grid;
        justify-items: center;

        gap: 10px;

        margin-top: 50px;

        text-align: center;
    }
    
    .full-bleed img {

    object-position: right center;

}

}

/* -------------------------------------------------
   Reduced motion
-------------------------------------------------- */

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }

}

/* -------------------------------------------------
   Print
-------------------------------------------------- */

@media print {

    .site-header,
    .mobile-menu,
    .reading-progress,
    .scroll-cue {
        display: none !important;
    }

    body {
        color: #000000;
        background: #ffffff;
    }

}
