/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #f5f0e8;
    color: #4a3f2f;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1rem, 1.15vw, 1.25rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    color: #3b2f1e;
    letter-spacing: 0.03em;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5em;
}

p {
    max-width: 42ch;
    margin-bottom: 2em;
}

.field-entry p:last-child {
    margin-bottom: 0;
}

/* === SPECIMEN LABELS === */
.specimen-label {
    display: inline;
    border: 1px solid #c4916e;
    padding: 0.15em 0.5em;
    border-radius: 2px;
    background: #ede4d3;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    cursor: default;
}

.specimen-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(59, 47, 30, 0.12);
}

/* === WATERCOLOR WASH SYSTEM === */
.watercolor-wash {
    position: absolute;
    border-radius: 45% 55% 50% 50%;
    pointer-events: none;
    z-index: 0;
}

/* === COVER SECTION === */
.cover {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(170deg, #f5f0e8, #ede4d3);
    overflow: hidden;
}

.cover-title {
    position: relative;
    z-index: 1;
    font-size: clamp(3rem, 8vw, 7rem);
    padding-left: 10%;
    width: 62%;
}

.wash-cover {
    top: -10%;
    right: -5%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(ellipse at center, rgba(143, 168, 126, 0.20), transparent 70%);
    filter: blur(50px);
}

.wash-cover-2 {
    top: 10%;
    right: 10%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(ellipse at center, rgba(196, 145, 110, 0.15), transparent 70%);
    filter: blur(40px);
}

.wash-cover-3 {
    top: 25%;
    right: -2%;
    width: 25vw;
    height: 25vw;
    background: radial-gradient(ellipse at center, rgba(212, 180, 131, 0.12), transparent 70%);
    filter: blur(35px);
}

/* === FLOATING LEAVES === */
.floating-leaf {
    position: absolute;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.leaf-1 {
    bottom: 15%;
    right: 12%;
    width: 60px;
    height: 80px;
    background: #8fa87e;
    clip-path: polygon(50% 0%, 80% 20%, 95% 50%, 80% 80%, 50% 100%, 20% 80%, 5% 50%, 20% 20%);
    animation: leafDrift1 8s ease-in-out infinite;
}

.leaf-2 {
    top: 20%;
    right: 10%;
    width: 45px;
    height: 65px;
    background: #8fa87e;
    clip-path: polygon(50% 0%, 75% 15%, 90% 45%, 85% 75%, 50% 100%, 15% 75%, 10% 45%, 25% 15%);
    animation: leafDrift2 10s ease-in-out infinite;
    opacity: 0.45;
}

.leaf-3 {
    top: 30%;
    left: 8%;
    width: 50px;
    height: 70px;
    background: #c4916e;
    clip-path: polygon(50% 0%, 78% 18%, 92% 48%, 82% 78%, 50% 100%, 18% 78%, 8% 48%, 22% 18%);
    animation: leafDrift1 9s ease-in-out infinite;
    opacity: 0.4;
}

.leaf-4 {
    top: 15%;
    right: 15%;
    width: 40px;
    height: 55px;
    background: #d4b483;
    clip-path: polygon(50% 0%, 80% 20%, 95% 50%, 80% 80%, 50% 100%, 20% 80%, 5% 50%, 20% 20%);
    animation: leafDrift2 7s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes leafDrift1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes leafDrift2 {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-10px) rotate(-4deg); opacity: 0.65; }
}

/* === INTERSTITIAL INDEX CARDS === */
.interstitial {
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(175deg, #f5f0e8, #ede4d3);
}

.index-card {
    background: #ede4d3;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent calc(1.5em - 1px),
        rgba(212, 180, 131, 0.08) calc(1.5em - 1px),
        rgba(212, 180, 131, 0.08) 1.5em
    );
    padding: 2.5rem 3rem;
    max-width: 560px;
    border-radius: 3px;
    transform: rotate(-1.5deg);
    box-shadow: 0 1px 3px rgba(59, 47, 30, 0.08);
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}

.index-card.card-tilted-right {
    transform: rotate(1.8deg);
}

.index-card.card-tilted-left {
    transform: rotate(-2.2deg);
}

.index-card.card-lifted {
    box-shadow: 0 6px 16px rgba(59, 47, 30, 0.12);
}

.index-card.card-tilted-right.card-lifted {
    transform: rotate(1.8deg) translateY(-4px);
}

.index-card.card-tilted-left.card-lifted {
    transform: rotate(-2.2deg) translateY(-4px);
}

.index-card:not(.card-tilted-right):not(.card-tilted-left).card-lifted {
    transform: rotate(-1.5deg) translateY(-4px);
}

.card-text {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: #6b5b4a;
    letter-spacing: 0.01em;
    line-height: 1.6;
    max-width: none;
}

/* === SPECIMEN PAGES === */
.specimen-page {
    position: relative;
    min-height: 100vh;
    padding: 15% 8%;
    overflow: hidden;
    background: linear-gradient(172deg, #f5f0e8, #ede4d3);
}

.specimen-grid {
    display: grid;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.grid-1 {
    grid-template-columns: 1.2fr 0.6fr;
    align-items: start;
}

.grid-2 {
    grid-template-columns: 0.8fr 1.4fr;
    align-items: start;
}

.grid-3 {
    grid-template-columns: 1.3fr 0.6fr 0.8fr;
    align-items: start;
}

.specimen-content {
    position: relative;
}

.specimen-visual {
    position: relative;
    min-height: 200px;
}

/* === WATERCOLOR WASHES PER SECTION === */
.wash-sage {
    top: 5%;
    right: -8%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(ellipse at center, rgba(143, 168, 126, 0.18), transparent 65%);
    filter: blur(55px);
}

.wash-sage-2 {
    bottom: 10%;
    left: -5%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(ellipse at center, rgba(212, 180, 131, 0.10), transparent 65%);
    filter: blur(40px);
}

.wash-rose {
    top: -5%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(ellipse at center, rgba(196, 145, 110, 0.18), transparent 65%);
    filter: blur(50px);
}

.wash-rose-2 {
    bottom: 5%;
    right: -5%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(ellipse at center, rgba(143, 168, 126, 0.12), transparent 65%);
    filter: blur(45px);
}

.wash-gold {
    top: 10%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(ellipse at center, rgba(212, 180, 131, 0.20), transparent 65%);
    filter: blur(50px);
}

.wash-gold-2 {
    bottom: -5%;
    left: 5%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(ellipse at center, rgba(196, 145, 110, 0.12), transparent 65%);
    filter: blur(45px);
}

/* === BOTANICAL BORDER === */
.botanical-border {
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 1px;
    margin: 4rem auto 0;
    background: repeating-linear-gradient(
        to right,
        rgba(196, 145, 110, 0.4) 0px,
        rgba(196, 145, 110, 0.4) 4px,
        transparent 4px,
        transparent 8px,
        rgba(196, 145, 110, 0.25) 8px,
        rgba(196, 145, 110, 0.25) 10px,
        transparent 10px,
        transparent 16px
    );
    z-index: 1;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === CLOSING SECTION === */
.closing {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-right: 10%;
    overflow: hidden;
    background: linear-gradient(170deg, #ede4d3, #f5f0e8);
}

.closing-title {
    position: relative;
    z-index: 1;
    font-size: clamp(3rem, 8vw, 7rem);
}

.closing-inscription {
    position: relative;
    z-index: 1;
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: #6b5b4a;
    margin-top: 1.5rem;
    max-width: none;
}

.wash-closing {
    bottom: -10%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(ellipse at center, rgba(143, 168, 126, 0.20), transparent 70%);
    filter: blur(50px);
}

.wash-closing-2 {
    bottom: 5%;
    left: 10%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(ellipse at center, rgba(196, 145, 110, 0.15), transparent 70%);
    filter: blur(40px);
}

.wash-closing-3 {
    bottom: 20%;
    left: -5%;
    width: 25vw;
    height: 25vw;
    background: radial-gradient(ellipse at center, rgba(212, 180, 131, 0.12), transparent 70%);
    filter: blur(35px);
}

/* === FLOATING BUTTERFLY === */
.floating-butterfly {
    position: absolute;
    z-index: 1;
    width: 40px;
    height: 30px;
    top: 45%;
    left: -5vw;
    opacity: 0.5;
    animation: butterflyFlight 20s linear infinite;
}

.floating-butterfly::before,
.floating-butterfly::after {
    content: '';
    position: absolute;
    background: #d4b483;
    border-radius: 50% 50% 50% 0;
    top: 0;
}

.floating-butterfly::before {
    width: 18px;
    height: 24px;
    left: 0;
    transform: rotate(-15deg);
    transform-origin: bottom right;
    animation: wingLeft 0.4s ease-in-out infinite alternate;
}

.floating-butterfly::after {
    width: 18px;
    height: 24px;
    right: 0;
    transform: rotate(15deg) scaleX(-1);
    transform-origin: bottom left;
    animation: wingRight 0.4s ease-in-out infinite alternate;
}

@keyframes butterflyFlight {
    0% { left: -10vw; transform: translateY(0); }
    25% { transform: translateY(-30px); }
    50% { transform: translateY(10px); }
    75% { transform: translateY(-20px); }
    100% { left: 110vw; transform: translateY(0); }
}

@keyframes wingLeft {
    0% { transform: rotate(-15deg) skewY(0deg); }
    100% { transform: rotate(-30deg) skewY(-5deg); }
}

@keyframes wingRight {
    0% { transform: rotate(15deg) scaleX(-1) skewY(0deg); }
    100% { transform: rotate(30deg) scaleX(-1) skewY(5deg); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .grid-1, .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .specimen-page {
        padding: 15% 6%;
    }

    .cover-title {
        padding-left: 6%;
        width: 90%;
    }

    .closing {
        padding-right: 6%;
        align-items: center;
        text-align: center;
    }
}
