/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #f6f8f5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* === Skip Link === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    text-decoration: none;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
}

/* === Layout === */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 640px;
}

/* === Header === */
.site-header {
    padding: 3rem 0 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a1a2e;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: #4a7c6f;
}

/* Hero photo on homepage */
.home .hero-photo {
    margin-bottom: 1rem;
}

.home .hero-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

/* Navigation */
.main-nav {
    margin-top: 0.25rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.25rem;
}

.nav-list a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: #4a7c6f;
}

/* === Hero (Homepage) === */
.hero-minimal {
    flex: 1;
    padding: 1rem 0 4rem;
}

.hero-minimal h1 {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.45;
    color: #1a1a2e;
    margin-bottom: 2rem;
}

.hero-minimal h1 .accent-link {
    color: #4a7c6f;
    text-decoration: none;
}

.hero-minimal h1 .accent-link:hover {
    text-decoration: underline;
}

.hero-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

/* === Page Content === */
.page-content {
    flex: 1;
    padding: 1rem 0 4rem;
}

.page-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a2e;
    margin-bottom: 2rem;
}

/* === Prose Styles === */
.prose {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose p.lead {
    font-size: 1.1rem;
    color: #444;
}

.prose h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.prose a {
    color: #4a7c6f;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.prose a.btn-primary {
    color: #fff;
}

.prose a.btn-primary:hover {
    color: #fff;
    text-decoration: none;
}

.prose ul {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: 0.5rem;
    color: #444;
}

/* === Content Photo === */
.content-photo {
    margin: 2rem 0;
}

.content-photo img {
    width: 100%;
    max-width: 480px;
    border-radius: 6px;
    display: block;
}

.content-photo figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* === Experience List === */
.experience-list {
    margin-top: 1.5rem;
}

.experience-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dfe8e2;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.experience-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.experience-item ul {
    padding-left: 1.25rem;
    margin: 0;
}

.experience-item li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

/* === Credentials Grid === */
.credentials-grid {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
}

.credential-block h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.credential-block p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.25rem;
}

.credential-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credential-block li {
    font-size: 0.95rem;
    padding: 0.25rem 0;
    color: #444;
}

/* === Audience List (Work page) === */
.audience-list {
    margin-top: 1rem;
}

.audience-item {
    margin-bottom: 1.5rem;
}

.audience-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.audience-item p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* === Services List (Work page) === */
.services-list {
    margin-top: 1rem;
}

.service-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dfe8e2;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.service-item > p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1rem;
}

.proof-block {
    background: #f0f4f2;
    border-radius: 4px;
    padding: 0.875rem 1rem;
    border-left: 3px solid #4a7c6f;
}

.proof-block p {
    font-size: 0.875rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* === Principles List (Work page) === */
.principles-list {
    margin-top: 1rem;
}

.principle-item {
    margin-bottom: 1.25rem;
}

.principle-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #4a7c6f;
    margin-bottom: 0.25rem;
}

.principle-item p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* === Case Studies Placeholder === */
.case-studies-placeholder {
    background: #f0f4f2;
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.placeholder-text {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* === Blog Post List === */
.post-list {
    margin-top: 1rem;
}

.post-item {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #dfe8e2;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.post-item h3 a {
    color: #1a1a2e;
    text-decoration: none;
}

.post-item h3 a:hover {
    color: #4a7c6f;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.post-item > p:last-child {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* === Posts Feed (Blog) === */
.posts-feed {
    margin-top: 2rem;
}

.posts-feed .post-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dfe8e2;
}

.posts-feed .post-item:last-child {
    border-bottom: none;
}

/* === LinkedIn Embeds === */
.linkedin-embed {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dfe8e2;
}

.linkedin-embed iframe {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* === Contact Page === */
.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    margin-bottom: 2rem;
}

.contact-method h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
    margin-top: 0;
}

.contact-method p {
    font-size: 1rem;
    margin: 0;
}

.contact-method a {
    color: #4a7c6f;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.text-muted {
    color: #888;
    font-size: 0.9rem;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary,
.prose .btn-primary {
    background-color: #4a7c6f;
    color: #fff;
    font-weight: 700;
}

.btn-primary:hover,
.prose .btn-primary:hover {
    background-color: #3d6a5f;
    color: #fff;
    text-decoration: none;
}

.resume-link {
    margin-top: 2rem;
}

/* === Footer === */
.site-footer {
    padding: 2rem 0;
    margin-top: auto;
}

.footer-copy {
    font-size: 0.85rem;
    color: #888;
}

/* === Responsive === */
@media (max-width: 640px) {
    .site-header {
        padding: 2rem 0 1.5rem;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .home .hero-photo img {
        width: 100px;
        height: 100px;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-minimal h1 {
        font-size: 1.5rem;
    }

    .page-content h1 {
        font-size: 1.5rem;
    }

    .content-photo img {
        max-width: 100%;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }
}
