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


:root {
    --background: #F6DAD2;
    --content: #483020;
    --background-emphasis: #E6C9C1;
}

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

a {
    text-decoration: none;
    color: var(--content);
}

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;
}

.smooth-scroll-wrapper {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    overflow: hidden;
}


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


a:hover {
  text-decoration: underline;
}

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

h2 {
    font-family: "etna-condensed", sans-serif;
    font-weight: 300;
    color: var(--text);
    font-size: 40px;
    line-height: auto;
    margin: 0;
    padding-bottom: 4px;
    color: var(--content);
    text-transform: uppercase;
}

h2:hover {
  text-decoration: underline;
}


h3 {
    font-family: "etna-condensed", sans-serif;
    font-weight: 300;
    color: var(--text);
    font-size: 28px;
    line-height: auto;
    margin: 0;
    color: var(--content);
    text-transform: uppercase;
}

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

.back-button {
    font-size: 16px;
}

.p-archive {
    width: 100%;
    font-size: 17px;
    line-height: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-archive:hover {
  text-decoration: underline;
}

.subtext{
    font-family: "garamond-atf-subhead", serif;
    font-weight: 400;
    color: var(--text);
    font-size: 14px;
    line-height: auto;
    margin: 0;
    color: var(--content);
    width: 100%;
}

.mini-subtext{
    font-size: 11px;
    line-height: 11px;
}

.subtext-month {
    font-size: 8px;
    line-height: 8px;
    text-transform: uppercase;
}

.subtext-title{
    font-family: "garamond-atf-subhead", serif;
    font-weight: 400;
    color: var(--text);
    font-size: 14px;
    line-height: auto;
    margin: 0;
    color: var(--content);
    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(--text);
    font-size: 32px;
    line-height: auto;
    margin: 0;
    color: var(--content);
    text-transform: uppercase;
}

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

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

.front-title {
    font-family: "etna-condensed", sans-serif;
    font-weight: 300;
    color: var(--text);
    font-size: 100px;
    line-height: 64px;
    margin: 0;
    color: var(--content);
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1000ms;
    transform: translateY(25px);
}


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


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

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

.content-flex-archive {
    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 {
    width: 360px;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1000ms;
    transform: translateY(25px);
}

.flower-1 {
    margin-top: -120px;
    width: 150%;
}

.flower-2 {
    margin-top: -100px;
    width: 150%;
}

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

.new-mail {
    width: 100%;
    display: flex;  
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

.otter-image {
    width: 160px;
    opacity: 0;
    margin-top: 40px;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1200ms;
    transform: translateY(25px);
}

.mail-otter {
    width: 164px;
    opacity: 100;
    position: absolute;
    right: 0;
    margin-right: -12px;
}

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

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

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

.return-content-archive {
    animation-delay: 0ms;
}

.line {
    width: 100%;
    height: 1px;
    background-color: var(--content);
}

.short-line {
    width: 10%;
    height: 1px;
    background-color: var(--content);
}

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

.archive-entrylink {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.archiveentry-subtext {
    width: auto;
}

.arrow-link {
    width: 11px;
}

.open-letter {
    width: 100%;
    display: flex;  
    flex-direction: row;
    align-items: center;
    justify-content: right;
    gap: 8px;
}

.scissors {
    width: 35px; 
}

.archive-lines-container {
    width: 100%;
    display: flex;  
    flex-direction: column;
    margin: 8px;
    border: 2px dashed var(--background-emphasis);
    border-radius: 19px;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 800ms;
    transform: translateY(25px);
}

.archive-lines-container-inverted {
    animation-delay: 0ms;
}

.archive-container {
    display: flex;  
    flex-direction: column;
    background-color: var(--background-emphasis);
    border-radius: 16px;
    margin: 4px;
}

.archive-top {
    width: 100%;
    display: flex;  
    flex-direction: row;
    align-items: end;
    margin-top: -57px;
}

.archive-text {
    width: 100%;
    display: flex;  
    flex-direction: column;
    padding-top: 74px;
    padding-left: 16px;
    padding-bottom: 16px;
    gap: 4px;
}

.month-title {
    width: 100%;
    margin-left: -18px;
    margin-top: 12px;
}

.archive-links {
    display: flex;  
    flex-direction: column;
    align-items: center;
    margin-top: 0px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 24px;
    gap: 0px;
}

.first-link {
    margin-top: 0px !important;
}

.archive-link {
    width: 100%;
    display: flex;  
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 8px;
    gap: 2px;
}

.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);
}

.paragraph-image {
    width: 196px;
    align-self: center;
    margin-top: 24px;
    margin-bottom: 24px;
}

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


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

@media screen and (min-width: 10px) and (max-width: 400px) {

.h3 {
    font-size: 24px;
    }

.marilia-title {
width: 300px;
}

}

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

    .container {
    padding-top: 40px;
    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;
    }

    .front-title {
    font-size: 120px;
    line-height: 60px;
    }

    .subtext{
    font-size: 16px;
    }

    .mini-subtext {
    font-size: 14px;
    }

    .month-title {
    margin-left: -22px;
    }

    .subtext-month {
    font-size: 10px;
    line-height: 10px;
    }

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

    h1 {
    font-size: 48px;
    }

    h2 {
    font-size: 48px;
    padding-bottom: 6px;
    }

    h3 {
    font-size: 32px;
    }

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

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

    .back-button {
    font-size: 18px;
    }

    .p-archive {
    font-size: 18px;
    }

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

    .marilia-title {
    width: 420px
    }

    .otter-image {
    width: 180px !important;
    }

    .mail-otter {
    width: 170px;
    margin-right: -32px;
    }

    .scissors {
    width: 40px;
    }

    .archive-links {
    gap: 4px;
    }

    .archive-link {
    gap: 4px;
    }

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

    .bottom-content {
    gap: 8px;
    }

    .flower-1 {
    margin-top: -90px;
    width: 120%;
    }

    .flower-2 {
    margin-top: -90px;
    width: 120%;
    }

}

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

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

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

    .content-flex-archive {
    gap: 80px;
    }

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

    .front-title {
    font-size: 180px;
    line-height: 90px;
    }

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

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

    .cartas-title {
    gap: 4px;
    }

    .subtext{
    font-size: 18px;
    }

    .month-title {
    margin-left: -20px;
    }

    .subtext-month {
    font-size: 10px;
    line-height: 10px;
    }

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

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

    h1 {
    font-size: 64px;
    }

    h2 {
    font-size: 64px;
    padding-bottom: 12px;
    }

    h3 {
    font-size: 48px;
    }

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

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

    .back-button {
    font-size: 18px;
    }

    .p-archive {
    font-size: 20px;
    }

    .letter-uptitle {
    gap: 12px;
    }

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

    .marilia-title {
    width: 640px
    }

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

    .mail-otter {
    width: 250px;
    margin-right: -24px;
    }

    .scissors {
    width: 52px;
    }

    .archive-text {
    padding-top: 113px;
    padding-bottom: 16px;
    gap: 0px;
    }

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

    .archive-top {
    margin-top: -108px;
    }

    .archive-container {
    padding: 16px;
    gap: 16px;
    }

    .archive-link {
    gap: 8px;
    }

    .archive-links {
    gap: 8px;
    }

    .bottom-content {
    gap: 8px;
    margin-bottom: 160px;
    }

    .letter-paragraph {
    gap: 32px;
    }

    .paragraph-image {
    width: 240px;
    }

}

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

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

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

    .front-title {
    font-size: 300px;
    line-height: 170px;
    }

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

    .letter-uptitle {
    gap: 16px;
    }

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

    .cartas-title {
    gap: 8px;
    }

    .subtext{
    font-size: 18px;
    }

    .month-title {
    margin-top: 16px;
    margin-left: -28px;
    }

    .subtext-month {
    font-size: 12px;
    line-height: 12px;
    }

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

    h1 {
    font-size: 80px;
    }

    h2 {
    font-size: 80px;
    padding-bottom: 12px;
    }

    h3 {
    font-size: 64px;
    }

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

    .back-button {
    font-size: 22px;
    }

    .p-archive
    {
    font-size: 22px;
    }

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

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

    .marilia-title {
    width: 900px
    }

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

    .mail-otter {
    width: 340px;
    position: absolute;
    right: -40px;
    }

    .scissors {
    width: 64px;
    }

    .content-flex-archive {
    gap: 80px;
    }

    .archive-lines-container {
    margin-top: 50px;
    }

    .archive-text {
    padding-top: 123px;
    padding-bottom: 24px;
    gap: 0px;
    }

    .archive-top {
    margin-top: -122px;
    }

    .archive-container {
    padding: 16px;
    gap: 16px;
    }

    .archive-links {
    gap: 8px;
    }

    .archive-link {
    gap: 8px;
    }

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

    .bottom-content {
    gap: 12px;
    margin-bottom: 180px;
    }

    .letter-paragraph {
    gap: 32px;
    }

    .paragraph-image {
    width: 280px;
    }

    .flower-1 {
    margin-top: -170px;
    width: 120%;
    }

    .flower-2 {
    margin-top: -170px;
    width: 120%;
    }

}