/* ================== DESKTOP STYLES ================== */
body {
  font-family: Arial, sans-serif;
  max-width: 800px;   /* page width */
  margin: 0 auto;     /* center the container */
  padding: 1rem;
  background: #000;   /* pitch black */
  color: #fff;
  line-height: 1.6;
  text-align: left;   /* left-aligned text on desktop */
}

a {
  color: #4da3ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  text-align: left;    /* desktop header left-aligned */
  margin-bottom: 2rem;
  font-size: 2.2rem;
}

.post {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #333;
  text-align: left;    /* post content left-aligned on desktop */
}

.post h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.post h2 a {
  color: #fff;
  text-decoration: none;
}

.post p, 
.post small,
.post ul, 
.post ol,
.post pre,
.post blockquote {
  font-size: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ================== MOBILE OPTIMIZATION ================== */
@media (max-width: 768px) {
  body {
    max-width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
  }

  h1 {
    text-align: center;  /* main blog title centered on mobile */
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .post {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
  }

  .post h2 {
    text-align: center;  /* post title centered */
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .post small {
    display: block;
    text-align: center;  /* date centered */
    margin-bottom: 0.8rem;
  }

  /* CONTENT LEFT-ALIGNED */
  .post p,
  .post ul,
  .post ol,
  .post pre,
  .post blockquote {
    text-align: left;   /* content left-aligned */
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* ================== SMALL PHONES ================== */
@media (max-width: 480px) {
  body {
    font-size: 1rem;
    padding: 0.8rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .post h2 {
    font-size: 1.4rem;
  }

  .post p,
  .post small,
  .post ul,
  .post ol,
  .post pre,
  .post blockquote {
    font-size: 1rem;
  }

  .post {
    padding: 0.8rem 0;
    margin-bottom: 1.2rem;
  }
}

