/* ===========================
   Base & Reset
=========================== */
html {
  font-size: 16px; /* 1rem = 16px */
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, li {
  margin: 0.8rem 0;
  padding: 0;
  line-height: 1.6rem;
}

/* ===========================
    Typography
=========================== */
h1 {
  font-size: 2.25rem; /* 36px */
  line-height: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.875rem; /* 30px */
  line-height: 2.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem; /* 24px */
  line-height: 2rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.75rem;
  font-weight: 500;
}

h5 {
  font-size: 1.125rem; /* 18px */
  line-height: 1.75rem;
  font-weight: 500;
}

h6 {
  font-size: 1rem; /* 16px */
  line-height: 1.5rem;
  font-weight: 600;
}

p,
ul,
ol {
  font-size: 1rem;
  line-height: 1.6rem;
  margin: 1rem 0;
}

span {
  font-size: 1rem;
  line-height: 1.5rem;
}

small {
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem;
  color: #666;
}

/* ===========================
    Lists
=========================== */
article ul, article ol {
  margin: 1rem 0 1rem 2rem;
  padding-left: 1.5rem;
}

article ul {
  list-style-type: disc;
}

article ol {
  list-style-type: decimal;
}

article li {
  margin-bottom: 0.5rem;
  line-height: 1.6rem;
  text-align: justify;
}

/* ===========================
    Links
=========================== */
article a {
  line-height: 1.5rem;
  text-decoration: none;
}

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

.intro a:hover {
  text-decoration: underline;
}

.intro a {
  line-height: 1.5rem;
  text-decoration: none;
}

/* ===========================
    Blog Post Layout
=========================== */
.blog-post {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 30px;
  border-radius: 8px;
}

.blog-post h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #222;
}

.blog-post .meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

.blog-post .intro {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.blog-post .body {
  font-size: 1rem;
  line-height: 1.8;
}

.blog-post .body p {
  margin-bottom: 15px;
}

.blog-post .body h2 {
  font-size: 1.8rem;
  margin: 20px 0 10px;
}

.blog-post .body h3 {
  font-size: 1.4rem;
  margin: 15px 0 10px;
}

/* ===========================
    Media & Visual Elements
=========================== */
.blog-post img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 15px 0;
}

img.full-width {
  width: 100% !important;
}

/* ===========================
    Tags & Categories
=========================== */
.blog-post .categories {
  margin-top: 25px;
}

.blog-post .categories a {
  display: inline-block;
  background: #e0e0e0;
  color: #333;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  margin-right: 5px;
}

.blog-post .categories a:hover {
  color: #fff;
}

/* ===========================
    Blockquotes & Code
=========================== */
.blog-post blockquote {
  padding-left: 15px;
  color: #555;
  font-style: italic;
  margin: 20px 0;
}

.blog-post pre {
  background: #f4f4f4;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
}

/* ===========================
    Article Formatting
=========================== */
article p {
  text-align: justify;
  line-height: 1.6rem;
}

article ul, article ol {
  margin-left: 2rem;
  list-style-position: outside;
}

.intro p {
  text-align: justify;
  line-height: 1.6rem;
}

.intro ul, .intro ol {
  margin-left: 2rem;
  list-style-position: outside;
}

.intro ul, article ul {
  list-style-type: disc; /* restores bullets */
}

.intro ol, article ol {
  list-style-type: decimal; /* restores numbers */
}

/* ===========================
    Responsive
=========================== */
@media (max-width: 768px) {
  .blog-post {
    padding: 20px;
  }

  .blog-post h1 {
    font-size: 2rem;
  }

  .blog-post .intro {
    font-size: 1.1rem;
  }
}

article {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #212529;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}