p {
    text-align: justify;
    hyphens: auto;
}

/* layout de sección: cabecera lateral + cuerpo */
.cols {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 66px;
    align-items: start;
}

.col-head {
    position: sticky;
    top: 108px;
}

/* numeración automática con counter */
.sec-num {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ember);
    letter-spacing: .05em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sec-num::before {
    content: counter(section, decimal-leading-zero) " — ";
}

.sec-num::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
    max-width: 90px;
}

.sec-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.04;
    letter-spacing: -.02em;
    margin-bottom: 22px;
}

.sec-title em {
    font-style: italic;
    color: var(--ember-soft);
}

.highlight {
    color: var(--paper);
    font-weight: 400;
}

.margin-note {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    max-width: 30ch;
}

/* footer: enlaces de la home (GitHub, LinkedIn, Trayectoria) */
.foot-links {
    display: flex;
    gap: 22px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
}

.foot-links a {
    transition: color .25s
}

.foot-links a:hover {
    color: var(--paper)
}

@media(max-width:880px) {
    .cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .col-head {
        position: static
    }

    .margin-note {
        max-width: none
    }
}