/* ============================================================
   Will Creator — Typography & Layout Refresh
   Target: MasaCMS / Mura blog + content pages
   ============================================================ */

/* Google Font import (professional serif for body + clean sans for headings) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

/* ---------- Page background & base ---------- */
body#blog,
body {
    background: #f7f5f0;
    color: #1f2a37;
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Main content container ---------- */
main {
    display: block;
    padding: 40px 20px 80px;
}

main .section {
    max-width: 780px;
    margin: 0 auto;
    background: #ffffff;
    padding: 56px 64px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

main .section .wrap {
    max-width: 100%;
}

/* ---------- Region wrappers (Mura) ---------- */
.mura-region,
.mura-region-loose,
.mura-region-local {
    width: 100%;
}

/* ---------- Headings ---------- */
main .section h1,
main .section h2,
main .section h3,
main .section h4,
main .section h5,
main .section h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f2a4a;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 1.8em 0 0.6em;
    font-weight: 700;
    text-align: left;
}

main .section h3 {
    font-size: 2rem;
    margin-top: 0;
    padding-bottom: 0.4em;
    border-bottom: 3px solid #c9a961;
    display: inline-block;
}

main .section h4 { font-size: 1.4rem; }
main .section h5 { font-size: 1.15rem; }

/* ---------- Paragraphs (justified) ---------- */
main .section p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    margin: 0 0 1.2em;
    color: #2b3644;
}

/* Remove empty spacer paragraphs that only contain &nbsp; */
main .section p:empty,
main .section p:has(> br:only-child) {
    display: none;
}

/* Strong / emphasis intro lines act as sub-headers */
main .section p > strong:only-child {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #0f2a4a;
    margin: 1.8em 0 0.4em;
    letter-spacing: -0.005em;
}

/* ---------- Lists ---------- */
main .section ul,
main .section ol {
    padding-left: 1.4em;
    margin: 0 0 1.5em;
}

main .section ul li,
main .section ol li {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 0.7em;
    padding-left: 0.4em;
}

main .section ul {
    list-style: none;
    padding-left: 0;
}

main .section ul li {
    position: relative;
    padding-left: 1.8em;
}

main .section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #c9a961;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

/* ---------- Links ---------- */
main .section a {
    color: #0f2a4a;
    text-decoration: underline;
    text-decoration-color: #c9a961;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

main .section a:hover {
    color: #c9a961;
}

/* ---------- Blockquotes ---------- */
main .section blockquote {
    border-left: 4px solid #c9a961;
    padding: 0.2em 1.4em;
    margin: 1.6em 0;
    font-style: italic;
    color: #4b5563;
    background: #fbf8f1;
}

/* ---------- Images ---------- */
main .section img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.4em 0;
    display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    body { font-size: 17px; }
    main { padding: 20px 12px 60px; }
    main .section { padding: 32px 24px; border-radius: 6px; }
    main .section h3 { font-size: 1.6rem; }
    main .section p, main .section li { text-align: left; hyphens: none; }
}