/* ===== Mobile-first optimizations ===== */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  article {
    max-width: 100%;
    padding: 1.75rem 1.2rem;
    border-radius: 0;
    box-shadow: none;
    background: #0b0f14;
  }

  /* Headings */
  h1 {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  /* Text */
  p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Lists */
  ul {
    padding-left: 1.2rem;
  }

  li {
    margin-bottom: 0.55rem;
  }

  /* Learn More CTA */
  .learn-more a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  /* Highlight blocks */
  .highlight {
    padding: 0.9rem 1rem;
    margin: 1.5rem 0;
  }

  /* Tables */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th, td {
    font-size: 0.9rem;
  }

  /* Code blocks */
  pre {
    overflow-x: auto;
    font-size: 0.85rem;
  }
}

/* ===== Small phones ===== */
@media (max-width: 480px) {

  body {
    font-size: 14.5px;
  }

  article {
    padding: 1.4rem 1rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  p {
    font-size: 0.92rem;
  }

  .article-meta {
    font-size: 0.8rem;
  }
}
