/* Simplified Blog Post Styling - Readability First */

/* Reset excessive effects */
* {
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Navigation Styles */
.nav-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #000000;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-link {
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    opacity: 0.7;
}

.btn-primary {
    background: #FF9900;
    color: #FFFFFF;
    padding: 8px 20px;
    border: 1px solid #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #e88900;
    opacity: 1;
}

/* Utility Classes */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.h-16 {
    height: 4rem;
}

.hidden {
    display: none;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

/* Mobile Menu */
.mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-icon {
    color: #000000;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-link:hover {
    opacity: 0.7;
}

/* Responsive Navigation */
@media (min-width: 1024px) {
    .lg\:flex {
        display: flex !important;
    }

    .lg\:hidden {
        display: none !important;
    }
}

/* Body - Set to 20px for optimal readability */
body {
    background: #FFFFFF;
    color: #1a1a1a;
    font-family: 'Source Serif 4', serif;
    font-size: 20px;
    line-height: 1.65;
    font-weight: 400;
}

/* Headings - Simplified scale with reduced sizes */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #000000;
    font-weight: 700;
    letter-spacing: -0.01em;
}

strong {
    font-weight: 700;
    color: #000000;
}

/* H1 - Reduced from 52px to 40px */
h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 24px;
}

/* H2 - Reduced from 36px to 28px */
h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 20px;
}

/* H3 - Reduced from 28px to 22px */
h3 {
    font-size: 22px;
    line-height: 1.4;
    margin-top: 32px;
    margin-bottom: 16px;
}

/* H4 - Same as body size but bold */
h4 {
    font-size: 20px;
    line-height: 1.5;
    margin-top: 24px;
    margin-bottom: 12px;
}

/* Article metadata - Keep at 16px */
.article-meta {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

/* Container - Same max-width for readability */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 32px;
}

article {
    max-width: 720px;
}

/* Paragraphs - Reduced spacing from 32px to 24px */
p {
    margin-bottom: 24px;
}

/* Lead paragraph - Same as body for consistency */
.lead {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #333;
}

/* Lists - Match body size */
ul, ol {
    margin-bottom: 24px;
    padding-left: 40px;
    font-size: 20px;
    line-height: 1.65;
}

li {
    margin-bottom: 12px;
    line-height: 1.65;
    padding-left: 8px;
}

/* Links - Simplified hover */
a {
    color: #000000;
    text-decoration: underline;
}

a:hover {
    opacity: 0.7;
}

/* CTA Box - Single background variation */
.cta-box {
    background: #FF9900;
    color: #FFFFFF;
    padding: 28px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid #000000;
}

.cta-box h3 {
    color: #FFFFFF;
    margin-top: 0;
    font-size: 24px;
}

.cta-box p {
    font-size: 20px;
    line-height: 1.6;
}

.cta-box a {
    background: #000000;
    color: #FFFFFF;
    padding: 14px 28px;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
    border: 1px solid #000000;
    font-weight: 600;
    font-size: 16px;
}

.cta-box a:hover {
    background: #FFFFFF;
    color: #000000;
    opacity: 1;
}

/* Info Box - Simplified with single border */
.info-box {
    background: #f8f8f6;
    padding: 20px;
    border-left: 3px solid #000000;
    margin: 28px 0;
}

.info-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
}

.info-box p {
    font-size: 20px;
    line-height: 1.65;
}

.info-box ul {
    font-size: 20px;
}

/* Code Block - Keep at 16px for readability */
.code-block {
    background: #f8f8f6;
    padding: 20px;
    font-family: monospace;
    font-size: 16px;
    border: 1px solid #ddd;
    margin: 28px 0;
    overflow-x: auto;
    line-height: 1.5;
}

/* Table - Simplified borders */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 20px;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 20px;
    line-height: 1.5;
}

.comparison-table th {
    background: #f8f8f6;
    font-weight: 700;
}

/* Table of Contents - Simplified */
.toc {
    background: #f8f8f6;
    padding: 20px;
    border: 1px solid #ddd;
    margin: 28px 0;
}

.toc h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 700;
}

.toc ul,
.toc ol {
    margin-bottom: 0;
    font-size: 20px;
    line-height: 1.5;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    font-size: 20px;
    font-weight: 400;
    color: #000000;
}

/* Badge - Keep at 14px */
.badge {
    background: #FF9900;
    color: #FFFFFF;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-right: 8px;
}

/* Secondary CTA text within CTA box */
.cta-secondary {
    margin-top: 12px;
    font-size: 16px;
}

.cta-secondary a {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Horizontal divider */
.divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* Small text for metadata, footnotes, etc */
.small-text {
    font-size: 16px;
}

/* Mobile - Simplified responsive typography */
@media (max-width: 768px) {
    body {
        font-size: 19px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 21px;
    }

    .lead {
        font-size: 19px;
    }

    .container {
        padding: 32px 20px;
    }

    ul, ol {
        padding-left: 28px;
    }

    .cta-box,
    .info-box,
    .code-block,
    .toc {
        padding: 16px;
    }
}

/* Footer Styles */
.footer-container {
    background: #FFFFFF;
    border-top: 1px solid #000000;
    padding: 64px 0 32px;
}

.footer-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
}

.footer-text {
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 8px;
}

.footer-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    display: block;
    padding: 4px 0;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 32px;
    margin-top: 48px;
    text-align: center;
}

.footer-copyright {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    color: #000000;
}

/* Footer Signup Form */
.footer-signup {
    margin-top: 24px;
}

.footer-signup-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
}

.footer-signup-input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #000000;
    padding: 8px 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.footer-signup-input::placeholder {
    color: #999;
}

.footer-signup-input:focus {
    outline: none;
    border-width: 2px;
    margin: -1px;
}

.footer-signup-button {
    width: 100%;
    background: #000000;
    color: #FFFFFF;
    border: 1px solid #000000;
    padding: 8px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.footer-signup-button:hover {
    background: #FFFFFF;
    color: #000000;
}
