/* --- BASE DESK SETUP --- */
body {
    background-color: #F5E6C8; /* Warm parchment */
    color: #4E3224; /* Deep espresso brown */
    font-family: 'Jost', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Gloock', serif;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

/* --- HEADER & LORE --- */
header {
    text-align: center;
    padding: 3rem 1rem 1rem 1rem;
}

header h1 {
    font-size: 3.5rem;
    margin: 0;
    color: #3b251a; 
}

.tagline {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #634737;
    margin-top: 0;
}

/* --- THE STICKY NOTE NAVIGATION --- */
nav {
    margin: 2rem 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sticky-note {
    background-color: #FFF7D6; /* Pale yellow paper */
    color: #4E3224;
    text-decoration: none;
    padding: 15px 25px;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Giving each note a slightly different crooked angle */
.note-1 { transform: rotate(-3deg); }
.note-2 { transform: rotate(2deg); }
.note-3 { transform: rotate(-1deg); }

/* The wiggle hover effect */
.sticky-note:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 5px 6px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* --- THE MAIN DESK SURFACE --- */
.desk-surface {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.welcome-mat {
    background-color: rgba(255, 255, 255, 0.3); /* Slight overlay to separate from raw parchment */
    padding: 2rem;
    border: 1px dashed #A98C5B; /* Stitched border look */
    border-radius: 4px;
}

.lore-preview {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #FAF1E0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid #85658A; /* Plum accent color */
}

.read-more {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #85658A;
    text-decoration: none;
    font-weight: bold;
}

/* --- THE TRINKET SHELF --- */
.trinket-shelf {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background-color: #FAF1E0;
    padding: 1.5rem;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.08);
}

.steeping-widget ul {
    padding-left: 1.2rem;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
}

/* The Toaster Button */
#toaster-btn {
    background-color: #4E3224;
    color: #F5E6C8;
    border: none;
    padding: 10px 15px;
    font-family: 'Jost', sans-serif;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

#toaster-btn:hover {
    background-color: #85658A;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 3rem;
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: #886a5b;
}

/* Responsive fix for smaller screens */
@media (max-width: 768px) {
    .desk-surface {
        grid-template-columns: 1fr;
    }
}

/* --- THE 4 ROOM BACKGROUNDS --- */
body.welcome-room {
    background-image: url('../assets/welcome-bg.png'); /* The wax seal */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.couch-room {
    background-image: url('../assets/couch-bg.png'); /* The feral sketchbook */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.lint-room {
    background-image: url('../assets/lint-bg.png'); /* The library duck */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.toaster-room {
    background-image: url('../assets/toaster-bg.png'); /* The 2AM kitchen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- TRANSPARENT CONTENT BOXES --- */
/* Replacing the solid colors so your art shows through */
.welcome-mat {
    /* Pale yellow with 60% opacity */
    background-color: rgba(250, 241, 224, 0.6); 
    padding: 2rem;
    border: 2px dashed rgba(169, 140, 91, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(3px); /* Slightly blurs the background right behind the text for readability */
}

.widget {
    /* Warm parchment with 70% opacity */
    background-color: rgba(245, 230, 200, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(3px);
}

/* --- LINT ROOM CUSTOM SQUEEZE --- */
body.lint-room .desk-surface {
    max-width: 750px; /* Squeezes the width to fit inside the notebook margins */
    padding-left: 3rem; 
    padding-right: 3rem;
}

/* --- SQUEEZE THE LINT ROOM TAGLINE --- */
body.lint-room .tagline {
    max-width: 650px; 
    margin: 0 auto; /* The 'auto' keeps the text perfectly centered on the page */
}
