/* SimplePress Theme - Minimalist & Direct */

/* --- Global Styles & Variables --- */
:root {
    --background-color: #ffffff;
    --text-color: #111111;
    --border-color: #eeeeee;
    --accent-color: #000000;
    --header-footer-bg: #f9f9f9;
    --font-family: 'Helvetica Now', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container-width: 1100px;
    --border-radius: 0;
    --box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 600;
}

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

p {
    margin-bottom: 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--header-footer-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--text-color);
}

.site-title a:hover {
    text-decoration: none;
    opacity: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav .current-page {
    border-bottom-color: var(--accent-color);
    text-decoration: none;
}

/* --- Main Content Layout --- */
.main-content {
    padding: 40px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .content-layout {
        grid-template-columns: 2fr 1fr;
    }
}

main {
    max-width: 100%;
    overflow: hidden;
}

/* --- Articles & Post Previews --- */
.articles-list {
    display: grid;
    gap: 30px;
}

.post-preview {
    border: 1px solid var(--border-color);
    padding: 25px;
}

.post-preview h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.75rem;
}

.post-preview h2 a:hover {
    text-decoration: underline;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.article-header h1 {
    margin-bottom: 10px;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
}

/* --- Sidebar --- */
.sidebar-widget {
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 10px;
}

.sidebar-widget a {
    display: block;
}

/* --- Call to Action --- */
.cta-section {
    background-color: var(--header-footer-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h2 {
    margin-top: 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 10px;
}

.cta-button:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* --- Contact Form --- */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: var(--accent-color);
    color: var(--background-color);
    border: none;
    padding: 12px 30px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.2s ease-in-out;
}

.contact-form button:hover {
    opacity: 0.85;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--header-footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 40px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}
