:root {
    --header-height: 9rem;
    --footer-height: 31.25rem;
    --margin-inline: 5rem;
    --border-radius: 3rem;

    --main-color: rgb(186, 85, 224);
    --color: rgb(255, 246, 235);
    --bg-color: rgb(31, 31, 30);
    --border-color: rgb(255, 246, 235);
    --hover-color: var(--main-color);

    --bg-gradient: radial-gradient(circle at -20% -30%, #BA55E0 0%, rgba(186, 85, 224, 0) 55%);

    --font-family: Arial, Helvetica, sans-serif;
    --font-size: 14px;
    --line-height: 1.5;
}

@font-face {
    font-family: "MonteCarlo";
    font-style: normal;
    font-weight: normal;
    font-display: auto;
    src: url("./fonts/MonteCarlo-Regular.ttf");
}

@font-face {
    font-family: "Libre Caslon";
    font-style: normal;
    font-weight: normal;
    font-display: auto;
    src: url("./fonts/LibreCaslonDisplay-Regular.ttf");
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

hr {
    margin: 0;
}

/* ------- GENERAL -------- */
.link {
    text-decoration: none;
    cursor: pointer;
    color: white;
    display: inline-block;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    padding: 1rem;
    text-align: center;
    width: 13rem;
}

.link:hover {
    background-color: white;
    color: black;
}

.link_short {
    width: 8rem;
}

.tablet {
    display: none;
}

.mobile {
    display: none;
}
.hidden {
    display: none !important;
}

/* ------- LAYOUT -------- */
.container {
    min-height: 100svh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-color);
    color: var(--color);
    font-family: var(--font-family), system-ui;
    font-size: var(--font-size);
    line-height: var(--line-height);
}

.header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    background-color: var(--bg-color);
}

.content {
    margin-inline: var(--margin-inline);
}

.footer {
    /*min-height: var(--footer-height);*/
    border-top: 1px solid var(--border-color);
}

/* ------- HEADER -------- */
.logo {
    width: 17rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    background-image: var(--bg-gradient);
}

.menu {
    margin-right: var(--margin-inline);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    border-left: 1px solid var(--border-color);
    letter-spacing: 1px;
}

.menu-item {
    width: 12.25rem;
    border-right: 1px solid var(--border-color);
}

.menu-item a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: var(--color);
    transition: color .4s ease 0s;
    text-decoration: none;
}

.menu-item:hover a {
    color: var(--hover-color);
}

/* ------- CONTENT: about -------- */
.hero {
    text-align: center;
    position: relative;
    margin-top: 2rem;
    /*outline: 1px solid green;*/
}

