:root {
    --background: #1e1e1e;
    --text-color: #d4d4d4;
    --text-color-dim: #858585;
    --primary-color: #4ec9b0;
    --orange: #ce9178;
    --line: #3c3c3c;
    --book-bg: #2d2d30;
    --book-border: #3e3e42;
}

* { box-sizing: border-box; }

body {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 20px;
    color: var(--text-color);
    background-color: var(--background);
    margin: 0;
    padding: 40px 24px 80px;
    overflow-x: hidden;
}

h1 {
    font-family: "Cinzel", serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin: 0;
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--primary-color);
}

.title h4 {
    font-size: 1.1rem;
    margin: 6px 0 40px 0;
    font-weight: 400;
    color: var(--text-color-dim);
}

.title {
    max-width: 860px;
    margin: 0 auto;
}

b { margin: 0; padding: 0; }

.credits {
    display: block;
    text-align: center;
    color: var(--text-color-dim);
    margin-top: 60px;
    font-style: italic;
}

.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 36px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px;
    width: 4px;
    background-color: var(--line);
    border-radius: 2px;
}

.age {
    margin: 44px 0 20px -36px;
    text-align: center;
}
.age h4 {
    font-family: "Cinzel", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color-dim);
    margin: 0;
}

.step {
    position: relative;
    padding: 14px 0 14px 8px;
}

.point {
    position: absolute;
    left: -36px;
    top: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(78, 201, 176, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.point-icon { display: none; }
.point.muted {
    background-color: var(--book-bg);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.03);
}

.date-label {
    display: block;
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.label {
    font-weight: bold;
    line-height: 1.35;
    color: var(--text-color);
}

.prophecy-label {
    font-weight: bold;
    color: var(--text-color);
}

.sublabel {
    margin-top: 6px;
    line-height: 1.35;
    opacity: 0.65;
}

.books {
    margin-top: 16px;
    padding-left: 14px;
    border-left: 2px solid var(--book-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prophecy {
    flex-direction: column;
    gap: 4px !important;
}

.book {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.book-marker {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--book-bg);
    border: 1.5px solid var(--book-border);
    transform: translateY(-1px);
}

.book-date {
    font-family: "Cinzel", serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--text-color-dim);
    text-align: left;
}

.author-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--orange);
    line-height: 1.3;
}

@media screen and (max-width: 768px) {
    body { font-size: 18px; padding: 24px 16px 60px; }
    h1 { font-size: 1.7rem; padding-bottom: 20;}
    .title h4 { font-size: 0.95rem; margin-bottom: 28px; }

    .book {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .book-date {
        flex: none;
        text-align: left;
        order: 2;
    }
    .author-name { order: 1; }
    .book-marker { display: none; }
    .books { gap: 14px; }
}