*{
    box-sizing:border-box;
}

body{
    margin:0;
    color:#231a13;
    background:#f7f4ef;
    font-family:
        "Pretendard",
        "Noto Sans KR",
        Arial,
        sans-serif;
}

.history-page{
    width:min(1200px,calc(100% - 50px));
    margin:0 auto;
    padding:55px 0 90px;
}

.history-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:30px;
    margin-bottom:50px;
}

.history-label{
    display:block;
    margin-bottom:13px;
    color:#9b5a16;
    font-size:13px;
    font-weight:800;
    letter-spacing:2px;
}

.history-header h1{
    margin:0;
    font-size:44px;
    letter-spacing:-2px;
}

.history-header p{
    margin:15px 0 0;
    color:#73675c;
    font-size:17px;
    line-height:1.7;
}

.back-link{
    color:#743f0c;
    font-size:16px;
    font-weight:700;
    text-decoration:none;
}

.back-link:hover{
    color:#a7641f;
}

.history-timeline{
    position:relative;
    display:grid;
    gap:24px;
}

/* 연표 세로선 */
.history-timeline::before{
    content:"";
    position:absolute;
    top:30px;
    bottom:30px;
    left:31px;
    width:3px;
    background:#d0b99f;
}

.history-event{
    position:relative;
    display:grid;
    grid-template-columns:64px minmax(0,1fr);
    gap:22px;
}

.timeline-marker{
    position:relative;
    display:flex;
    justify-content:center;
    padding-top:31px;
}

.timeline-dot{
    position:relative;
    z-index:2;
    display:block;
    width:19px;
    height:19px;
    background:#9b5a16;
    border:4px solid #f7f4ef;
    border-radius:50%;
    box-shadow:0 0 0 2px #9b5a16;
}

.event-card{
    padding:26px 30px;
    background:#ffffff;
    border:1px solid #ded4c9;
    border-radius:14px;
    box-shadow:0 8px 22px rgba(72,48,26,.06);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.event-card:hover{
    transform:translateY(-4px);
    border-color:#b47a3d;
    box-shadow:0 13px 28px rgba(72,48,26,.11);
}

.event-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:12px;
}

.event-year{
    color:#9b5a16;
    font-size:19px;
    font-weight:800;
}

.event-period{
    padding:7px 12px;
    color:#68431e;
    background:#f5eadc;
    border:1px solid #dfc7aa;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
}

.event-card h2{
    margin:0 0 12px;
    color:#251b13;
    font-size:27px;
    line-height:1.4;
}

.event-card p{
    margin:0;
    color:#685b50;
    font-size:16px;
    line-height:1.8;
}

.empty-message{
    padding:60px 25px;
    color:#72665c;
    background:#ffffff;
    border:1px solid #ded4c9;
    border-radius:14px;
    text-align:center;
}

@media(max-width:700px){

    .history-page{
        width:min(100% - 30px,1200px);
        padding-top:35px;
    }

    .history-header{
        align-items:flex-start;
        flex-direction:column;
        margin-bottom:35px;
    }

    .history-header h1{
        font-size:35px;
    }

    .history-event{
        grid-template-columns:42px minmax(0,1fr);
        gap:12px;
    }

    .history-timeline::before{
        left:20px;
    }

    .event-card{
        padding:21px;
    }

    .event-heading{
        align-items:flex-start;
        flex-direction:column;
        gap:9px;
    }

    .event-card h2{
        font-size:23px;
    }

}
