:root {
  --bg: #f7f5ef;
  --text: #1f1f1f;
  --muted: #6b6b63;
  --link: #1d4f91;
  --rule: #dcd8cc;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
}

main {
  max-width: 660px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.photo {
  float: right;
  width: 180px;
  height: 180px;
  margin: 0 0 16px 28px;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  margin: 8px 0 6px;
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  clear: both;
  margin: 40px 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 19px;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration-thickness: 2px;
}

.contact {
  margin-bottom: 4px;
  color: var(--muted);
}

.links {
  margin-bottom: 18px;
}

.entry {
  margin-bottom: 20px;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.when {
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.entry p {
  margin: 4px 0 0;
}

@media (max-width: 560px) {
  main {
    padding-top: 32px;
  }

  .photo {
    float: none;
    display: block;
    width: 140px;
    height: 140px;
    margin: 0 0 16px;
  }

  .entry-head {
    flex-direction: column;
    gap: 0;
  }
}
