@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
    --bg:      #FCF8FB;
    --pink:    #F0D4E2;
    --lilac:   #E6E4F6;
    --peri:    #BABAF0;
    --sand:    #E8D9CC;
    --rose:    #8F474E;
    --rose-dark: #73383E;
    --text:    #584340;

    --gap:     4rem;

    --shadow:  3px 5px 6px rgb(88 67 64 / 45%);

    --overlay: rgb(186 186 240 / 45%);
    --font:    'Alegreya', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--overlay), var(--overlay)),
        url('assetsTBN/baggrund-mosaik.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.3;
}

p {
    max-width: 65ch;
}

img {
    max-width: 100%;
    display: block;
}

/* hidden must beat any display rule we write */
[hidden] {
    display: none !important;
}

section {
    padding: 0 1.5rem;
    margin-bottom: var(--gap);
}


/* ==========================================================
   PHONE
   ========================================================== */


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

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding-top: 3rem;
}

.hero-title img {
    width: 100%;
    max-width: 320px;
}

.hero-bag {
    width: 70%;
    max-width: 240px;
}

.hero-tagline {
    font-size: 1.5rem;
}


/* ==========================================================
   VALUES
   ========================================================== */

.values {
    display: flex;
    gap: 0.75rem;
}

.value {
    flex: 1;
    background-color: var(--bg);
    color: var(--rose);
    border-radius: 1rem;
    padding: 1.25rem 0.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
}


/* ==========================================================
   LOOKBOOK
   ========================================================== */

.lookbook {
    padding-left: 0;
    padding-right: 0;
}

.lookbook img {
    width: 100%;
}


/* ==========================================================
   PACKAGE
   ========================================================== */

.package-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.package-card img {
    width: 100%;
}

.package-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: var(--pink);
    padding: 1.5rem;
}

.label {
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1rem;
    font-weight: 700;
}

.package-price {
    font-size: 1.75rem;
    font-weight: 700;
}

.btn {
    display: block;
    background-color: var(--rose);
    color: var(--bg);
    padding: 0.85rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn:hover {
    background-color: var(--rose-dark);
}

.btn:active {
    background-color: var(--rose-dark);
    transform: translateY(2px);
    box-shadow: 1px 2px 4px rgb(88 67 64 / 45%);
}


/* ==========================================================
   CLUB
   ========================================================== */

.club {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--lilac);
    padding: 2.5rem 1.5rem;
}

.club-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.club .btn {
    align-self: center;
}

.btn-light {
    background-color: var(--bg);
    color: var(--rose);
    border: 2px solid var(--rose);
}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {
    padding: 2rem 1.5rem 2.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo {
    width: 56px;
}

.footer-wordmark {
    width: 170px;
}

.footer-cols {
    display: flex;
    gap: 1.5rem;
}

.footer-cols > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.artist {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.artist img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.artist span {
    white-space: nowrap;
    font-size: 0.85rem;
}

.footer-icons {
    display: flex;
    gap: 1rem;
}

.footer-icons a {
    display: block;
    color: var(--text);
}

.footer-icons svg {
    width: 28px;
    height: 28px;
}


/* ==========================================================
   DESIGNER
   ========================================================== */

.designer {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border: none;
    padding: 1.5rem;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
}

.designer::backdrop {
    background-color: rgb(88 67 64 / 60%);
}

.designer-close {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
}

.designer-step {
    text-align: center;
}

.designer-bar {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.designer-bar span {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background-color: var(--pink);
}

.designer-bar span.active {
    background-color: var(--rose);
}

.designer-title,
.designer-sub {
    text-align: center;
    max-width: none;
}

.designer-sub {
    margin-bottom: 1rem;
}

.designer-photo {
    max-height: 30vh;
    margin: 0 auto 1rem;
}

.designer-question {
    margin-bottom: 0.5rem;
}

.designer-choice {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.swatch {
    width: 64px;
    height: 64px;
    padding: 0.25rem;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    background-color: var(--bg);
    cursor: pointer;
}

.swatch.selected {
    border-color: var(--rose);
}

.swatch img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.designer-next {
    width: 100%;
}


/* ==========================================================
   DESIGNER / FINAL STEP
   ========================================================== */

.designer-final {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.final-title {
    color: var(--rose);
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-form .btn {
    align-self: center;
}

.email-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--rose);
    border-radius: 0.75rem;
    background-color: var(--bg);
}

.email-field svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--rose);
}

.email-field input {
    width: 100%;
    border: none;
    background: none;
    font: inherit;
    color: var(--text);
}

.email-field:focus-within {
    border-color: var(--text);
}

.email-field input:focus {
    outline: none;
}

.email-thanks {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--pink);
}

.email-thanks svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--rose);
}