.hero .background {
    background-image: url('images/constellation-stars.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero .title {
    font-family: MonteCarlo, var(--font-family), system-ui;
    font-size: 3rem;
    margin-top: 0;
    padding-top: 3rem;
}

.subtitle {
    font-family: "Libre Caslon", serif;
    font-size: 3rem;
    font-weight: 100;
    text-align: center;
}

.hero .subtitle {
    position: absolute;
    width: 42rem;
    left: calc(50% - 21rem);
}

.hero .hero-author img {
    position: relative;
}

.text {
    border: 1px solid var(--border-color);
    border-bottom: none;
    margin-top: 2rem;
    padding-inline: 2rem;
    padding-bottom: 3rem;
    background-image: linear-gradient(180deg, #1F1F1E 0%, #67297E 100%);
}

.text-wrapper {
    max-width: 68rem;
    margin-inline: auto;
}

.text-item {
    margin-top: 2rem;
}

.text-title {
    font-family: "Libre Caslon", serif;
    font-size: 2rem;
    font-weight: 100;
}

.text-content {
    font-size: 1rem;
    font-weight: 100;
    letter-spacing: 1px;
}

/* ------- CONTENT: index -------- */
body.index .hero,
body.index .subhero {
    max-width: 90rem;
    margin-inline: auto;
    margin-top: 3rem;
}

body.index .hero .background {
    background-position: 80% 50%;
    z-index: 0;
}

.hero .section-title,
.subhero .section-title {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: stretch;
    position: relative;
    z-index: 1;
}

.hero .section-title_left,
.subhero .section-title_left {
    flex-grow: 1;
    margin: 4rem 0 0;
    text-align: left;
}

body.index .hero .title {
    font-size: 4rem;
}

body.index .subhero .subtitle,
body.index .hero .subtitle {
    position: initial;
    width: auto;
    font-size: 1.5rem;
    text-align: left;
}

body.index .subhero .subtitle {
    font-size: 2.5rem;
}

body.index .subhero .subtext,
body.index .hero .subtext {
    font-size: 1rem;
    font-family: serif;
    width: 22rem;
    margin-bottom: 2rem;
}

body.index .subhero .subtext {
    width: 40rem;
}

.subhero .section-title_right,
.hero .section-title_right {
    width: 40%;
    margin: 4rem 0 0;
}

.subhero .section-title_right {
    position: relative;
    padding-bottom: 3rem;
}

.subhero .section-title_left,
.subhero .section-title_right {
    margin-top: 0;
}

.subhero .section-title_right .constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('images/constellation.svg');
    background-repeat: no-repeat;
    background-size: 20rem;
    background-position: 100% 120%;
    opacity: 0.2;
    z-index: 0;
}

body.index .hero .hero-author,
body.index .subhero .hero-book {
    display: flex;
    justify-content: start;
    position: relative;
}

body.index .subhero .hero-book img {
    position: relative;
}

body.index .hero .arrow-down {
    position: relative;
}

body.index .hero .arrow-down img {
    background-color: var(--bg-color);
}

body.index .hero .arrow-down .constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('images/constellation.svg');
    background-repeat: no-repeat;
    background-size: 12rem;
    background-position: 0 50%;
    opacity: 0.3;
}

body.index .text-section {
    background-image: linear-gradient(180deg, #1F1F1E 0%, #67297E 100%);
}

body.index .text {
    background-image: unset;
    margin-inline: var(--margin-inline);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    padding-bottom: 0;
}

body.index .text-section-left {
    width: 50%;
    border-right: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    padding-block: 4rem;
}

body.index .text-section-right {
    width: 50%;
    padding-inline: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body.index .text-section-right .text-section_wrapper {
    width: 35rem;
    margin-inline: auto;
}

body.index .text-section-right .text-item:first-child {
    margin-top: 0;
}

body.index .text-section-right .text-content {
    font-family: serif;
}

/* ------- CONTENT: events -------- */
body.index.events .hero .subtitle {
    font-size: 3rem;
}

body.index.events .hero .subtext {
    width: 80%;
}

/* ------- CONTENT: contact -------- */
.contact .main {
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - 0.5rem);
}

.contact .content {
    height: 100%;
}

.contact .top {
    border-inline: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-inline: auto;
}

.contact .top .logo-main {
    text-align: center;
}

.contact .top .logo-main img {
    width: 13rem;
}

.contact .subtitle {
    font-size: 4rem;
}

.contact .bottom {
    border-inline: 1px solid var(--border-color);
    margin-inline: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    height: 100%;
    text-align: center;
}

.contact .bottom .left {
    position: relative;
    padding-top: 3rem;
    border-right: 1px solid var(--border-color);
    width: 50%;
}

.contact .bottom .left img {
    position: relative;
    z-index: 1;
}

.contact .bottom .left .sun-clouds {
    position: absolute;
    width: 100%;
    height: 500px;
    background-image: url('images/sun-clouds.webp');
    background-repeat: no-repeat;
    background-size: 27rem;
    background-position: 50% 2rem;
    opacity: 0.6;
}

.contact .bottom .left .sun-moon {
    position: relative;
    margin-top: 5rem;
}

.contact .bottom .left .sun-moon div {
    position: absolute;
    z-index: 0;
    top: -10rem;
    left: 20%;
    width: 100%;
    height: 100%;
    background-image: url('images/moon-stars.svg');
    background-repeat: no-repeat;
    background-size: 13rem;
    background-position: 0 0;
    opacity: 0.2;
}

.contact .bottom .left .sun-moon img {
    filter: invert(1);
}

.contact .bottom .right {
    width: 50%;
    padding-top: 4rem;
    padding-bottom: 3rem;
    padding-inline: 2rem;
}

.contact .bottom .right .right-wrapper {
    width: 27.25rem;
    margin-inline: auto;
}

.contact .bottom .right .contact-title-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-bottom: 4rem;
}

