/* ---------- Site Variables ---------- */

:root {
    --primary: #1d3557;
    --primary-dark: #14263f;
    --accent: #457b9d;

    --background: #f4f6f8;
    --surface: #ffffff;

    --text: #2c3440;
    --muted: #667085;
    --border: #dfe4ea;

    --content-width: 1000px;
    --page-padding: 24px;

    --small-radius: 6px;
    --large-radius: 10px;

    --card-shadow: 0 3px 14px rgba(20, 38, 63, 0.08);
    --header-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


/* ---------- Global ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);

    font-size: 16px;
    line-height: 1.65;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 3.5rem);
}

h2 {
    margin-bottom: 1.25rem;
    color: var(--primary);

    font-size: 1.65rem;
}

a {
    color: var(--primary);
    font-weight: 650;
    text-underline-offset: 0.14em;
}

a:hover {
    color: var(--accent);
}


/* ---------- Header ---------- */

.site-header {
    min-height: 68px;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    background: var(--primary);
    color: var(--surface);

    box-shadow: var(--header-shadow);
}

.site-logo {
    flex-shrink: 0;

    color: var(--surface);
    text-decoration: none;

    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.site-logo:hover {
    color: var(--surface);
}


/* ---------- Navigation ---------- */

.main-nav {
    overflow-x: auto;
}

.nav-list {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 26px;

    list-style: none;
}

.nav-link {
    display: block;
    padding: 23px 0 20px;

    border-bottom: 3px solid transparent;

    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;

    font-size: 0.96rem;
    font-weight: 500;

    transition:
        color 150ms ease,
        border-color 150ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--surface);
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.nav-link.active {
    color: var(--surface);
    border-bottom-color: var(--surface);
}


/* ---------- Main Layout ---------- */

.site-main {
    width: min(1050px, 100%);
    margin: 0 auto;
    padding: 
		4rem
		max(1.25rem, 3vw)
		5rem;
}

.hero,
.content {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}


/* ---------- Homepage Hero ---------- */

.hero {
    margin-bottom: 32px;
    padding: 58px 60px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--large-radius);

    box-shadow: var(--card-shadow);
}

.hero-label {
    margin-bottom: 10px;

    color: var(--accent);

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-subtitle {
	margin-top: 10px;
    margin-bottom: 20px;

    color: var(--muted);

    font-size: 1.2rem;
    font-weight: 500;
}

.hero-description {
    max-width: 720px;

    color: var(--text);

    font-size: 1.05rem;
}

.hero-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
	
	margin-bottom: 2rem
}

.hero-text {
    flex: 1;
    min-width: 0;
}


.hero-text h1 {
    margin-bottom: 14px;
    color: var(--primary);
	font-size: clamp(2.4rem, 6vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    display: block;

    width: 250px;
    height: 250px;

    object-fit: cover;
    object-position: center;

    border: 4px solid var(--surface);
    border-radius: 50%;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ---------- Content Cards ---------- */

.content-card {
    margin-bottom: 28px;
    padding: 38px 42px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--large-radius);

    box-shadow: var(--card-shadow);
}

.item-list {
    margin: 0;
    padding-left: 1.25rem;
}

.item-list li {
    margin-bottom: 0.55rem;
}

.item-list li:last-child {
    margin-bottom: 0;
}

/* ---------- Résumé ---------- */

.resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
}

.resume-card {
    padding: 18px;
}

.resume-frame {
    display: block;
    width: 100%;
    height: 1100px;

    border: 1px solid var(--border);
    border-radius: var(--small-radius);

    background: var(--surface);
}

/* ---------- News ---------- */

.news-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.news-list li {
    padding: 14px 0;

    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;

    border-bottom: 1px solid var(--border);
}

.news-list li:first-child {
    padding-top: 0;
}

.news-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.news-list time {
    color: var(--muted);
    font-weight: 600;
}




/* ---------- Footer ---------- */

.site-footer {
    padding: 30px var(--page-padding) 42px;

    color: var(--muted);
    text-align: center;

    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

/* =========================================================
   Publications page
   ========================================================= */

.page-intro {
    max-width: 750px;
    margin-bottom: 3rem;
}

.page-intro-eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #777781;
}

.page-intro h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.page-intro-description {
    max-width: 650px;
    margin: 1.25rem 0 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #555561;
}

.publication-list {
    display: grid;
    gap: 2rem;
}

.publication-card {
    position: relative;
    padding: 2rem 2.15rem 1.9rem;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(247, 247, 250, 0.98)
        );

    border: 1px solid #cfcfd7;
    border-top: 5px solid #353542;
    border-radius: 12px;

    box-shadow:
        0 2px 3px rgba(20, 20, 30, 0.05),
        0 12px 28px rgba(20, 20, 30, 0.08);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.publication-card::after {
    content: "";
    position: absolute;
    top: -65px;
    right: -65px;

    width: 155px;
    height: 155px;

    border: 1px solid rgba(53, 53, 66, 0.1);
    border-radius: 50%;

    pointer-events: none;
}

.publication-card:hover {
    transform: translateY(-4px);
    border-color: #a9a9b5;

    box-shadow:
        0 4px 7px rgba(20, 20, 30, 0.06),
        0 20px 38px rgba(20, 20, 30, 0.12);
}

.publication-card-header {
    display: flex;
	justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.publication-venue {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    letter-spacing: 0.02em;
}

.publication-type {
    padding: 0.32rem 0.7rem;
    border: 1px solid #d0d0d8;
    border-radius: 999px;
    background: #f2f2f5;

    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666671;
}

.publication-title {
    max-width: 850px;
    margin: 0;

    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.18;
    letter-spacing: -0.022em;
    color: #202029;
}

.publication-authors {
    margin: 0.9rem 0 0;
    font-size: 0.97rem;
    line-height: 1.5;
    color: #62626d;
}

.publication-authors strong {
    color: #30303b;
}

.publication-summary {
    max-width: 820px;
    margin: 1.45rem 0 0;
    padding-top: 1.3rem;

    border-top: 1px solid #ddddE3;

    font-size: 1rem;
    line-height: 1.7;
    color: #484854;
}

.publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.55rem;
}

.publication-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 5.2rem;
    padding: 0.58rem 0.9rem;

    border: 1px solid #3c3c48;
    border-radius: 5px;

    background: #3c3c48;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-decoration: none;
    color: #ffffff;

    transition:
        background-color 140ms ease,
        color 140ms ease,
        transform 140ms ease;
}

