@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html{
  background-color: #f7f9f8;
  background-size: 8px 8px;
}

body{
  background-color: #ffffff;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border: 1px solid #d7dfeb;
  border-radius: 18px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1080px;
  min-width: 320px;
  padding: 8px 24px 28px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

a {
  text-decoration: none;
  color: #007d51;
}
a:hover {
  text-decoration: underline;
}

nav {
  position: sticky;
  top: 0;
  z-index: 10;
}
nav ul{
  display: flex;
  align-items: center;
  gap: 16px;
  list-style-type: none;
  background-color: #ffffff;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
nav ul li{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 10px;
}
nav ul li a {
  color: #1a1c20;
}
nav li.selected {
  color: #0f172a;
  background: #e8f5e9;
}
nav li.selected a{
  color: #007d51;
}

img {
  border: 3px solid #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.wrapper{
  margin-top: 12px;
}

.header-bar{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.avatar{
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

.section {
  padding: 0;
  margin: 24px 0;
}

.section_header {
  margin-bottom: 8px;
}
.section_header p{
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.title {
  font-family: cursive;
}

.author {
  color: #0f172a;
  font-weight: 600;
}

.social-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-links a{
  font-weight: 600;
}
.meta-line{
  color: #4a5365;
}

.profile-card{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.profile-placeholder{
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg,#007d51,#2e9e62);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.profile-meta{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-links a{
  margin-right: 12px;
  font-weight: 600;
}
.pill{
  display: inline-block;
  background: #e8f5e9;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin: 4px 6px 0 0;
}

.pub-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pub-item{
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 0;
}
.pub-image img {
  width: 250px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  border: none;
  box-shadow: none;
}
.pub-content {
  flex: 1;
}
.pub-item + .pub-item{
  margin-top: 0;
}
.pub-title{
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 8px;
  color: #0f172a;
  line-height: 1.3;
}
.pub-links a{
  margin-right: 10px;
  font-weight: 600;
  font-size: 15px;
}
.meta{
  color: #4a5365;
  font-size: 15px;
}

.two-col{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 12px 16px;
}
.list-unstyled{
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.list-unstyled li{
  margin-bottom: 6px;
}

footer {
  clear: both;
  background-color: #ffffff;
  border: 1px solid #d7dfeb;
  border-radius: 16px;
  padding: 12px;
  margin-top: 24px;
  text-align: center;
  color: #4a5365;
}
