:root {
  --space: 1rem;
  --half-space: 0.5rem;
  --grey-color: #666;
  --border-radius: 1rem;
}

body {
  font-family: Arial, sans-serif;
}

img {
  max-width: 100%;
}

input[type="text"],
input[type="password"],
button,
input[type="submit"],
input[type="email"] {
  padding: var(--half-space);
  border: 1px solid var(--grey-color);
}

#content {
  max-width: 60rem;
  min-height: 80vh;
  margin-inline: auto;
}

.profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space);
}

.profile .cover-image {
  grid-column: 1 / span 2;
}

.profile .col-1 {
  grid-column: 1 / span 1;
}

.profile .col-2 {
  grid-column: 2 / span 1;
}

.profile .avatar {
  display: flex;
  gap: var(--space);
}

.profile .avatar-image {
  flex-shrink: 1;
  flex-basis: 50%;
}

.profile .post time {
  float: right;
}

.thread-post {
  display: flex;
  gap: calc(2 * var(--space));
  border: 1px solid var(--grey-color);
  padding: var(--space);
  margin-block: var(--space);
  border-radius: var(--border-radius);
}

.thread-post-content > * {
  margin-top: 0;
}

.thread-post-user {
  display: flex;
  flex-direction: column;
  gap: var(--space);
  word-wrap: anywhere;
  flex-shrink: 0;
}

.thread-post-user-image {
  align-self: center;
  max-width: 100px;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: var(--space);
  margin-top: var(--space);
}

footer {
  padding: var(--space);
}
