﻿:root {
    --bg: #101B2D;
    --bg-alt: #16233A;
    --paper: #F5F0E6;
    --accent: #E8A33D;
    --accent-2: #4FA8A0;
    --text-dark: #1C1F26;
    --text-light: #F5F0E6;
    --muted: #8B93A7;
    --line: rgba(245,240,230,0.16);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text-light);
    font-family: 'Inter',sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .stamp, .eyebrow {
    font-family: 'Oswald',sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---------- HERO ---------- */
.hero {
    padding: 4.5rem 1rem 3rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(232,163,61,0.10), transparent 60%), var(--bg);
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .25em;
    margin-bottom: .75rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--text-light);
}

.hero p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Start / End bookend bar */
.bounds {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

    .bounds .pill {
        display: flex;
        align-items: center;
        gap: .5rem;
        background: var(--bg-alt);
        border: 1px solid var(--line);
        border-radius: 100px;
        padding: .5rem 1.1rem;
        font-size: .85rem;
        color: var(--text-light);
    }

        .bounds .pill .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

    .bounds .dot.start {
        background: var(--accent-2);
    }

    .bounds .dot.end {
        background: var(--accent);
    }

    .bounds .arrow {
        color: var(--muted);
        font-size: 1.1rem;
    }

/* ---------- TIMELINE ---------- */
.timeline-section {
    padding: 3.5rem 0 5rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2.4rem;
}

    /* spine */
    .timeline::before {
        content: "";
        position: absolute;
        left: 11px;
        top: 6px;
        bottom: 6px;
        width: 2px;
        background: linear-gradient(to bottom, var(--accent-2), var(--line) 6%, var(--line) 94%, var(--accent));
    }

.t-item {
    position: relative;
    padding-bottom: 2.75rem;
}

    .t-item:last-child {
        padding-bottom: 0;
    }

/* node */
.t-node {
    position: absolute;
    left: -2.4rem;
    top: .35rem;
    width: 24px;
    height: 24px;
    transform: rotate(45deg);
    background: var(--bg);
    border: 2px solid var(--accent);
    z-index: 2;
}

.t-item.is-start .t-node,
.t-item.is-end .t-node {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(232,163,61,0.18);
}

.t-item.is-start .t-node {
    background: var(--accent-2);
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(79,168,160,0.18);
}

/* date stamp */
.stamp {
    display: inline-block;
    background: var(--accent);
    color: var(--text-dark);
    font-weight: 700;
    font-size: .85rem;
    padding: .3rem .7rem;
    border-radius: 3px;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.25);
    margin-bottom: .6rem;
}

.t-item.is-start .stamp {
    background: var(--accent-2);
}

.t-item.is-end .stamp {
    background: var(--accent);
}

.t-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
}

    .t-card h3 {
        font-size: 1.05rem;
        font-weight: 600;
        letter-spacing: .01em;
        text-transform: none;
        color: var(--text-light);
        margin-bottom: .4rem;
    }

    .t-card p {
        color: var(--muted);
        font-size: .92rem;
        line-height: 1.55;
        margin-bottom: 0;
    }

.t-item.is-start .badge-tag {
    background: var(--accent-2);
    color: var(--bg);
}

.t-item.is-end .badge-tag {
    background: var(--accent);
    color: var(--bg);
}

/* ---------- Responsive tweaks ---------- */
@media (min-width:768px) {
    .timeline {
        padding-left: 3rem;
    }

        .timeline::before {
            left: 15px;
        }

    .t-node {
        left: -3rem;
        width: 30px;
        height: 30px;
    }

    .stamp {
        font-size: .95rem;
    }
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted);
    font-size: .8rem;
    border-top: 1px solid var(--line);
}

/* ---------- HERO IMAGE ---------- */
.hero-img-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
    padding: 0 1rem;    
}

.hero-img {
    height: 50%;
    max-height: 350px;
    min-height: 150px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
    background-color: white;
}

    .hero-img:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 36px rgba(0,0,0,0.45);
    }

/* Lightbox modal */
#imgModal .modal-dialog {
    max-width: min(90vw, 1100px);
    display: flex;
    align-items: center;
    min-height: calc(100% - 2rem);
}

#imgModal .modal-content {
    background: transparent;
    border: none;
}

#imgModal img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

#imgModal .btn-close {
    filter: invert(1);
    position: absolute;
    top: -2.5rem;
    right: 0;
    opacity: .85;
}
