@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================
   BODY
========================= */

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background-color: #f4eee4;
    color: #342d28;

    font-family: "Playfair Display", serif;
}


/* =========================
   MAIN PAGE
========================= */

.hero {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px;

    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;

    text-align: center;

    animation: fadeIn 1.5s ease;
}


/* =========================
   DATE
========================= */

.date {
    margin-bottom: 35px;

    font-family: "Cormorant Garamond", serif;

    font-size: 22px;
    font-weight: 500;

    letter-spacing: 3px;

    text-transform: uppercase;

    opacity: 0.8;

    position: relative;
}

.date::before,
.date::after {
    content: "";

    display: inline-block;

    width: 45px;
    height: 1px;

    background-color: #8d7665;

    vertical-align: middle;

    opacity: 0.5;
}

.date::before {
    margin-right: 15px;
}

.date::after {
    margin-left: 15px;
}


/* =========================
   H1
========================= */

h1 {
    margin-bottom: 30px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(60px, 9vw, 110px);

    font-weight: 500;

    line-height: 0.9;

    text-align: center;
}


/* =========================
   WELCOME TEXT
========================= */

.intro {
    width: 100%;
    max-width: 550px;

    margin: 0 auto 45px;

    font-size: 18px;
    line-height: 1.8;

    text-align: center;

    opacity: 0.8;
}


/* =========================
   BUTTON
========================= */

button {
    padding: 15px 30px;

    border: 1px solid #8d7665;

    background: transparent;
    color: #342d28;

    font-family: inherit;
    font-size: 15px;

    cursor: pointer;

    transition: 0.3s ease;
}

button:hover {
    background-color: #342d28;
    color: #f4eee4;

    transform: translateY(-3px);
}


/* =========================
   MAIN PHOTO
========================= */

.photo-frame {
    width: 280px;

    padding: 12px 12px 35px;

    margin: 0 auto 35px;

    background-color: #fffdf8;

    box-shadow:
        0 10px 25px rgba(50, 40, 30, 0.12);

    transform: rotate(-2deg);

    transition: transform 0.4s ease;
}

.photo-frame:hover {
    transform: rotate(0deg) scale(1.03);
}

.photo-frame img {
    display: block;

    width: 100%;
    height: 280px;

    object-fit: cover;
}


/* =========================
   SCROLL INDICATOR
========================= */

.scroll-indicator {
    margin-top: 55px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    font-size: 12px;
    letter-spacing: 2px;

    text-transform: uppercase;

    opacity: 0.5;

    animation: floatingArrow 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 20px;
}


/* =========================
   COUNTDOWN SECTION
========================= */

.countdown-section {
    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 80px 40px;

    text-align: center;
}

.section-content {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}


/* =========================
   COUNTDOWN TITLE
========================= */

.section-label {
    margin-bottom: 20px;

    font-size: 13px;
    letter-spacing: 5px;

    text-transform: uppercase;

    opacity: 0.5;
}

.section-content h2 {
    margin-bottom: 20px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(50px, 7vw, 90px);

    font-weight: 500;

    line-height: 1;
}

.section-text {
    margin-bottom: 60px;

    font-size: 17px;

    opacity: 0.7;
}


/* =========================
   COUNTDOWN
========================= */

.countdown {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 60px;

    margin: 0 auto;
}

.time-box {
    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;
}

.time-number {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(45px, 6vw, 75px);

    font-weight: 500;

    line-height: 1;
}

.time-label {
    margin-top: 10px;

    font-size: 12px;

    letter-spacing: 3px;

    text-transform: uppercase;

    opacity: 0.5;
}


/* =========================
   STORY SECTION
========================= */


.story-section{
    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 100px 40px;
}

.story-content{
    width: 100%;
    max-width: 1100px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 100px;
}

/* =========================
   STORY IMAGE
========================= */

.story-image {
    position: relative;

    width: 100%;
    max-width: 500px;

    margin: 0 auto;

    transform: rotate(1.5deg);

    background-color: #fffdf8;

    padding: 8px;

    box-shadow:
        18px 25px 45px rgba(50, 40, 30, 0.28),
        6px 10px 18px rgba(50, 40, 30, 0.18);

    transition: transform 0.4s ease,
                box-shadow 0.4s ease;
}

.story-image img {
    display: block;

    width: 100%;
    height: 600px;

    object-fit: cover;
}

.story-image:hover {
    transform: rotate(0deg) translateY(-5px);

    box-shadow:
        22px 32px 55px rgba(50, 40, 30, 0.35),
        8px 14px 24px rgba(50, 40, 30, 0.22);
}

