/* ==========================================================================
   Import Design System
   ========================================================================== */
@import url('design-system.css');

/* ==========================================================================
   Custom Properties (extending design system)
   ========================================================================== */
:root {
    /* Override container max-width for wider layout */
    --content-max: 75rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background-image:
        linear-gradient(to right, rgba(194, 161, 138, 0.85) 0%, rgba(194, 161, 138, 0.75) 100%),
        url('images/conference-speaking.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--c-text);
    padding: var(--s-8) var(--s-6);
    text-align: left;
    border-bottom: 4px solid var(--c-accent);
    position: relative;
}

.hero .container {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--c-heading);
    margin-bottom: var(--s-4);
    font-weight: var(--fw-bold);
    font-size: var(--fs-6);
}

.hero .subtitle {
    font-size: var(--fs-3);
    margin-bottom: var(--s-7);
    font-weight: var(--fw-regular);
    color: var(--c-text);
}

/* ==========================================================================
   Latest Content Section
   ========================================================================== */
.latest-content {
    padding: var(--s-8) var(--s-6);
    background-color: var(--c-surface);
}

.latest-content h2 {
    text-align: center;
    margin-bottom: var(--s-7);
    color: var(--c-heading);
    position: relative;
    padding-bottom: var(--s-4);
}

.latest-content .blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-7);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.latest-content h2 {
    margin-bottom: 0;
    padding-bottom: 0;
}

.latest-content h2::after {
    display: none;
}

.latest-content .blog-grid {
    max-width: 900px;
    margin: 0 auto;
}

.post-meta {
    color: var(--c-muted);
    font-size: var(--fs-0);
    margin-bottom: var(--s-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
}

.post-meta .date {
    font-weight: var(--fw-medium);
    color: var(--c-accent);
}

.post-excerpt {
    margin: var(--s-5) 0;
    line-height: var(--lh-loose);
}

.read-more {
    display: inline-block;
    color: var(--c-accent);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 120ms ease;
}

.read-more:hover {
    color: var(--c-heading);
    text-decoration: underline;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: var(--s-8) var(--s-6);
    background-color: var(--c-bg);
    border-top: 1px solid var(--c-border);
}

.about h2 {
    text-align: center;
    margin-bottom: var(--s-7);
    color: var(--c-heading);
    position: relative;
    padding-bottom: var(--s-4);
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--c-accent);
    border-radius: 2px;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* About rows - stacked on mobile, side-by-side on desktop */
.about-row {
    display: flex;
    flex-direction: column;
    gap: var(--s-7);
    margin-bottom: var(--s-8);
}

@media (min-width: 768px) {
    .about-row {
        flex-direction: row;
        gap: var(--s-8);
    }

    .about-intro,
    .about-expertise,
    .about-experience,
    .about-education {
        flex: 1;
    }
}

.about-intro p {
    font-size: var(--fs-2);
    margin-bottom: var(--s-6);
    line-height: var(--lh-loose);
}

.about-expertise h3,
.about-experience h3,
.about-education h3 {
    margin-bottom: var(--s-5);
    color: var(--c-heading);
}

.topics {
    list-style: none;
    padding-left: 0;
}

.topics li {
    padding: var(--s-3) 0;
    padding-left: var(--s-5);
    position: relative;
    border-bottom: 1px solid var(--c-border);
}

.topics li:last-child {
    border-bottom: none;
}

.topics li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--c-accent);
    font-weight: bold;
    font-size: var(--fs-3);
}

.cv-item {
    margin-bottom: var(--s-6);
    padding-bottom: var(--s-5);
    border-bottom: 1px solid var(--c-border);
}

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

.cv-item h4 {
    margin-bottom: var(--s-2);
}

.cv-meta {
    color: var(--c-accent);
    font-size: var(--fs-0);
    margin-bottom: var(--s-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
}

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog {
    padding: var(--s-8) var(--s-6);
    background-color: var(--c-surface);
    border-top: 1px solid var(--c-border);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-7);
}

