/* Base styles */
body {
  font-family: 'EB Garamond', serif;
  margin: 0;
  padding: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;
}

/* Centered header content */
.top-header {
  text-align: center;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Contact icons row */
.contact-inline {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.contact-inline .icon {
  width: 20px;
  height: 20px;
  transition: opacity 0.2s ease;
}

.contact-inline .icon:hover {
  opacity: 0.7;
}

/* Special styling for X icon */
.icon-x {
  background-color: black;
  filter: invert(1); /* makes black icon white */
}

/* Profile and intro side by side */
.intro-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

img.profile {
  width: 250px;
  height: 250px;
  object-fit: cover;
}

.intro-text p {
  font-size: 1.05rem;
  margin: 0;
}

/* Section headings */
h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

/* Links */
a {
  color: black;
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2rem 0;
}

/* Responsive design */
@media (max-width: 600px) {
  body {
    padding: 1rem;
    font-size: 1rem;
  }

  .intro-section {
    flex-direction: column;
  }

  .intro-text {
    text-align: left;
  }

  img.profile {
    width: 150px;
    height: 150px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .contact-inline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}

.writing-list {
  list-style: none;
  padding-left: 0;
}

.writing-list li {
  margin-bottom: 1rem;
}

.writing-date {
  font-weight: bold;
  margin-right: 0.5rem;
  color: #555;
}
