/* ============================================
   tanso.club - Goblincore Carbon Burrow
   Colors: #F0F5E8, #2A3A20, #8AA080, #D0A0A0, #F5ECD8, #6A5A40
   Fonts: Caveat (display), Karla (body)
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #6A5A40;
    background-color: #F0F5E8;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: #2A3A20;
}

/* --- Sections shared --- */
.section-band {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
}

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

.section-content--90 {
    width: 90%;
    max-width: 1100px;
    margin-left: 5%;
}

.section-content--75 {
    width: 75%;
    max-width: 900px;
    margin-left: 5%;
}

.section-content--60 {
    width: 60%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* --- Section Headings --- */
.section-heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #2A3A20;
    margin-bottom: 2.5rem;
    transform: rotate(-0.5deg);
}

.section-heading--rose {
    color: #2A3A20;
}

/* ============================================
   HERO SECTION
   ============================================ */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F0F5E8;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    color: #2A3A20;
    transform: rotate(-1deg);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #8AA080;
    transform: rotate(0.5deg);
    letter-spacing: 0.05em;
}

/* --- Gradient Mesh (Bioluminescent Glow) --- */
.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.gradient-mesh--hero {
    background:
        radial-gradient(ellipse 600px 500px at 20% 30%, rgba(138, 160, 128, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at 75% 60%, rgba(208, 160, 160, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 400px 350px at 50% 80%, rgba(245, 236, 216, 0.3) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 10% 70%, rgba(138, 160, 128, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 350px 250px at 85% 20%, rgba(208, 160, 160, 0.12) 0%, transparent 60%);
}

.gradient-mesh--s2 {
    background:
        radial-gradient(ellipse 500px 400px at 30% 40%, rgba(138, 160, 128, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 400px 350px at 70% 70%, rgba(208, 160, 160, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 350px 300px at 50% 20%, rgba(245, 236, 216, 0.2) 0%, transparent 60%);
}

.gradient-mesh--s3 {
    background:
        radial-gradient(ellipse 450px 400px at 25% 50%, rgba(208, 160, 160, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 400px 350px at 65% 30%, rgba(138, 160, 128, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 300px 250px at 80% 80%, rgba(245, 236, 216, 0.25) 0%, transparent 60%);
}

.gradient-mesh--s4 {
    background:
        radial-gradient(ellipse 400px 350px at 50% 50%, rgba(138, 160, 128, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 350px 300px at 30% 70%, rgba(208, 160, 160, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 300px 250px at 70% 30%, rgba(245, 236, 216, 0.2) 0%, transparent 60%);
}

/* --- Mushroom Silhouettes --- */
.mushroom {
    position: absolute;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.mushroom--left {
    left: 3%;
    width: 120px;
    height: 140px;
    transform: rotate(2deg);
}

.mushroom--right {
    right: 5%;
    width: 100px;
    height: 120px;
    transform: rotate(-1.5deg);
}

/* --- Moss Patches --- */
.moss-patch {
    position: absolute;
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    background-color: #8AA080;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.moss-patch--1 {
    width: 180px;
    height: 60px;
    top: 15%;
    left: 8%;
    transform: rotate(3deg);
}

.moss-patch--2 {
    width: 120px;
    height: 45px;
    top: 60%;
    right: 10%;
    transform: rotate(-2deg);
    background-color: #D0A0A0;
    opacity: 0.12;
}

.moss-patch--3 {
    width: 90px;
    height: 35px;
    bottom: 20%;
    left: 15%;
    transform: rotate(1deg);
}

.moss-patch--s2-1 {
    width: 150px;
    height: 50px;
    bottom: 10%;
    right: 8%;
    transform: rotate(-1.5deg);
}

.moss-patch--s2-2 {
    width: 100px;
    height: 40px;
    top: 15%;
    left: 3%;
    transform: rotate(2.5deg);
    background-color: #D0A0A0;
    opacity: 0.1;
}

.moss-patch--inline {
    position: absolute;
    width: 80px;
    height: 30px;
    top: -10px;
    right: 20px;
    transform: rotate(-2deg);
    border-radius: 50% 40% 60% 30% / 50% 60% 40% 50%;
    background-color: #8AA080;
    opacity: 0.15;
    z-index: 0;
}

.moss-patch--closing-1 {
    width: 100px;
    height: 35px;
    bottom: -15px;
    left: 10%;
    transform: rotate(1.5deg);
}

.moss-patch--closing-2 {
    width: 70px;
    height: 25px;
    top: -10px;
    right: 15%;
    transform: rotate(-2deg);
    background-color: #D0A0A0;
    opacity: 0.12;
}

/* --- Root Lines --- */
.root-lines {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.root-lines--hero {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

.root-lines--converge {
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
}

/* --- Root Decorations at Section Margins --- */
.root-decor {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40px;
    z-index: 1;
    pointer-events: none;
}

.root-decor--left {
    left: 0;
}

.root-decor--right {
    right: 0;
}

/* ============================================
   SECTION 2 - Community (90% width)
   ============================================ */
.section-band--wide {
    background-color: #F0F5E8;
}

.card-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 220px;
    background-color: #F5ECD8;
    border-radius: 12px 4px 16px 8px;
    padding: 2rem 1.5rem;
    position: relative;
    transform: rotate(-0.3deg);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
}

.card:nth-child(2) {
    transform: rotate(0.5deg);
}

.card:nth-child(3) {
    transform: rotate(-0.7deg);
}

.card-mushroom-icon {
    width: 60px;
    height: 70px;
    margin-bottom: 1rem;
}

.card-mushroom-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2A3A20;
    margin-bottom: 0.75rem;
    transform: rotate(-0.5deg);
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6A5A40;
}

/* ============================================
   SECTION 3 - Data (75% width)
   ============================================ */
.section-band--medium {
    background-color: #F0F5E8;
}

.info-block {
    position: relative;
    background-color: #F5ECD8;
    border-radius: 8px 16px 4px 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transform: rotate(0.3deg);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
}

.info-block:nth-child(odd) {
    transform: rotate(-0.4deg);
}

.info-block--rose {
    background-color: #D0A0A0;
    color: #2A3A20;
    border-radius: 16px 4px 12px 8px;
}

.info-block--rose .info-title {
    color: #2A3A20;
}

.info-block--rose .info-text {
    color: #2A3A20;
}

.info-title {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2A3A20;
    margin-bottom: 0.75rem;
    transform: rotate(-0.5deg);
}

.info-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #6A5A40;
}

/* Mushroom decoration in section 3 */
.mushroom-decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.mushroom-decor--s3 {
    bottom: 2rem;
    right: 2%;
    width: 180px;
    height: 200px;
    transform: rotate(1.5deg);
}

/* ============================================
   SECTION 4 - Closing (60% width)
   ============================================ */
.section-band--narrow {
    background-color: #F0F5E8;
    padding: 8rem 2rem;
}

.closing-domain {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: #2A3A20;
    margin-bottom: 1.5rem;
    transform: rotate(-0.5deg);
}

.closing-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #6A5A40;
    max-width: 480px;
    margin: 0 auto;
}

/* Mushroom cluster */
.mushroom-cluster {
    position: absolute;
    bottom: 1rem;
    right: 5%;
    width: 200px;
    height: 160px;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-1deg);
}

/* ============================================
   ZOOM-FOCUS INTERACTION
   ============================================ */
.zoom-card:hover {
    transform: scale(1.03) rotate(0deg);
    box-shadow: 0 8px 30px rgba(42, 58, 32, 0.1);
    z-index: 10;
}

.card-row:hover .zoom-card:not(:hover) {
    transform: scale(0.98);
    opacity: 0.85;
}

.section-content--75:hover .zoom-card:not(:hover) {
    transform: scale(0.98);
    opacity: 0.85;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .section-content--90 {
        width: 95%;
        margin-left: 2.5%;
    }

    .section-content--75 {
        width: 90%;
        margin-left: 5%;
    }

    .section-content--60 {
        width: 90%;
    }

    .card-row {
        flex-direction: column;
    }

    .card {
        min-width: unset;
    }

    .hero-title {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .section-heading {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .mushroom--left,
    .mushroom--right {
        width: 80px;
        height: 100px;
    }

    .root-decor {
        display: none;
    }

    .mushroom-decor--s3 {
        width: 120px;
        height: 130px;
    }

    .mushroom-cluster {
        width: 140px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .section-band {
        padding: 4rem 1rem;
    }

    .section-band--narrow {
        padding: 5rem 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .card {
        padding: 1.5rem 1rem;
    }

    .info-block {
        padding: 1.5rem;
    }
}
