/* CSS Custom Properties for a vibrant, playful, scrapbook-like theme */
:root {
    /* Color Palette */
    --primary-color: #FF6F59;
    /* Bright Coral */
    --secondary-color: #254441;
    /* Dark Teal for strong contrast */
    --accent-color: #43AA8B;
    /* Fresh Green/Teal */
    --accent-yellow: #F4D35E;
    /* Bright saturated yellow */
    --bg-light: #F7EDE2;
    /* Warm paper-like cream */
    --white: #ffffff;
    --text-color: #3d405b;
    /* Navy-ish dark text */

    /* Typography */
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Layout */
    --max-width: 1000px;
    --border-radius: 20px;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-strong: 5px 5px 0px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    /* Subtle dot pattern */
    background-image: radial-gradient(#E8DDD1 1px, transparent 1px);
    background-size: 30px 30px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Polaroids (Used throughout) */
.polaroid {
    background: var(--white);
    padding: 10px 10px 30px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: inline-block;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.polaroid:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
}

.polaroid img {
    max-width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    /* Keep images unified if varying sizes */
    object-fit: cover;
}

.polaroid .caption {
    font-family: var(--font-heading);
    text-align: center;
    margin-top: 10px;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: -15px;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 8rem;
    background-color: var(--accent-yellow);
    background-image: radial-gradient(#ecc53a 2px, transparent 2px);
    background-size: 30px 30px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.pre-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: -10px;
    display: inline-block;
    background: var(--white);
    padding: 5px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-strong);
    transform: rotate(-3deg);
}

.main-title {
    font-size: 5rem;
    color: var(--secondary-color);
    margin: 1.5rem 0;
    text-shadow: 4px 4px 0px var(--white);
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
}

.cta-container {
    position: relative;
    z-index: 5;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    box-shadow: 0 8px 0px #d45b49, 0 15px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 0px #d45b49, 0 20px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(5px);
    box-shadow: 0 3px 0px #d45b49, 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Images Floating */
.hero-images {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.p1 {
    width: 200px;
    position: absolute;
    left: -50px;
    top: -150px;
    transform: rotate(-15deg);
    pointer-events: auto;
}

.p2 {
    width: 250px;
    position: absolute;
    right: -80px;
    top: -50px;
    transform: rotate(10deg);
    pointer-events: auto;
}

/* SVG Waves */
.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(1px);
    /* Fix sub-pixel gaps */
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.wave-bottom .shape-fill {
    fill: var(--bg-light);
}

/* Summary Section */
.summary-section {
    padding: 4rem 0 6rem;
    position: relative;
    z-index: 2;
}

.summary-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    border: 3px solid var(--secondary-color);
}

.summary-text-block h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.summary-text-block p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.highlight-box {
    background-color: #e0fbfc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 6px solid var(--accent-color);
    margin-top: 2rem;
}

.highlight-box p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--secondary-color);
}

.p3 {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    transform: rotate(4deg);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Gallery Layout */
.gallery-section {
    padding: 2rem 0 0rem;
}

.gallery-wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 6rem;
}

.p4 {
    width: 350px;
    transform: rotate(-6deg);
}

.p5 {
    width: 400px;
    transform: rotate(3deg);
    margin-top: 40px;
}

/* Wave Divider */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider .shape-fill {
    fill: var(--accent-color);
}

/* Authors Section */
.authors-section {
    padding: 6rem 0;
    background-color: var(--accent-color);
    color: var(--white);
}

.authors-section .section-title {
    color: var(--white);
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.author-card {
    background: var(--white);
    color: var(--text-color);
    padding: 3rem 2rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    position: relative;
    border: 3px solid var(--secondary-color);
}

.author-badge {
    position: absolute;
    top: -20px;
    left: 30px;
    background: var(--primary-color);
    color: var(--white);
    font-family: var(--font-heading);
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 1.5rem;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
}

.alt-badge {
    background: var(--accent-yellow);
    color: var(--secondary-color);
    transform: rotate(5deg);
    left: auto;
    right: 30px;
}

.author-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.author-card p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Purchase Section */
.purchase-section {
    padding: 6rem 0 8rem;
    background-color: var(--bg-light);
}

.ticket-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border: 4px dashed var(--primary-color);
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-image: radial-gradient(var(--bg-light) 2px, transparent 2px);
    background-size: 20px 20px;
}

.ticket-title {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.price-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 2rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary-color);
    line-height: 1;
}

.currency {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    vertical-align: top;
    margin-top: 10px;
}

.shipping {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-left: 10px;
    font-weight: 700;
}

.contact-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.email-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.email-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Pre-footer green band */
.pre-footer-green {
    background-color: var(--accent-color);
    padding: 2rem 0;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

.wish-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .p3 {
        max-width: 300px;
    }

    .hero-images {
        display: none;
    }

    .main-title {
        font-size: 4rem;
    }

    .p4,
    .p5 {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 600px) {
    .main-title {
        font-size: 2.4rem;
    }

    .pre-title {
        font-size: 1.2rem;
        padding: 4px 14px;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }

    .hero {
        padding-top: 4rem;
        padding-bottom: 6rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .summary-text-block h2 {
        font-size: 2rem;
    }

    .summary-text-block p {
        font-size: 1.05rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }

    .author-card {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .author-badge {
        font-size: 1.2rem;
        padding: 4px 16px;
    }

    .author-card h3 {
        font-size: 1.5rem;
    }

    .author-card p {
        font-size: 1rem;
    }

    .ticket-card {
        padding: 2.5rem 1.5rem;
    }

    .ticket-title {
        font-size: 1.6rem;
    }

    .price {
        font-size: 3.5rem;
    }

    .currency {
        font-size: 1.8rem;
    }

    .shipping {
        font-size: 1.1rem;
    }

    .contact-text {
        font-size: 1.05rem;
    }

    .email-btn {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        max-width: 100%;
        word-break: break-word;
    }

    .purchase-section {
        padding: 4rem 0 5rem;
    }

    .authors-section {
        padding: 4rem 0;
    }

    .gallery-wrapper {
        gap: 2rem;
        padding-bottom: 3rem;
    }

    .p4,
    .p5 {
        max-width: 280px;
        margin-top: 0;
    }

    .wave-bottom svg {
        height: 100px;
    }

    .wave-divider svg {
        height: 80px;
    }

    .wish-text {
        font-size: 1.4rem;
    }

    footer {
        padding: 2rem 0;
    }
}