/* mybadge.page - Botanical Specimen Album */

:root {
    --parchment: #faf5eb;
    --bark-brown: #2c2416;
    --vine-green: #6b8f71;
    --warm-umber: #7a6a52;
    --pressed-rose: #e8a0b4;
    --dried-gold: #f0d080;
    --teal-wash: #88d4c8;
    --terracotta: #e07860;
    --font-display: 'Fraunces', serif;
    --font-body: 'Work Sans', sans-serif;
    --font-hand: 'Caveat', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--parchment);
    color: var(--bark-brown);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.65;
}

/* ============================================
   Vine Spine (decorative vertical vine)
   ============================================ */

.vine-spine {
    position: fixed;
    left: 50%;
    top: 0;
    width: 60px;
    height: 100%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

/* ============================================
   Section 1: Hero - The Cover Opens
   ============================================ */

.section-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.aurora-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(136, 212, 200, 0.2) 0%, rgba(232, 160, 180, 0.15) 40%, rgba(240, 208, 128, 0.1) 70%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.page-sheet {
    position: relative;
    max-width: 1100px;
    width: 100%;
    background: var(--parchment);
    border-radius: 2px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 80px 60px;
    z-index: 1;
    overflow: hidden;
}

.fern-frond {
    position: absolute;
    top: -20px;
    left: -40px;
    width: 160px;
    height: auto;
    opacity: 0.4;
    transform: rotate(-15deg);
}

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

.site-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 600;
    color: var(--bark-brown);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.3s forwards;
}

.site-subtitle {
    font-family: var(--font-hand);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--warm-umber);
    opacity: 0;
    animation: fadeUp 1s ease-out 0.7s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tape Strips */
.tape-strip {
    position: absolute;
    width: 80px;
    height: 24px;
    background: rgba(240, 208, 128, 0.35);
    border: 1px solid rgba(240, 208, 128, 0.2);
    z-index: 3;
}

.tape-top-left {
    top: 20px;
    left: 30px;
    transform: rotate(-8deg);
}

.tape-top-right {
    top: 20px;
    right: 30px;
    transform: rotate(6deg);
}

/* ============================================
   Section 2: Badge Garden
   ============================================ */

.section-garden {
    padding: 80px 5% 100px;
    position: relative;
    z-index: 1;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 600;
    color: var(--bark-brown);
    text-align: center;
    margin-bottom: 60px;
}

.garden-field {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Badge Card */
.badge-card {
    position: relative;
    width: 280px;
    transform: rotate(var(--rot, 0deg));
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.badge-card.visible {
    opacity: 1;
}

.badge-card:hover {
    transform: rotate(0deg) translateY(-4px);
    z-index: 2;
}

.pin {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #d4a050, #8a6830);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

.card-inner {
    background: white;
    border: 1px solid rgba(122, 106, 82, 0.12);
    border-radius: 3px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.badge-card:hover .card-inner {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: block;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bark-brown);
    margin-bottom: 8px;
}

.card-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--warm-umber);
    line-height: 1.55;
    margin-bottom: 12px;
}

.card-date {
    font-family: var(--font-hand);
    font-size: 15px;
    color: var(--vine-green);
}

/* ============================================
   Section 3: Collection Notes
   ============================================ */

.section-notes {
    padding: 60px 5% 80px;
    position: relative;
    z-index: 1;
}

.notes-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.note-card {
    position: relative;
    background: white;
    border: 1px solid rgba(122, 106, 82, 0.1);
    border-radius: 2px;
    padding: 32px 28px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transform: rotate(-0.5deg);
}

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

.note-tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 60px;
    height: 18px;
    background: rgba(136, 212, 200, 0.35);
    border: 1px solid rgba(136, 212, 200, 0.2);
}

.note-text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--bark-brown);
    line-height: 1.7;
    margin-bottom: 16px;
}

.note-attribution {
    display: block;
    text-align: right;
    color: var(--warm-umber);
    font-size: 14px;
}

.handwriting {
    font-family: var(--font-hand);
    font-size: 17px;
}

/* ============================================
   Section 4: Footer
   ============================================ */

.section-footer {
    padding: 40px 5% 50px;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(107, 143, 113, 0.15);
}

.root-illustration {
    width: 240px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    opacity: 0.5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-brand {
    font-size: 22px;
    color: var(--vine-green);
}

.footer-note {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--warm-umber);
    letter-spacing: 0.04em;
}

/* ============================================
   Torn Edge Effect (pseudo-element)
   ============================================ */

.section-garden::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 8px,
        var(--parchment) 8px,
        var(--parchment) 10px
    );
    opacity: 0.5;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .page-sheet {
        padding: 50px 30px;
    }

    .garden-field {
        gap: 20px;
    }

    .badge-card {
        width: 260px;
    }

    .fern-frond {
        width: 100px;
    }

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

@media (max-width: 480px) {
    .page-sheet {
        padding: 40px 20px;
    }

    .badge-card {
        width: 100%;
        max-width: 300px;
    }

    .tape-strip {
        display: none;
    }
}
