:root {
    --ivory: #FFFFF0;
    --warm-white: #FAF9F6;
    --soft-brown: #C4A484;
    --dark-brown: #8C6239;
    --faded-pink: #E6C2C0;
    --ink: #2b2b2b;
    --ink-faded: #4d4d4d;
    
    --font-script: 'Caveat', cursive;
    --font-body: 'Lora', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    font-family: var(--font-body);
    line-height: 1.8;
    background-color: var(--warm-white);
    color: var(--ink);
    font-size: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Soft textured background representing the desk */
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
}

/* Utilities */
.text-center { text-align: center; }
.text-script { font-family: var(--font-script); font-size: 2rem; letter-spacing: 0.5px; color: var(--ink); font-weight: 500;}
.ink-text { color: var(--ink); text-shadow: 0 0 1px rgba(0,0,0,0.3); } /* give it a slight ink bleed */
.pt-0 { padding-top: 0px !important; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-5 { margin-top: 4rem; }
.mb-5 { margin-bottom: 3.5rem; }
.my-4 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.container { max-width: 950px; margin: 0 auto; padding: 0 5%; position: relative; z-index: 5; }
.container-sm { max-width: 700px; }
.section { padding: 80px 0; }
.footer-space { height: 12vh; }

/* Music Btn Menu */
.music-btn {
    position: fixed; top: 30px; right: 30px; width: 50px; height: 50px;
    border-radius: 50%; background: var(--ivory); color: var(--dark-brown);
    border: 1px solid var(--soft-brown); display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 100; transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05); font-size: 1.1rem;
}
.music-btn:hover { background: var(--soft-brown); color: #fff; transform: scale(1.05); }

/* Hero Unfold Settings */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: 40px;}

.paper-frame {
    background: var(--ivory); padding: 70px 60px; position: relative;
    box-shadow: 2px 15px 40px rgba(139, 98, 57, 0.15);
    border: 1px solid rgba(196, 164, 132, 0.2);
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    border-radius: 2px;
}

/* Paper Envelope unfolding transition */
.unfold-anim {
    animation: paperUnfold 1.8s cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
    transform-origin: top center;
    transform: rotateX(85deg) scale(0.9); opacity: 0;
}
@keyframes paperUnfold {
    0% { transform: rotateX(85deg) scale(0.9); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotateX(0deg) scale(1); opacity: 1; }
}

.hero-title { font-size: 4.5rem; margin-bottom: 25px; transform: rotate(-2deg); }
.hero-quote {
    font-size: 1.55rem; color: var(--ink-faded); max-width: 600px; margin: 0 auto;
    font-style: italic; line-height: 2.2; height: 160px; /* fix height so layout doesn't jump during typing*/
}

/* SVG Line Draw */
.hand-drawn-line {
    display: block; margin: 30px auto 0;
    stroke-dasharray: 400; stroke-dashoffset: 400;
}
.aos-animate > .hand-drawn-line, .unfold-anim .hand-drawn-line {
    animation: dash 2.5s ease-out forwards; animation-delay: 2.8s;
}
@keyframes dash { to { stroke-dashoffset: 0; } }

/* Stamp Button */
.btn-stamp {
    display: inline-block; padding: 14px 35px;
    border: 2px dashed rgba(140, 98, 57, 0.7); color: var(--dark-brown);
    font-family: var(--font-body); text-transform: uppercase; letter-spacing: 4px;
    font-size: 1rem; text-decoration: none; position: relative; cursor: pointer;
    background: transparent; transition: all 0.3s;
    border-radius: 4px; font-weight: 500;
}
.btn-stamp:hover { background: rgba(196, 164, 132, 0.1); transform: rotate(-2deg); border-style: solid; box-shadow: 2px 2px 10px rgba(0,0,0,0.05); }

/* Standard Paper Sheet Content */
.paper-sheet {
    background: var(--ivory); padding: 75px 65px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06); margin: 0 auto;
    position: relative; background-image: url('https://www.transparenttextures.com/patterns/lined-paper.png');
    border-radius: 2px;
}
.paper-sheet::before { 
    content: ''; position: absolute; left: 40px; top: 0; bottom: 0;
    width: 2px; border-left: 2px solid rgba(230, 194, 192, 0.6); /* faded pink margin line representing notebook */
}
.paper-icon { font-size: 2.2rem; color: var(--soft-brown); margin-bottom: 25px; display: block; text-align: center; }

