/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: 'Cormorant', Georgia, serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
}

body {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
    color: #333333;
    background-color: #f9f5ed;
    min-height: 100vh;
    padding: 3rem 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    max-width: 820px;
}

.sidebar {
    flex-shrink: 0;
    width: 200px;
    position: sticky;
    top: 2rem;
}

.sidebar-content {
    border: 1px solid #d9d2c7;
    border-radius: 8px;
    padding: 1.5rem 1.25rem;
    background: #fffdf8;
}

.sidebar-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666666;
    margin-bottom: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav a {
    color: #333333;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    background: #f9f5ed;
    color: #111111;
}

/* Typography */
h1 {
    font-size: 2rem;
    color: #111111;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    color: #111111;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    color: #111111;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

h3 a {
    text-decoration: none;
    color: inherit;
}

h3 a:hover {
    text-decoration: underline;
}

.headline {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.bio {
    font-size: 1.1rem;
    color: #444444;
    line-height: 1.7;
    max-width: 65ch;
    margin-bottom: 2rem;
}

.section-subtitle {
    color: #888888;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Layout */
header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #d9d2c7;
}

.section {
    margin-bottom: 3rem;
}

/* CTAs */
.cta-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.cta-button {
    display: inline-block;
    background: #111111;
    color: #f6f1e7;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #111111;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #000000;
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: #111111;
    border-color: #d9d2c7;
}

.cta-secondary:hover {
    background: transparent;
    border-color: #111111;
    transform: translateY(-2px);
}

/* Case studies */
.case-study {
    margin-bottom: 2.5rem;
}

.case-preview {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #d9d2c7;
    border-radius: 12px;
    padding: 1rem;
    background: #fffdf8;
    margin: 1.5rem 0;
    transition: all 0.2s ease;
}

.case-preview:hover {
    border-color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-preview-title {
    color: #111111;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.case-preview svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Lists */
.bullets {
    color: #555555;
    margin-top: 1rem;
    margin-left: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.bullets li {
    margin-bottom: 0.5rem;
}

/* Newsletter callout */
.newsletter-callout {
    margin-top: 3rem;
    padding: 2rem;
    background: #fffdf8;
    border: 1px solid #d9d2c7;
    border-radius: 12px;
    text-align: center;
}

.newsletter-callout h3 {
    color: #111111;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.newsletter-callout p {
    color: #555555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-callout .cta-button {
    display: inline-block;
    margin: 0;
}

/* CV section */
.toolset {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.tool {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666666;
    font-size: 0.95rem;
}

.tool-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.cv-content p {
    color: #555555;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cv-list {
    list-style: none;
    margin: 0.5rem 0 1.5rem 1rem;
    padding: 0;
}

.cv-list li {
    color: #555555;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1rem;
}

.cv-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #888888;
}

.job-excerpt {
    font-size: 0.9rem;
    color: #777777;
    font-weight: 400;
    display: block;
    margin-top: 0.25rem;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #d9d2c7;
    text-align: center;
}

footer p {
    font-size: 0.95rem;
    color: #888888;
}

footer a {
    color: #111111;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 2rem 1rem;
        font-size: 1rem;
    }

    .container {
        max-width: 100%;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .cta-row {
        gap: 0.75rem;
    }

    .cta-button {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }

    .case-preview {
        padding: 0.75rem;
    }

    .toolset {
        gap: 0.75rem;
    }

    .newsletter-callout {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    .newsletter-callout h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .cta-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}