/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Jost:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #E8C12D;
    /* Gold/Yellow accent */
    --accent-hover: #d4af26;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-text: #7e7e7e;
    --footer-bg: #f8fafc;
    --footer-text: #64748b;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --container-width: 1200px;
    --header-height: 90px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.btn {
    font-family: 'Jost', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Adjust based on header height 90px */
    width: auto;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--header-text);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

nav a:hover {
    color: var(--accent);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent);
    color: #000;
    /* Black text on yellow button */
    font-weight: 600;
    border-radius: 4px;
    /* Slightly sharper corners */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 193, 45, 0.3);
    color: #000;
}

/* Main Content */
main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 100px);
    padding: 80px 0;
}

/* Hero Section (for list page) */
.hero {
    text-align: center;
    padding: 40px 0 80px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent);
}

.post-image {
    height: 240px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 30px;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text-primary);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Single Post */
.article-header {
    text-align: center;
    margin-bottom: 60px;
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-primary);
}

.article-meta {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.article-content h2 {
    font-size: 2rem;
    margin: 50px 0 20px;
    color: var(--text-primary);
    font-family: 'Jost', sans-serif;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 25px;
    margin: 40px 0;
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.25rem;
    background: #f8fafc;
    padding: 30px;
    border-radius: 0 8px 8px 0;
}

/* Footer */
footer {
    background: var(--footer-bg);
    padding: 80px 0;
    margin-top: 80px;
    text-align: center;
    color: var(--footer-text);
}

footer p {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 2rem;
    }

    nav ul {
        display: none;
        /* Mobile menu needed later */
    }
}