/*
Theme Name: Stork
Theme URI: https://example.com/stork
Author: Your Name
Author URI: https://example.com
Description: A minimal WordPress theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stork
Tags: minimal, responsive
*/

/* ========================================
   Reset & Base
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ========================================
   WordPress Core Blocks Reset
======================================== */
.wp-block-image a {
    display: block;
}

/* ========================================
   Layout
======================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Header
======================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

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

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

.site-title a {
    color: #111;
}

.site-description {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.2rem;
}

/* Primary Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-navigation a:hover {
    color: #0073aa;
    text-decoration: none;
}

/* ========================================
   Main Content
======================================== */
.site-main {
    padding: 3rem 0;
}

/* ========================================
   Posts
======================================== */
.post {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.post:last-child {
    border-bottom: none;
}

.entry-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: #111;
}

.entry-title a:hover {
    color: #0073aa;
    text-decoration: none;
}

.entry-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* ========================================
   Sidebar
======================================== */
.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.widget-area {
    padding-top: 0.5rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #666;
}

/* ========================================
   Pagination
======================================== */
.posts-navigation,
.post-navigation {
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .main-navigation ul {
        gap: 1rem;
        flex-wrap: wrap;
    }
}