.contact .bottom .right .contact-title {
    font-family: "Libre Caslon", serif;
    font-size: 3.5rem;
    font-weight: 100;
    margin: 0 2rem 0 0;
}

.contact .bottom .right .contact-title-wrapper img {
    filter: invert(1);
}

.contact .bottom .right label {
    display: inline-block;
    text-align: left;
    width: 100%;
}

.contact .bottom .right .input {
    width: 100%;
    height: 2.5rem;
    background-color: #1F1F1E;
    border: 1px solid var(--border-color);
    margin-top: 0.25rem;
    margin-bottom: 2rem;
}

.contact .bottom .right .input.last {
    width: 24.125rem;
}

.contact .bottom .right button {
    display: inline-block;
    height: 2.5rem;
    width: 2.5rem;
    margin-top: 0.25rem;
    color: var(--color);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: bold;
    font-size: 1.125rem;
}

.contact .bottom .right button:hover {
    color: var(--bg-color);
    background-color: var(--color);
}

.contact .bottom .right .align-top {
    display: flex;
    justify-content: flex-start;
}

.contact .bottom .right .align-top .input {
    flex-grow: 1;
}

.contact .bottom .right iframe {
    margin-top: 5rem;
}

.contact .footer {
    border-top: none;
}

.contact .footer-top_sections {
    border-top: 1px solid var(--border-color);
}

.aux-section {
    position: relative;
    height: 40rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    background-image: linear-gradient(0deg, rgb(31, 31, 30) 0%, rgb(103, 41, 126) 100%)
}
.aux-section .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-image: url('images/james-lee.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    opacity: 0.2;
    z-index: 0;
}
.aux-section .aux-section-wrapper {
    position: relative;
    z-index: 1;
}
.aux-section .aux-section-wrapper {
    text-align: center;
}
.aux-section .aux-section-wrapper .subtext {
    max-width: 30rem;
    margin: auto;
    font-size: 1rem;
}
.aux-section .aux-section-wrapper .link {
    background-color: transparent;
    margin-top: 2rem;
}
.aux-section .aux-section-wrapper .link:hover {
    background-color: white;
}
.link-wide {
    width: auto;
}

/* ------- FOOTER -------- */
body.index .footer {
    border-top: none;
}
body.index .footer-left,
body.index .footer-right {
    border-top: 1px solid var(--border-color);
}
.footer-top {
    position: relative;
}

.footer-top hr {
    position: absolute;
    bottom: var(--margin-inline);
    width: 100%;
    z-index: 0;
}

.footer-top_sections {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: stretch;
    margin-inline: var(--margin-inline);
}

.footer-left {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding-block: 2rem;
    padding-inline: 1rem;
    flex-grow: 1;
    width: 50%;
    position: relative;
    z-index: 1;
    background-color: var(--bg-color);
}

.footer-left_content {
    max-width: 30rem;
    margin-inline: auto;
}

.footer-text {
    font-family: "Libre Caslon", serif;
    font-size: 2rem;
    font-weight: 100;
    margin-bottom: 2rem;
}

