/* ==========================================================================
   main.css — page content styles (homepage sections, cards, skill pills,
   blog table, project/post prose). Loaded after universal.css.
   ========================================================================== */

/* --- Content container ---------------------------------------------------- */
.content {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2.75rem var(--gutter) 4rem;
}

/* --- Sections ------------------------------------------------------------- */
.section { margin-bottom: 3rem; }
.section:last-child { margin-bottom: 0; }

.section__title {
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.section__head .section__title { margin-bottom: 0; }
.section__more { font-size: 0.9rem; color: var(--text-secondary); text-decoration: none; }
.section__more:hover { color: var(--accent); }

.section p { color: var(--text-secondary); margin-bottom: 0.9rem; }
.section p:last-child { margin-bottom: 0; }

/* --- Intro ---------------------------------------------------------------- */
.section--intro { margin-bottom: 3.25rem; }
.intro__name {
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}
.intro__lede {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 34rem;
}

/* --- Experience timeline (minimal) --------------------------------------- */
.timeline { list-style: none; }
.timeline__item {
    position: relative;
    padding-left: 1.4rem;
    padding-bottom: 1.4rem;
    border-left: 1px solid var(--border-strong);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
    content: "";
    position: absolute;
    left: -5px; top: 0.45rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
}
.timeline__role { font-size: 1rem; font-weight: 600; }
.timeline__meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.15rem; }

/* --- Skill pills (reused: skills section + project cards) ----------------- */
.skill-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
}

.skills-group { margin-bottom: 1.25rem; }
.skills-group:last-child { margin-bottom: 0; }
.skills-group__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

/* --- Generic lists / entries --------------------------------------------- */
.plain-list { list-style: none; }
.plain-list li { color: var(--text-secondary); margin-bottom: 0.4rem; }
.entry__title { font-size: 1rem; font-weight: 600; }
.entry__meta { color: var(--text-muted); font-size: 0.9rem; }

/* --- Project cards (reused: homepage + /projects/) ------------------------ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
}
.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.15rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.project-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.project-card__title { font-size: 1.05rem; font-weight: 600; }
.project-card__title a { text-decoration: none; color: var(--text); }
.project-card__title a:hover { color: var(--accent); }
.project-card__summary { color: var(--text-secondary); font-size: 0.92rem; }
.project-card .skill-tags { margin-top: auto; }
.project-card__links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }

/* --- Page header (index pages) ------------------------------------------- */
.page-header { margin-bottom: 2.25rem; }
.page-header__title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 0.4rem;
}
.page-header__intro { color: var(--text-secondary); }

/* --- Blog index table ----------------------------------------------------- */
.post-table { width: 100%; border-collapse: collapse; }
.post-table th {
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
}
.post-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.post-table tr:hover td { background: var(--bg-elev); }
.post-table__date { color: var(--text-muted); font-size: 0.88rem; white-space: nowrap; }
.post-table__title a { text-decoration: none; color: var(--text); font-weight: 600; }
.post-table__title a:hover { color: var(--accent); }
.post-table__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-elev-2);
    border-radius: 999px;
}

/* --- Prose (blog posts + project write-ups) ------------------------------ */
.content--prose { max-width: 42rem; }
.prose__back { margin-bottom: 1.25rem; }
.prose__back a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.prose__back a:hover { color: var(--accent); }
.prose__title {
    font-size: clamp(1.85rem, 5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: 0.6rem;
}
.prose__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
    color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem;
}
.prose__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.prose .skill-tags { margin-bottom: 1.5rem; }

.prose__body { color: var(--text-secondary); }
.prose__body > * + * { margin-top: 1.1rem; }
.prose__body h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-top: 2rem; }
.prose__body h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-top: 1.5rem; }
.prose__body ul, .prose__body ol { padding-left: 1.4rem; }
.prose__body li { margin-top: 0.35rem; }
.prose__body a { color: var(--text); }
.prose__body a:hover { color: var(--accent); }
.prose__body blockquote {
    border-left: 3px solid var(--border-strong);
    padding-left: 1rem;
    color: var(--text-muted);
    font-style: italic;
}
.prose__body code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-elev);
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
}
.prose__body pre {
    overflow-x: auto;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.5;
}
.prose__body pre code { background: none; padding: 0; font-size: inherit; }
.prose__body table { width: 100%; border-collapse: collapse; }
.prose__body th, .prose__body td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }

/* --- Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .project-card:hover { transform: none; }
}
