:root {
    --color-primary: #1a1a1a;
    --color-secondary: #666;
    --color-accent: #FF1493;
    --color-text: #333;
    --color-background: #fff;
    --color-border: #e5e5e5;
    --color-footer: #1a1a1a;
    --max-width: 1200px;
    --content-width: 700px;
    --spacing: 1.5rem;
}

* {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-background);
    margin: 0;
    padding: 0;
    font-size: 17px;
}

header {
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

header nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    margin: 0;
}

header .nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

header .nav-menu a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}

header .nav-menu a:hover {
    color: var(--color-primary);
}

header .nav-menu .has-submenu {
    position: relative;
}

header .nav-menu .submenu-toggle {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

header .nav-menu .submenu-toggle:hover {
    color: var(--color-primary);
}

header .nav-menu .submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

header .nav-menu .has-submenu:hover .submenu,
header .nav-menu .has-submenu:focus-within .submenu {
    display: block;
}

header .nav-menu .submenu li {
    margin: 0;
}

header .nav-menu .submenu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

header .nav-menu .submenu a:hover {
    background: #f5f5f5;
    color: var(--color-primary);
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Hero Post */
.hero-post {
    margin-bottom: 4rem;
    text-align: center;
}

.hero-post .hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    margin-bottom: 2rem;
}

.hero-post .hero-content {
    max-width: var(--content-width);
    margin: 0 auto;
}

.hero-post .category-tag {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: lowercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-post h1 {
    font-size: 44px;
    font-weight: 600;
    line-height: 53px;
    margin: 0 0 1.5rem 0;
}

.hero-post h1 a {
    color: var(--color-primary);
    text-decoration: none;
}

.hero-post h1 a:hover {
    color: var(--color-accent);
}

.hero-post .excerpt {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--color-secondary);
    margin: 0 0 1.5rem 0;
}

.hero-post .post-meta {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

/* Post List */
.post-list {
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.post-card .category-tag {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: lowercase;
    margin-bottom: 0.3rem;
    display: inline-block;
}

.post-card h2 {
    margin: 0 0 0.75rem 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 20px;
}

.post-card h2 a {
    color: var(--color-primary);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--color-accent);
}

.post-card .excerpt {
    margin: 0 0 1rem 0;
    color: var(--color-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-top: auto;
}

.categories a,
.tags a {
    color: var(--color-accent);
    text-decoration: none;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.categories a:hover,
.tags a:hover {
    text-decoration: underline;
}

/* Single Post */
.post {
    max-width: var(--content-width);
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-header .category-tag {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: lowercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.post-header h1 {
    margin: 0 0 1rem 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

.post-header .post-meta {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.featured-image {
    margin: 3rem 0;
}

.featured-image img {
    width: 100%;
    height: auto;
}

.featured-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-secondary);
    margin-top: 0.75rem;
}

.post-content {
    margin: 3rem 0;
}

.post-content h2 {
    margin: 2.5rem 0 1rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.post-content h3 {
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.post-content p {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-secondary);
    margin-top: 0.75rem;
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

footer {
    background: var(--color-footer);
    color: white;
    padding: 3rem 2rem;
    margin-top: 5rem;
}

footer .footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

footer .footer-box {
    background: #FFB6D9;
    padding: 2rem;
    min-height: 150px;
}

footer .footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

footer .social-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

footer .social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--color-footer);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

footer .social-icons a:hover {
    background: var(--color-accent);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    header nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    header .nav-menu {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    .post-header h1 {
        font-size: 1.8rem;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
    }

    footer .social-icons {
        justify-content: center;
    }
}
