main {
  display: flex;
  justify-content: center;
  padding: 1rem;
}
main .microblog {
  width: 100%;
  max-width: 42rem;
}

/* Variables */
/* Main Container */
section.microblog {
  margin: 0 auto;
  height: fit-content;
  border-left: 1px solid #eff3f4;
  border-right: 1px solid #eff3f4;
}

/* Tweet Card */
article.tweet {
  position: relative;
  /* Essential for the stretched link context */
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eff3f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #fff;
  transition: background-color 0.2s ease;
  cursor: pointer;
  /* Hover effect for the whole card */
  /* Left Column: Avatar */
  /* Right Column: Content */
}
article.tweet:hover {
  background-color: #f7f9f9;
}
article.tweet .tweet-avatar {
  flex-shrink: 0;
}
article.tweet .tweet-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #eff3f4;
  /* Fallback color while loading */
}
article.tweet .tweet-content {
  flex-grow: 1;
  min-width: 0;
  /* Prevents flex items from overflowing */
  /* Header: Name, Handle, Date */
  /* Body Text */
}
article.tweet .tweet-content .tweet-header {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 15px;
  margin-bottom: 2px;
  line-height: 20px;
  /* The clickable timestamp */
}
article.tweet .tweet-content .tweet-header .display-name {
  font-weight: 700;
  color: #0f1419;
}
article.tweet .tweet-content .tweet-header .handle,
article.tweet .tweet-content .tweet-header .separator {
  color: #536471;
  font-weight: 400;
}
article.tweet .tweet-content .tweet-header .handle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
article.tweet .tweet-content .tweet-header .tweet-link {
  color: #536471;
  text-decoration: none;
  font-weight: 400;
  /* The "Stretched Link" Magic */
}
article.tweet .tweet-content .tweet-header .tweet-link:hover {
  text-decoration: underline;
}
article.tweet .tweet-content .tweet-header .tweet-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  /* Covers the card */
}
article.tweet .tweet-content .tweet-body {
  color: #0f1419;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  /* Internal links (raised above the card link) */
  /* Markdown reset */
  /* Optional: formatting for blockquotes or lists inside tweets */
}
article.tweet .tweet-content .tweet-body a {
  color: #1d9bf0;
  text-decoration: none;
  position: relative;
  z-index: 2;
  /* Ensures you can click links inside the text */
}
article.tweet .tweet-content .tweet-body a:hover {
  text-decoration: underline;
}
article.tweet .tweet-content .tweet-body p {
  margin: 0 0 8px 0;
}
article.tweet .tweet-content .tweet-body p:last-child {
  margin-bottom: 0;
}
article.tweet .tweet-content .tweet-body blockquote {
  border-left: 3px solid #eff3f4;
  margin: 8px 0;
  padding-left: 12px;
  color: #536471;
}
