:root {
    --background: #f7f8fb;
    --surface: #ffffff;
    --text: #1f2933;
    --muted: #667085;
    --accent: #315a7d;
    --accent-light: #eaf1f7;
    --border: #e4e7ec;
    --max-width: 1080px;
}

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}


/* ---------- Header / navigation ---------- */

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-name {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-name:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
}

.nav-links a {
    color: #344054;
    font-size: 0.96rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    text-decoration: none;
}


/* ---------- Hero ---------- */

.hero {
    padding: 84px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1,
.page-heading h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 7vw, 5.2rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-description {
    max-width: 680px;
    margin: 28px 0 0;
    color: #475467;
    font-size: 1.15rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-block;
    padding: 11px 17px;
    border: 1px solid var(--accent);
    border-radius: 7px;
    background: var(--accent);
    color: white;
    font-size: 0.94rem;
    font-weight: 600;
}

.button:hover {
    text-decoration: none;
    opacity: 0.93;
}

.button.secondary {
    background: transparent;
    color: var(--accent);
}

.profile-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

/* Do something fun w/ the image */

.profile-photo {
    position: relative;
    overflow: hidden;
    border-radius: 8px;

    --x: 50%;
    --y: 50%;
}

.profile-photo img {
    display: block;
    width: 100%;
}

.photo-normal {
    filter: grayscale(100%);
}

.photo-effect {
    position: absolute;
    inset: 0;

    filter: none;

    mask-image: radial-gradient(
        circle 70px at var(--x) var(--y),
        black 0%,
        black 60%,
        transparent 100%
    );

    -webkit-mask-image: radial-gradient(
        circle 70px at var(--x) var(--y),
        black 0%,
        black 60%,
        transparent 100%
    );

    opacity: 0;
    transition: opacity 0.15s ease;

    pointer-events: none;
}

.profile-photo:hover .photo-effect {
    opacity: 1;
}

.photo-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 10px;

    color: var(--muted);
    font-size: 0.85rem;
}

.photo-controls button {
    padding: 5px 10px;

    border: 1px solid var(--accent);
    border-radius: 6px;

    background: transparent;
    color: var(--accent);

    font: inherit;
    font-size: 0.8rem;

    cursor: pointer;
}

.photo-controls button:hover {
    background: var(--accent);
    color: white;
}

.profile-photo.fully-colored .photo-normal {
    filter: none;
}

.profile-photo.fully-colored .photo-effect {
    display: none;
}

/* end of the fun part */

.profile-card p {
    margin: 0 0 8px;
}

.profile-card .small {
    color: var(--muted);
    font-size: 0.93rem;
}


/* ---------- Sections ---------- */

.section {
    padding: 68px 0;
}

.section.white {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
}

.section-heading p {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}


/* ---------- Page heading ---------- */

.page-heading {
    padding: 70px 0 48px;
}

.page-heading h1 {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
}

.page-heading p {
    max-width: 690px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}


/* ---------- Publications / teaching entries ---------- */

.content-section {
    padding: 10px 0 70px;
}

.year-block {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 36px;
    padding: 36px 0;
    border-top: 1px solid var(--border);
}

.year {
    margin: 0;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
}

.entry {
    padding-bottom: 28px;
}

.entry:last-child {
    padding-bottom: 0;
}

.entry h2,
.entry h3 {
    margin: 0 0 7px;
    font-size: 1.08rem;
    line-height: 1.4;
}

.entry-meta {
    margin: 0 0 7px;
    color: #475467;
}

.entry-description {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--muted);
}

.entry-links a {
    display: inline-block;
    padding: 6px 11px;
    margin-right: 6px;

    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: 6px;

    color: var(--accent);
    text-decoration: none;
}

.entry-links a:hover {
    background: var(--accent);
    color: white;
}


/* ---------- Footer ---------- */

.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}


/* ---------- Mobile ---------- */

@media (max-width: 800px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 18px 0;
    }

    .nav-links {
        gap: 16px 22px;
    }

    .hero {
        padding: 56px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .profile-card {
        max-width: 480px;
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .year-block {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-row {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 500px) {
    .container {
        width: min(90%, var(--max-width));
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.02rem;
    }

    .hero-links {
        flex-direction: column;
    }

    .button {
        text-align: center;
    }

    .section,
    .page-heading {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}