/* Palette: #f4efe4 #7a7263 #c9889a #5b7a5e #d1c7b4 #2c2416 #c4913a #3b2f20 */
/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4efe4;
    color: #3b2f20;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.85;
    overflow-x: hidden;
}

/* Paper-aged texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(ellipse at 23% 40%, rgba(196,145,58,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 78% 65%, rgba(201,136,154,0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 55% 20%, rgba(196,145,58,0.04) 0%, transparent 45%),
        radial-gradient(ellipse at 12% 80%, rgba(201,136,154,0.03) 0%, transparent 35%),
        radial-gradient(ellipse at 90% 15%, rgba(196,145,58,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 90%, rgba(209,199,180,0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 65% 50%, rgba(196,145,58,0.03) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 60%, rgba(201,136,154,0.025) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 85%, rgba(196,145,58,0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 5% 10%, rgba(209,199,180,0.05) 0%, transparent 50%);
}

/* === Canvas === */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* === Typography === */
.logotype {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3b2f20;
    transform: rotate(-2deg);
    margin-left: -2vw;
}

.caveat {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    color: #7a7263;
}

.annotation {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.section-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    color: #3b2f20;
}

/* === Drop Cap === */
.drop-cap::first-letter {
    font-size: 4em;
    float: left;
    line-height: 0.8;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: #5b7a5e;
    font-weight: 700;
    text-shadow: 2px 2px 0 rgba(201,136,154,0.3);
}

/* === Sections === */
.section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    z-index: 2;
}

.section__inner {
    position: relative;
    padding: 8vh 8vw;
    max-width: 1200px;
    margin: 0 auto;
}

/* Canopy */
.section--canopy {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    background: #f4efe4;
}

.section--canopy .section__inner {
    padding-top: 20vh;
    padding-bottom: 20vh;
}

.manifesto {
    max-width: 38em;
    margin-top: 2rem;
    font-style: italic;
    min-height: 3.7em;
}

.manifesto .cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #c4913a;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.constellation {
    position: absolute;
    width: 120px;
    height: 80px;
    opacity: 0.6;
}

.constellation--canopy {
    bottom: 12%;
    right: 10%;
}

.constellation--workshop {
    bottom: 8%;
    left: 5%;
    width: 100px;
    height: 60px;
}

/* Workshop */
.section--workshop {
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    margin-top: -8vh;
    background: #f4efe4;
    padding-top: 4vh;
}

.section--workshop .section__inner {
    padding-top: 12vh;
    padding-bottom: 12vh;
}

.manuscript-entry {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 42em;
}

.manuscript-entry--left {
    margin-right: auto;
}

.manuscript-entry--right {
    margin-left: auto;
    flex-direction: row-reverse;
}

.manuscript-entry__content {
    flex: 1;
}

.game-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 0.5rem;
    color: #3b2f20;
}

.game-title em {
    font-style: italic;
}

.manuscript-entry p {
    max-width: 38em;
    margin-bottom: 0.5rem;
}

.pressed-flower {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Circle */
.section--circle {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 85%);
    margin-top: -8vh;
    background: #f4efe4;
}

.section--circle .section__inner {
    padding-top: 16vh;
    padding-bottom: 16vh;
}

.circle-entry {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 38em;
}

.circle-entry:nth-child(odd) {
    margin-left: 2vw;
}

.circle-entry:nth-child(even) {
    margin-left: 8vw;
}

.motif-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

/* Glade */
.section--glade {
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    margin-top: -8vh;
    background: #2c2416;
    color: #d1c7b4;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section--glade .section__inner {
    text-align: center;
    padding-top: 16vh;
    padding-bottom: 8vh;
}

.glade-text {
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    color: #d1c7b4;
}

.glade-email {
    display: inline-block;
    position: relative;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #c4913a;
    text-decoration: none;
}

.glade-email .underline-svg {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 8px;
}

.glade-email .underline-svg path {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    transition: stroke-dashoffset 0.4s ease;
}

.glade-email:hover .underline-svg path {
    stroke-dashoffset: 0;
}

.glade-sign {
    display: block;
    margin-top: 2rem;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: #7a7263;
}

/* === Links === */
a {
    color: #5b7a5e;
    text-decoration: none;
}

a:hover {
    color: #c4913a;
}

/* === Responsive === */
@media (max-width: 768px) {
    .section__inner {
        padding: 6vh 5vw;
    }

    .manuscript-entry {
        flex-direction: column;
        gap: 1rem;
    }

    .manuscript-entry--right {
        flex-direction: column;
    }

    .circle-entry:nth-child(even) {
        margin-left: 2vw;
    }

    .constellation {
        display: none;
    }
}
