/* Custom styling on top of PicoCSS */

/* Font styling - using Crimson Text which mimics Computer Modern */
:root {
  --font-family: "Crimson Text", Georgia, serif;
  --code-font-family: "JetBrains Mono", monospace;
}


html, section h2, .container h1, article h2 {
  font-family: var(--font-family);
}

code, pre, kbd {
  font-family: var(--code-font-family);
}

.hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.hero h1 {
  font-family: var(--font-family);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted-color);
  margin-bottom: 1.5rem;
}

/* Article styling */
article {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--form-element-border-color);
  border-radius: var(--border-radius);
  transition: box-shadow 0.3s ease;
}

article:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

article h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

article h2 a {
  text-decoration: none;
}

article h2 a:hover {
  text-decoration: underline;
}

article small {
  color: var(--muted-color);
  display: block;
  margin-bottom: 0.5rem;
}

article p {
  margin-bottom: 0;
}

/* Post article (full post) */
article[role="doc-chapter"] {
  max-width: 100%;
  padding: 2rem;
  border: none;
}

article[role="doc-chapter"] > p:first-of-type {
  margin-top: 1rem;
}

/* Code blocks */
pre {
  background-color: var(--form-element-background-color);
  border: 1px solid var(--form-element-border-color);
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--border-radius);
}

code {
  background-color: var(--form-element-background-color);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Navigation customization */
nav ul li strong a {
  font-size: 1.2rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--form-element-border-color);
  margin-top: 3rem;
  color: var(--muted-color);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  article {
    padding: 1rem;
  }
}

