/* ============================================
   WordPress Single Post Typography System
   Modern, Clean, Production-Ready
   ============================================ */

.post-content {
  /* Base Typography */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: #2c3e50;
  /* max-width: 720px; */
  margin: 0 auto;
  padding: 0 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Headings - Hierarchical Scale */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.post-content h1 {
  font-size: 2.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content h4 {
  font-size: 1.25rem;
}

.post-content h5 {
  font-size: 1.125rem;
}

.post-content h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Paragraphs */
.post-content p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 18px;
  line-height: 1.75;
}

.post-content p:last-child {
  margin-bottom: 0;
}

/* Links */
.post-content a {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.post-content a:hover {
  color: #1e40af;
}

.post-content a:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Lists */
.post-content ul,
.post-content ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
  padding-left: 0.25rem;
}

.post-content li:last-child {
  margin-bottom: 0;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-content ul ul {
  list-style-type: circle;
}

.post-content ul ul ul {
  list-style-type: square;
}

/* Blockquotes */
.post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #2563eb;
  background-color: #f8fafc;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569;
  font-style: italic;
}

.post-content blockquote p {
  margin-bottom: 0.75rem;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-style: normal;
  color: #64748b;
}

.post-content blockquote cite::before {
  content: "— ";
}

/* Images */
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 4px;
}

.post-content figure {
  margin: 2rem 0;
}

.post-content figure img {
  margin: 0 auto;
}

.post-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
  font-style: italic;
}

/* Code Blocks */
.post-content pre {
  margin: 2rem 0;
  padding: 1.25rem;
  background-color: #1e293b;
  border-radius: 6px;
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e2e8f0;
  -webkit-overflow-scrolling: touch;
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

.post-content code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875em;
  background-color: #f1f5f9;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: #e11d48;
  font-weight: 500;
}

/* Horizontal Rule */
.post-content hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}

/* Tables */
.post-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.post-content table thead {
  background-color: #f8fafc;
}

.post-content table th,
.post-content table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #e2e8f0;
}

.post-content table th {
  font-weight: 600;
  color: #fff;
}

.post-content table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Strong & Emphasis */
.post-content strong,
.post-content b {
  font-weight: 700;
  color: #fff;
}

.post-content em,
.post-content i {
  font-style: italic;
}

/* Small Text */
.post-content small {
  font-size: 0.875rem;
  color: #64748b;
}

/* Subscript & Superscript */
.post-content sub,
.post-content sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.post-content sup {
  top: -0.5em;
}

.post-content sub {
  bottom: -0.25em;
}

/* Definition Lists */
.post-content dl {
  margin: 1.5rem 0;
}

.post-content dt {
  font-weight: 700;
  margin-top: 1rem;
  color: #fff;
}

.post-content dd {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #475569;
}
 
/* Abbreviations */
.post-content abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
  border-bottom: none;
}

/* Keyboard Input */
.post-content kbd {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Mark/Highlight */
.post-content mark {
  background-color: #fef08a;
  padding: 0.1em 0.2em;
  border-radius: 2px;
}

/* ============================================
   Mobile Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
  .post-content {
    font-size: 16px;
    padding: 0;
  }

  .post-content h1 {
    font-size: 1.875rem;
    margin-bottom: 1.25rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

  .post-content h4 {
    font-size: 1.125rem;
  }

  .post-content h5,
  .post-content h6 {
    font-size: 1rem;
  }

  .post-content p {
    font-size: 16px;
  }

  .post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .post-content pre {
    padding: 1rem;
    font-size: 0.8125rem;
    margin: 1.5rem -16px;
    border-radius: 0;
  }

  .post-content table {
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .post-content table th,
  .post-content table td {
    padding: 0.5rem 0.75rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .post-content {
    max-width: 100%;
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
  }

  .post-content a {
    color: #000;
    text-decoration: underline;
  }

  .post-content pre,
  .post-content blockquote {
    page-break-inside: avoid;
    border: 1px solid #000;
  }

  .post-content h1,
  .post-content h2,
  .post-content h3,
  .post-content h4,
  .post-content h5,
  .post-content h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  .post-content img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}