/* Minimal, clean, responsive blog style */

body {
    font-family: system-ui, sans-serif;
    width: 100%;         /* allow body to shrink below max-width on mobile */
    max-width: 700px;    /* keeps content narrow on desktop */
    margin: 2rem auto;   /* centers content */
    padding: 0 1rem;
    line-height: 1.7;    /* slightly bigger for readability */
    color: #111;
    background: #fff;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem; /* bigger spacing for visual breathing room */
    text-align: justify;    /* even paragraphs */
    hyphens: auto;          /* smooth justification on narrow screens */
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

a {
    color: #007acc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid #ddd;
}

blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    color: #555;
    font-style: italic;
    margin-left: 0;
    margin-right: 0;
}

/* Publication date styling */
time {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    body {
        margin: 1rem;        /* less margin on small screens */
        padding: 0 0.5rem;   /* smaller padding on sides */
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

figcaption {
  text-align: center;
  font-size: 0.85em;
  color: #666;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

figure {
  max-width: 100%;
  margin: 1.5rem auto;
}