/* =========================================================
   recycle.wiki -- Editorial Recycling Encyclopedia
   Palette: Burgundy-Cream
   Fonts: Source Serif 4 (Google Fonts), Source Sans 3 (Google Fonts)
   Source Serif/Sans editorial type pairing.
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.8;
    color: #2A2A2A;
    background-color: #FFF5EB;
    overflow-x: hidden;
}

/* ---- Typography ---- */

h1, h2 {
    font-family: "Source Serif 4", serif;
    font-weight: 700;
    color: #6B1D2A;
}

/* ---- Section Base ---- */

.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 8rem;
    overflow: hidden;
}

.section-content {
    max-width: 780px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 3;
    display: block;
}

.wave-divider path {
    transition: d 0.6s ease;
}

/* ---- Hero ---- */

.section-hero {
    background-color: #6B1D2A;
    text-align: center;
    min-height: 100vh;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.parallax-bg--hero {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(158,74,90,0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(196,168,76,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(245,213,200,0.1) 0%, transparent 70%);
    background-attachment: fixed;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #FFF5EB;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.2s ease forwards;
}

.hero-subtitle {
    font-family: "Source Serif 4", serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: #C4A84C;
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease 0.3s forwards;
}

.hero-tagline {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: #F5D5C8;
    max-width: 520px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease 0.6s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Article Sections ---- */

.section-article {
    background-color: #FFF5EB;
}

.section-article.section-alt {
    background-color: #F5D5C8;
}

.article-heading {
    font-size: clamp(2rem, 4.5vw, 4rem);
    color: #6B1D2A;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.article-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Featured Panel (3D perspective) ---- */

.featured-panel {
    background-color: #F5D5C8;
    border-left: 4px solid #9E4A5A;
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.section-alt .featured-panel {
    background-color: #FFF5EB;
}

.featured-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.featured-panel .article-lead {
    font-family: "Source Serif 4", serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    color: #6B1D2A;
    line-height: 1.65;
    transform: rotateX(5deg);
    transform-origin: bottom center;
    transition: transform 0.5s ease;
}

.featured-panel:hover .article-lead {
    transform: rotateX(0deg);
}

/* ---- Article Body ---- */

.article-body {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.article-body.visible {
    opacity: 1;
    transform: translateY(0);
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #2A2A2A;
}

.article-body p:last-child {
    margin-bottom: 0;
}

/* ---- Footer ---- */

.section-footer {
    background-color: #6B1D2A;
    min-height: 40vh;
    text-align: center;
}

.footer-text {
    font-family: "Source Serif 4", serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #FFF5EB;
    margin-bottom: 0.75rem;
}

.footer-note {
    font-size: 1rem;
    color: #C4A84C;
    font-style: italic;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
    .section {
        padding: 4rem 1.25rem 6rem;
    }

    .featured-panel {
        padding: 1.5rem 1.5rem;
    }

    .article-body p {
        font-size: 1rem;
    }
}