.final-note {
    font-size: 0.85rem;
}


/* ==========================================================
   BOOK CLUB
   ========================================================== */

.bookclub {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border: none;
    padding: 1.5rem;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow-y: auto;
}

.bookclub::backdrop {
    background-color: rgb(88 67 64 / 60%);
}

.bookclub-close {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
}

.bookclub > .label {
    text-align: center;
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.book {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0;
    text-align: left;
    border: 1px solid var(--rose);
    border-radius: 0.75rem;
    background-color: var(--bg);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    font: inherit;
    color: var(--text);
}

.book img {
    width: 72px;
    flex-shrink: 0;
}

.book-info {
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
}

.book-title {
    font-weight: 700;
}

.book-author,
.book-note {
    font-size: 0.85rem;
}

.which-book {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    background-color: var(--pink);
}

.which-book img {
    width: 40px;
    flex-shrink: 0;
    border-radius: 0.25rem;
}

.which-book span {
    font-weight: 700;
}

.bookclub-review h2 {
    text-align: center;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.star {
    border: none;
    background: none;
    padding: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--rose);
    cursor: pointer;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-text {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--rose);
    border-radius: 0.75rem;
    background-color: var(--bg);
    font: inherit;
    color: var(--text);
    resize: vertical;
}

.review-text:focus {
    outline: none;
    border-color: var(--text);
}

.bookclub-reward {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reward-confetti {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.reward-image {
    width: 82%;
    align-self: center;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

.bookclub-reward .btn {
    margin-top: 0.75rem;
}


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

@media (min-width: 900px) {

    /* ------------------------- base ------------------------- */

    :root {
        --gap: 6rem;
    }

    section,
    footer {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }

    /* these two keep their colour edge to edge */
    .club,
    .lookbook {
        max-width: none;
    }


    /* ------------------------- hero ------------------------- */

    .hero-title img {
        max-width: 520px;
    }

    .hero-bag {
        max-width: 320px;
    }

    .hero-tagline {
        font-size: 1.75rem;
    }


    /* ------------------------ values ------------------------ */

    .value {
        font-size: 1rem;
    }


    /* ----------------------- lookbook ----------------------- */

    .lookbook img {
        display: none;
    }

    .lookbook {
        background-image: url('assetsTBN/foto-lookbook.webp');
        background-repeat: repeat-x;
        background-size: 33.3333% 100%;
        aspect-ratio: 3300 / 821;
    }


    /* ----------------------- package ------------------------ */

    .package-card {
        display: flex;
    }

    .package-card img {
        width: 50%;
        object-fit: cover;
    }

    .package-info {
        width: 50%;
        justify-content: center;
    }


    /* ------------------------- club ------------------------- */

    .club {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
        padding-left: max(1.5rem, (100% - 1100px) / 2 + 1.5rem);
        padding-right: max(1.5rem, (100% - 1100px) / 2 + 1.5rem);
    }

    .club-text {
        flex: 1;
    }


    /* ------------------------ footer ------------------------ */

    footer {
        display: flex;
        align-items: flex-start;
        gap: 4rem;
    }

    .footer-brand {
        margin-bottom: 0;
    }

    .footer-cols {
        flex: 1;
        gap: 4rem;
    }


    /* ----------------------- designer ----------------------- */

    /* a centred box instead of a full screen */
    .designer {
        width: min(760px, 90vw);
        height: auto;
        max-height: 85vh;
        margin: auto;
        padding: 2rem;
        border-radius: 1rem;
        box-shadow: var(--shadow);
        overflow-y: auto;
    }

    /* photo left, choices right, so it fits without scrolling */
    .designer-main {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .designer-photo {
        flex: 1;
        max-height: 320px;
        margin: 0;
    }

    .designer-choices {
        flex: 1;
    }

    .designer-choice {
        margin-bottom: 1.5rem;
    }


    /* ----------------------- book club ---------------------- */

    /* a centred box instead of a full screen */
    .reward-image {
        max-height: 42vh;
        width: auto;
        align-self: center;
    }

    .bookclub {
        width: min(560px, 90vw);
        height: auto;
        max-height: 85vh;
        margin: auto;
        padding: 2rem;
        border-radius: 1rem;
        box-shadow: var(--shadow);
    }
}
