/* ===================================
   FONT & RESET
   =================================== */
@font-face {
    font-family: 'Chalkduster';
    src: url('Chalkduster.ttf') format('truetype');
}

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

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* ===================================
   PAGE 1: HERO SECTION (Mobile-First)
   =================================== */
.hero {
    position: relative;
    /* Exactly one viewport tall so the footer and logos stay above the fold.
       dvh keeps this correct while mobile browser toolbars show/hide. */
    height: 100vh;
    height: 100dvh;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.title-container,
.center-content,
.bottom-text,
.brp-logo,
.coronoides-logo,
.footer {
    position: relative;
    z-index: 2;
}

/* Title */
.title-container {
    text-align: center;
    margin-top: 20px;
}

.main-title {
    font-family: 'Chalkduster', cursive;
    font-size: clamp(1.5rem, 8vw, 4rem);
    font-weight: normal;
    letter-spacing: 0.1rem;
    margin-bottom: 10px;
    color: #000;
}

.subtitle {
    font-family: 'Brush Script MT', cursive;
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: normal;
    color: #000;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto;
}

/* Center Image */
.center-content {
    flex: 1 1 auto;
    /* Flex items default to min-height:auto, which would stop the image
       shrinking and push the hero past 100vh. */
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
}

.center-image {
    /* Bounded on both axes so the image scales down to whatever space is
       left rather than dictating the page height. */
    max-width: min(300px, 80%);
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Bottom Text */
.bottom-text {
    text-align: center;
    font-size: clamp(0.875rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    color: #000;
    margin-bottom: 80px;
    max-width: 600px;
    padding: 0 10px;
}

.bottom-text p {
    margin-bottom: 8px;
}

/* Logos
   Both PNGs are cropped to their artwork bounds (no baked-in padding), so a
   shared height renders them at the same visible size. Keep these rules
   shared rather than per-logo so the two can't drift apart. */
.brp-logo,
.coronoides-logo {
    position: absolute;
    bottom: 50px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.brp-logo {
    left: 20px;
}

.coronoides-logo {
    right: 20px;
}

.brp-logo img,
.coronoides-logo img {
    display: block;
    height: clamp(80px, 15vw, 120px);
    width: auto;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: #666;
    width: 100%;
    padding: 0 10px;
}

.footer p {
    margin: 0;
}

/* ===================================
   PAGE 2: STORY SECTION (Mobile-First)
   =================================== */
.story-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.story-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Story Text */
.story-text {
    font-family: 'Times New Roman', serif;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.6;
    color: #000;
    text-align: center;
}

.story-intro {
    margin-bottom: 8px;
}

.story-heading {
    font-weight: bold;
    font-size: clamp(1rem, 2.8vw, 1.1rem);
    margin: 24px 0 8px 0;
}

.story-paragraph {
    margin-bottom: 24px;
}

/* Event notice */
.event-info {
    margin-top: 30px;
    font-family: 'Brush Script MT', cursive;
    font-size: clamp(1.25rem, 4vw, 2rem);
    text-align: center;
}

.event-text {
    margin-bottom: 5px;
}

.event-highlight {
    color: #0066ff;
}

.event-date {
    margin-top: 0;
}

/* Story Sidebar */
.story-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

/* Contact */
.contact-note {
    font-family: 'Brush Script MT', cursive;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    line-height: 1.4;
}

.contact-note p {
    margin-bottom: 6px;
}

.contact-email {
    /* Readable face for the address itself - script fonts invite typos. */
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: #0066ff;
    word-break: break-word;
}

/* Rat Illustration */
.rat-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rat-image {
    max-width: 100%;
    width: min(300px, 100%);
    height: auto;
}

/* ===================================
   TABLET BREAKPOINT (768px+)
   =================================== */
@media (min-width: 768px) {
    .hero {
        padding: 40px;
    }

    .main-title {
        letter-spacing: 0.2rem;
    }

    .center-image {
        max-width: 400px;
    }

    .bottom-text {
        margin-bottom: 100px;
    }

    .brp-logo,
    .coronoides-logo {
        bottom: 40px;
    }

    .brp-logo {
        left: 40px;
    }

    .coronoides-logo {
        right: 40px;
    }

    /* Story Section */
    .story-section {
        padding: 60px 40px 80px;
    }

    .story-content {
        flex-direction: row;
        gap: 60px;
    }

    .story-text {
        flex: 2;
    }

    .story-sidebar {
        flex: 1;
        gap: 40px;
    }

    .rat-image {
        max-width: 150%;
    }
}

/* ===================================
   DESKTOP BREAKPOINT (1024px+)
   =================================== */
@media (min-width: 1024px) {
    .main-title {
        letter-spacing: 0.3rem;
    }

    .center-image {
        max-width: 500px;
    }

    .story-section {
        padding: 80px 60px;
    }
}
