/* opensource.day -- Scandinavian minimalist timeline
   Palette:
     #fafafa  Morning White (primary background)
     #faf6f0  Sunset Warm (footer gradient end)
     #f5f5f5  Cloud Light
     #e0e0e0  Horizon Line
     #b0b0b0  Midday Gray (time markers)
     #767676  Secondary text
     #2d2d2d  Ink (primary text)
     #0066cc  Commit Blue (single accent)
   Typography: Albert Sans (300 / 400 / 500 / 300 italic)
   Spacing: strict 8px grid (8, 16, 24, 32, 40, 48, ...)
*/

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

html, body {
    background: #fafafa;
    color: #2d2d2d;
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.page {
    display: block;
    width: 100%;
}

/* ----------------------------------------------------
   First Light (Hero)
   ---------------------------------------------------- */
.hero {
    background: #fafafa;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.hero-line-top {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #b0b0b0;
    letter-spacing: 0.02em;
    line-height: 1;
    padding-bottom: 24px;
}

.horizon-line {
    display: block;
    width: 200px;
    height: 1px;
    background: #e0e0e0;
    margin: 0 auto;
}

.hero-line-bottom {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #2d2d2d;
    letter-spacing: 0.02em;
    line-height: 1;
    padding-top: 24px;
}

/* ----------------------------------------------------
   Timeline
   ---------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 80px;
    padding-bottom: 80px;
    background: #fafafa;
    border-top: 1px solid #f5f5f5;
}

/* Vertical progress line that connects all time markers.
   It sits 30px from the start of the time column (which is 60px wide). */
.timeline-track {
    position: absolute;
    top: 80px;
    bottom: 80px;
    left: calc(24px + 30px);
    width: 1px;
    background: #e0e0e0;
}

.entry {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 24px;
    margin-bottom: 160px;
    position: relative;
}

.entry:last-of-type {
    margin-bottom: 0;
}

.time-col {
    position: relative;
    padding-top: 8px;
}

.time {
    display: inline-block;
    font-family: 'Albert Sans', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    color: #b0b0b0;
    line-height: 1;
    font-feature-settings: "tnum" 1, "lnum" 1;
    letter-spacing: 0.04em;
    background: #fafafa;
    padding: 4px 0;
    position: relative;
    z-index: 1;
}

/* Tiny accent dot to flag a "current/most-recent" entry */
.time-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0066cc;
    position: absolute;
    top: 13px;
    left: 38px;
    z-index: 2;
}

/* Terminus circle on the very last entry's time column */
.terminus {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fafafa;
    border: 1px solid #b0b0b0;
    position: absolute;
    top: 16px;
    left: 26px;
    z-index: 2;
}

.content-col {
    padding-top: 0;
}

.meta {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 1;
    margin-bottom: 16px;
}

.entry-title {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #2d2d2d;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.entry-title.accent {
    color: #0066cc;
}

.entry-body {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: #767676;
    max-width: 480px;
}

.entry-link {
    margin-top: 24px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.link {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1px;
}

/* ----------------------------------------------------
   Sunset Close (Footer)
   ---------------------------------------------------- */
.sunset {
    width: 100%;
    background: linear-gradient(180deg, #fafafa 0%, #faf6f0 100%);
    padding: 160px 24px 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sunset-line {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: #767676;
    letter-spacing: 0.01em;
    text-align: center;
}

/* ----------------------------------------------------
   Responsive: tighten column on small screens
   ---------------------------------------------------- */
@media (max-width: 480px) {
    .timeline {
        padding-left: 16px;
        padding-right: 16px;
    }
    .timeline-track {
        left: calc(16px + 24px);
    }
    .entry {
        grid-template-columns: 48px 1fr;
        column-gap: 16px;
        margin-bottom: 120px;
    }
    .time-dot {
        left: 32px;
    }
    .terminus {
        left: 20px;
    }
    .hero {
        min-height: 480px;
    }
    .sunset {
        padding: 120px 16px;
    }
}