/* =========================
   STORY TEXT
========================= */

.story-text{
    max-width: 500px;
}

.story-text .section-label{
    margin-bottom: 25px;
}

.story-text h2{
    margin-bottom: 30px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(45px, 5vw, 70px);

    font-weight: 500;

    line-height: 1;
}

.story-text p:not(.section-label){
    margin-bottom: 20px;

    font-size: 16px;

    line-height: 1.9;

    opacity: 0.75;
}

/* =========================
   STORY LINK
========================= */

.story-link{
    display: inline-block;

    margin-top: 20px;

    color: #342d28;

    font-family: "Playfair Display", serif;

    font-size: 14px;

    text-decoration: none;

    border-bottom: 1px solid #8d7665;

    padding-bottom: 5px;

    transition: 0.3s ease;

}

.story-link:hover{
    opacity: 0.6;

    transform: translateX(5px);
}


/* =========================
   MEMORIES SECTION
========================= */

.memories-section{
    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 100px 40px;

    text-align: center;
}

.memories-content{
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}

/* =========================
  MEMORIES TITLE
========================= */

.memories-content h2{
    margin-bottom: 25px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(45px, 6vw, 75px);

    font-weight: 500;

    line-height: 1;
}

.memories-intro{
    max-width: 600px;

    margin: 0 auto 70px;

    font-size: 16px;

    line-height: 1.8;

    opacity: 0.7;
}

/* =========================
   MEMORIES PREVIEW
========================= */

.memory-preview{
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 40px;

    align-items: start;
}

/* =========================
   MEMORY CARD
========================= */

.memory-card{
    text-align: left;

    transition: transform 0.4s ease;
}

.memory-card:nth-child(1){
    transform: rotate(-2deg);
}

.memory-card:nth-child(2){
    transform: translateY(20px) rotate(1deg);
}

.memory-card:nth-child(3){
    transform: rotate(-1deg);
}

.memory-card:hover{
    transform: translateY(-8px) rotate(0deg);
}

/* =========================
   MEMORY IMAGE
========================= */

.memory-card img {
    display: block;

    width: 100%;
    height: 320px;

    object-fit: cover;

    box-shadow:
        0 15px 30px rgba(50, 40, 30, 0.15);

    margin-bottom: 20px;
}

/* =========================
   MEMORY TEXT
========================= */

.memory-date {
    margin-bottom: 8px;

    font-size: 11px;

    letter-spacing: 3px;

    text-transform: uppercase;

    opacity: 0.5;
}


.memory-card h3 {
    font-family: "Cormorant Garamond", serif;

    font-size: 28px;

    font-weight: 500;
}


.diary-preview {
    padding: 130px 30px;
    background: #eee6d8;
}


.diary-preview-content {
    width: min(1050px, 100%);

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 80px;
}


.diary-preview-text {
    max-width: 520px;
}


.diary-preview-text h2 {
    margin: 20px 0;

    font-size: 42px;

    font-weight: 400;

    line-height: 1.2;
}


.diary-intro {
    max-width: 500px;

    line-height: 1.8;

    color: #5b5047;
}


.diary-link {
    display: inline-block;

    margin-top: 25px;

    color: #40372f;

    text-decoration: none;

    border-bottom: 1px solid #40372f;

    padding-bottom: 5px;

    transition: 0.3s;
}


.diary-link:hover {
    opacity: 0.6;
}


/* DIARY PAPER */

.diary-preview-paper {
    width: 330px;

    min-height: 390px;

    padding: 45px;

    background: #faf6ed;

    box-shadow:
        0 15px 35px rgba(60, 45, 30, 0.15);

    transform: rotate(2deg);

    text-align: center;
}


.diary-preview-icon {
    font-size: 40px;

    margin-bottom: 30px;
}


.diary-preview-date {
    font-size: 11px;

    letter-spacing: 2px;

    opacity: 0.5;
}


.diary-preview-paper h3 {
    margin: 30px 0;

    font-size: 22px;

    font-weight: 400;

    line-height: 1.5;
}


