/* elias s. myers — personal site */

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  background: #fff;
  margin: 0;
  padding: 0;
}

#wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* header */
#site-header {
  border-bottom: 1px solid #000;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

#site-header h1 {
  font-size: 1.4rem;
  font-weight: normal;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}

nav {
  font-size: 0.9rem;
  font-family: Arial, Helvetica, sans-serif;
}

nav a {
  margin-right: 1rem;
  color: #00e;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

nav a.active {
  text-decoration: underline;
  color: #000;
}

/* headings */
h1,
h2,
h3 {
  font-weight: normal;
  line-height: 1.3;
}

h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2rem;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.25rem;
}

/* post/byline lists */
ul.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.post-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

ul.post-list li:last-child {
  border-bottom: none;
}

.post-date {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #555;
  white-space: nowrap;
  min-width: 6rem;
}

.post-title a {
  color: #00e;
  text-decoration: none;
}

.post-title a:visited {
  color: #551a8b;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-excerpt {
  font-size: 0.88rem;
  color: #444;
  margin: 0.15rem 0 0;
}

/* bylines */
ul.byline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.byline-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: nowrap;
}

.byline-pub {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #555;
  white-space: nowrap;
  min-width: 10rem;
  flex-shrink: 0;
}

.byline-title {
  flex: 1;
  min-width: 0;
}

.byline-title a {
  color: #00e;
  text-decoration: none;
  word-wrap: break-word;
}

ul.byline-list li:last-child {
  border-bottom: none;
}

.byline-pub {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #555;
  white-space: nowrap;
}

.byline-title a {
  color: #00e;
  text-decoration: none;
}

.byline-title a:visited {
  color: #551a8b;
}

.byline-title a:hover {
  text-decoration: underline;
}

/* individual post page */
.post-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.75rem;
}

.post-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.post-meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  color: #555;
}

.post-body {
  margin-top: 1.25rem;
}

.post-body p {
  margin: 0 0 1rem;
}

.post-body i,
.post-body em {
  font-style: italic;
}

.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

.post-nav {
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ccc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
}

/* about / bio */
.bio {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* footer */
#site-footer {
  margin-top: 3rem;
  padding-top: 0.75rem;
  border-top: 1px solid #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #555;
}

#site-footer a {
  color: #00e;
  text-decoration: none;
}

#site-footer a:hover {
  text-decoration: underline;
}

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

/* ---- about page ---- */
.about-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.about-photo {
  flex-shrink: 0;
  width: 200px;
  border: 1px solid #ccc;
  padding: 4px;
  background: #f8f8f8;
  font-size: 0.78rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #555;
  text-align: center;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-caption {
  margin: 4px 0 0;
  line-height: 1.3;
  padding: 0 2px;
}

.about-text p {
  margin: 0 0 0.85rem;
}

/* back button in post nav */
.post-nav-sides {
  display: flex;
  gap: 1.5rem;
}

/* mobile: stack photo above text */
@media (max-width: 520px) {
  .about-wrap {
    flex-direction: column;
  }

  .about-photo {
    width: 160px;
  }
}