.footer-right {
    border-right: 1px solid var(--border-color);
    padding-block: 2rem;
    padding-inline: 1rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    background-color: var(--bg-color);
    width: 50%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.footer-right_logo-container {
    text-align: center;
}

.footer-right img.img-logo {
    height: 220px;
    width: 220px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-left: 2rem;
    padding-block: 4rem;
}

.footer-links .link {
    margin-bottom: 1rem;
}

.input {
    appearance: none;
    background-color: var(--bg-color);
    color: var(--color);
    outline: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    width: 20rem;
    height: 3rem;
    font-size: 2rem;
}

.inline-block {
    display: inline-block;
}

.send-button-container {
    margin-left: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    border: 1px solid var(--border-color);
    border-top: none;
    margin-inline: var(--margin-inline);
    padding-block: 1rem;
    text-align: center;
    letter-spacing: 1px;
}

.footer-bottom img.img-logo {
    height: 110px;
    width: 110px;
}


@media screen and (max-width: 1100px) {
    .footer-right {
        flex-direction: column;
    }

    .footer-links {
        margin: 0;
    }

    #email {
        width: 100%;
    }
}

/* ------- TABLET & MOBILE -------- */
@media screen and (max-width: 900px) {
    .no-tablet {
        display: none;
    }

    .desktop {
        display: none;
    }

    .tablet {
        display: block;
    }

    /* ------- header -------- */
    .menu {
        margin: 0;
    }

    .menu-item {
        width: 9rem;
    }

    .main {
        min-height: calc(100svh - var(--header-height));
    }

    .hero {
        margin: 0;
    }

    .footer .send-button-container,
    .footer .link.link_short {
        width: 100%;
    }

    .footer .send-button-container {
        margin-left: 0;
    }

    /* ------- index -------- */
    body.index .content {
        margin-inline: 2rem;
    }

    body.index .hero {
        margin-top: 0;
    }

    body.index .arrow-down .constellation {
        display: none;
    }

    body.index .text-section-left img {
        width: 100%;
    }

    body.index .hero .section-title_right {
        width: auto;
    }

    body.index .subhero .subtext {
        width: auto;
    }

    body.index .subhero .section-title_right {
        width: auto;
    }

    body.index .tablet .subtitle {
        text-align: center;
        margin-top: 0;
    }

    body.index .text {
        margin: 0;
        border-left: 0;
        border-right: 0;
        flex-direction: column-reverse;
    }

    body.index .text-section-right {
        width: auto;
        padding: 0;
    }

    body.index .text-section-right .text-section_wrapper {
        width: auto;
        margin: 0;
    }

    body.index .text-section-right .text-item:first-child {
        margin-top: 2rem;
    }

    body.index .text-section-left {
        width: auto;
        border: none;
        padding-top: 1rem;
    }

    /* ------- contact -------- */
    .contact .top,
    .contact .bottom {
        border: none;
    }

    .contact .bottom {
        flex-direction: column;
    }

    .contact .bottom .left {
        width: 100%;
        border-right: none;
    }

    .contact .bottom .right {
        width: 100%;
    }

    .contact .bottom .right .right-wrapper {
        width: 100%;
    }

    .contact .bottom .right .align-top {
        flex-direction: column;
    }

    .contact .bottom .right .input.last {
        width: 100%;
    }

    .contact .bottom .right .contact-title-wrapper {
        margin-bottom: 2rem;
    }

    .contact .bottom .right .contact-title {
        font-size: 3rem;
    }

    .contact .bottom .right .sun-moon.mobile img {
        width: 100%;
        filter: invert(1);
        margin-top: 1rem;
    }
}

