/* Primary Design Co Blog custom stylesheet */

/* Base typography */
body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

/* Constrain content width and center */
.page-content,
.site-content,
main {
  max-width: 840px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #222;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Paragraph styling */
p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* Hyperlinks */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* Ad section styling */
.ad-section {
  margin: 2rem 0;
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* Footnotes and references */
.footnotes {
  font-size: 0.85rem;
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.footnotes p {
  margin-bottom: 0.5rem;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  body {
    color: #ddd;
    background-color: #121212;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #f9f9f9;
  }

  hr,
  .ad-section {
    border-color: #444;
  }

  a {
    color: #8bbaff;
  }

  a:hover {
    color: #b2ceff;
  }
}

/* Utility: slightly smaller text on mobile screens */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .page-content,
  .site-content,
  main {
    padding: 1.25rem 1rem;
  }
}
