/* opensource.day - Pastoral Harvest Festival */

:root {
    --morning: #F8F0E0;
    --linen: #E8E0D0;
    --table-wood: #E8D8C0;
    --sunset: #D4A860;
    --dusk: #8A6830;
    --night: #2A2018;
    --text-dark: #3A2A1A;
    --text-light: #F8F0E0;
    --border-straw: #C4AA82;
    --botanical: #6A8A5A;
    --berry: #B87070;
    --lined: #D4C4A8;
}

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

body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--morning);
    transition: background-color 0.8s ease, color 0.8s ease;
    overflow-x: hidden;
}

/* Linen texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(60, 42, 26, 0.02) 1px, transparent 1px);
    background-size: 4px 4px;
}

/* --- DAWN --- */
#dawn {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.dawn-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 20vh;
}

.gate-svg {
    opacity: 0.8;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

.date-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dusk);
}

/* Section Dividers */
.section-divider {
    text-align: center;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.section-divider svg {
    width: 30vw;
    min-width: 200px;
}

/* --- THE COMMONS --- */
#commons {
    padding: 2rem 12vw;
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 8vh, 80px);
    position: relative;
    z-index: 1;
}

.plot-card {
    border: 1px solid var(--border-straw);
    padding: 2rem 2.5rem;
    max-width: 520px;
    position: relative;
    background: rgba(248, 240, 224, 0.6);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.plot-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.align-left {
    margin-right: auto;
}

.align-right {
    margin-left: auto;
}

.botanical {
    position: absolute;
    width: 30px;
    height: 30px;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s ease;
}

.botanical.drawn {
    stroke-dashoffset: 0;
}

.top-right {
    top: 12px;
    right: 12px;
}

.top-left {
    top: 12px;
    left: 12px;
}

.card-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--botanical);
    display: block;
    margin-bottom: 0.5em;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 0.6em;
}

.card-body {
    color: var(--text-dark);
    opacity: 0.85;
}

/* --- THE TABLE --- */
#the-table {
    padding: 6rem 12vw;
    background-color: var(--table-wood);
    background-image: repeating-linear-gradient(
        transparent,
        transparent 27px,
        #D4C4A8 27px,
        #D4C4A8 28px
    );
    position: relative;
    z-index: 1;
}

.table-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--text-dark);
    margin-bottom: 2em;
    text-align: center;
}

.table-note {
    max-width: 520px;
    margin: 0 auto clamp(40px, 6vh, 60px);
    background: rgba(232, 216, 192, 0.8);
    padding: 0.3em 0;
}

.table-note p {
    font-family: 'Lora', serif;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.8;
}

/* --- EVENING --- */
#evening {
    min-height: 100vh;
    padding: 10rem 16vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.evening-content {
    max-width: 480px;
}

.evening-content p {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: clamp(30px, 5vh, 50px);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s ease, transform 1s ease;
}

.evening-content p.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- NIGHTFALL --- */
#nightfall {
    min-height: 60vh;
    background: var(--night);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.night-star {
    margin-bottom: 3rem;
    animation: star-pulse 4s ease-in-out infinite;
}

@keyframes star-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.night-text {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-light);
    line-height: 2;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    #commons {
        padding: 2rem 6vw;
    }

    #the-table {
        padding: 4rem 6vw;
    }

    #evening {
        padding: 6rem 6vw;
    }

    .plot-card {
        max-width: 100%;
    }
}
