/*
Theme Name: Joy Chapter
Theme URI: https://joychapter.pt/
Author: Joy Chapter
Author URI: https://joychapter.pt/
Description: Landing page WordPress theme for Joy Chapter - Events & Celebrations.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: joy-chapter
*/

:root {
    --joy-background: #FCFAF6;
    --joy-gold: #C99524;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--joy-background);
    color: var(--joy-gold);
    font-family: Georgia, "Times New Roman", serif;
    overflow: hidden;
}

.joy-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 3vh 4vw;
}

.joy-logo {
    display: block;
    width: min(80vw, 75vh, 750px);
    height: auto;
    flex-shrink: 1;
    margin: 0 auto 3vh auto;
}

.joy-contact {
    flex-shrink: 0;
    text-align: center;
    color: var(--joy-gold);
    font-size: clamp(13px, 1.7vw, 21px);
    line-height: 1.6;
    letter-spacing: 1px;
}

.joy-line {
    margin: 0.3em 0;
}

.joy-label {
    font-size: clamp(9px, 1vw, 13px);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-right: 8px;
}

.joy-contact a {
    color: var(--joy-gold);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.joy-contact a:hover,
.joy-contact a:focus-visible {
    opacity: 0.65;
}

@media (max-width: 480px) {
    .joy-container {
        padding: 2vh 5vw;
    }

    .joy-logo {
        width: min(88vw, 65vh);
        margin-bottom: 2vh;
    }

    .joy-contact {
        font-size: clamp(12px, 3.5vw, 16px);
        line-height: 1.5;
    }

    .joy-line {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0.4em 0;
    }

    .joy-label {
        margin-right: 0;
        margin-bottom: 1px;
        font-size: 10px;
        letter-spacing: 2px;
    }
}

@media (max-height: 650px) {
    .joy-container {
        padding-top: 1vh;
        padding-bottom: 1vh;
    }

    .joy-logo {
        width: min(65vw, 60vh, 600px);
        margin-bottom: 1.5vh;
    }

    .joy-contact {
        font-size: clamp(11px, 1.5vw, 17px);
        line-height: 1.4;
    }
}

@media (max-height: 450px) {
    .joy-container {
        padding: 1vh 3vw;
    }

    .joy-logo {
        width: min(55vw, 55vh, 500px);
        margin-bottom: 1vh;
    }

    .joy-contact {
        font-size: 11px;
        line-height: 1.3;
    }

    .joy-label {
        font-size: 8px;
    }
}

/* Avoid the WordPress admin bar changing the visitor-facing layout while logged in. */
body.admin-bar .joy-container {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .joy-container {
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}