.section-title { font-size: 3.5rem; margin-bottom: 30px; color: var(--dark-brown); }
.section-para { font-size: 1.25rem; color: #444; margin-bottom: 30px; padding-left: 15px; line-height: 2; font-weight: 300; }

/* Ink Fade Effect */
.ink-fade-text p {
    color: transparent; text-shadow: 0 0 12px rgba(40,40,40,0.8);
    transition: all 2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.aos-animate .ink-fade-text p {
    color: var(--ink); text-shadow: none;
}

/* Notes Grid Section */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; }
.hover-lift { transition: transform 0.5s ease, box-shadow 0.5s ease; }
.hover-lift:hover { transform: translateY(-12px) rotate(1deg); z-index: 10; box-shadow: 5px 20px 30px rgba(0,0,0,0.15) !important;}

.small-note { padding: 40px 35px; position: relative; box-shadow: 2px 8px 15px rgba(0,0,0,0.08); border-radius: 2px; }
.small-note h3 { font-size: 2.5rem; margin-bottom: 20px; color: var(--dark-brown); }
.small-note p { font-size: 1.15rem; line-height: 1.8; color: var(--ink-faded); }

.sticky-note { background: #FEF7A5; transform: rotate(-3deg); }
.pin { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: #D32F2F; box-shadow: inset -2px -2px 5px rgba(0,0,0,0.4), 0 2px 3px rgba(0,0,0,0.2); }

.postcard { background: var(--warm-white); border: 1px solid #e0d9cd; transform: rotate(2deg); background-image: url('https://www.transparenttextures.com/patterns/bright-squares.png');}
.stamp-img { position: absolute; top: 15px; right: 15px; width: 45px; height: 55px; background: var(--faded-pink); border: 2px dashed #fff; box-shadow: 1px 1px 3px rgba(0,0,0,0.1);}

.polaroid-note { background: #fff; padding: 15px 15px 35px 15px; transform: rotate(-2deg); }
.polaroid-note img { width: 100%; height: 220px; object-fit: cover; filter: sepia(35%); margin-bottom: 15px; }

/* Action Buttons */
.btn-script {
    display: block; width: 100%; max-width: 450px; margin: 0 auto;
    padding: 18px 25px; background: var(--dark-brown); color: var(--ivory);
    border: none; font-family: var(--font-script); font-size: 2.2rem; cursor: pointer;
    transition: all 0.3s ease; border-radius: 4px; box-shadow: 0 8px 20px rgba(140, 98, 57, 0.3);
}
.btn-script:hover { background: #6b4a2a; transform: translateY(-4px); box-shadow: 0 12px 25px rgba(140, 98, 57, 0.4); }

.btn-script.outline { background: transparent; color: var(--dark-brown); border: 2px solid var(--dark-brown); box-shadow: none; font-size: 1.8rem; }
.btn-script.outline:hover { background: rgba(140, 98, 57, 0.08); transform: translateY(-2px);}

.signature { text-align: right; margin-top: 50px; padding-right: 30px;}
.signature p { font-size: 1.6rem; line-height: 1.5; color: var(--ink-faded); }

/* Modal Response Structure */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(30, 30, 30, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-content {
    margin: 15vh auto; width: 90%; max-width: 530px; position: relative; padding: 50px 40px;
    background: var(--ivory); background-image: url('https://www.transparenttextures.com/patterns/notebook.png');
    border-radius: 6px; animation: modalFade 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28); box-shadow: 0 25px 60px rgba(0,0,0,0.6); border: 1px solid #ccc;
}
.close-modal { position: absolute; top: 15px; right: 25px; color: var(--dark-brown); font-size: 32px; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: #D32F2F; }
#modalMessage img { width: 100%; max-width: 250px; margin-bottom: 30px; border-radius: 4px; border: 6px solid #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.2); filter: sepia(20%); transform: rotate(1deg);}
#modalMessage h3 { font-size: 3.2rem; color: var(--dark-brown); margin-bottom: 10px; }
#modalMessage p { font-size: 1.25rem; color: var(--ink-faded); line-height: 1.8; font-weight: 300;}

@keyframes modalFade { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile View Port Scalings */
@media (max-width: 768px) {
    .container { padding: 0 7%; }
    .hero-title { font-size: 3.5rem; }
    .hero-quote { font-size: 1.3rem; height: auto; min-height: 220px; }
    .paper-frame { padding: 50px 30px; border-radius: 8px;}
    .paper-sheet { padding: 50px 30px; border-radius: 8px;}
    .paper-sheet::before { left: 15px; }
    .section-para { padding-left: 10px; }
    .section-title { font-size: 2.8rem; }
    .btn-script { font-size: 1.8rem; }
    .notes-grid { gap: 30px; }
    .signature { text-align: center; padding-right:0; margin-top: 30px;}
}
