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

html {
    font-size: 18px;
    line-height: 1.75;
    scroll-behavior: smooth;
}

body {
    background-color: #FAFBFE;
    color: #3E424D;
    font-family: 'Zilla Slab', serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-column {
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* Header */
.site-header {
    margin-bottom: 56px;
}

.ridgeline-container {
    margin-bottom: 28px;
    overflow: hidden;
}

.ridgeline-svg {
    width: 100%;
    height: 80px;
    display: block;
}

.ridgeline-path,
.ridgeline-path-2 {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.site-title {
    font-family: 'Zilla Slab', serif;
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1.3;
    color: #2A2D35;
    margin-bottom: 14px;
}

.thesis {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #8E95A5;
    max-width: 520px;
}

/* Propositions */
.proposition {
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 450ms ease-out, transform 450ms ease-out;
}

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

.prop-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid #C5CBE0;
    padding-bottom: 8px;
}

.prop-number {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.78rem;
    color: #8E95A5;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.prop-title {
    font-family: 'Zilla Slab', serif;
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #2A2D35;
}

.prop-body p {
    margin-bottom: 14px;
    color: #3E424D;
}

/* Inline Visualizations */
.inline-viz {
    max-width: 280px;
    margin: 20px auto;
}

.chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.bar {
    transition: opacity 300ms ease;
}

.bar-primary {
    fill: #C5CBE0;
}

.bar-secondary {
    fill: #E8D8E8;
}

.bar-tertiary {
    fill: #D4E5D0;
}

.bar-rose {
    fill: #E8D8E8;
}

.dot-primary {
    fill: #C5CBE0;
}

.dot-rose {
    fill: #E8D8E8;
}

.line-graph {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 1.2s ease-out;
}

.proposition.visible .line-graph {
    stroke-dashoffset: 0;
}

.confidence-arc {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.proposition.visible .confidence-arc {
    stroke-dashoffset: 0;
}

.gauge-label {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    fill: #2A2D35;
    font-weight: 700;
}

/* Marginalia */
.marginalia {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #8E95A5;
    border-left: 2px solid #C5CBE0;
    padding-left: 12px;
    margin-top: 8px;
    margin-bottom: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 400ms ease-out 200ms, transform 400ms ease-out 200ms;
}

.proposition.visible .marginalia {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.site-footer {
    margin-top: 56px;
    padding-top: 28px;
}

.footer-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #C5CBE0, transparent);
    margin-bottom: 14px;
}

.footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: #8E95A5;
    text-align: center;
}

/* Hover states for bars */
.bar:hover {
    opacity: 0.75;
}

.dot:hover {
    r: 6;
}

/* Additional palette colors: #6B7280, #F0EDF5 */
.prop-header {
    background-color: #F0EDF5;
    border-radius: 4px 4px 0 0;
    padding: 8px 12px;
}

.inline-viz {
    border: 1px solid #6B7280;
    border-radius: 4px;
    padding: 8px;
}

/* Responsive */
@media (max-width: 680px) {
    .page-column {
        padding: 32px 16px 56px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .prop-title {
        font-size: 1.15rem;
    }
}
