/* --- */
/* Global styles */
/* --- */


:root {
    --background: #483020;
    --content: #F6E9D2;
    --background-emphasis: #704A31;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --background: #F6E9D2;
    --content: #483020;
    --background-emphasis: #E5D2B1;
    color-scheme: light;
}

*, *::before, *::after {
    transition-property: color, background-color, border-color;
    transition-duration: 200ms;
}

body {
    margin: 0;
    background-color: var(--background);
}

a {
    text-decoration: none;
    color: var(--content);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  -webkit-text-size-adjust: 100%; /* Prevents font boosting */
  text-size-adjust: 100%;
}


/* -------------------------------------------------- */
/* Page animations */
/* -------------------------------------------------- */


.transition-fade {
    opacity: 1;
    transition: 700ms;
}

html.is-animating .transition-fade {
    opacity: 0;
}


/* --- */
/* Typography styles */
/* --- */


a:hover {
  text-decoration: underline;
}

h1 {
    font-family: "etna-condensed", sans-serif;
    font-weight: 300;
    color: var(--content);
    font-size: 40px;
    margin: 0;
    text-transform: uppercase;
}

p {
    font-family: "garamond-atf-subhead", serif;
    font-weight: 400;
    color: var(--content);
    font-size: 19px;
    line-height: 34px;
    margin: 0;
    width: 100%;
}

.p-hyperlink {
    font-family: "garamond-atf-subhead", serif;
    font-weight: 400;
    background-color: var(--background-emphasis);
    color: var(--content);
    font-size: 19px;
    line-height: 34px;
    margin: 0;
    width: 100%;
}

.subtext-title{
    font-family: "garamond-atf-subhead", serif;
    font-weight: 400;
    color: var(--content);
    font-size: 14px;
    margin: 0;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1200ms;
    transform: translateY(25px);
    width: 100%;
    text-align: center;
}

.emphasis{
    font-family: "etna-condensed", sans-serif;
    font-weight: 300;
    color: var(--content);
    font-size: 32px;
    margin: 0;
    text-transform: uppercase;
}

    .emphasis-signature {
        text-transform: none;
}

.up-title {
    font-family: "etna-condensed", sans-serif;
    font-weight: 300;
    color: var(--content);
    font-size: 28px;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}


/* --- */
/* Global components */
/* --- */


.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding-top: 8px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
}

.content-flex {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    margin: 0;
}

.theme-icon-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.navigation-icon-switch {
    display: grid;
    width: 24px;
    height: 24px;
}

.navigation-icon {
    display: block;
    width: 24px;
    height: 24px;
    grid-area: 1 / 1;
    transition: opacity 200ms ease;
}

.navigation-icon--moon,
.navigation-icon--mail-inverted,
.navigation-icon--home-inverted {
    opacity: 0;
}

:root[data-theme="light"] .navigation-icon--sun,
:root[data-theme="light"] .navigation-icon--mail,
:root[data-theme="light"] .navigation-icon--home {
    opacity: 0;
}

:root[data-theme="light"] .navigation-icon--moon,
:root[data-theme="light"] .navigation-icon--mail-inverted,
:root[data-theme="light"] .navigation-icon--home-inverted {
    opacity: 1;
}

.archive-icon-link,
.home-icon-link {
    display: inline-flex;
}

.highlight-text {
    background-color: var(--background-emphasis);
}

.index-main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.cartas-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.letter-uptitle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 800ms;
    transform: translateY(25px);
    }

.main-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.marilia-title-switch {
    width: 360px;
    display: grid;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1000ms;
    transform: translateY(25px);
}

.marilia-title {
    display: block;
    width: 100%;
    grid-area: 1 / 1;
    transition: opacity 200ms ease;
}

.marilia-title--inverted {
    opacity: 0;
}

:root[data-theme="light"] .marilia-title--original {
    opacity: 0;
}

:root[data-theme="light"] .marilia-title--inverted {
    opacity: 1;
}

.small-heart-switch {
    display: grid;
    width: 8px;
    height: 8px;
}

.small-heart {
    display: block;
    width: 8px;
    height: 8px;
    grid-area: 1 / 1;
    transition: opacity 200ms ease;
}

.small-heart--inverted {
    opacity: 0;
}

:root[data-theme="light"] .small-heart--original {
    opacity: 0;
}

