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

:root {
    --black: #0a0a0a;
    --white: #FFFFFF;
    --grey-mid: #888888;
    --grey-rule: #e2e2e2;
    --body-font: 'EB Garamond', Georgia, serif;
    --ui-font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--body-font);
    font-size: 22px;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navigation ── */
nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--black);
    padding: 0.8rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-family: var(--ui-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
}

nav .logo:hover { opacity: 0.55; }

nav ul {
    list-style: none;
    display: flex;
    gap: 2.2rem;
}

nav a {
    font-family: var(--ui-font);
    color: var(--black);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
}

nav a:hover { opacity: 0.5; }
nav a.active { font-weight: 700; }

/* ── Main ── */
main {
    flex: 1;
    padding: 1.5rem 1rem 0.8rem;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ── Page title ── */
.page-title {
    font-family: var(--ui-font);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey-mid);
    margin-bottom: 2.5rem;
}

.page-title.prominent {
    font-size: 2rem;
    font-family: var(--body-font);
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--black);
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--black);
}

/* ── Two-column section layout ── */
.section-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0 4rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--grey-rule);
}

.section-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-label {
    font-family: var(--ui-font);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-mid);
    padding-top: 0.35rem;
    line-height: 1.5;
}

.section-body p {
    margin-bottom: 1.3rem;
    line-height: 1.85;
    color: #1a1a1a;
    font-size: 1.18rem;
}

.section-body p:last-child { margin-bottom: 0; }

/* ── Project entries ── */
.project-entry {
    margin-bottom: 2rem;
}

.project-entry:last-child { margin-bottom: 0; }

.project-title {
    font-family: var(--ui-font);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--black);
    line-height: 1.45;
}

.project-date {
    font-weight: 400;
    color: var(--grey-mid);
}

.project-entry p {
    margin-bottom: 0;
    line-height: 1.8;
    color: #333;
    font-size: 1.18rem;
}

.project-title a, .section-body a, .project-entry p a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.project-title a:hover, .section-body a:hover, .project-entry p a:hover {
    opacity: 0.6;
}

/* ── Publication list ── */
.pub-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.pub-list li {
    margin-bottom: 1rem;
    line-height: 1.75;
    padding-left: 1.2rem;
    position: relative;
    font-size: 1.18rem;
}

.pub-list li:last-child { margin-bottom: 0; }

.pub-list li:before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--grey-mid);
}

.pub-list a {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pub-list a:hover { opacity: 0.55; }

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 4rem;
}

.contact-info p { margin-bottom: 1.3rem; font-size: 1.05rem; line-height: 1.8; }
.contact-info a {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-family: var(--ui-font);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-mid);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    font-family: var(--body-font);
    font-size: 1.05rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ccc;
    background: var(--white);
    transition: border-color 0.2s;
}

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

.form-group textarea { min-height: 140px; resize: vertical; }

.btn {
    font-family: var(--ui-font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    background: var(--black);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn:hover { opacity: 0.75; }

/* ── CV ── */
.cv-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--grey-rule);
}

.cv-embed {
    width: 100%;
    height: 860px;
    border: 1px solid var(--grey-rule);
}

/* ── Footer ── */
footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--grey-rule);
    font-family: var(--ui-font);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--grey-mid);
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    nav { padding: 0.8rem 1rem; }
    nav ul { gap: 1.2rem; }
    main { padding: 2.5rem 1.5rem 3.5rem; }

    .section-row,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem 0;
    }
}
