/*
 * HISTORY page styles
 *
 * history.html 전용 레이어. about.css의 섹션/타이포 문법을 그대로 이어받고,
 * 이 페이지에만 필요한 것(연도 런, 단순 목록, 각주)만 여기서 정의한다.
 * about.css와 함께 로드되므로 .about-* 클래스는 그대로 재사용한다.
 */

#history-main {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--color-ink);
    background: var(--color-bg);
}

/* 숫자로 보는 기록 -------------------------------------------------------
   페이지 최상단에서 각 섹션의 규모를 한 줄로 먼저 보여준다.
   숫자는 about.js의 [data-count-to] 카운트업이 그대로 처리한다. */

.history-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    list-style: none;
}

.history-metric {
    min-width: 0;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.history-metric-link {
    display: block;
    height: 100%;
    padding: clamp(1.5rem, 2.4vw, 2.25rem);
    color: inherit;
    text-decoration: none;
    transition: background var(--transition-smooth);
}

.history-metric-link:hover {
    background: rgba(28, 34, 37, 0.045);
}

.history-metric-value {
    display: flex;
    margin: 0;
    align-items: baseline;
    gap: 0.1rem;
    color: var(--color-ink);
    font-size: clamp(2.4rem, 4.6vw, 4.1rem);
    font-weight: 650;
    letter-spacing: -0.06em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.history-metric-unit {
    color: var(--color-signature);
    font-size: 0.34em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.history-metric-label {
    margin: 1.1rem 0 0.4rem;
    color: var(--color-ink);
    font-size: clamp(0.86rem, 1.1vw, 0.95rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.history-metric-desc {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

/* 연도 런 --------------------------------------------------------------
   왼쪽에 연도, 오른쪽에 그 해의 내용이 글처럼 이어진다.
   좁은 화면에서는 연도가 위로 올라가 한 덩어리가 된다. */

.history-run {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(1.4rem, 2.4vw, 2rem) 0;
    border-top: 1px solid var(--color-border);
}

.history-run:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.history-year {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.history-run-body {
    min-width: 0;
}

.history-run-body p {
    max-width: 78ch;
    margin: 0 0 0.9rem;
    color: var(--color-muted);
    font-size: clamp(0.95rem, 1.25vw, 1.05rem);
    line-height: 1.85;
}

.history-run-body p:last-child {
    margin-bottom: 0;
}

.history-run-body strong {
    color: var(--color-ink);
    font-weight: 700;
}

/* 그 해의 프로젝트 목록.
   한 건이 한 줄을 차지한다. 예전처럼 가운뎃점으로 이어 붙이면 어디서 끊기는지
   읽어내야 했는데, 항목 이름 자체에도 가운뎃점이 들어가서(예: 건축·도시경관)
   눈으로 구분되지 않았다. */

.history-run-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.history-run-list li {
    position: relative;
    padding: 0.62rem 0 0.62rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: clamp(0.92rem, 1.2vw, 1rem);
    line-height: 1.7;
}

.history-run-list li:first-child {
    padding-top: 0;
}

.history-run-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.history-run-list li::before {
    content: "";
    position: absolute;
    top: 1.32em;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--color-signature);
    border-radius: 50%;
    opacity: 0.75;
}

.history-run-list li:first-child::before {
    top: 0.72em;
}

.history-run-list li:hover {
    color: var(--color-ink);
}

/* 목록 ------------------------------------------------------------------ */

.history-list {
    max-width: 78ch;
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
}

.history-list li {
    position: relative;
    margin: 0 0 0.6rem;
    padding-left: 1.1rem;
    color: var(--color-muted);
    font-size: clamp(0.95rem, 1.25vw, 1.05rem);
    line-height: 1.8;
}

.history-list li::before {
    content: "";
    position: absolute;
    top: 0.85em;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--color-signature);
    border-radius: 50%;
}

.history-list li:last-child {
    margin-bottom: 0;
}

.history-list strong {
    color: var(--color-ink);
    font-weight: 700;
}

/* 소제목 ---------------------------------------------------------------- */

.history-subhead {
    margin: clamp(2.5rem, 4vw, 3.5rem) 0 1.2rem;
    color: var(--color-ink);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 640;
    letter-spacing: -0.03em;
    line-height: 1.4;
}

.history-subhead:first-child {
    margin-top: 0;
}

/* 각주 ------------------------------------------------------------------ */

.history-note {
    max-width: 78ch;
    margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: clamp(0.85rem, 1.05vw, 0.92rem);
    line-height: 1.75;
}

@media (max-width: 1100px) {
    .history-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .history-run {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.5rem;
    }

    .history-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .history-metrics {
        grid-template-columns: minmax(0, 1fr);
    }
}
