/*
 * Styles for single content pages (About, Contact, etc.)
 */

/* Main container for the article */
.single-page-container {
  padding: 3rem 0;
}

/* Page header section */
.single-page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.single-page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
}

/* Container for the main markdown content */
.single-page-content {
  max-width: 75ch; /* Optimal line length for readability */
  margin-left: auto;
  margin-right: auto;
}

/* --- Styles for Markdown-Generated HTML --- */

/* Add consistent spacing between all top-level elements in the content */
.single-page-content > * + * {
  margin-top: 1.5em;
}

.single-page-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-family: var(--font-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-accent);
}

.single-page-content h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-family: var(--font-accent);
  margin-bottom: 0.75rem;
}

.single-page-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-secondary-accent);
}

.single-page-content ul {
  list-style: none; /* Remove default bullets */
  padding-left: 0;
}

.single-page-content ul li {
  position: relative;
  padding-left: 2rem; /* Space for the custom bullet */
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-secondary-accent);
}

/* Custom list bullet for a styled look */
.single-page-content ul li::before {
  content: '→'; /* You can change this to any character, e.g., '→' or '•' */
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-primary-accent);
  font-weight: var(--font-weight-bold);
  font-size: 1.2rem;
}

.single-page-content strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.single-page-content a {
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.single-page-content a:hover {
  text-decoration-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .single-page-container {
    padding: 2rem 0;
  }
  .single-page-header {
    margin-bottom: 2rem;
  }
}