/* Custom styles for improved aesthetics */

/* Center and constrain main content */
.wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 20px;
}

/* Remove fixed sidebar layout - make it centered */
header {
  width: 100%;
  float: none;
  position: static;
  text-align: center;
  margin-bottom: 0;
  padding: 0;
  border-bottom: none;
  display: none; /* Hide empty header */
}

header h1 {
  margin-bottom: 0.5rem;
}

header p {
  margin: 0;
  color: #727272;
}

/* Main content section - centered and full width */
section {
  width: 100%;
  float: none;
  padding: 2rem 0 3rem 0;
  margin: 0 auto;
  text-align: left;
}

/* Improved typography */
body {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background-color: #fff;
  padding: 0;
}

/* Better heading hierarchy */
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 700;
  text-align: center;
}

section > h1:first-child {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e5e5;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #444;
  font-weight: 600;
}

h4, h5, h6 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 600;
}

/* Improved paragraph spacing */
p {
  margin: 0 0 1.25rem 0;
  line-height: 1.7;
  color: #444;
}

/* Center the greeting */
section > p:first-of-type {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Better list styling */
ul, ol {
  margin: 0 0 1.5rem 0;
  padding-left: 2rem;
  line-height: 1.7;
}

li {
  margin-bottom: 0.75rem;
  color: #444;
}

li p {
  margin-bottom: 0.5rem;
}

/* Improved link styling */
a {
  color: #267CB9;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: #1a5a8a;
  text-decoration: underline;
}

/* Better image styling - centered and responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 4px;
}

/* Profile image specific styling */
section img[src*="portrait"] {
  max-width: 250px;
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 1.5rem auto 2.5rem auto;
  display: block;
}

/* Improved spacing for sections */
section > *:first-child {
  margin-top: 0;
}

/* Better table styling */
table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

th {
  font-weight: 600;
  color: #333;
  background-color: #f8f8f8;
}

/* Footer styling */
footer {
  width: 100%;
  float: none;
  position: static;
  text-align: center;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e5e5;
  color: #999;
}

footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* Publication list improvements */
section ul li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

section ul li strong {
  color: #222;
  font-weight: 600;
}

/* PDF link styling - clean and minimal with icon */
a.pdf-link {
  display: inline-block;
  margin-left: 0.5em;
  color: #dc3545;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1em;
  vertical-align: middle;
  opacity: 0.7;
}

a.pdf-link i {
  font-size: 1.1em;
}

a.pdf-link:hover,
a.pdf-link:focus {
  color: #c82333;
  opacity: 1;
  transform: scale(1.1);
  text-decoration: none;
}

/* Better blockquote styling */
blockquote {
  border-left: 3px solid #267CB9;
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-style: italic;
  color: #555;
  background-color: #f8f8f8;
}

/* Code styling improvements */
code {
  background-color: #f4f4f4;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  color: #d14;
}

pre {
  background-color: #f8f8f8;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background-color: transparent;
  padding: 0;
  color: #333;
}

/* Responsive design improvements */
@media screen and (max-width: 960px) {
  .wrapper {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 720px) {
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.35rem;
  }
  
  section img[src*="portrait"] {
    max-width: 200px;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .wrapper {
    padding: 0 10px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  ul, ol {
    padding-left: 1.5rem;
  }
}

