/*
Theme Name: Sewcly Theme
Theme URI: https://sewcly.com/
Author: Sewcly
Author URI: https://sewcly.com/
Description: Custom lightweight WordPress theme for Sewcly.com.
Version: 1.0.0
License: GPL v2 or later
Text Domain: sewcly
*/

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #24313d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

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

a {
    color: #c94f6d;
    text-decoration: none;
}

a:hover {
    color: #a83b57;
}

.site-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ------------------------------------
   HEADER
------------------------------------ */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-width: 290px;
    max-height: 90px;
    width: auto;
    height: auto;
}

.site-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
}

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

.site-description {
    margin: 4px 0 0;
    color: #777777;
    font-size: 14px;
}

/* ------------------------------------
   NAVIGATION
------------------------------------ */

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #bd536d;
    font-size: 16px;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #8f354e;
}

/* ------------------------------------
   MAIN
------------------------------------ */

.site-main {
    padding: 55px 0 80px;
}

.content-area {
    width: 100%;
}

.single-post .content-area,
.page .content-area {
    max-width: 1040px;
    margin: 0 auto;
}

/* ------------------------------------
   ARTICLE
------------------------------------ */

.entry-header {
    margin-bottom: 24px;
}

.entry-title {
    margin: 0;
    color: #24313d;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -1px;
}

.entry-meta {
    margin-top: 14px;
    color: #777777;
    font-size: 14px;
}

/* ------------------------------------
   FEATURED IMAGE
   Appears directly after H1
------------------------------------ */

.sewcly-featured-image-wrapper {
    width: 100%;
    margin: 25px 0 38px;
}

.sewcly-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: cover;
    border-radius: 12px;
}

/* ------------------------------------
   CONTENT
------------------------------------ */

.entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.entry-content p {
    margin: 0 0 24px;
}

.entry-content h2 {
    margin: 45px 0 18px;
    color: #24313d;
    font-size: 32px;
    line-height: 1.25;
}

.entry-content h3 {
    margin: 35px 0 15px;
    color: #24313d;
    font-size: 25px;
    line-height: 1.3;
}

.entry-content h4 {
    margin: 30px 0 12px;
    color: #24313d;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 25px 25px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 10px;
}

.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid #bd536d;
    background: #faf5f7;
}

/* ------------------------------------
   ARCHIVES
------------------------------------ */

.archive-title,
.page-title {
    margin: 0 0 40px;
    font-size: 44px;
    line-height: 1.2;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
}

.post-card {
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    background: #ffffff;
}

.post-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.post-card-content {
    padding: 22px;
}

.post-card-title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.3;
}

.post-card-title a {
    color: #24313d;
}

.post-card-excerpt {
    color: #666666;
}

/* ------------------------------------
   FOOTER
------------------------------------ */

.site-footer {
    padding: 45px 0;
    background: #faf7f8;
    border-top: 1px solid #eeeeee;
    text-align: center;
}

.footer-menu {
    margin-bottom: 15px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #bd536d;
}

.site-footer p {
    margin: 8px 0;
    color: #777777;
    font-size: 14px;
}

/* ------------------------------------
   MOBILE
------------------------------------ */

@media (max-width: 768px) {

    .site-container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: auto;
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-logo {
        max-width: 240px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        gap: 15px 22px;
    }

    .site-main {
        padding: 35px 0 55px;
    }

    .entry-title {
        font-size: 38px;
    }

    .entry-content {
        font-size: 17px;
    }

    .sewcly-featured-image-wrapper {
        margin: 20px 0 28px;
    }

    .sewcly-featured-image {
        border-radius: 8px;
        max-height: none;
    }

    .post-list {
        grid-template-columns: 1fr;
    }

    .archive-title,
    .page-title {
        font-size: 34px;
    }
}
