:root {
    --navy: #1a2a4a;
    --slate: #2d4163;
    --gold: #b8922a;
    --gold-light: #f5e9cc;
    --cream: #faf8f3;
    --text: #1c1c1c;
    --muted: #5a5a5a;
    --border: #e2ddd4;
    --white: #ffffff;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

/* NAV */
nav {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--gold);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}

.nav-name {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    color: var(--white);
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* HERO */
.hero {
    background: var(--navy);
    padding: 4rem 2rem 3.5rem;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

.hero-photo {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border: 3px solid var(--gold);
    filter: grayscale(15%);
}

.hero-photo-placeholder {
    width: 200px;
    height: 240px;
    background: var(--slate);
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
}

.hero-text h1 {
    font-family: 'EB Garamond', serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.hero-text .title {
    font-size: 14px;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-text .affil {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14.5px;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.hero-text .affil strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.hero-links a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 12.5px;
    padding: 5px 14px;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}

.hero-links a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.hero-links .cv-btn {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 500;
}

.hero-links .cv-btn:hover {
    background: #d4a832;
    border-color: #d4a832;
}

/* MAIN LAYOUT */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

/* SECTION */
section {
    margin-bottom: 3.5rem;
}

section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: 'EB Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.4rem;
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}

/* PAPER */
.paper {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

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

.paper-title {
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.paper-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.paper-journal {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
}

.paper-coauthors {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.paper-media {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.paper-media span {
    font-weight: 500;
    color: var(--slate);
}

.paper-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.paper-links a {
    font-size: 11.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    border: 1px solid var(--navy);
    padding: 2px 10px;
    transition: all 0.15s;
}

.paper-links a:hover {
    background: var(--navy);
    color: white;
}

.abstract-toggle {
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    padding: 2px 10px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
}

.abstract-toggle:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.abstract-text {
    display: none;
    background: var(--gold-light);
    border-left: 3px solid var(--gold);
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
    font-size: 13.5px;
    line-height: 1.8;
    color: #3a3020;
}

.abstract-text.open {
    display: block;
}

/* WIP */
.wip-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}

.wip-item:last-child {
    border-bottom: none;
}

.wip-title {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    color: var(--navy);
    font-weight: 500;
}

.wip-coauth {
    font-size: 13px;
    color: var(--muted);
}

/* SIDEBAR */
.sidebar {}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.sidebar-item {
    font-size: 13.5px;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.6;
}

.sidebar-item a {
    color: var(--slate);
    text-decoration: none;
}

.sidebar-item a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.sidebar-label {
    display: inline-block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.field-tag {
    display: inline-block;
    background: var(--gold-light);
    color: #6b4e0f;
    font-size: 12px;
    padding: 3px 10px;
    margin: 2px 3px 2px 0;
}

/* SINGLE-COLUMN PAGE (teaching, field) */
.page-single {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* COURSE (teaching) */
.course {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-info {
    flex: 1;
}

.course-code {
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.15rem;
}

.course-level {
    font-size: 13px;
    color: var(--muted);
}

.course-rating {
    text-align: right;
}

.course-rating .score {
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--gold);
}

.course-rating .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

/* FIELD WORK */
.field-entry {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.field-entry .period {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.field-entry p {
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.8;
}

.field-entry a {
    color: var(--slate);
    text-decoration: none;
    font-weight: 500;
}

.field-entry a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.field-entry .photos-link {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--navy);
    border: 1px solid var(--navy);
    padding: 3px 12px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.15s;
}

.field-entry .photos-link:hover {
    background: var(--navy);
    color: var(--white);
}

/* FOOTER */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    padding: 1.75rem 2rem;
    font-size: 12.5px;
    border-top: 2px solid var(--gold);
}

@media (max-width: 800px) {
    .hero-inner {
    grid-template-columns: 1fr;
    }

    .hero-photo,
    .hero-photo-placeholder {
    width: 150px;
    height: 180px;
    }

    .page {
    grid-template-columns: 1fr;
    }

    .hero-text h1 {
    font-size: 32px;
    }

    .course {
    flex-direction: column;
    }

    .course-rating {
    text-align: left;
    }

    .field-entry {
    padding: 1.25rem;
    }
}