.publication-links a:hover,
.publication-links a:focus-visible {
    background: transparent;
    color: #30303b;
    transform: translateY(-1px);
}

.publication-links a:focus-visible {
    outline: 3px solid rgba(60, 60, 72, 0.2);
    outline-offset: 3px;
}

@media (max-width: 650px) {
    .publications-page {
        width: min(100% - 1.4rem, 1050px);
        padding-top: 2.75rem;
    }

    .publications-intro {
        margin-bottom: 2rem;
    }

    .publication-list {
        gap: 1.35rem;
    }

    .publication-card {
        padding: 1.45rem 1.3rem 1.4rem;
        border-radius: 9px;
    }

    .publication-card-header {
        align-items: flex-start;
    }

    .publication-type {
        text-align: center;
    }

    .publication-links a {
        flex: 1;
    }
}

/* =========================================================
   Academic notes page
   ========================================================= */

.notes-filter-panel {
    margin-bottom: 2rem;
    padding: 1.35rem 1.5rem;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--large-radius);
    box-shadow: var(--card-shadow);
}

.notes-filter-heading {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.notes-filter-description {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.note-filters,
.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.note-filter,
.note-tag {
    appearance: none;
    border: 1px solid #c7ccd3;
    border-radius: 999px;
    background: #f5f6f8;
    color: #4f5967;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    line-height: 1;

    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        transform 140ms ease;
}

.note-filter {
    padding: 0.62rem 0.9rem;
    font-size: 0.84rem;
}

.note-tag {
    padding: 0.42rem 0.68rem;
    font-size: 0.76rem;
}

.note-filter:hover,
.note-tag:hover,
.note-filter:focus-visible,
.note-tag:focus-visible {
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-1px);
}

.note-filter.active,
.note-filter[aria-pressed="true"] {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--surface);
}

