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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

nav {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav h1 a {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #666;
    transition: color 0.2s;
}

nav a:hover {
    color: #333;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* removed unused .post and .date */

.topics-container {
    margin-top: 2rem;
}

.topic-category {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fafafa;
}

.topic-category h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

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

.topic-links li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.topic-links li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #666;
    font-weight: bold;
}

.topic-links a {
    text-decoration: none;
    color: #555;
    font-size: 1.1rem;
    transition: color 0.2s;
    padding: 0.5rem 0;
    display: inline-block;
}

.topic-links a:hover {
    color: #333;
    text-decoration: underline;
}

.article {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.article-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.2;
}

.article-content {
    text-align: left;
    margin-top: 3rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    border-color: #333;
    transform: scale(1.1);
}

.theme-toggle:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Dark Theme Styles */
[data-theme="dark"] {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] nav {
    border-bottom-color: #333;
}

[data-theme="dark"] nav h1 a {
    color: #e0e0e0;
}

[data-theme="dark"] nav a {
    color: #b0b0b0;
}

[data-theme="dark"] nav a:hover {
    color: #e0e0e0;
}

[data-theme="dark"] .theme-toggle {
    border-color: #555;
    color: #e0e0e0;
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: #e0e0e0;
}

[data-theme="dark"] .theme-toggle:focus {
    outline-color: #e0e0e0;
}

[data-theme="dark"] .topic-category {
    background-color: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .topic-category h3 {
    color: #e0e0e0;
    border-bottom-color: #444;
}

[data-theme="dark"] .topic-links a {
    color: #b0b0b0;
}

[data-theme="dark"] .topic-links a:hover {
    color: #e0e0e0;
}

[data-theme="dark"] .topic-links li:before {
    color: #888;
}

[data-theme="dark"] .post {
    border-bottom-color: #333;
}

[data-theme="dark"] .date {
    color: #888;
}

[data-theme="dark"] .article-title {
    color: #e0e0e0;
}

/* University Links */
.university-link {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.university-link:hover {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
    text-decoration: none;
}

.university-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Dark theme university links */
[data-theme="dark"] .university-link {
    color: #60a5fa;
}

[data-theme="dark"] .university-link:hover {
    color: #93c5fd;
    border-bottom-color: #60a5fa;
}

[data-theme="dark"] .university-link:focus {
    outline-color: #60a5fa;
}

/* Accent text matching theme */
.accent-text {
    color: #2563eb;
}

[data-theme="dark"] .accent-text {
    color: #60a5fa;
}

/* Headshot Image */
.headshot {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    float: right;
    margin: -0.5rem 0 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.headshot:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Dark theme headshot */
[data-theme="dark"] .headshot {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .headshot:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* Section Break */
.section-break {
    margin-top: 2rem !important;
}

/* Two-column layout */
.main-content {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 4rem;
    align-items: start;
}

.about {
    position: relative;
}

.current {
    position: relative;
}

.current h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* removed unused .subsection-title */

/* removed unused .investment-list */

/* Social icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
    text-decoration: none;
    color: #0ea5e9; /* promote hover color to default */
    background-color: rgba(14, 165, 233, 0.12); /* promote hover bg to default */
}

.social-icons a:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Dark theme social icons */
[data-theme="dark"] .social-icons a {
    color: #67e8f9; /* promote hover color to default (dark) */
    background-color: rgba(103, 232, 249, 0.16); /* promote hover bg to default (dark) */
}
/* hover keeps motion only; colors are defaulted above */

/* Dark theme styles for current section */
/* removed unused dark .subsection-title */

/* removed unused dark .investment-list */

@media (max-width: 600px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .topic-category {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .topic-category h3 {
        font-size: 1.2rem;
    }
    
    .topic-links a {
        font-size: 1rem;
    }
    
    .article {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .headshot {
        width: 140px;
        height: 140px;
        float: none;
        display: block;
        margin: 1rem auto;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* removed unused responsive .subsection-title */
}