
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,400&family=Grotesk:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

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

:root {
    --bg-primary: #fdfffe;
    --bg-secondary: #f9faf9;
    --text-primary: #2c2d2a;
    --text-secondary: #5a6b5d;
    --text-muted: #8a9b8d;
    --accent-sage: #7ea37a;
    --accent-blue-grey: #7ba7d1;
    --highlight-sage: #f0f4f0;
    --highlight-blue: #e8f2f8;
    --border: #e8ede8;
    --border-subtle: #f1f5f1;
}

/* Strong overrides to ensure our custom styles take precedence over minima theme */
body {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    line-height: 1.65 !important;
    font-size: 15px !important;
    -webkit-font-smoothing: antialiased !important;
    font-weight: 400 !important;
}

/* Override minima theme's default styles */
.post h1,
.post h2,
.post h3,
.post h4,
.post h5,
.post h6 {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    color: var(--text-primary) !important;
}

.post h1 {
    font-family: 'Newsreader', serif !important;
    font-size: 36px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
    color: var(--text-primary) !important;
}

.post h2 {
    font-size: 20px !important;
    font-weight: 500 !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    color: var(--text-primary) !important;
}

.post h3 {
    font-size: 18px !important;
    font-weight: 500 !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    color: var(--text-primary) !important;
}

.post p {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--text-primary) !important;
    margin-bottom: 20px !important;
}

.post ul,
.post ol {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--text-primary) !important;
}

.post li {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--text-primary) !important;
}

.post a {
    color: var(--text-primary) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--accent-sage) !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
    transition: all 0.25s ease !important;
}

.post a:hover {
    text-decoration-color: var(--text-primary) !important;
    color: var(--accent-sage) !important;
}

/* Additional specific overrides for minima theme */
.post-header {
    margin-bottom: 48px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.post-title {
    font-family: 'Newsreader', serif !important;
    font-size: 36px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
    color: var(--text-primary) !important;
}

.post-meta {
    font-size: 14px !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.post-content {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--text-primary) !important;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-weight: 500 !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    color: var(--text-primary) !important;
}

.post-content h1 {
    font-size: 24px !important;
}

.post-content h2 {
    font-size: 20px !important;
}

.post-content h3 {
    font-size: 18px !important;
}

.post-content h4,
.post-content h5,
.post-content h6 {
    font-size: 16px !important;
}

.post-content p {
    margin-bottom: 20px !important;
    line-height: 1.7 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 15px !important;
    color: var(--text-primary) !important;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px !important;
    padding-left: 24px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--text-primary) !important;
}

.post-content li {
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 15px !important;
    color: var(--text-primary) !important;
}

.post-content blockquote {
    border-left: 3px solid var(--accent-sage) !important;
    padding-left: 20px !important;
    margin: 24px 0 !important;
    font-style: italic !important;
    color: var(--text-secondary) !important;
}

.post-content code {
    background: var(--highlight-sage) !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 14px !important;
}

.post-content pre {
    background: var(--bg-secondary) !important;
    padding: 16px !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    margin: 24px 0 !important;
    border: 1px solid var(--border) !important;
}

.post-content pre code {
    background: none !important;
    padding: 0 !important;
}

.post-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 24px 0 !important;
}

.post-content a {
    color: var(--text-primary) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--accent-sage) !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
    transition: all 0.25s ease !important;
}

.post-content a:hover {
    text-decoration-color: var(--text-primary) !important;
    color: var(--accent-sage) !important;
}

.post-image {
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid var(--border-subtle) !important;
}

/* Custom header and footer styles */
.site-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px;
    background-color: #ffffff !important;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-style: italic;
    transition: all 0.25s ease;
}

.logo:hover {
    color: var(--accent-sage) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--accent-sage) !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.25s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-sage) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--accent-sage) !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
}

/* Override general a:hover for header elements */
.site-header .logo:hover,
.site-header .nav-links a:hover {
    color: var(--accent-sage) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--accent-sage) !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
}

.nav-links a.active {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-sage), var(--accent-blue-grey));
}