.blog h2 {
    text-align: left;
    margin-bottom: 0;
    color: var(--c-heading);
}

.view-all-link {
    color: var(--c-accent);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 120ms ease;
}

.view-all-link:hover {
    color: var(--c-heading);
    text-decoration: underline;
}

.blog-grid {
    max-width: 900px;
    margin: 0 auto;
}

.blog-post {
    background-color: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-accent);
    border-radius: var(--r-2);
    padding: var(--s-5);
    margin-bottom: var(--s-5);
    transition: box-shadow 120ms ease, border-left-color 120ms ease;
    box-shadow: var(--sh-1);
}

.blog-post:hover {
    box-shadow: 0 4px 16px rgba(7, 30, 32, 0.12);
    border-left-color: var(--c-heading);
}

.blog-post h3 {
    color: var(--c-heading);
    margin-bottom: var(--s-3);
    font-size: var(--fs-3);
}

.post-content {
    margin-top: var(--s-3);
    margin-bottom: var(--s-3);
    line-height: var(--lh-normal);
    color: var(--c-text);
    font-size: var(--fs-0);
}

/* ==========================================================================
   Currently Section
   ========================================================================== */
.currently {
    padding: var(--s-8) var(--s-6);
    background-color: var(--c-bg);
    border-top: 1px solid var(--c-border);
}

.currently h2 {
    text-align: center;
    margin-bottom: var(--s-7);
    color: var(--c-heading);
    position: relative;
    padding-bottom: var(--s-4);
}

.currently h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--c-accent);
    border-radius: 2px;
}

.currently-content {
    max-width: 800px;
    margin: 0 auto;
}

.currently-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.currently-list li {
    padding: var(--s-4);
    margin-bottom: var(--s-3);
    background-color: var(--c-surface);
    border-left: 3px solid var(--c-accent);
    font-size: var(--fs-1);
    line-height: var(--lh-normal);
}

/* ==========================================================================
   Beyond the Blog Section
   ========================================================================== */
.beyond {
    padding: var(--s-8) var(--s-6);
    background-color: var(--c-surface);
    border-top: 1px solid var(--c-border);
    text-align: center;
}

.beyond h2 {
    text-align: center;
    margin-bottom: var(--s-7);
    color: var(--c-heading);
    position: relative;
    padding-bottom: var(--s-4);
}

.beyond h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--c-accent);
    border-radius: 2px;
}

.beyond-content {
    max-width: 700px;
    margin: 0 auto;
}

.beyond-content p {
    font-size: var(--fs-1);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--s-5);
    color: var(--c-text);
}

.beyond-content .btn {
    margin-top: var(--s-5);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: var(--s-8) var(--s-6);
    background-color: var(--c-surface);
    border-top: 1px solid var(--c-border);
}

.contact h2 {
    text-align: center;
    margin-bottom: var(--s-7);
    color: var(--c-heading);
    position: relative;
    padding-bottom: var(--s-4);
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--c-accent);
    border-radius: 2px;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.message {
    padding: var(--s-4) var(--s-5);
    margin-bottom: var(--s-6);
    border-radius: var(--r-2);
    font-size: var(--fs-1);
}

.message--success {
    background-color: color-mix(in srgb, var(--c-accent) 10%, transparent);
    border: 1px solid var(--c-accent);
    color: var(--c-heading);
}

