.profile {
   flex: 1;
   margin-right: 50px;
   margin-top: 30px;
}

.statement {
  flex: 1;
   margin-right: 50px;
   margin-top: 17px;
}

.sidebar {
   flex: 0 1 360px;
}

@media screen and (min-width: 640px){
   .flex-container {
      display: flex;
   }    
}

.wrapper {
   margin: auto;
   max-width: 720px;
}

.text {
   width:340px;
   margin:20px;
   padding-right:10px;
} 

.content {
   width:100%;
   margin-top:50px;
}

.b2 {
   opacity: 0;
   animation: fadeInAnimation ease 2s;
   animation-iteration-count: 1;
   animation-fill-mode: forwards;
   animation-delay: 0.5s;
}

.b3 {
   opacity: 0;
   animation: fadeInAnimation ease 2s;
   animation-iteration-count: 1;
   animation-fill-mode: forwards;
   animation-delay: 1s;
}

.b4 {
   opacity: 0;
   animation: fadeInAnimation ease 2s;
   animation-iteration-count: 1;
   animation-fill-mode: forwards;
   animation-delay: 1.5s;
}

@keyframes fadeInAnimation {
   0% {
      opacity: 0;
   }
   100% {
      opacity: 1;
   }
}

body {
   background-color: #F6F6F7;
   color: #403E43;
   font-family: 'IBM Plex Sans', sans-serif;
   font-size: 15px;
   font-weight: 400;
   line-height: 24px;
}

h1 {
   font-size: 18px;
   letter-spacing: .25px;
   line-height: 28px;
   font-weight: 600;
}

h2 {
   color: #9F9EA1;
   font-size: 12px;
   letter-spacing: 1.5px;
   line-height: 20px;
   margin-top: 30px;
   text-transform: uppercase;
}

.font-fix {
   color: inherit;
   font-size: inherit;
   font-weight: inherit;
   font-family: 'Roboto', sans-serif;
}

a {
   color: inherit;
}

a:link {
   text-decoration: none;
}
    
a:visited {
   text-decoration: none;
}

a:hover {
   text-decoration: underline;
   text-decoration-thickness: 1px;
   text-underline-offset: 3px;
}

a:active {
   text-decoration: underline;
   text-decoration-thickness: 1px;
   text-underline-offset: 3px;
}

.image-cropper {
   width: 320px;
   height: 320px;
   position: relative;
   overflow: hidden;
   border-radius: 50%;
   margin-right:30px;
}

.image-cropper img {
   display: inline;
   margin: 0 auto;
   height: 100%;
   width: auto;
}

/*
  Publications page tweaks (scoped so index.html is unaffected)
  - Widen overall layout
  - Top-align columns
  - Give the right column more room
  - Establish clear hierarchy: year (meta) / title+venue / description
*/
body.publications-page .flex-container.wrapper {
  max-width: 1080px;
  gap: 56px;
  align-items: flex-start;
}

body.publications-page .profile {
  flex: 0 0 32%;
  max-width: 360px;
  margin-right: 0;
  margin-top: 0;
}

body.publications-page .sidebar {
  flex: 1 1 68%;
  max-width: 680px;
}

/* Override shared "text" sizing so publications can use available width */
body.publications-page .text {
  width: auto;
  max-width: none;
  margin: 0;
  padding-right: 0;
}

/* Publication entry spacing */
body.publications-page .sidebar p {
  margin: 0 0 1.35em 0;
}

body.publications-page .sidebar p:last-child {
  margin-bottom: 0;
}

/* Year as metadata */
body.publications-page .pub-year {
  display: inline-block;
  margin-bottom: 0.25em;
  font-size: 0.82em;
  letter-spacing: 0.02em;
  color: #777;
}

/* Description as secondary text */
body.publications-page .pub-desc {
  display: block;
  margin-top: 0.35em;
  font-size: 0.92em;
  line-height: 1.55;
  color: #555;
}

/* Scholar link should read as a section footer */
body.publications-page .pub-footer {
  margin-top: 0.25em;
  font-size: 0.92em;
  color: #555;
}

/* Mobile: keep margins comfortable when stacked */
@media screen and (max-width: 639px) {
  body.publications-page .text {
    margin: 20px;
  }
}

body.publications-page .sidebar .desc {
  display: block;
  font-size: 0.92em;
  line-height: 1.55;
  color: #555;
}

/* Make years feel like metadata */
body.publications-page .sidebar .year {
  display: inline-block;
  margin-bottom: -0.25em;
  font-size: 0.82em;
  letter-spacing: 0.02em;
  color: #777;
}