.diary-preview-lines {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.diary-preview-lines span {
    display: block;

    height: 1px;

    background: rgba(80, 65, 50, 0.18);
}


/* MOBILE */

@media (max-width: 700px) {

    .diary-preview {
        padding: 90px 25px;
    }


    .diary-preview-content {
        flex-direction: column;

        gap: 60px;

        text-align: center;
    }


    .diary-preview-text h2 {
        font-size: 34px;
    }


    .diary-preview-paper {
        width: min(330px, 90%);
    }

}


/* =========================
   MEMORIES LINK
========================= */

.memories-link {
    display: inline-block;

    margin-top: 80px;

    color: #342d28;

    font-family: "Playfair Display", serif;

    font-size: 14px;

    text-decoration: none;

    border-bottom: 1px solid #8d7665;

    padding-bottom: 6px;

    transition: 0.3s ease;
}


.memories-link:hover {
    opacity: 0.6;

    transform: translateX(5px);
}

.logout-button {
    position: fixed;
    top: 24px;
    right: 30px;

    padding: 8px 16px;

    background: transparent;

    border: 1px solid rgba(55, 40, 40, 0.55);
    border-radius: 20px;

    color: #3a3030;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.logout-button:hover {
    color: #b33a3a;
    border-color: #b33a3a;

    transform: translateY(-3px);
}
/* =========================
   ANIMATIONS
========================= */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes floatingArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }

}


/* =========================
   LETTERS SECTION
========================= */

.letters-section{
    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 100px 40px;

    text-align: center;
}

.letters-content{
    width: 100%;
    max-width: 900px;

    margin: 0 auto;
}

/* =========================
   LETTER TITLE
========================= */

.letters-content h2{
    margin-bottom: 25px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(50px, 7vw, 85px);

    font-weight: 500;

    line-height: 0.95;
}

.letters-intro{
    max-width: 600px;

    margin: 0 auto 60px;

    font-size: 16px;

    line-height: 1.9;

    opacity: 0.7;
}

/* =========================
   LETTER PAPER
========================= */

.letter-preview{
    display: flex;

    justify-content: center;

    margin: 0 auto;
}

.letter-paper{
    position: relative;

    width: 100%;
    max-width: 480px;

    min-height: 320px;

    padding: 55px 60px;

    background-color: #fffdf8;

    box-shadow:
        0 15px 35px rgba(50, 40, 30, 0.12);

    transform: rotate(-1.5deg);

    transition: transform 0.4s ease;
}

.letter-paper:hover{
    transform: rotate(0deg) translateY(-5px);
}

/* =========================
   LETTER CONTENT
========================= */

.letter-decoration{
    margin-bottom: 25px;

    font-size: 18px;

    opacity: 0.4;
}

.letter-title{
    margin-bottom: 30px;

    font-family: "Cormorant Garamond", serif;

    font-size: 32px;

    font-weight: 500;
}

.letter-text{
    max-width: 320px;

    margin: 0 auto;

    font-family: "Cormorant Garamond", serif;

    font-size: 22px;

    line-height: 1.6;

    opacity: 0.75;
}

.letter-heart{
    margin-top: 30px;

    font-size: 24px;

    opacity: 0.6;
}

/* =========================
   LETTER HINT
========================= */

.letters-hint{
    margin-top: 45px;

    font-size: 13px;

    letter-spacing: 1px;

    opacity: 0.5;
}

/* =========================
   LETTER LINK
========================= */

.letters-link{
    display: inline-block;

    margin-top: 25px;

    color: #342d28;

    font-family: "Playfair Display", serif;

    font-size: 14px;

    text-decoration: none;

    border-bottom: 1px solid #8d7665;

    padding-bottom: 6px;

    transition: 0.3s ease;
}

.letters-link:hover{
    opacity: 0.6;

    transform: translateX(5px);
}



/* =========================
   MOBILE - RWD
========================= */


