/* reasr.one - The Monochrome Page */

:root {
    --ground: #FAFAFA;
    --ink: #1A1A1A;
    --charcoal: #3A3A3A;
    --quiet-grey: #BFBFBF;
}

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

html, body {
    background: var(--ground);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.78;
    min-height: 100vh;
    position: relative;
}

/* Domain label - Fira Code, 12px, 40% opacity */
.domain-label {
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 10;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 400;
    color: var(--ink);
    opacity: 0.4;
    letter-spacing: 0.02em;
    mix-blend-mode: multiply;
}

/* Ghost numerals - fixed position, right edge, 5% opacity */
.ghost-numerals {
    position: fixed;
    top: 50%;
    right: 5vw;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    width: 0;
    height: 0;
}

.ghost-numeral {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 280px;
    line-height: 1;
    color: var(--ink);
    opacity: 0;
    transition: opacity 1200ms ease;
    will-change: opacity;
    user-select: none;
}

.ghost-numeral.is-active {
    opacity: 0.05;
}

/* Single column - max-width 720px, centered */
.column {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

/* The vast vertical voids */
.statement {
    margin-top: 50vh;
    margin-bottom: 50vh;
    opacity: 0;
    transition: opacity 1800ms ease;
    will-change: opacity;
}

.statement:first-of-type {
    margin-top: 35vh;
}

.statement:last-of-type {
    margin-bottom: 35vh;
}

.statement.is-revealed {
    opacity: 1;
}

/* Thesis - Playfair Display 900, monumental */
.thesis {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(48px, 12vw, 144px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.6em;
    text-align: left;
}

/* Elaboration - Libre Baskerville body */
.elaboration {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.78;
    color: var(--ink);
    max-width: 36em;
    margin-bottom: 4em;
    text-align: left;
}

.elaboration em {
    font-style: italic;
    color: var(--charcoal);
}

.elaboration strong {
    font-weight: 700;
    color: var(--ink);
}

/* Horizontal rule - drawn from center */
.rule {
    border: none;
    height: 1px;
    background-color: var(--ink);
    opacity: 0.2;
    width: 0;
    max-width: 120px;
    margin: 0 auto 0 0;
    transition: width 1000ms ease;
    will-change: width;
}

.statement.is-revealed .rule {
    width: 120px;
}

/* Progress indicator - the single dot */
.progress-indicator {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.progress-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--quiet-grey);
    opacity: 0.6;
    transition: transform 600ms ease, opacity 600ms ease;
    will-change: transform, opacity;
}

/* Responsive - mobile adjustments */
@media (max-width: 640px) {
    body {
        font-size: 17px;
    }

    .domain-label {
        top: 20px;
        left: 20px;
    }

    .column {
        padding: 0 24px;
        max-width: 100%;
    }

    .statement {
        margin-top: 35vh;
        margin-bottom: 35vh;
    }

    .statement:first-of-type {
        margin-top: 28vh;
    }

    .thesis {
        font-size: clamp(48px, 16vw, 72px);
    }

    .elaboration {
        font-size: 18px;
        margin-bottom: 3em;
    }

    .ghost-numeral {
        font-size: 180px;
    }

    .ghost-numerals {
        right: 2vw;
    }

    .progress-indicator {
        bottom: 20px;
    }
}

@media (max-width: 400px) {
    .thesis {
        font-size: 52px;
    }

    .ghost-numeral {
        font-size: 150px;
    }
}
