/* Simple, clean styling - no frameworks needed */

:root {
    --text-color: #333;
    --text-muted: #666;
    --text-light: #999;
    --link-color: #0066cc;
    --link-hover: #004499;
    --bg-color: #fafafa;
    --container-bg: #fff;
    --border-color: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-color);
    padding: 2rem 1rem;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    background: var(--container-bg);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Header */
header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

/* Portrait */
.portrait {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 5%;
    margin-bottom: 1rem;
    border: 3px solid var(--border-color);
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Section headings */
h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

section {
    margin-bottom: 2rem;
}

/* Intro section */
.intro {
    font-size: 1.1rem;
    text-align: center;
}

.intro p:first-child {
    font-size: 1.15rem;
    line-height: 1.6;
}

.credibility {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Social links in intro */
.social-links {
    list-style: none;
    margin: 1.25rem 0 0 0;
    padding: 0;
}

.social-links li {
    display: inline;
}

.social-links li:not(:last-child)::after {
    content: " · ";
    color: var(--text-light);
}

/* Section divider */
.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.project-card:hover {
    border-color: var(--link-color);
    background: #f8fafc;
}

.project-card .favicon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.project-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
}

.project-card div {
    flex: 1;
}

.project-card strong {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

.project-role {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Role/Timeline entries */
.role {
    margin-bottom: 1.75rem;
}

.role:last-child {
    margin-bottom: 0;
}

.date-range {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.role-title {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-title strong {
    font-weight: 600;
}

/* Favicon images */
.favicon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 3px;
}

/* Achievements list */
.achievements {
    margin-left: 1.25rem;
    margin-top: 0.75rem;
}

.achievements li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

/* Videos list */
.videos {
    list-style: none;
    margin-left: 0;
}

.videos li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.videos li::before {
    content: "▶";
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    color: var(--link-color);
    top: 0.35rem;
}

.video-meta {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Podcasts list */
.podcasts {
    list-style: none;
    margin-left: 0;
}

.podcasts li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.podcasts li::before {
    content: "🎙️";
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* Writing list */
.writing {
    list-style: none;
    margin-left: 0;
}

.writing li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.writing li::before {
    content: "📝";
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* Recognition list */
.recognition {
    list-style: none;
    margin-left: 0;
}

.recognition li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.recognition li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Certifications list */
.certifications {
    list-style: none;
    margin-left: 0;
}

.certifications li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.certifications li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--link-color);
    font-weight: bold;
}

/* Community list */
.community {
    list-style: none;
    margin-left: 0;
}

.community li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.community li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: var(--text-muted);
}

/* Blockquotes / Testimonials */
blockquote {
    margin: 0 0 1.25rem 0;
    padding: 1rem 1.25rem;
    background: var(--bg-color);
    border-left: 3px solid var(--border-color);
    font-style: italic;
    color: var(--text-color);
}

blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Generic lists */
ul {
    margin-left: 1.5rem;
}

ul li {
    margin-bottom: 0.5rem;
}

/* Inline link lists */
ul.links {
    list-style: none;
    margin-left: 0;
    margin-top: 0.75rem;
}

ul.links li {
    display: inline;
}

ul.links li:not(:last-child)::after {
    content: " · ";
    color: var(--text-light);
}

/* Location info */
.location {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 1rem 0.5rem;
    }

    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .intro p:first-child {
        font-size: 1.05rem;
    }

    .credibility {
        font-size: 0.95rem;
    }

    .portrait {
        width: 100px;
        height: 100px;
    }

    .podcasts li,
    .writing li {
        padding-left: 1.75rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }

    a {
        color: var(--text-color);
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--text-muted);
    }

    .social-links a[href]::after,
    .links a[href]::after {
        content: none;
    }
}