/* ------- MOBILE -------- */
@media screen and (max-width: 767px) {
    .no-mobile {
        display: none;
    }

    .mobile {
        display: block;
    }

    .header {
        flex-direction: column;
        /*position: relative;*/
        height: 100px;
        border: none;
    }

    .logo {
        width: 100%;
        border: none;
        background-image: radial-gradient(circle at 0% -55%, #BA55E0 0%, rgba(186, 85, 224, 0) 35%);
    }

    /* ------- menu -------- */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--bg-color);
        z-index: 5;
    }
    .mobile-menu-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
        transition: all .25s ease-in-out;
        transition-delay: 1s;
    }
    .mobile-menu.hidden .mobile-menu-wrapper {
        width: 0;
    }
    .mobile-menu-item {
        display: inline-block;
        width: 60%;
        font-family: system-ui;
        font-size: 1.5rem;
        font-weight: 200;
        text-align: center;
        color: white;
        border-bottom: 1px solid var(--border-color);
    }
    .mobile-menu-item.active {
        color: var(--main-color);
    }
    .mobile-menu-item a {
        color: white;
        text-decoration: none;
        display: inline-block;
        padding-block: 2rem;
        width: 100%;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 2.5rem;
        right: 2rem;
        width: 1.75rem;
        height: 1.5rem;
        z-index: 10;
    }

    .toggle-1,
    .toggle-2,
    .toggle-3 {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background-color: var(--color);
        transition: all .25s ease-in-out;
    }
    .toggle-2 {
        top: 0;
        bottom: 0;
        margin: auto;
    }
    .toggle-3 {
        bottom: 0;
    }

    .mobile-menu-toggle.open .toggle-1 {
        transform: translateY(12px) translateY(-50%) rotate(-45deg);
    }
    .mobile-menu-toggle.open .toggle-2 {
        opacity: 0;
    }
    .mobile-menu-toggle.open .toggle-3 {
        transform: translateY(-12px) translateY(50%) rotate(45deg);
    }

    .main {
        min-height: calc(100svh - 100px);
    }

    .content {
        margin-inline: 0;
    }

    .hero {
        margin-top: 0;
    }

    .hero .subtitle {
        font-size: 2rem;
        width: 100%;
        position: static;
    }

    .subtitle {
        font-size: 2rem;
    }

    .hero .hero-author {
        width: 75%;
        margin-inline: auto;
    }

    .hero .hero-author img {
        width: 100%;
    }

    .text {
        border-left: none;
        border-right: none;
    }

    .text-title {
        text-align: center;
    }

    /* ------- index -------- */
    body.index .hero .title {
        padding-top: 0;
        margin-bottom: 1rem;
    }

    body.index .hero .subtext {
        width: auto;
        margin-bottom: 0;
        text-align: center;
    }

    body.index .hero .section-title {
        flex-direction: column;
    }

    body.index .hero .section-title_left {
        margin-top: 0;
    }

    body.index .hero .section-title_right {
        margin-top: 0;
    }

    body.index .hero .subtitle {
        text-align: center;
        margin-top: 0;
    }

    body.index .subhero {
        margin-top: 0;
    }

    body.index .subhero .subtitle {
        text-align: center;
        margin-top: 2rem;
    }

    body.index .subhero .section-title {
        flex-direction: column;
    }

    body.index .subhero .section-title_right {
        padding-bottom: 0;
    }

    body.index .subhero .section-title_right .constellation {
        background-position: 0 130%;
    }

    body.index .subhero .hero-book {
        justify-content: center;
    }

    body.index .subhero .hero-book img {
        width: 100%;
    }

    body.index .buy-book-button {
        text-align: center;
    }

    body.index .background-aux {
        width: 100%;
        height: 10rem;
        background-image: url('images/constellation.svg');
        background-repeat: no-repeat;
        background-size: 100%;
        background-position: center;
        opacity: 0.3;
        margin-bottom: 2rem;
    }

    body.index .aux-link {
        margin-bottom: 1rem;
    }

    /* ------- events -------- */
    body.index.events .hero {
        margin-bottom: 1rem;
    }

    body.index.events .hero .subtitle {
        margin-bottom: 0;
    }

    body.index.events .hero .hero-book img {
        width: 100%;
    }

    body.index.events .hero .subtext {
        width: 100%;
    }

    body.index.events .hero .buy-book-button.mobile {
        margin-bottom: 1rem;
    }

    /* ------- footer -------- */
    .footer-top_sections {
        margin-inline: 0;
        flex-direction: column;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }

    .footer-left_content {
        text-align: center;
    }

    .footer-right {
        border-left: 1px solid var(--border-color);
        padding: 0;
    }

    .footer-right_logo-container {
        display: none;
    }

    .footer-links {
        flex-direction: row;
        justify-content: space-evenly;
        padding-bottom: 0;
    }

    .footer-links .link {
        width: 10rem;
    }

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