/* Typography and Font Styling to Match AWingEast.com */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Entry Titles - Book Snap Headers */
.entry-title {
    font-size: 24px !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
}

.entry-title a {
    font-weight: bold !important;
    text-decoration: none;
}

/* Book Titles in Content */
.entry-content p em {
    font-weight: bold;
    font-style: italic;
    font-size: 18px;
}

/* Section Headings */
.entry-content h3 {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
}

.entry-content h3 strong {
    font-weight: bold !important;
}

/* Paragraphs */
.entry-content p {
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
}

/* Meta Information */
.entry-meta {
    font-size: 14px !important;
    margin-bottom: 0.5rem !important;
}

/* Entry Spacing */
article.post {
    margin-bottom: 3rem !important;
    padding-bottom: 2rem !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Remove extra spacing from the last article before pagination */
article.post:last-of-type {
    border-bottom: none !important;
    padding-bottom: 1rem !important;
    margin-bottom: 2rem !important;
}

/* Site Title */
.site-title {
    font-size: 32px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
}

/* Site Description */
.site-description {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* Global Layout Overrides - 75% Width, Centered, 60%/40% Columns */

/* Navigation Bar - 75% width, centered */
@media screen and (min-width: 48em) {
    .navigation-top .wrap {
        max-width: 75% !important;
        margin: 0 auto !important;
        padding-left: 2em !important;
        padding-right: 2em !important;
    }
}

/* All Content Sections - 75% width, centered */
.site-content .wrap {
    max-width: 75% !important;
    margin: 0 auto !important;
    padding-left: 2em !important;
    padding-right: 2em !important;
}

/* Site Header Branding - 75% width, centered */
.site-branding .wrap {
    max-width: 75% !important;
    margin: 0 auto !important;
    padding-left: 2em !important;
    padding-right: 2em !important;
}

/* Footer - 75% width, centered */
.site-footer .wrap {
    max-width: 75% !important;
    margin: 0 auto !important;
    padding-left: 2em !important;
    padding-right: 2em !important;
}

/* Two Column Layout - 60%/40% Split */
@media screen and (min-width: 48em) {
    
    /* Main content area - 60% of the 75% width */
    .has-sidebar:not(.error404) #primary {
        float: left !important;
        width: 60% !important;
        padding-right: 2em !important;
    }

    /* Sidebar - 40% of the 75% width */
    .has-sidebar #secondary {
        float: right !important;
        width: 40% !important;
        padding-left: 2em !important;
        padding-top: 0 !important;
    }

    /* Page Two Column Layout */
    body.page-two-column:not(.archive) #primary .entry-content,
    body.page-two-column #comments {
        float: right !important;
        width: 60% !important;
    }

    body:not(.has-sidebar):not(.page-one-column) .page-header,
    body.has-sidebar.error404 #primary .page-header,
    body.page-two-column:not(.archive) #primary .entry-header,
    body.page-two-column.archive:not(.has-sidebar) #primary .page-header {
        float: left !important;
        width: 40% !important;
    }

    /* Blog and Archive Pages */
    .blog:not(.has-sidebar) #primary article,
    .archive:not(.page-one-column):not(.has-sidebar) #primary article,
    .search:not(.has-sidebar) #primary article,
    .error404:not(.has-sidebar) #primary .page-content,
    .error404.has-sidebar #primary .page-content {
        float: right !important;
        width: 60% !important;
    }

    /* Navigation Pagination */
    .navigation.pagination {
        clear: both !important;
        float: right !important;
        width: 60% !important;
    }

    .has-sidebar .navigation.pagination,
    .archive.page-one-column:not(.has-sidebar) .navigation.pagination {
        float: right !important;
        width: 60% !important;
    }

    /* Single Post without Sidebar - Full Width within 75% */
    .single-post:not(.has-sidebar) #primary,
    .page.page-one-column:not(.twentyseventeen-front-page) #primary,
    .archive.page-one-column:not(.has-sidebar) .page-header,
    .archive.page-one-column:not(.has-sidebar) #primary {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Ensure proper clearfix */
.has-sidebar .wrap:after,
.page-two-column .wrap:after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Author Photo */
.author-photo {
    float: right;
    margin: 0 0 2rem 2rem;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Twenty Seventeen Navigation Fixes */
.navigation-top.site-navigation-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-bar .navigation-top.site-navigation-fixed {
    top: 32px;
}

.navigation-top.site-navigation-fixed .wrap {
    max-width: 75% !important;
}

/* Ensure proper spacing when navigation is fixed */
.site-navigation-fixed ~ .site-content-contain {
    margin-top: 60px;
}

/* Contact Form */
.contact-form {
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e7e7e7;
    border-radius: 3px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

button[type="submit"] {
    background-color: #0073aa;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #005177;
}

.form-note {
    margin-top: 1rem;
    font-size: 14px;
    color: #666666;
    font-style: italic;
}

/* Archive Page */
.archive-year {
    margin: 2rem 0;
}

.archive-year h4 {
    font-size: 20px;
    margin: 1.5rem 0 1rem;
    color: #1e1e1e;
}

.archive-list {
    list-style: none;
    padding-left: 0;
}

.archive-list li {
    margin-bottom: 1rem;
    font-size: 16px;
}

.archive-date {
    display: inline-block;
    width: 110px;
    color: #666666;
    font-size: 14px;
}

.category-list {
    margin-top: 3rem;
}

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

.category-list li {
    margin-bottom: 0.5rem;
    font-size: 16px;
}

/* Widget Titles */
.widget-title {
    font-size: 20px !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
}

/* Widget Lists */
.widget ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.widget li {
    margin-bottom: 0.5rem !important;
    font-size: 16px !important;
}

/* Navigation Links */
.main-navigation a {
    font-size: 16px !important;
    font-weight: normal !important;
}

/* Pagination */
.navigation.pagination {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.page-numbers {
    font-size: 16px !important;
    padding: 0.5rem 0.75rem !important;
}

/* Book Snap Specific Styling */
.entry-content > p:first-of-type {
    font-size: 18px !important;
    margin-bottom: 0.5rem !important;
}

/* Date styling in content */
.entry-content p:nth-of-type(3) {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 1.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile - Stack columns vertically */
    .has-sidebar:not(.error404) #primary,
    .has-sidebar #secondary,
    body.page-two-column:not(.archive) #primary .entry-content,
    body.page-two-column #comments {
        float: none !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .site-content .wrap,
    .site-branding .wrap,
    .site-footer .wrap,
    .navigation-top .wrap {
        max-width: 95% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .author-photo {
        float: none;
        margin: 0 auto 2rem;
        display: block;
        max-width: 250px;
    }
}