:root {
--text: #0f172a;
--muted: #475569;
--bg: #ffffff;
--link: #0ea5e9;
--border: #e5e7eb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand .site-title {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  font-size: 1.25rem;
}

.site-tagline {
  color: var(--muted);
  font-size: .9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: .5rem;
  border: 1px solid transparent;
}

.site-nav a:hover {
  border-color: var(--border);
  background: #fff;
}

.content {
  padding: 2rem 0 3rem;
}

h1, h2, h3 {
  line-height: 1.25;
}

h1 { font-size: 2rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 1.5rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }

a { color: var(--link); }
a:hover { text-decoration: underline; }

.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
}

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { margin: .5rem 0; }
.meta { color: var(--muted); font-size: .95rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

.about-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.profile-pic img {
  width: 180px;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.bio {
  flex: 1;
}

.contact-icons {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-icons li a {
  text-decoration: none;
  font-size: 1rem;
  color: var(--text);
}

.contact-icons li a:hover {
  color: var(--link);
}

/* Make the "Abstract" label use the same color as the title link */
details.abstract > summary {
  color: var(--link);      /* same var used by .pub-title a */
  font-weight: 600;
  cursor: pointer;
}

details.abstract > summary:hover {
  text-decoration: underline;
}

/* Wider page like the example */
.container { max-width: 1100px; }

/* Big centered name in blue */
.page-name {
  text-align: center;
  font-weight: 300;
  font-size: 2.4rem;
  margin: 1rem 0 2rem;
  color: #2a79a6; /* tweak if you want a different blue */
}

/* Two-column hero section */
.about-hero {
  display: grid;
  grid-template-columns: 360px 1fr; /* photo left, text right */
  gap: 2.5rem;
  align-items: start;
}

/* Photo like the sample (no rounded corners) */
.profile-pic img {
  width: 360px;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  border: 1px solid var(--border);
}

/* Comfortable reading width */
.bio { max-width: 740px; }
.bio p { line-height: 1.85; }

/* Centered CV line like the example */
.cv-center {
  text-align: center;
  margin: 1.25rem 0 1.5rem;
}

/* Contact block (no bullets/icons) */
.contact-block p { margin: .35rem 0; }
.contact-block a { text-decoration: underline; }

/* Make the left column narrower and the photo scale to it */
.about-hero { grid-template-columns: 260px 1fr; }  /* good */
.profile-pic img { width: 100%; height: auto; }   /* <-- use auto, not 50% */


/* Make the left column narrower and the photo scale to it */
.about-hero { grid-template-columns: 260px 1fr; }  /* try 220–300px */
.profile-pic img { width: 100%; height: 50%; }

/* Mobile edge padding */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;   /* 20px; bump this to 1.5rem if you want wider */
    padding-right: 1.25rem;
  }
}

/* Make journal / series names bold (and keep other meta normal) */
.pub-meta .journal { font-weight: 700; }
/* If you also want them italic, uncomment the next line */
/* .pub-meta .journal { font-weight:700; font-style:italic; } */

/* ensure non-linked titles match too */
.pub-title { color: var(--link); }

/* Centered name like Andrea's: lighter, blue, slightly higher */
.page-name{
  text-align:center;
  font-weight:300;           /* not bold */
  font-size:2.6rem;          /* adjust 2.3–2.8rem to taste */
  line-height:1.15;
  color:#4a7cab;             /* dark-ish blue; or use var(--link) */
  margin:0.75rem 0 1.75rem;  /* "a bit up" = small top margin */
}

/* Research fields line in the right column */
.research-fields { margin-top: .75rem; }

/* Centered CV + left-aligned contact block, like the reference */
.bottom-contact {
  max-width: 560px;          /* narrow column centered */
  margin: 1.25rem auto 0;
}
.bottom-contact .cv-center {
  text-align: center;
  margin: 1rem 0 1.25rem;
}
.bottom-contact p { margin: .4rem 0; }
.bottom-contact a { text-decoration: underline; }


/* Nudge content closer to header if you want it higher overall */
.content{ padding-top:1.25rem; }   /* was likely 2rem in your sheet */

/* Desktop (unchanged): photo left, text right */
.about-hero{
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-template-areas: "pic bio";
  gap: 2.5rem;
  align-items: start;
}
.profile-pic { grid-area: pic; }
.bio        { grid-area: bio; }

/* Mobile: stack, image first */
@media (max-width: 900px){
  .about-hero{
    grid-template-columns: 1fr;
    grid-template-areas:
      "pic"
      "bio";
  }
  .profile-pic img{
    display: block;
    width: 88vw;          /* scale nicely on phones */
    max-width: 560px;
    height: auto;
    margin: 0 auto;       /* center the image */
  }
  .bio{
    margin: 0 auto;       /* keep text centered within page width */
    max-width: 680px;
  }
  .page-name{             /* shrink the big name heading on phones */
    font-size: 2.2rem;
    margin: .5rem 0 1rem;
  }
}

/* Optional: make mobile edges comfier */
@media (max-width: 768px){
  .container{ padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* Desktop: photo left, text right; narrow photo column */
.about-hero{
  display: grid;
  grid-template-columns: 260px 1fr;  /* try 220–300px */
  gap: 2rem;
  align-items: start;
}
.profile-pic img{
  width: 100%;
  height: auto;       /* important: no fixed height */
  display: block;
}

/* Mobile: stack with a smaller photo like the reference */
@media (max-width: 900px){
  .about-hero{
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .profile-pic img{
    width: 68vw;       /* adjust 60–72vw to taste */
    max-width: 360px;  /* hard cap */
    height: auto;
    margin: 0 auto;    /* center image */
  }
  .bio{
    margin: 0 auto;
    max-width: 680px;
  }
}

/* Keep your mobile edge padding */
@media (max-width: 768px){
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.photo-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;   /* optional */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* optional */
}

.cv-and-icons a {
  text-decoration: none;   /* remove underline */
}

.cv-and-icons a:hover {
  text-decoration: none;   /* also remove underline on hover */
}

.cv-and-icons a {
  color: black;             /* make all icons black */
  text-decoration: none;    /* remove underline */
}

.cv-and-icons a:hover {
  color: #555;              /* dark gray on hover */
}

.profile-pic img {
  width: 200%;   /* 30% smaller */
  height: auto; /* keeps proportions */
  display: block;
  margin: 0 auto; /* keeps it centered */
}

@media (max-width: 900px){
  .profile-pic img{
    width: 70% !important;   /* enforce 30% smaller on mobile too */
    height: auto;
    margin: 0 auto;
  }
}

/* Mobile: stack, center the photo, and make the text use full width */
@media (max-width: 900px){
  .about-hero{
    display: grid;
    grid-template-columns: 1fr;   /* stack */
    gap: 1rem;
    align-items: start;
  }

  .profile-pic{
    justify-self: center;         /* center the image block */
  }
  .profile-pic img{
    width: min(92vw, 420px);      /* responsive but not too big */
    height: auto;
    display: block;
  }

  .bio{
    width: 100%;
    max-width: none;               /* override any 680px cap */
    margin: 0;                     /* remove centering margins */
    text-align: left;              /* ensure left-aligned text */
  }

  .bio p:first-of-type{
    margin-top: 0;                 /* align top neatly under the photo */
  }
}

.cv-and-icons p {
  display: flex;
  justify-content: center; /* centers icons horizontally */
  gap: 20px;               /* equal space between icons */
  margin: 0;               /* remove extra paragraph margin */
}

/* Reset any old "flex on all p" rule inside .cv-and-icons */
.cv-and-icons p { display: block; gap: 0; justify-content: initial; }

/* CV line: normal inline text flow (no gap) */
.cv-and-icons .cv-line{
  text-align: center;
  margin: 0 0 10px;
  white-space: normal;
}
.cv-and-icons .cv-line a{
  margin: 0;
  padding: 0;
  text-decoration: none;        /* optional */
  color: #1d71b8;               /* optional: match other links */
}

/* Icons row only: centered flex with even spacing */
.cv-and-icons .icon-row{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
}

.profile-pic img {
  width: 280px;   /* increase from default ~220–260px */
  height: auto;
  border-radius: 4px; /* optional, keep image sharp */
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 25px;     /* adds equal space between icons */
  margin-top: 10px; /* adds space between CV line and icons */
}

.icon-row a {
  color: black;
  text-decoration: none;
}

.cv-and-icons a {
  color: black;             /* make all icons black */
  text-decoration: none;    /* remove underline */
}

.cv-and-icons a:hover {
  color: #555;              /* dark gray on hover */
}

.cv-and-icons a {
  text-decoration: none !important;  /* removes underline */
  color: black;                      /* keep icons black */
}

.cv-and-icons a:hover {
  text-decoration: none !important;  /* no underline on hover */
  color: #555;                       /* optional subtle hover color */
}

.cv-and-icons {
  text-align: center;   /* centers text + icons */
  margin-top: 15px;
}

.cv-and-icons a {
  color: black;          /* icons are black */
  text-decoration: none; /* removes underline (the "dash") */
  margin: 0 10px;
}

.cv-and-icons a:hover {
  color: #555;           /* optional: subtle gray hover */
  text-decoration: none;
}

