/* Dutton Ranch Theme for the Static Blog */

:root {
    --primary: #d4af37; /* Gold */
    --primary-dark: #b8901c;
    --text-main: #f3f4f6; /* Soft White */
    --text-muted: #9ca3af; /* Gray */
    --bg-main: #0a0a0a; /* Pitch Black */
    --bg-alt: #121212; /* Dark Card Background */
    --border: #222222;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Courier Prime', 'Playfair Display', serif; /* Stencil / Typewriter ranch feel */
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    background-color: rgba(10, 10, 10, 0.95);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.blog-logo {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    padding: 6rem 0 4rem 0;
    background: radial-gradient(circle at center, #1a150b 0%, #0a0a0a 100%);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-sans);
}

/* Post list */
.post-list {
    padding: 3rem 0;
}

.post-card {
    padding: 3rem;
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: #332b12;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.05);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.post-card h2 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

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

.post-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.read-more:hover {
    border-color: var(--primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    background-color: var(--bg-main);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Article Styles */
.article-header {
    padding: 4rem 0 2.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3.5rem;
    text-align: center;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #d1d5db; /* Soft gray for content reading */
}

.article-content p {
    margin-bottom: 1.75rem;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #1c1809;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2.25rem;
    margin-bottom: 1rem;
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    background-color: #121008;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    color: #e5e7eb;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.75rem;
    padding-left: 2.25rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: var(--primary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .article-header h1 {
        font-size: 2.25rem;
    }
    .post-card {
        padding: 1.5rem;
    }
}

/* Ad Layout Styles */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    clear: both;
}

.desktop-ad {
    display: block;
}
.mobile-ad {
    display: none;
}

@media (max-width: 768px) {
    .desktop-ad {
        display: none;
    }
    .mobile-ad {
        display: block;
    }
}

/* Two-column layout for main page & articles */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar elements */
.sidebar-ad-card {
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sidebar-ad-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Direct Link CTA Button */
.ranch-rewards-cta {
    display: block;
    background-color: var(--primary);
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
    width: 100%;
}

.ranch-rewards-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