.site-content {
    min-height: calc(100vh - 120px);
}

.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 64px;
}

.site-footer .wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Remove the old conflicting header overrides */

.home-page, .page {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 32px 140px;
}

/* Typography */
h1 {
    font-family: 'Newsreader', serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 32px;
    color: var(--text-primary);
}

h2 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

p {
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.7;
}

.large-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 36px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-sage);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: all 0.25s ease;
}

a:hover {
    text-decoration-color: var(--text-primary);
    color: var(--accent-sage);
}

/* Highlights */
.highlight {
    background: var(--highlight-sage);
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 500;
}

.highlight.blue {
    background: var(--highlight-blue);
}

/* Profile photo */
.intro-with-photo {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 36px;
}

.profile-photo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
}

.intro-text {
    flex: 1;
    min-width: 0;
}

/* Home page specific */
.intro {
    margin-bottom: 56px;
}

.section {
    margin-bottom: 56px;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-secondary);
    letter-spacing: 0.4px;
}

/* Lists for me page */
.bullet-list {
    list-style: none;
    margin-left: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-sage);
    font-weight: 500;
    font-size: 16px;
}

.bullet-list .sub-item {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.6;
}

/* Projects page */
.projects-intro {
    margin-bottom: 64px;
}

.project-item {
    display: flex;
    gap: 32px;
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

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

.project-item:hover {
    background: var(--bg-secondary);
    margin-left: -32px;
    margin-right: -32px;
    margin-top: -16px;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 16px;
    border-radius: 12px;
}

.project-image {
    flex-shrink: 0;
    width: 160px;
    height: 120px;
    background: var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    border: 1px solid var(--border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.project-content {
    flex: 1;
    min-width: 0;
}

.project-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 400;
}

.project-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
    font-size: 15px;
}

.project-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.25s ease;
    font-weight: 400;
}

.project-link:hover {
    background: var(--highlight-sage);
    border-color: var(--accent-sage);
    color: var(--text-primary);
}

/* Portfolio section */
.portfolio-section {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.portfolio-links {
    list-style: none;
}

.portfolio-links li {
    margin-bottom: 16px;
    line-height: 1.6;
}

.portfolio-links a {
    font-weight: 500;
}

.portfolio-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-left: 0;
    margin-top: 4px;
}

/* Writing page */
.writing-list {
    list-style: none;
}

.writing-item {
    margin-bottom: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
}

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

.writing-item:hover {
    background: var(--bg-secondary);
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
    border-radius: 8px;
}

.writing-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 400;
}

.writing-title {
    font-family: 'Newsreader', serif;
    font-size: 17px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    line-height: 1.5;
}

.writing-title:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent-sage);
}

/* Experience grid for side-by-side layout */
.experience-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    margin-top: 24px !important;
    width: 100% !important;
}

.experience-category {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.3px !important;
    text-transform: lowercase !important;
    font-style: italic !important;
}

.experience-column {
    min-width: 0 !important;
    width: 100% !important;
}

.experience-column .bullet-list {
    margin-left: 0 !important;
}

.experience-column .bullet-list li {
    margin-bottom: 12px !important;
    line-height: 1.7 !important;
}

/* Mobile */
@media (max-width: 640px) {
    .home-page, .page {
        padding: 48px 20px 100px;
    }
    
    .site-header .wrapper {
        padding: 0 20px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .nav-links {
        gap: 24px;
    }
    
    h1 {
        font-size: 30px;
    }
    
    .large-text {
        font-size: 15px;
    }
    
    .intro-with-photo {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    
    .profile-photo {
        margin-top: 0;
    }
    
    .project-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-image {
        width: 100%;
        height: 180px;
    }
    
    .project-item:hover {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .writing-item:hover {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-content h1 {
        font-size: 22px;
    }
    
    .post-content h2 {
        font-size: 20px;
    }

    /* Mobile responsive for experience grid */
    .experience-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 0 16px !important;
    }
    
    .experience-category {
        margin-bottom: 16px !important;
    }
    
    .experience-column {
        padding: 16px 0 !important;
    }
} 