:root {

    --blue:#1F4E79;

    --text:#333333;

    --background:#FAF8F3;

    --header:#DCE3E5;

    --line:#DDDCD6;

}


html {
    overflow-y: scroll;
}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    font-family:Inter,sans-serif;
    color:var(--text);
    background:var(--background);
    line-height:1.6;

}

.container{

    width:min(1000px,90%);
    margin:auto;

}

h1,h2,h3{

    font-family:Lora,serif;
    color:var(--blue);

}


section{
    padding: 10px 0;
    
}

img{

    max-width:100%;
    display:block;

}


/*------------------------------------------*/
/* NAVIGATION */
/*------------------------------------------*/

.site-header {

    background: var(--header);

}


.navbar {

    width: min(1100px, 92%);
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding:15px 0;

}

.logo {

    font-weight: 600;
    font-size: 1.05rem;

}

.logo a {

    color: var(--blue);
    text-decoration: none;

}

.navbar ul {

    display: flex;
    gap: 35px;
    list-style: none;

    margin: 0;
    padding: 0;

}

.navbar a {

    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;

}

.navbar a:hover {

    color: var(--blue);

}

.navbar a.active {

    color: var(--blue);
    font-weight: 600;

}



/*------------------------------------------*/
/* HERO */
/*------------------------------------------*/
.hero{

    width:min(1000px,90%);
    margin:auto;
    padding: 20px 0 15px;

    display:grid;
    grid-template-columns:300px 1fr;

    gap:20px;

    align-items:center;

}

.hero-image img{
    width:190px;
    height:190px;
    border-radius:50%;
    object-fit:cover;
}

.hero h1{
    font-size:1.85rem;
    margin-bottom:6px;
    line-height:1.1;
}


.hero h2{
    font-size:1.15rem;
    font-weight:400;
    margin-bottom:18px;
    color:#4d5e73;
}


.tagline{
    font-size:1.05rem;
    max-width:430px;
    line-height:1.65;
}

/*------------------------------------------*/
/* PUBLICATIONS */
/*------------------------------------------*/


.publication-year {

    margin-top: 15px; 
    margin-bottom: 10px;

}


.publication-year h2 {

    color: var(--primary);

    font-size: 1.3rem;

    font-weight: 600;

    margin-bottom: 10px;

}


.publication-list {

    max-width: 850px;

    padding-left: 25px;

}


.publication-list li {

    margin-bottom: 20px;

    line-height: 1.7;

    color: var(--text);

}


.publication-list li::marker {

    color: var(--accent);

}


.publication-list a {

    color: var(--blue);
    text-decoration: none;
    font-weight: 500;

}


.publication-list a:hover {

    text-decoration: underline;

}


/*------------------------------------------*/
/* ABOUT */
/*------------------------------------------*/


.about p{

    max-width:760px;
    margin-top:10px;
}


/*------------------------------------------*/
/* FOOTER */
/*------------------------------------------*/

footer{

    border-top:1px solid var(--line);

    margin-top:15px;

    padding:10px 0 5px;

    text-align:center;

    color:#666;

}


.footer-links {

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
    margin-bottom: 3px;

}

.footer-links a {

    color: var(--blue);
    text-decoration: none;
    font-weight: 500;

}

.footer-links a:hover {

    text-decoration: underline;

}

footer p {

    margin:0;

}
/*------------------------------------------*/
/* CONTACT */
/*------------------------------------------*/

.contact {
    padding-top: 40px;
    padding-bottom: 60px;
}

.contact h2 {
    margin-bottom: 20px;
}

.contact p {
    margin-top: 5px;
}




/*------------------------------------------*/
/* RESEARCH CARDS */
/*------------------------------------------*/

.card-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

    margin-top:40px;

}

.card{

    border:1px solid var(--line);

    padding:30px;

    border-radius:12px;

    transition:.2s;

}

.card:hover{

    transform:translateY(-4px);

}

.card h3{

    margin-bottom:15px;

}



/*------------------------------------------*/
/* MOBILE */
/*------------------------------------------*/

@media(max-width:800px){

.hero{

    grid-template-columns:1fr;
    text-align:center;

}

.hero-image img{

    margin:auto;

}

.tagline{

    margin:auto;

}

.navbar{

    flex-direction:column;
    gap:20px;

}

.navbar ul{

    gap:20px;
    flex-wrap:wrap;
    justify-content:center;

}

}
