:root {
    --vellum: #f0e6d0;
    --vellum-warm: #f5e8c8;
    --ink: #4a3828;
    --ink-display: #3a2818;
    --rubric: #a0382a;
    --gold: #c4a050;
    --vine: #4a6a3a;
    --marginalia: #8a7a68;
    --colophon: #7a6a5a;
}

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

body {
    background-color: var(--vellum);
    color: var(--ink);
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.95;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* Vellum texture: ruled lines */
.vellum {
    position: relative;
    min-height: 300vh;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 31.5px,
        rgba(160,140,110,0.08) 31.5px,
        rgba(160,140,110,0.08) 32px
    );
}

/* Noise texture overlay */
.vellum::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* Marginalia */
.marginalia {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* Title area */
.title-area {
    position: absolute;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.rubric-line {
    border: none;
    height: 1px;
    background: var(--rubric);
    max-width: 200px;
    margin: 12px auto;
}

.domain-title {
    font-family: 'Uncial Antiqua', cursive;
    font-weight: 400;
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: 0.08em;
    color: var(--ink-display);
}

/* Stations */
.station {
    position: absolute;
    left: var(--station-x);
    top: var(--station-y);
    max-width: var(--station-width);
    z-index: 2;
}

.station-label {
    display: block;
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rubric);
    margin-bottom: 12px;
}

.station-label-gold {
    color: var(--gold);
}

.station-text {
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 16px;
}

.compass-rose {
    display: block;
    margin-bottom: 16px;
}

.waypoint-medallion {
    margin-top: 12px;
}

/* Bridge line */
.bridge-line {
    width: 120px;
    height: 1px;
    background-color: #8a6a4a;
    margin: 12px 0;
}

/* Gold radiance */
.gold-radiance {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle 200px, rgba(196,160,80,0.06) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s ease;
}

.gold-radiance.visible {
    opacity: 1;
}

/* Station 4 warm background */
.station-4 {
    background-color: rgba(245, 232, 200, 0.4);
    padding: 20px;
}

/* Vine illustration */
.vine-illustration {
    z-index: 1;
    pointer-events: none;
}

/* Colophon */
.colophon {
    max-width: 300px;
    text-align: center;
    z-index: 2;
}

.colophon-header {
    display: block;
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rubric);
    margin-bottom: 8px;
}

.colophon-text {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--colophon);
    line-height: 1.8;
}

/* Mobile */
@media (max-width: 768px) {
    .station {
        left: 10% !important;
        max-width: 80vw !important;
    }

    .marginalia {
        display: none;
    }

    .vine-illustration {
        display: none;
    }

    .vellum {
        min-height: 350vh;
    }
}
