/* Reset geral do layout */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    --bg: #000000;
    --text: #ffffff;
    --text-rgb: 255, 255, 255;
    --text-soft: rgba(255, 255, 255, 0.75);
    --inverse-text: #000000;
    --alternate-bg: rgba(0, 0, 0, 0.4);
    --surface: rgba(255, 255, 255, 0.08);
    --surface-border: rgba(255, 255, 255, 0.12);
    --fundo-datas: rgba(0, 0, 0, 0.25);
    --header-bg: rgba(0, 0, 0, 0.72);
    --highlight: #ce0075;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 280;
    /* ExtraBold */
    padding-top: 84px;


}

body.light-theme {
    --bg: #ffffff;
    --text: #111111;
    --text-rgb: 17, 17, 17;
    --text-soft: rgba(17, 17, 17, 0.75);
    --alternate-bg: rgba(0, 0, 0, 0.4);
    --fundo-datas: rgba(0, 0, 0, 0.25);

    --inverse-text: #ffffff;
    --surface: rgba(0, 0, 0, 0.05);
    --surface-border: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.94);
    --highlight: #ce0075;
}



/* ------------- Conteúdo central da página ------------ */
.container {
    max-width: 1320px;
    width: calc(100% - 2 * clamp(22px, 3.6vw, 50px));
    margin: 0 auto;
    box-sizing: border-box;
}

.index-page .container {
    max-width: none;
    width: 100%;
    margin: 0;
}

.index-page .books .container,
.books-page .books .container {
    max-width: none;
    width: 100%;
    margin: 0;
}

.home-page .books .container {
    width: 100%;
    max-width: none;
}

.home-page .books h2 {
    margin-top: 140px;
    margin-left: 50px;
}

.home-page .books p {
    margin-left: 50px;
}


main .books h2,
main .container > h2 {
    font-size: 78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 120px;
    margin-bottom: 16px;
    line-height: 1rem;
}




/* ------------------- L A N D I N G  --------------- */
.landing {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    margin-bottom: 100px;

}

.landing-placeholder {
    justify-self: end;
    width: min(34vw, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28), transparent 38%),
        radial-gradient(circle at 50% 50%, rgba(206, 0, 117, 0.22), rgba(206, 0, 117, 0.08) 55%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body.light-theme .landing-placeholder {
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.65), transparent 38%),
        radial-gradient(circle at 50% 50%, rgba(206, 0, 117, 0.18), rgba(206, 0, 117, 0.08) 55%, rgba(0, 0, 0, 0.04) 100%);
    border-color: rgba(0, 0, 0, 0.12);
}


/* ----------- ANITA home page -----------*/
.landing-copy h1 {
    font-size: clamp(3.2rem, 8vw, 7rem);
    font-weight: 450;
    line-height: 1;
    margin-bottom: 20px;
    margin-left: 150px;
    text-transform: capitalize;

}

.landing-copy p {
    max-width: 450px;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 500;
    margin-left: 150px;
    color: var(--text);
}

.home-editorial-section .books-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0 10px;
}

.home-editorial-section .columns-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-editorial-section .columns-toggle__square {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.9;
}

.home-editorial-section .columns-toggle:hover,
.home-editorial-section .columns-toggle:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
}

body.light-theme .home-editorial-section .columns-toggle:hover,
body.light-theme .home-editorial-section .columns-toggle:focus-visible {
    background: rgba(0, 0, 0, 0.08);
}

.home-editorial-section .books-grid {
    --home-columns: 2;
    --home-card-scale: 1;
    display: grid;
    grid-template-columns: repeat(var(--home-columns), minmax(0, 1fr));
    gap: 0;
}

.home-editorial-section .book-card {
    height: calc(100vh * var(--home-card-scale));
}

@media (max-width: 1023px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }

    .landing-placeholder {
        justify-self: start;
        width: min(72vw, 340px);
    }

    .home-editorial-section .books-toolbar {
        justify-content: flex-start;
    }

    .home-editorial-section .columns-toggle {
        padding: 10px 14px;
        font-size: 0.78rem;
    }

    .home-editorial-section .books-grid {
        grid-template-columns: 1fr;
    }

    .home-editorial-section .book-card {
        height: 90vh;
    }
}










/* ---  D A T A S   D O S   L I V R O S  --- */
.book-meta {
    position: absolute;
    left: 18px;
    top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;

    background: transparent;
    color: var(--alternate-bg);
    font-size: 0.9rem;
    font-weight: 550;

    padding: 6px 8px;
    border-radius: 6px;
    letter-spacing: 0.0rem;
    z-index: 3;
}

.book-meta + .book-meta {
    left: auto;
    right: 18px;
    justify-content: flex-end;
}

.book-meta .book-date,
.book-meta .book-author {
    display: block;
    line-height: 1.2;
}

.book-author {
    position: static;
    right: auto;
    top: auto;
    margin-left: auto;
    text-align: right;


}

.grouped-books .year-section {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 10px;
}

/* --- S E P A R A D O R E S  --- D A T A S   D O S   L I  V R O S --- */

.grouped-books .year-label {
    font-weight: 700;
    font-size: 1.4rem;
    position: absolute;
    color: var(--text);

    margin-top: 2vh;
    left: 2vw;
    margin-bottom: 4vh;
}

.grouped-books .year-line {
    flex: 1 1 auto;
    height: 2px;
    background: var(--surface-border);
    border: 0;

    margin-top: 2vh;
    margin-bottom: 4vh;
    margin-left: 5vw;
}





.contact-form-wrapper {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 24px;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    background: var(--surface);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form__field {
    display: grid;
    gap: 8px;
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-soft);
}

.contact-form button {
    justify-self: start;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: var(--text);
    color: var(--inverse-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-1px);
}





/*-------------- M O B I L E  ----------------------------------------------------------------------------------*/
@media (max-width: 1023px) {

    /* ------------------- L A N D I N G  --------------- */
    .landing {
        height: 100vh;
        width: 100vw;
    }

    .landing-grid {
        grid-template-columns: 1fr;
        width: 100vw;

    }

    /* ----------- ANITA home page -----------*/
    .landing-copy h1,
    .landing-copy p {
        margin-left: 5vw;
        max-width: 80vw;
    }



    /* ------------- Conteúdo central da página ------------ */


    .grouped-books .year-label {
        left: 5vw;
        margin-bottom: 2vh;
        background: transparent;
    }

    .grouped-books .year-line {
        margin-bottom: 2vh;
        margin-left: 18vw;
    }

    .book-meta {
        left: 6vw;
        top: 8vw;
        font-weight: 300;
    }

    .book-meta + .book-meta {
        right: 6vw;
    }

    .store-callout__content {
        margin-left: 5vw;
        margin-right: 5vw;
        padding: 24px;
    }

}