:root[data-theme="light"] .small-heart--inverted {
    opacity: 1;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.new-mail {
    width: 100%;
    display: flex;  
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 200ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .new-mail:hover {
        transform: translateY(-15px);
    }
}

.letter-icon {
    width: 22px;
    padding-top: 4px;
}

.letter-image {
    width: 100%;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1200ms;
    transform: translateY(25px);
}

.letter-container {
    width: 100%;
    display: flex;  
    flex-direction: column;
    gap: 8px;

}

.top-navigation {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.return-content {
    width: 100%;
    display: flex;  
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 600ms;
    transform: translateY(25px);
}

.date-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.navigation-buttons {
    display: flex;
    flex-direction: row;
    gap: 24px
}

.bottom-leyend {
    display: flex;  
    flex-direction: column;
    width: 100%;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1300ms;
    transform: translateY(25px);
}

.bottom-sign {
    display: flex;  
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1800ms;
    transform: translateY(25px);
}

.letter-title {
    width: 100%;
    text-align: justify;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 800ms;
    transform: translateY(25px);
}

.letter-paragraph {
    text-align: justify;
    align-items: center;
    display: flex;  
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1000ms;
    transform: translateY(25px);
}

.signature {
    display: flex;  
    flex-direction: column;
    margin-top: 24px;
    width: 100%;
}


/* --- */
/* Media querys */
/* --- */

@media screen and (min-width: 10px) and (max-width: 400px) {
.marilia-title-switch {
width: 300px;
}

}

@media screen and (min-width: 480px) and (max-width: 1023px) {

    .container {
    padding-top: 16px;
    padding-left: 10vw;
    padding-right: 10vw;
    padding-bottom: 40px;
    }

    .up-title {
    font-size: 32px;
    }

    .letter-icon {
    width: 28px;
    }

    .main-title {
    gap: 36px;
    margin-top: 40px;
    }

    .cartas-title {
    gap: 2px;
    }

    .subtext-title{
    font-size: 16px;
    }

    h1 {
    font-size: 48px;
    }

    p {
    font-size: 21px;
    line-height: 36px;
    }

    .p-hyperlink {
    font-size: 21px;
    line-height: 36px;
    }

    .emphasis-signature {
    font-size: 36px;
    }

    .marilia-title-switch {
    width: 420px
    }

    .letter-image {
    width: 340px !important;
    }

    .bottom-sign {
    width: 12px;
    margin-top: 32px;
    margin-bottom: 32px;
    }

}

@media screen and (min-width: 1024px) and (max-width: 1679px) {

    .container {
    padding-top: 16px;
    padding-left: 20vw;
    padding-right: 20vw;
    padding-bottom: 40px;
    }

    .content-flex {
    max-width: 768px;
    }

    .up-title {
    font-size: 48px;
    }

    .letter-icon {
    width: 36px;
    padding-top: 8px;
    }

    .main-title {
    gap: 40px;
    margin-top: 40px;
    }

    .cartas-title {
    gap: 4px;
    }

    .subtext-title{
    font-size: 18px;
    }

    h1 {
    font-size: 64px;
    }

    p {
    font-size: 21px;
    line-height: 40px;
    }

    .p-hyperlink {
    font-size: 21px;
    line-height: 40px;
    }

    .emphasis-signature {
    font-size: 36px;
    }

    .letter-uptitle {
    gap: 12px;
    }

    .return-content {
    margin-top: 16px;
    }

    .marilia-title-switch {
    width: 640px
    }

    .letter-image {
    width: 520px !important;
    margin-top: 40px;
    margin-bottom: 0px;
    }

    .bottom-sign {
    width: 16px;
    margin-top: 52px;
    margin-bottom: 52px;
    }

    .letter-paragraph {
    gap: 32px;
    }

}

@media screen and (min-width: 1680px) and (max-width: 4800px) {

    .container {
    padding-top: 16px;
    padding-left: 24vw;
    padding-right: 24vw;
    padding-bottom: 40px;
    }

    .up-title {
    font-size: 64px;
    }

    .letter-icon {
    width: 48px;
    padding-top: 12px;
    }

    .letter-uptitle {
    gap: 16px;
    }

    .main-title {
    gap: 40px;
    margin-top: 40px;
    }

    .cartas-title {
    gap: 8px;
    }

    .subtext-title{
    font-size: 20px;
    }

    h1 {
    font-size: 80px;
    }

    p {
    font-size: 24px;
    line-height: 48px;
    }

    .p-hyperlink {
    font-size: 24px;
    line-height: 48px;
    }

    .emphasis-signature {
    font-size: 48px;
    }

    .return-content {
    margin-top: 24px;
    }

    .marilia-title-switch {
    width: 900px
    }

    .letter-image {
    width: 740px !important;
    margin-top: 40px;
    margin-bottom: 0px;
    }

    .bottom-sign {
    width: 16px;
    margin-top: 52px;
    margin-bottom: 52px;
    }

    .letter-paragraph {
    gap: 32px;
    }

}
