/* ===========================
   FONT IMPORTS
   =========================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Roboto:wght@100..900&display=swap");

/* ===========================
   GLOBAL BASE
   =========================== */
html {
  font-size: 18px;
  line-height: 1.65; /* Better readability */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 0 1em 0;
  font-family: Arial, Helvetica, sans-serif; 
  color: #1a1a1a;

  /* --- Your original GRID background (KEPT) --- */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 10px 10px;
  background-attachment: fixed;
}

/* ===========================
   MAIN CONTAINER
   =========================== */
.main {
  font-size: 1.125rem; /* 18px * 1.125 = 20.25px */
  margin-top: 75px;
}

.content {
  max-width: 750px;
  padding: 1rem;
  margin: auto;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
p {
  margin: 1rem 0;
  max-width: 70ch; /* optimal line length */
}

/* ===========================
   HEADINGS
   =========================== */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 2rem 0 1rem;
}

h2 {
  font-size: 1.8rem;
  margin: 1.8rem 0 1rem;
}

h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.8rem;
}

h4 {
  font-size: 1.25rem;
  margin: 1.2rem 0 0.6rem;
}

/* ===========================
   LINKS
   =========================== */
a {
  color: #0073e6;
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* ===========================
   IMAGES
   =========================== */
img {
  max-width: 100%;
  border-radius: 6px;
}

/* ===========================
   CODE BLOCKS
   =========================== */
.code {
  border: 1px solid rgba(0,0,0,0.15);
  background: #f7f7f7;
  padding: 0.75rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: "Source Code Pro", monospace;
}

/* ===========================
   ARTICLE CARD
   =========================== */
article {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}
