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

html {
    scroll-behavior: smooth;
}

:root {
    --ink: #1a1a1a;
    --parchment: #f7f6f3;
    --accent: #8b7355;
    --muted: #6b6b6b;
}

body {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    background-color: var(--parchment);
    color: var(--ink);
    line-height: 1.8;
    min-height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    background-size: 300px 300px;
}

/* Language switcher */
.lang-switcher {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    display: flex;
    gap: 1.25rem;
}

.lang-switcher a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--ink);
}

.lang-switcher a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

main {
    max-width: 680px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Introduction */
.intro {
    margin-bottom: 4rem;
    text-align: center;
}

.intro p {
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto;
}

.intro em {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
}

/* Offerings */
.offerings {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.offering {
    text-align: center;
    max-width: 200px;
}

.offering h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.offering p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Levels */
.levels {
    text-align: center;
    margin-bottom: 4rem;
}

.levels p {
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
}

/* Languages */
.languages {
    text-align: center;
    margin-bottom: 3rem;
}

.languages p {
    font-size: 0.95rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* Contact */
.contact {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
    margin-bottom: 4rem;
}

.contact h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: color 0.2s ease;
}

.contact a:hover {
    color: var(--accent);
}

.contact-form-link {
    margin-top: 1rem;
}

.contact-form-link a {
    font-size: 0.85rem;
    border-bottom: none;
}

.contact-form-link a:hover {
    border-bottom: 1px solid var(--accent);
}

/* Footer */
footer {
    text-align: center;
}

.publications-link {
    margin-bottom: 1.5rem;
}

.publications-link a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.publications-link a:hover {
    color: var(--ink);
}

.copyright {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Contact form */
.contact-form {
    margin-bottom: 3rem;
}

.contact-form form {
    max-width: 400px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    background: var(--parchment);
    color: var(--ink);
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

button[type="submit"] {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    background: var(--ink);
    color: var(--parchment);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

button[type="submit"]:hover {
    background: var(--accent);
}

/* Publications page */
.page-header {
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2rem;
}

.back {
    margin-bottom: 2rem;
}

.back a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.back a:hover {
    color: var(--ink);
}

.publications,
.thesis,
.conferences {
    margin-bottom: 3rem;
}

.thesis h2,
.conferences h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.publications article,
.thesis article,
.conferences article {
    margin-bottom: 2rem;
}

.pub-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pub-details {
    font-size: 0.9rem;
    color: var(--muted);
}

.pub-details a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.pub-details a:hover {
    color: var(--ink);
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--ink);
    color: var(--parchment);
    padding: 0.5rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .lang-switcher {
        position: static;
        justify-content: center;
        padding: 1.5rem 0 0;
    }

    main {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 600px) {
    main {
        padding: 2.5rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .offerings {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .offering {
        max-width: 100%;
    }

    .offering h2 {
        font-size: 1.15rem;
    }
}
