:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --heading-color: #222222;
    --text-secondary: #444444;
    --date-color: #555555;
    --hr-color: #cccccc;
}

body[data-theme='dark'] {
    --bg-color: #15202b;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --text-secondary: #cccccc;
    --date-color: #a0a0a0;
    --hr-color: #444444;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 16px;
    color: #3273DC;
    user-select: none;
    z-index: 1000;
}

.theme-toggle:hover {
    text-decoration: underline;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    max-width: 600px;
    margin: 50px auto;
    padding: 0 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--heading-color);
    font-weight: bold;
}

h2 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-weight: bold;
}

nav {
    margin-bottom: 5px;
}

nav a {
    color: #3273DC;
    text-decoration: none;
    margin-right: 10px;
    font-size: 16px;
}

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

hr {
    border: 0;
    border-top: 1px dashed var(--hr-color);
    margin: 10px 0 10px 0;
}

a {
    color: #3273DC;
    text-decoration: none;
}

a:visited {
    color: #3273DC;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 40px;
}

li {
    margin-bottom: 2px;
    color: var(--text-secondary);
}

footer {
    margin-top: 50px;
    text-align: center;
    font-size: 14px;
    color: var(--date-color);
}

.blog-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
}

.blog-item {
    display: flex;
    margin-bottom: 2px;
    font-size: 16px;
    align-items: baseline;
}

.blog-date {
    width: 140px;
    flex-shrink: 0;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    color: var(--date-color);
    font-size: 14px;
}

.tags {
    margin-bottom: 40px;
}

.tags a {
    color: #3273DC;
    margin-right: 8px;
    font-size: 0.9rem;
}

.footer-link {
    color: #3273DC;
}

.project-list {
    list-style-type: none;
    padding: 0;
}

.project-item {
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.project-link {
    color: #3273DC;
    text-decoration: underline;
}

.project-link:hover {
    color: var(--heading-color);
}

.project-desc {
    color: var(--text-color);
    font-size: 1em;
    font-weight: 500;
    line-height: 1.6;
    margin-top: 10px;
}

.project-desc b {
    font-weight: 900;
    color: var(--heading-color);
}

.research-list {
    list-style-type: none;
    padding: 0;
}

.research-item {
    margin-bottom: 25px;
}

.research-meta {
    color: var(--date-color);
    font-size: 0.9em;
    margin-bottom: 5px;
    font-style: italic;
}

.research-link {
    display: inline-block;
    color: #3273DC;
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    margin-bottom: 5px;
}

.research-link:hover {
    text-decoration: underline;
}

.research-desc {
    color: var(--text-color);
    font-size: 0.95em;
    line-height: 1.5;
}

.contact-links {
    color: var(--text-color);
    font-size: 1.1em;
    margin-top: 20px;
}

.contact-link {
    color: #3273DC;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}