@media (max-width: 768px){
    .story-content{
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .story-image{
        max-width: 400px;
    }

    .story-image img{
        height: 450px;
    }
    .story-text{
        max-width: 600px;

        text-align: center;

        margin: 0 auto;
    }

    .countdown{
        gap: 25px;
    }

    .time-number{
        font-size: 45px;
    }

    .time-label{
        font-size: 10px;
        letter-spacing: 2px;
    }

    /* MEMORIES */

.memories-section {
    padding: 80px 25px;
}

.memory-preview {
    grid-template-columns: 1fr;

    max-width: 450px;

    margin: 0 auto;

    gap: 50px;
}

.memory-card:nth-child(1),
.memory-card:nth-child(2),
.memory-card:nth-child(3) {
    transform: none;
}

.memory-card img {
    height: 400px;
}

.memory-card {
    text-align: center;
}

/* LETTERS */

.letters-section {
    padding: 80px 25px;
}

.letter-paper {
    padding: 45px 30px;

    min-height: 300px;
}

.letter-text {
    font-size: 20px;
}



    /* =========================
       HERO - MOBILE
    ========================= */

    .hero {
        padding: 30px 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .date {
        font-size: 17px;
        letter-spacing: 2px;
        margin-bottom: 25px;
    }

    .date::before,
    .date::after {
        width: 25px;
    }

    .date::before {
        margin-right: 8px;
    }

    .date::after {
        margin-left: 8px;
    }

    h1 {
        font-size: clamp(52px, 16vw, 80px);
        line-height: 0.95;
        margin-bottom: 25px;
    }

    .intro {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 35px;
    }

    .photo-frame {
        width: min(280px, 85vw);
        padding: 10px 10px 28px;
        margin-bottom: 30px;
    }

    .photo-frame img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .scroll-indicator {
        margin-top: 40px;
    }


    /* =========================
       COUNTDOWN - MOBILE
    ========================= */

    .countdown-section {
        padding: 70px 20px;
    }

    .section-label {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .section-content h2 {
        font-size: clamp(42px, 13vw, 65px);
    }

    .section-text {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 45px;
    }

    .countdown {
        gap: 15px;
    }

    .time-number {
        font-size: clamp(32px, 10vw, 45px);
    }

    .time-label {
        font-size: 9px;
        letter-spacing: 1.5px;
    }


    /* =========================
       LOGOUT - MOBILE
    ========================= */

    .logout-button {
        top: 15px;
        right: 15px;

        padding: 7px 13px;

        font-size: 12px;
    }


    /* =========================
       STORY - MOBILE
    ========================= */

    .story-section {
        padding: 80px 25px;
    }

    .story-content {
        gap: 50px;
    }

    .story-image {
        width: 100%;
        max-width: 380px;
    }

    .story-image img {
        height: 420px;
    }

    .story-text h2 {
        font-size: clamp(42px, 12vw, 60px);
    }

    .story-text p:not(.section-label) {
        font-size: 15px;
        line-height: 1.8;
    }


    /* =========================
       MEMORIES - MOBILE
    ========================= */

    .memories-section {
        padding: 80px 25px;
    }

    .memories-content h2 {
        font-size: clamp(42px, 12vw, 65px);
    }

    .memories-intro {
        font-size: 15px;
        margin-bottom: 50px;
    }

    .memory-preview {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
        gap: 50px;
    }

    .memory-card:nth-child(1),
    .memory-card:nth-child(2),
    .memory-card:nth-child(3) {
        transform: none;
    }

    .memory-card img {
        height: 400px;
    }

    .memory-card {
        text-align: center;
    }


    /* =========================
       DIARY PREVIEW - MOBILE
    ========================= */

    .diary-preview {
        padding: 80px 25px;
    }

    .diary-preview-content {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .diary-preview-text {
        max-width: 100%;
    }

    .diary-preview-text h2 {
        font-size: clamp(32px, 10vw, 42px);
    }

    .diary-intro {
        font-size: 15px;
        line-height: 1.8;
    }

    .diary-preview-paper {
        width: min(330px, 90vw);
        min-height: 350px;
        padding: 40px 30px;
    }


    /* =========================
       LETTERS - MOBILE
    ========================= */

    .letters-section {
        padding: 80px 25px;
    }

    .letters-content h2 {
        font-size: clamp(45px, 13vw, 70px);
    }

    .letters-intro {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 45px;
    }

    .letter-paper {
        width: min(480px, 100%);
        padding: 45px 30px;
        min-height: 300px;
    }

    .letter-title {
        font-size: 28px;
    }

    .letter-text {
        font-size: 20px;
    }

}


@media (max-width: 480px) {

    .hero {
        padding: 25px 15px;
    }

    .date {
        font-size: 15px;
        letter-spacing: 1.5px;
    }

    .date::before,
    .date::after {
        width: 18px;
    }

    .date::before {
        margin-right: 6px;
    }

    .date::after {
        margin-left: 6px;
    }

    h1 {
        font-size: 55px;
    }

    .intro {
        font-size: 15px;
    }

    .photo-frame {
        width: min(250px, 82vw);
    }

    .countdown {
        gap: 10px;
    }

    .time-number {
        font-size: 32px;
    }

    .time-label {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .logout-button {
        top: 10px;
        right: 10px;

        padding: 6px 11px;

        font-size: 11px;
    }

    .story-section,
    .memories-section,
    .letters-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .story-image img {
        height: 350px;
    }

    .memory-card img {
        height: 320px;
    }

    .letter-paper {
        padding: 35px 20px;
    }
}