:root {
    --bg-color: #fcfbfa;
    --text-color: #1c1b1a;
    --text-muted: #706e6b;
    --border-color: #e6e4e0;
    --font-serif: Garamond, "Palatino Linotype", Palatino, Book Antiqua, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

h2 {
    margin: 0;
}

.body-text,
.nav-link,
.project-title, .project-year, .section-label, .theme-label {
    transition: color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1c1b1a;
        --text-color: #fcfbfa;
        --text-muted: #a19f9c;
        --border-color: #2e2d2c;
    }
}

:root[data-theme="light"] {
    --bg-color: #fcfbfa;
    --text-color: #1c1b1a;
    --text-muted: #706e6b;
    --border-color: #e6e4e0;
}

:root[data-theme="dark"] {
    --bg-color: #1c1b1a;
    --text-color: #fcfbfa;
    --text-muted: #a19f9c;
    --border-color: #2e2d2c;
}

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

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 1px dashed var(--text-color);
    outline-offset: 4px;
}


body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.site-header,
.content-wrapper, footer {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.content-wrapper {
    padding: 4rem 1.5rem;
}

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

.site-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 2.75rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.body-text {
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 540px;
    margin-bottom: 4rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-list {
    list-style: none;
}



.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.project-item:hover .project-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.project-year {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.theme-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.theme-divider {
    margin: 0 6px;
    color: var(--text-muted);
    font-weight: 300;
}

.theme-label {
    position: relative;
    padding-bottom: 2px;
    color: var(--text-muted);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.label-light {
    color: var(--text-color);
    border-bottom: 1.5px solid var(--text-color);
}

html[data-theme="dark"] .label-light {
    color: var(--text-muted);
    border-bottom: 1.5px solid transparent;
}

html[data-theme="dark"] .label-dark {
    color: var(--text-color);
    border-bottom: 1.5px solid var(--text-color);
}

.footer-text {
    text-align: center;
}