/* Screen presentation for the generated CV Markdown. */

.cv-page {
    --cv-content-width: 56rem;
    --cv-gutter: 1.25rem;
    --cv-surface: #ffffff;
    --cv-text: #374151;
    --cv-muted: #4b5563;
    --cv-accent: #316d81;
    --cv-rule: #d1d5db;
    padding-bottom: 4rem;
}

html.dark .cv-page {
    --cv-surface: rgb(52, 58, 64);
    --cv-text: #e5e7eb;
    --cv-muted: #d1d5db;
    --cv-accent: #94c8d8;
    --cv-rule: rgb(73, 80, 87);
}

/* design.css alternates direct main children on other pages. The CV is one document. */
.cv-page > * {
    background-color: transparent;
}

html.dark .cv-page > * {
    background-color: transparent;
}

.cv-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 0 auto;
    max-width: var(--cv-content-width);
    padding: 2rem var(--cv-gutter) 1rem;
}

.cv-action {
    align-items: center;
    border: 2px solid var(--cv-accent);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
}

.cv-action-primary {
    background: var(--cv-accent);
    color: var(--cv-surface);
}

html.dark .cv-action-primary {
    color: #0f2a35;
}

.cv-action:hover {
    opacity: 0.88;
}

.cv-content {
    background: var(--cv-surface);
    box-sizing: border-box;
    color: var(--cv-text);
    margin: 0 auto;
    max-width: var(--cv-content-width);
    padding: 2.75rem var(--cv-gutter) 3.5rem;
    width: 100%;
}

.cv-content > h1 {
    color: inherit;
    font-size: clamp(2.25rem, 8vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    text-align: center;
}

.cv-content > h1 + p {
    color: var(--cv-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 1rem auto 0;
    max-width: 48rem;
    text-align: center;
}

.cv-content h2 {
    border-bottom: 2px solid var(--cv-accent);
    color: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.5rem;
}

.cv-content h3 {
    color: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 2rem 0 0.75rem;
}

.cv-content p,
.cv-content li {
    font-size: 1rem;
    line-height: 1.65;
}

.cv-content p {
    margin: 0.9rem 0 0;
}

.cv-content ul {
    list-style: disc;
    margin: 0;
    padding-left: 1.4rem;
}

.cv-content li + li {
    margin-top: 0.6rem;
}

.cv-content a {
    color: var(--cv-accent);
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

@media (min-width: 640px) {
    .cv-page {
        --cv-gutter: 2rem;
    }

    .cv-content {
        border: 1px solid var(--cv-rule);
        border-radius: 0.75rem;
        padding-bottom: 4rem;
        padding-top: 3.5rem;
    }
}

