/* goomimi.com - Cottagecore Artisanal Craft Website */

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

:root {
    --cream: #faf6f0;
    --text: #4a3728;
    --rose: #d4a0a0;
    --sage: #8fae8b;
    --gold: #c49b5c;
    --sketch: #7a7068;
    --ivory: #fff8ef;
    --umber: #b5a08e;
}

/* Paper texture background pattern (base64 4x4px noise) */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

html, body {
    width: 100%;
    height: 100%;
    background: var(--cream);
    color: var(--text);
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.8;
}

body {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(122, 112, 104, 0.02) 2px, rgba(122, 112, 104, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(122, 112, 104, 0.02) 2px, rgba(122, 112, 104, 0.02) 4px);
    background-size: 4px 4px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    position: relative;
}

.logotype {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.workshop-window {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.window-frame {
    position: relative;
    width: 400px;
    height: 300px;
    max-width: 90vw;
    aspect-ratio: 4/3;
    border: 3px solid var(--sketch);
    border-radius: 16px;
    background: var(--ivory);
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(122, 112, 104, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.window-cross {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.window-cross::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    background: var(--sketch);
    opacity: 0.4;
    transform: translateX(-1px);
}

.window-cross::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    top: 50%;
    left: 0;
    background: var(--sketch);
    opacity: 0.4;
    transform: translateY(-1px);
}

.window-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.window-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.craft-illustration {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
}

.float-item {
    animation: float 4s ease-in-out infinite;
}

.roman-heading {
    font-family: 'Karla', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--rose);
    margin: 1rem 0;
    font-weight: 400;
}

.tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--sage);
    margin-top: 0.8rem;
    max-width: 500px;
}

/* ===== SPREAD SECTIONS ===== */
.spread {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 80px 60px;
    gap: 60px;
    position: relative;
    background: var(--cream);
}

.spread-1 {
    transform: rotate(0.5deg);
}

.spread-2 {
    transform: rotate(-0.5deg);
}

.spread-text {
    padding: 40px;
    background: var(--ivory);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(122, 112, 104, 0.08);
}

.spread-text h2 {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.spread-text p {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.pull-quote {
    font-style: italic;
    color: var(--sage);
    border-left: 3px solid var(--rose);
    padding-left: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.pull-quote::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -10px;
    width: 20px;
    height: 20px;
    opacity: 0.3;
}

.spread-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spread-image svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.washi-tape {
    position: absolute;
    width: 140px;
    height: 25px;
    z-index: 10;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===== SWATCHES SECTION ===== */
.swatches {
    min-height: 100vh;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
}

.swatches h2 {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 3rem;
    text-align: center;
}

.swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 800px;
    width: 100%;
    position: relative;
}

.swatch {
    position: relative;
    aspect-ratio: 1.5;
    background: var(--color, #d4a0a0);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(122, 112, 104, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.swatch:hover {
    transform: rotate(0deg) scale(1.05);
}

.swatch-inner {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(74, 55, 40, 0.7);
    text-align: left;
    letter-spacing: 0.02em;
}

.swatch-border {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* ===== LETTER SECTION ===== */
.letter {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: var(--cream);
}

.envelope {
    position: relative;
    max-width: 600px;
    width: 100%;
    background: var(--ivory);
    padding: 60px 50px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(122, 112, 104, 0.2);
    clip-path: polygon(0 8%, 50% 0, 100% 8%, 100% 100%, 0 100%);
}

.envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--umber);
    opacity: 0.1;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.wax-seal {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    z-index: 20;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

.envelope-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.envelope-content h2 {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.5rem;
    margin-top: 20px;
}

.envelope-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.closing-sign {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: var(--gold);
    margin-top: 2.5rem;
    font-weight: 400;
}

.botanical-accent {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.botanical-accent svg {
    width: 60px;
    height: auto;
    opacity: 0.7;
}

/* ===== FOOTER ===== */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #e8e2d8;
    background: var(--cream);
    font-size: 0.9rem;
}

.brand {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .spread {
        grid-template-columns: 1fr;
        padding: 60px 30px;
        gap: 40px;
    }

    .workshop-window {
        margin: 2rem 0;
    }

    .window-frame {
        width: 100%;
        max-width: 400px;
    }

    .swatches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .envelope {
        padding: 40px 30px;
    }

    .spread-text {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
    }

    .spread {
        padding: 40px 20px;
    }

    .swatches {
        padding: 40px 20px;
    }

    .swatches-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .logotype {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .window-frame {
        width: 100%;
        max-width: 100%;
    }

    .envelope {
        padding: 30px 20px;
    }
}

/* Subtle paper texture enhancement */
section {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(122, 112, 104, 0.02) 2px, rgba(122, 112, 104, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(122, 112, 104, 0.02) 2px, rgba(122, 112, 104, 0.02) 4px);
    background-size: 4px 4px;
}

/* Pressed flower accent animations */
@keyframes gentle-sway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(0.5deg);
    }
    75% {
        transform: rotate(-0.5deg);
    }
}

.botanical-accent {
    animation: gentle-sway 6s ease-in-out infinite;
}

/* Page transitions */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
