:root {
    --ink: #1e1b16;
    --muted: #6c645c;
    --paper: #f6f2ec;
    --paper-deep: #efe9e0;
    --accent: #2d4a3e;
    --rule: #d8cfc3;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "EB Garamond", Georgia, serif;
    color: var(--muted);
    background:
        linear-gradient(180deg, rgba(246, 242, 236, 0.98), rgba(239, 233, 224, 0.98)),
        repeating-linear-gradient(
            90deg,
            rgba(30, 27, 22, 0.04) 0px,
            rgba(30, 27, 22, 0.04) 1px,
            transparent 1px,
            transparent 28px
        );
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--paper);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
    font-weight: 500;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Enhanced focus indicators for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

.sidebar {
    display: none;
}

.content {
    padding-right: 0;
    position: relative;
}


h1,
h2,
h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    margin: 0 0 0.6rem;
    letter-spacing: 0.02em;
    color: inherit;
}

h1 {
    font-size: 1.75rem;
    text-transform: uppercase;
}

h2 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    display: inline-block;
    padding-bottom: 0.2rem;
    border-bottom: 3px double var(--rule);
}

p {
    margin: 0 0 0.9rem;
    line-height: 1.5;
}

.small {
    font-size: 0.95rem;
    color: var(--muted);
}

.section {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 0.6rem;
}

.section:last-child {
    border-bottom: none;
}

.profile-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rule);
    flex-shrink: 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-info {
    flex: 1;
}

.profile-header h1 {
    margin-bottom: 0.3rem;
}

.profile-header .meta-label,
.profile-header .affiliation {
    margin-bottom: 0.3rem;
}

.profile-header .link-row {
    margin-top: 1rem;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    font-size: 0.95rem;
}

.link-row a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.link-row a:hover {
    color: var(--accent);
    background-color: rgba(45, 74, 62, 0.05);
    transform: translateY(-1px);
}

.link-icon {
    width: 0.95rem;
    height: 0.95rem;
    display: inline-flex;
    transition: transform 0.2s ease;
}

.link-row a:hover .link-icon {
    transform: scale(1.1);
}

.link-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    opacity: 0.8;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list li {
    padding: 0.5rem 0.6rem;
    margin: 0.2rem 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.list li:nth-child(even) {
    background-color: rgba(216, 207, 195, 0.08);
}

.list li:hover {
    background-color: rgba(216, 207, 195, 0.15);
}

.list strong {
    font-weight: 500;
    color: var(--muted);
}

.list li {
    position: relative;
}

.list a.paper-link {
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    float: right;
}

.list a.paper-link:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.list a.paper-link .link-icon svg {
    opacity: 0.7;
}

.meta-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.hero {
    margin-bottom: 1.4rem;
}

.hero .hook {
    font-style: italic;
    color: var(--muted);
}

.keywords {
    font-size: 0.95rem;
    color: var(--muted);
}

.research-item {
    padding: 0.9rem 0;
    border-top: 1px solid var(--rule);
}

.research-item:first-of-type {
    border-top: none;
}

.research-title {
    font-size: 1.02rem;
    margin-bottom: 0.3rem;
    color: var(--muted);
}

.research-year {
    letter-spacing: 0.03em;
}

.research-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.research-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    font-size: 0.95rem;
}

.research-description {
    font-size: 0.95rem;
    color: var(--muted);
}

.research-description p {
    margin: 0.35rem 0;
}

.research-description img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.6rem 0;
    border: 1px solid var(--rule);
}

.research-description a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.research-description a:hover {
    border-bottom-color: var(--accent);
}
.research-links a {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.research-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.research-links .link-icon svg {
    opacity: 0.7;
}

.update-list li {
    padding: 0.35rem 0;
    color: var(--muted);
}


.news-date {
    font-size: 0.9rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.news-sep {
    margin: 0 0.4rem;
    color: var(--muted);
    opacity: 0.5;
}

.news-text {
    color: inherit;
}

.site-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .page {
        padding: 1.5rem 1.5rem 2rem;
        max-width: 100%;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.1rem;
        margin-top: 1.2rem;
    }

    .profile-header .link-row {
        justify-content: center;
    }

    .link-row a {
        padding: 0.4rem 0.6rem;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .list li {
        font-size: 0.95rem;
    }

    .research-links a {
        padding: 0.4rem 0.6rem;
        min-height: 44px;
        min-width: 44px;
    }

    .research-description a {
        padding: 0.2rem 0.3rem;
        display: inline-block;
    }
}
