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

body {
    font-family: 'Times', 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: #000;
    background: #fff;
    padding: 20px 40px 40px 40px;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

body.homepage {
    padding: 0;
    max-width: none;
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

h1 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 a {
    color: #000;
    text-decoration: none;
}

h2 {
    font-size: 14px;
    font-weight: normal;
    margin: 20px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

nav {
    margin-bottom: 30px;
}

nav a {
    color: #000;
    text-decoration: none;
    margin-right: 32px;
    font-size: 14px;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

nav a.active {
    text-decoration: underline;
}

main {
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current {
    font-size: 14px;
    line-height: 1.8;
}

.works {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.works .work {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.works .work span {
    display: inline-block;
}

.works .work .year {
    min-width: 50px;
}

.works .work .title {
    min-width: 200px;
    font-style: italic;
    letter-spacing: 0.01em;
}

.works .work .medium {
    min-width: 150px;
}

.writing {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.writing h2 {
    margin-bottom: 20px;
}

.writing .text {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.writing .text .year {
    min-width: 50px;
}

.writing .text .title {
    min-width: 300px;
    font-style: italic;
}

.writing .text .publication {
    color: #666;
}

.cv {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cv section {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.cv section:first-child {
    margin-top: 0;
}

.cv-entry {
    margin-bottom: 8px;
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.cv-entry .year {
    min-width: 50px;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact section {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.contact p {
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 768px) {
    body {
        padding: 20px;
        text-align: center;
        -webkit-text-size-adjust: 100%;
    }
    
    .works .work {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 30px;
        justify-content: center;
    }
    
    .works .work span {
        min-width: auto;
    }
    
    .works .work .title {
        font-style: italic;
        margin-bottom: 4px;
    }
    
    .works .work .year,
    .works .work .medium,
    .works .work .dimensions {
        font-size: 13px;
        color: #666;
    }
    
    .writing .text {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 30px;
        justify-content: center;
    }
    
    .writing .text span {
        min-width: auto;
    }
    
    .writing .text .title {
        margin-bottom: 4px;
    }
    
    .writing .text .year,
    .writing .text .publication {
        font-size: 13px;
    }
    
    .cv-entry {
        flex-direction: column;
        gap: 4px;
        justify-content: center;
    }
    
    nav a {
        display: inline-block;
        margin-right: 20px;
        margin-bottom: 10px;
        padding: 8px 4px;
    }
}