/*
Theme Name: roseis
Author: ouatitp.xyz
Version: 0.1.0
Text Domain: roseis
*/

/* --------------------------------
   Base
-------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f5f5;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
}

button,
a {
    color: inherit;
}

button {
    font: inherit;
}

html,
body {
    overflow-x: clip;
}

/* --------------------------------
   Fixed interface
-------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 100;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;

    width: 100%;
    padding: 24px 32px;

    color: #fff;
    mix-blend-mode: difference;

    pointer-events: none;
}

.site-header__menu,
.site-header__contact,
.site-header__logo {
    pointer-events: auto;
}

.site-header__menu,
.site-header__contact {
    padding: 0;

    border: 0;
    background: transparent;

    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    cursor: pointer;
}

.site-header__menu {
    justify-self: start;
}

.site-header__logo {
    justify-self: center;

    display: block;
    width: 111px;

    line-height: 0;
    text-decoration: none;

}

.site-header__logo svg {
    display: block;

    width: 100%;
    height: auto;
}

.site-header__contact {
    justify-self: end;
}


/* --------------------------------
   Collection
-------------------------------- */

.collection {
    width: 100%;
}

.look {
    position: relative;

    padding-top: 0;
}

.look__media {
    display: flex;
    justify-content: center;

    margin: 0;

    transform: translateX(var(--look-offset-x));
}

.look__image {
    display: block;

    width: auto;
    height: var(--look-height);
}

.look__trigger {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 1px;
    height: 1px;
}


/* --------------------------------
   Collection UI
-------------------------------- */

.collection-ui {
    position: fixed;
    top: 50%;
    left: 0;

    z-index: 50;

    display: grid;
    grid-template-columns: 1fr 1fr;

    width: 100%;
    padding: 0 32px;

    transform: translateY(-50%);

    pointer-events: none;
}

.collection-ui__left {
    justify-self: start;
}

.collection-ui__right {
    justify-self: end;

    width: 180px;
}

.collection-ui__number {
    display: block;

    margin-bottom: 12px;

    font-size: 10px;
    text-transform: uppercase;
}

.collection-ui__name {
    margin: 0;

    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
}

.collection-ui__description {
    margin: 0;

    font-size: 12px;
}

.collection-ui__left,
.collection-ui__right {
    opacity: 1;

    transform: translateY(0);

    transition:
        opacity 220ms ease,
        transform 320ms ease;

    will-change: opacity, transform;
}

.collection-ui__right {
    transition-delay: 40ms;
}

.collection-ui.is-changing .collection-ui__left,
.collection-ui.is-changing .collection-ui__right {
    opacity: 0;

    transform: translateY(6px);
}

/* --------------------------------
   Future scroll trigger
-------------------------------- */

.look__trigger {
    height: 1px;
    margin-top: 20svh;
}