:root {
    --color-paper: #fdfbf7;
    --color-ink: #2b2b2b;
    --color-tape: rgba(255, 245, 200, 0.6);
    --color-highlight: #ffebb3;
    
    --font-hand: 'Caveat', cursive;
    --font-typewriter: 'Special Elite', monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #eaddd3; /* Desk color */
    color: var(--color-ink);
    font-family: var(--font-typewriter);
    overflow-x: hidden;
}

/* Paper Texture Background for the whole canvas */
.paper-texture {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navbar */
.nav-handwritten {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    z-index: 10;
}

.logo-handwritten {
    font-family: var(--font-hand);
    font-size: 4rem;
    font-weight: 700;
    transform: rotate(-3deg);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-hand);
    font-size: 1.8rem;
    color: var(--color-ink);
    text-decoration: none;
    position: relative;
    transition: transform 0.2s;
}

.nav-links a:hover {
    transform: scale(1.1) rotate(2deg);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--color-highlight);
    z-index: -1;
    transform: rotate(-2deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-links a:hover::after {
    opacity: 1;
}

/* Scrapbook Canvas */
.scrapbook-canvas {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Common Elements */
.tape {
    position: absolute;
    width: 100px;
    height: 30px;
    background-color: var(--color-tape);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 5;
    /* Roughen the edges slightly using clip-path */
    clip-path: polygon(2% 0, 98% 4%, 100% 96%, 4% 100%);
}

.tape-top-center { top: -15px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.tape-top-left { top: -15px; left: -15px; transform: rotate(-45deg); width: 80px; }
.tape-bottom-right { bottom: -15px; right: -15px; transform: rotate(-45deg); width: 80px; }
.tape-top-right { top: -15px; right: 20px; transform: rotate(5deg); }

.tilt-left { transform: rotate(-3deg); }
.tilt-right { transform: rotate(4deg); }

/* Note Card */
.note-card {
    background-color: var(--color-paper);
    padding: 3rem;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.15);
    position: relative;
    max-width: 500px;
}

.note-card-alt {
    background-color: #f4eee1; /* Slightly different paper */
}

.note-card h1, .note-card h2 {
    font-family: var(--font-hand);
    font-size: 4rem;
    line-height: 1;
    margin: 0 0 1.5rem 0;
}

.note-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.btn-hand {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: 2rem;
    color: var(--color-ink);
    text-decoration: none;
    border: 2px solid var(--color-ink);
    padding: 0.2rem 1.5rem;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* Sketchy border */
    transition: transform 0.2s, background-color 0.2s;
}

.btn-hand:hover {
    background-color: var(--color-ink);
    color: var(--color-paper);
    transform: scale(1.05) rotate(-2deg);
}

/* Polaroid */
.polaroid {
    background-color: #fff;
    padding: 1.5rem 1.5rem 4rem 1.5rem;
    box-shadow: 3px 6px 20px rgba(0,0,0,0.2);
    position: relative;
}

.polaroid img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(0.2) contrast(1.1); /* Slight vintage feel */
}

.polaroid .caption {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-hand);
    font-size: 2rem;
    color: var(--color-ink);
}

/* Hero Section */
.scrapbook-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
    margin-bottom: 8rem;
}

.polaroid-hero {
    width: 500px;
    z-index: 2;
}

/* Gallery Section */
.scrapbook-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 8rem;
}

.polaroid-small {
    width: 350px;
    margin-top: 4rem;
}

.polaroid-med {
    width: 400px;
    margin-top: -2rem;
}

.offset-up {
    transform: translateY(-80px) rotate(-5deg);
}

/* Mission Section */
.scrapbook-mission {
    display: flex;
    justify-content: center;
    padding-bottom: 8rem;
}

.note-paper {
    background-color: var(--color-paper);
    padding: 4rem;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    background-image: repeating-linear-gradient(transparent, transparent 31px, #ccc 31px, #ccc 32px); /* Lined paper */
    line-height: 32px;
}

.note-paper h2 {
    font-family: var(--font-hand);
    font-size: 4rem;
    margin: 0 0 1rem 0;
    text-align: center;
}

.note-paper p {
    font-size: 1.2rem;
    margin: 0;
}

/* Shop Styles */
.shop-header-note {
    margin: 4rem auto 8rem auto;
    max-width: 600px;
    padding: 2.5rem;
}

.shop-gallery {
    gap: 4rem;
    flex-wrap: wrap;
}

.polaroid-shop {
    width: 380px;
    padding-bottom: 2rem;
}

.shop-caption {
    margin-top: 1.5rem;
    text-align: center;
}

.shop-item-name {
    font-family: var(--font-hand);
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.shop-item-desc {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
    margin-bottom: 1.5rem;
}

.shop-item-price {
    font-family: var(--font-hand);
    font-size: 3rem;
    color: var(--color-ink);
    margin-bottom: 1rem;
    transform: rotate(-2deg);
}

.btn-small {
    font-size: 1.5rem;
    padding: 0.1rem 1rem;
}

.mt-lg {
    margin-top: 6rem;
}

.offset-up-more {
    transform: translateY(-120px) rotate(-4deg);
}

/* Diaries Styles */
.scrapbook-diaries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6rem;
    padding: 4rem 2rem 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.polaroid-diary {
    width: 450px;
}

.diary-caption {
    margin-top: 1.5rem;
    text-align: center;
}

.diary-title {
    font-family: var(--font-hand);
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.diary-meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    display: block;
}

.diary-excerpt {
    font-family: var(--font-typewriter);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
    .scrapbook-hero, .scrapbook-gallery {
        flex-direction: column;
        align-items: center;
    }
    .polaroid-small, .polaroid-med, .polaroid-hero, .note-card {
        width: 90%;
        margin-top: 2rem;
    }
    .offset-up {
        transform: translateY(0) rotate(-2deg);
    }
}
