/* lunge.dev — Dark academia Bauhaus lecture hall */
/* Colors: #0F0F0F, #141414, #1A1A1A, #2A2A2A, #444444, #888888, #999999, #D8D0C4, #E8E8E8 */
/* Fonts: Josefin Sans, Cormorant Garamond, IBM Plex Mono, Inter */

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

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #0F0F0F;
    color: #D8D0C4;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Lectern */
.lectern {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #141414;
    position: relative;
    overflow: hidden;
}

.spine-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 1px;
    width: 0;
    background-color: #444444;
    transition: width 0.8s ease;
}

.spine-line.active {
    width: 80vw;
}

.lectern-above,
.lectern-below {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.lectern-above.visible,
.lectern-below.visible {
    opacity: 1;
}

.lectern-above {
    margin-bottom: 40px;
}

.lectern-below {
    margin-top: 40px;
}

.site-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #E8E8E8;
}

.site-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: #444444;
    text-transform: uppercase;
    margin-top: 8px;
}

.epigraph {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: #999999;
    max-width: 40ch;
    line-height: 1.6;
}

/* Gatherings */
.gathering {
    padding: 80px 40px;
    position: relative;
}

.gathering-light {
    background-color: #D8D0C4;
    color: #1A1A1A;
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
    margin: -10px 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 28px,
        rgba(136, 136, 136, 0.08) 28px,
        rgba(136, 136, 136, 0.08) 29px
    );
}

.gathering-dark {
    background-color: #1A1A1A;
    color: #D8D0C4;
    clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
    margin: -10px 0;
}

.gathering-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.section-mark {
    text-align: center;
    margin-bottom: 30px;
}

/* Typography */
.heading-geometric {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.gathering-light .heading-geometric {
    color: #1A1A1A;
}

.gathering-dark .heading-geometric {
    color: #E8E8E8;
}

.body-serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 16px;
}

.gathering-light .body-serif {
    color: #2A2A2A;
}

.gathering-dark .body-serif {
    color: #999999;
}

/* Margin Notes */
.margin-note {
    text-align: left;
    padding: 16px 0;
    border-top: 1px solid #2A2A2A;
}

.margin-note:last-child {
    border-bottom: 1px solid #2A2A2A;
}

.margin-reference {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: #888888;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

/* Folio */
.folio-number {
    margin-top: 30px;
}

.folio-mark {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #888888;
}

/* Colophon */
.colophon {
    text-align: center;
    padding: 30px 0;
}

.colophon-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #888888;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.colophon-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #999999;
    max-width: 40ch;
    margin: 0 auto;
}

.colophon-date {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: #444444;
    display: block;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .gathering {
        padding: 60px 24px;
        clip-path: none !important;
    }

    .gathering-content {
        max-width: 100%;
    }
}