.notes-collection .notes-list {
    display: grid;
    gap: 1.35rem;
    margin: 0;
}

.note-entry {
    position: relative;
    padding: 1.65rem 1.75rem;

    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--large-radius);
    box-shadow: var(--card-shadow);

    line-height: 1.45;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease,
        opacity 160ms ease;
}

.note-entry:hover {
    transform: translateY(-2px);
    border-color: #c8d0d9;
    border-left-color: var(--accent);
    box-shadow: 0 8px 22px rgba(20, 38, 63, 0.1);
}

.note-entry[hidden] {
    display: none;
}

.note-entry-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.note-entry-header h3 {
    margin: 0;
    font-size: 1.22rem;
}

.note-entry-header h3 a {
    color: var(--primary-dark);
    text-decoration: none;
}

.note-entry-header h3 a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.14em;
}

.document-type {
    flex-shrink: 0;
    padding: 0.28rem 0.62rem;

    border: 1px solid #c7ccd3;
    border-radius: 999px;
    background: #f5f6f8;

    color: #5b6470;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.note-description {
    max-width: 820px;
    margin: 0.65rem 0 0.85rem;
    color: #454e5a;
}

.note-tags {
    margin-bottom: 0.85rem;
}

.note-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.15rem;
    margin-bottom: 0.75rem;

    color: var(--muted);
    font-size: 0.87rem;
}

.note-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.note-links ul {
    margin: 0.15rem 0 0;
    padding-left: 1.4rem;
}

.note-links li {
    margin: 0.3rem 0;
}

.notes-empty {
    margin: 1.5rem 0 0;
    padding: 1rem 1.2rem;

    border: 1px dashed var(--border);
    border-radius: var(--small-radius);
    color: var(--muted);
    text-align: center;
}

.notes-resource-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 0.75rem;
}

.notes-resource-group h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.notes-resource-group ul {
    margin: 0;
    padding-left: 1.25rem;
}

.notes-resource-group li {
    margin-bottom: 0.3rem;
}

@media (max-width: 650px) {
    .notes-filter-panel {
        padding: 1.15rem;
    }

    .note-entry {
        padding: 1.3rem 1.2rem;
    }

    .note-entry-header {
        flex-direction: column;
        gap: 0.65rem;
    }
	
	.notes-resource-columns {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .document-type {
        align-self: flex-start;
    }
}

/* ---------- Keyboard Accessibility ---------- */

a:focus-visible {
    outline: 3px solid rgba(69, 123, 157, 0.45);
    outline-offset: 4px;
}

/* ---------- Responsive Layout ---------- */

@media (max-width: 850px) {

    .site-header {
        padding: 16px 24px;

        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .main-nav {
        width: 100%;
    }

    .nav-list {
        width: max-content;
        gap: 22px;
    }

    .nav-link {
        padding: 10px 0 8px;
    }

    .hero {
        padding: 42px 36px;
    }
	
	.hero-home {
        flex-direction: column-reverse;
        gap: 30px;

        text-align: center;
    }

    .hero-home .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-photo img {
        width: 180px;
        height: 180px;
    }

    .content-card {
        padding: 34px 36px;
    }
}

@media (max-width: 700px) {

    .resume-frame {
        height: 750px;
    }
}

@media (max-width: 560px) {

    :root {
        --page-padding: 16px;
    }

    .site-main {
        padding-top: 24px;
    }

    .hero {
        margin-bottom: 22px;
        padding: 34px 26px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }
	
	.hero-photo img {
        width: 150px;
        height: 150px;
    }

    .content-card {
        margin-bottom: 22px;
        padding: 30px 26px;
    }

    .news-list li {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}