.message--error {
    background-color: color-mix(in srgb, #dc2626 10%, transparent);
    border: 1px solid #dc2626;
    color: var(--c-heading);
}

.message--error p {
    margin: 0;
}

.message--error p:not(:last-child) {
    margin-bottom: var(--s-2);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: var(--s-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--s-2);
    font-weight: var(--fw-semibold);
    color: var(--c-heading);
    font-size: var(--fs-0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r-2);
    font-family: inherit;
    font-size: var(--fs-1);
    background-color: var(--c-surface);
    color: var(--c-text);
    transition: border-color 120ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 3px solid color-mix(in srgb, var(--c-focus) 70%, transparent);
    outline-offset: 3px;
    border-color: var(--c-link);
    background-color: var(--c-surface);
}

.submit-button {
    padding: var(--s-4) var(--s-6);
    background-color: var(--c-heading);
    color: var(--c-surface);
    border: none;
    border-radius: var(--r-2);
    font-size: var(--fs-0);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 120ms ease, transform 120ms ease;
}

.submit-button:hover {
    background: color-mix(in srgb, var(--c-heading) 90%, black);
}

.submit-button:active {
    transform: translateY(1px);
}

.contact-social {
    max-width: 600px;
    margin: var(--s-8) auto 0;
    text-align: center;
    padding-top: var(--s-7);
    border-top: 1px solid var(--c-border);
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: var(--s-3);
}

.social-links a {
    font-size: var(--fs-1);
    color: var(--c-accent);
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: color 120ms ease;
}

.social-links a:hover {
    color: var(--c-heading);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--c-heading);
    color: var(--c-bg);
    text-align: center;
    padding: var(--s-7) var(--s-6);
    border-top: 4px solid var(--c-accent);
}

.footer p {
    margin-bottom: var(--s-2);
    font-size: var(--fs-0);
    opacity: 0.85;
}

/* ==========================================================================
   Single Post Page
   ========================================================================== */
.post-nav {
    background-color: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: var(--s-5) var(--s-6);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--sh-1);
}

.post-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
}

.nav-home,
.nav-blog {
    color: var(--c-accent);
    font-weight: var(--fw-medium);
    font-size: var(--fs-0);
    text-decoration: none;
    transition: color 120ms ease;
}

.nav-home:hover,
.nav-blog:hover {
    color: var(--c-heading);
    text-decoration: underline;
}

.single-post {
    background-color: var(--c-surface);
    padding: var(--s-8) var(--s-6);
    min-height: 60vh;
}

.single-post .container {
    max-width: 800px;
}

.post-header {
    margin-bottom: var(--s-7);
    padding-bottom: var(--s-6);
    border-bottom: 3px solid var(--c-accent);
}

.post-header h1 {
    font-size: var(--fs-6);
    margin-bottom: var(--s-4);
    line-height: var(--lh-tight);
}

.post-header .post-meta {
    color: var(--c-muted);
    font-size: var(--fs-0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-body {
    font-size: var(--fs-2);
    line-height: var(--lh-loose);
    margin-bottom: var(--s-8);
}

.post-body p {
    margin-bottom: var(--s-5);
}

.post-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
    margin-bottom: var(--s-7);
    padding: var(--s-6) 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.pagination-prev,
.pagination-next {
    min-height: 80px;
}

.pagination-next {
    text-align: right;
}

.pagination-link {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    padding: var(--s-4);
    background-color: var(--c-surface-2);
    border-radius: var(--r-2);
    border: 1px solid var(--c-border);
    transition: background-color 120ms ease, transform 120ms ease;
    height: 100%;
    text-decoration: none;
}

.pagination-link:hover {
    background-color: var(--c-bg);
    transform: translateY(-2px);
}

.pagination-label {
    font-size: var(--fs-0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-accent);
    font-weight: var(--fw-semibold);
}

.pagination-title {
    font-size: var(--fs-1);
    color: var(--c-heading);
    font-weight: var(--fw-medium);
}

.back-to-blog {
    text-align: center;
    padding: var(--s-6) 0;
}

/* ==========================================================================
   Blog Archive Page
   ========================================================================== */
.blog-archive-header {
    background-color: var(--c-surface);
    padding: var(--s-8) var(--s-6);
    text-align: center;
    border-bottom: 1px solid var(--c-border);
}

.blog-archive-header h1 {
    font-size: var(--fs-6);
    margin-bottom: var(--s-4);
}

.archive-description {
    font-size: var(--fs-2);
    color: var(--c-muted);
    max-width: 600px;
    margin: 0 auto;
}

.blog-archive {
    background-color: var(--c-surface);
    padding: var(--s-8) var(--s-6);
    min-height: 60vh;
}

.blog-archive .container {
    max-width: 1000px;
}

.archive-grid {
    display: grid;
    gap: var(--s-6);
}

.archive-post {
    background-color: var(--c-surface);
    border-radius: var(--r-3);
    overflow: hidden;
    transition: transform 120ms ease, box-shadow 120ms ease, border-left-color 120ms ease;
    box-shadow: var(--sh-1);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-accent);
}

.archive-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(7, 30, 32, 0.12);
    border-left-color: var(--c-heading);
}

