/**
 * article.css - Article & Footer Styles
 *
 * Styles for blog post content including:
 * - Article typography (headings, paragraphs, lists)
 * - Post metadata (date, updated, tags)
 * - Code blocks and inline code
 * - Blockquotes and TL;DR callout
 * - Links, tables, images
 * - Footer
 */

/* Article Typography */
article h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Post Date */
.post-date {
  color: #57606a;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.post-updated {
  color: #8b949e;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: #f6f8fa;
  border-radius: 16px;
  border: 1px solid #d0d7de;
  color: #57606a;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
}

article h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 1px solid #e1e4e8;
  padding-bottom: 0.3rem;
}

article h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
  font-weight: 600;
  color: #1a1a1a;
}

article p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

article ul,
article ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

article li {
  margin-bottom: 0.5rem;
}

/* Article Media */
article img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
}

/* Code Blocks */
article pre {
  background: #f6f8fa;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid #e1e4e8;
}

article code {
  background: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

article pre code {
  background: none;
  padding: 0;
}

/* Blockquotes */
article blockquote {
  border-left: 4px solid #d0d7de;
  padding-left: 1rem;
  color: #57606a;
  margin: 1rem 0;
}

/* TL;DR callout */
article .tldr {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-left: 4px solid #0969da;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

article .tldr::before {
  content: 'TL;DR';
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0969da;
  margin-bottom: 0.5rem;
}

article .tldr blockquote {
  border-left: none;
  padding-left: 0;
  color: #24292f;
  margin: 0;
}

/* Links */
article a {
  color: #0969da;
  text-decoration: none;
}

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

/* Tables */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

article table th,
article table td {
  padding: 0.5rem;
  text-align: left;
  border: 1px solid #d0d7de;
}

article table th {
  background: #f6f8fa;
  font-weight: 600;
  color: #1a1a1a;
}

article table tr:hover {
  background: #f6f8fa;
}

/* Footer */
footer {
  border-top: 1px solid #e1e4e8;
  padding: 2rem 1rem;
  text-align: center;
  color: #57606a;
  margin-top: 4rem;
}

footer a {
  color: #57606a;
  margin: 0 1rem;
  text-decoration: none;
}

footer a:hover {
  color: #0969da;
}
