/* ===== Neutral Blog Layout CSS (No Colors) ===== */
:root {
  --radius: 12px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --max-width: 72ch;
  --base-font: clamp(17px, 1.2vw + 0.2rem, 15px);
  --line-height: 1.7;
  --h1: clamp(1.9rem, 2.6vw + 1rem, 2.4rem);
  --h2: clamp(1.4rem, 1.6vw + 0.8rem, 2rem);
  --h3: clamp(1.2rem, 1vw + 0.7rem, 1.5rem);
}

body {
  margin: 0;
  padding: 0;
  font-size: var(--base-font);
  line-height: var(--line-height);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

article.blogPost {
  /* max-width: var(--max-width); */
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
}

/* Headings */
.blogPost h1 {
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.blogPost h2,
.blogPost h3 {
  line-height: 1.25;
  font-weight: 700;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.blogPost h1 { font-size: var(--h1) !important; border-bottom: 1px solid rgba(0, 0, 0, .09);}
.blogPost h2 { font-size: var(--h2) !important; border-bottom: 1px solid rgba(0, 0, 0, .09);}
.blogPost h3 { font-size: var(--h3) !important; border-bottom: 1px solid rgba(0, 0, 0, .09);}

#about h1::after {
	position: absolute;
	content: "";
	background-color: var(--accent-color);
	height: 3px;
	width: 80%;
	bottom: -1px;
	left: 0
}
#about h2::after {
	position: absolute;
	content: "";
	background-color: var(--accent-color);
	height: 3px;
	width: 50px;
	bottom: -1px;
	left: 0
}
#about h3::after {
	position: absolute;
	content: "";
	background-color: var(--accent-color);
	height: 3px;
	width: 50px;
	bottom: -1px;
	left: 0
}
#about h4::after {
	position: absolute;
	content: "";
	background-color: var(--accent-color);
	height: 3px;
	width: 50px;
	bottom: -1px;
	left: 0
}
#about h5::after {
	position: absolute;
	content: "";
	background-color: var(--accent-color);
	height: 3px;
	width: 50px;
	bottom: -1px;
	left: 0
}

/* Paragraphs */
.blogPost p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

/* Lists */
.blogPost ul,
.blogPost ol {
  margin-top: 0;
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.blogPost li {
  margin-bottom: var(--space-2);
}

/* Images */
.blogPost img,
.blogPost figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: var(--space-5) auto;
}

/* Figures */
.blogPost figure {
  margin: var(--space-5) 0;
}

.blogPost figcaption {
  text-align: center;
  font-size: 0.9em;
  margin-top: var(--space-2);
}

/* Blockquotes */
.blogPost blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Code */
.blogPost code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.blogPost pre {
  overflow: auto;
  padding: var(--space-4);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Tables */
.blogPost table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: 0.95em;
}

.blogPost th,
.blogPost td {
  padding: 0.75rem 0.9rem;
  border: 1px solid;
  text-align: left;
}

/* Horizontal rule */
.blogPost hr {
  border: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.2;
  margin: var(--space-6) 0;
}

/* Responsive adjustments */
@media (min-width: 600px) {
  article.blogPost {
    /* padding: var(--space-7) var(--space-6); */
  }
}

@media (min-width: 1100px) {
  article.blogPost {
    /* max-width: min(78ch, 92vw); */
  }
}
