body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f6fa;
  color: #222;
}

.hero {
  background: linear-gradient(90deg,#07235c,#0f4db8);
  color: white;
  padding: 22px 0;
}

.overlay {
  margin-left: 80px;
}

.hero h1 {
  margin: 0;
  font-size: 52px;
  font-weight: 700;
}

.author-line {
  margin-top: 8px;
  font-size: 26px;
  font-style: italic;
  font-family: Georgia, serif;
  opacity: 0.95;
}

.hero p {
  font-size: 24px;
}

nav {
  background: white;
  padding: 15px 80px;
  border-bottom: 1px solid #ddd;
}

nav a {
  margin-right: 30px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.container {
  display: flex;
  width: 90%;
  margin: 20px auto;
  gap: 40px;
}

main {
  flex: 3;
  background: white;
  padding: 30px;
  border-radius: 8px;
}

aside {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.profile {
  width: 140px;
  border-radius: 50%;
  display: block;
  margin: auto;
}

.post-card {
  background: #f8f9fc;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #0b4fc1;
}

.post-card a {
  color: #0b4fc1;
  text-decoration: none;
}

footer {
  background: #031b4e;
  color: white;
  text-align: center;
  padding: 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(90deg, #0b2a6f, #1550c0);
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    flex-direction: column;   /* important: puts author below title */
    gap: 2px;
    align-items: flex-start;
}

.site-title {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.site-author {
    font-size: 16px;
    font-style: italic;
    font-family: Georgia, serif;
    color: #f0f4ff;
    margin-top: 2px;
    padding-top: 0;
    line-height: 1;
    padding-left: 12px;
}

/* ===== PROFILE IMAGE ===== */
.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;   /* prevents image stretching */
    display: block;
    margin: 0 auto 20px auto;
    overflow: hidden;
}