.archive-post-link {
    display: block;
    padding: var(--s-7);
    color: inherit;
    text-decoration: none;
}

.archive-post-header {
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-4);
    border-bottom: 2px solid var(--c-accent);
}

.archive-post-header h2 {
    font-size: var(--fs-4);
    color: var(--c-heading);
    margin-bottom: var(--s-3);
    transition: color 120ms ease;
}

.archive-post:hover .archive-post-header h2 {
    color: var(--c-link);
}

.archive-post-excerpt {
    font-size: var(--fs-1);
    line-height: var(--lh-loose);
    color: var(--c-text);
    margin-bottom: var(--s-5);
}

.archive-read-more {
    display: inline-block;
    color: var(--c-accent);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 120ms ease, transform 120ms ease;
}

.archive-post:hover .archive-read-more {
    color: var(--c-heading);
    transform: translateX(5px);
}

.no-posts {
    text-align: center;
    padding: var(--s-8) var(--s-6);
}

.no-posts p {
    font-size: var(--fs-3);
    color: var(--c-muted);
    margin-bottom: var(--s-6);
}

.nav-title {
    color: var(--c-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-1);
}

/* ==========================================================================
   Tag Filter Section
   ========================================================================== */
.tag-filter {
    background-color: var(--c-bg);
    padding: var(--s-6) var(--s-6);
    border-bottom: 1px solid var(--c-border);
}

.tag-filter .container {
    max-width: 1000px;
}

.tag-filter-label {
    font-size: var(--fs-0);
    font-weight: var(--fw-semibold);
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--s-4);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

/* Post Tags (badges displayed on posts) */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-3);
}

a.tag-badge,
.tag-badge {
    display: inline-block;
    padding: var(--s-1) var(--s-3);
    background-color: transparent;
    color: var(--c-muted);
    font-size: var(--fs-1);
    font-weight: var(--fw-regular);
    border-radius: var(--r-1);
    text-decoration: none;
    border: 1px solid var(--c-border);
    transition: all 120ms ease;
}

.tag-badge:hover {
    color: var(--c-accent);
    border-color: var(--c-accent);
    background-color: color-mix(in srgb, var(--c-accent) 8%, transparent);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: var(--fs-5);
    }

    h2 {
        font-size: var(--fs-4);
    }

    .hero {
        padding: var(--s-8) var(--s-5);
    }

    .hero .subtitle {
        font-size: var(--fs-2);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--s-6);
    }

    .featured-post,
    .blog-post {
        padding: var(--s-5);
    }

    .post-header h1 {
        font-size: var(--fs-5);
    }

    .post-body {
        font-size: var(--fs-1);
    }

    .post-pagination {
        grid-template-columns: 1fr;
        gap: var(--s-4);
    }

    .pagination-next {
        text-align: left;
    }

    .blog-archive-header h1 {
        font-size: var(--fs-5);
    }

    .archive-description {
        font-size: var(--fs-1);
    }

    .archive-post-link {
        padding: var(--s-5);
    }

    .archive-post-header h2 {
        font-size: var(--fs-3);
    }

    .blog-header,
    .latest-content .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-4);
    }

    .blog h2,
    .latest-content h2 {
        margin-bottom: var(--s-2);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--s-4);
    }

    h1 {
        font-size: var(--fs-4);
    }

    .latest-content,
    .about,
    .blog,
    .contact {
        padding: var(--s-8) var(--s-4);
    }
}
