/* 
---
Theme: VintagePress
Font: Playfair Display
Tone: Storytelling / Narrative
---
*/

/* --- Basic Reset & Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    background-color: #fcf8f3; /* Sepia-toned off-white */
    color: #4a443d; /* Muted brown-black */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Variables --- */
:root {
    --primary-color: #8c6d46; /* Muted Gold */
    --secondary-color: #5d4037; /* Deep Brown */
    --background-color: #fcf8f3;
    --surface-color: #ffffff;
    --text-color: #4a443d;
    --light-text-color: #7d6b5a;
    --border-color: #e0dace;
    --header-bg: rgba(252, 248, 243, 0.85);
    --footer-bg: #f5f0e9;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease-in-out;
}

/* --- General Typography & Links --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

.btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-title a {
    color: var(--secondary-color);
}
.site-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    margin: 0;
}

.main-nav a {
    font-weight: 400;
    color: var(--light-text-color);
    padding-bottom: 5px;
    position: relative;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


/* --- Main Content & Layout --- */
.main-content {
    flex: 1;
    padding: 2.5rem 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

main {
    padding: 1rem 0;
}

aside {
    padding-top: 1rem;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 4rem 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 4px;
    background: var(--footer-bg);
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text-color);
    max-width: 750px;
    margin: 0 auto 1.8rem auto;
}

/* --- Blog Articles Section --- */
.articles-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.article-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.article-card-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card h2 {
    font-size: 1.6rem;
    margin-top: 0;
    color: var(--secondary-color);
}

.article-card p {
    color: var(--light-text-color);
    flex-grow: 1;
}

.article-card .btn {
    align-self: flex-start;
    margin-top: 1rem;
    font-size: 0.9rem;
}


/* --- Sidebar --- */
.sidebar-widget {
    background: var(--footer-bg);
    padding: 1.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget li {
    margin-bottom: 0.8rem;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 0.8rem;
}

.sidebar-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-widget a {
    color: var(--text-color);
    font-weight: 400;
}

.sidebar-widget a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--light-text-color);
    padding: 2.5rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.footer-links a {
    color: var(--light-text-color);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.copyright {
    font-size: 0.85rem;
}

/* --- Article Page Specifics --- */
.article-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px double var(--border-color);
    padding-bottom: 1.5rem;
    text-align: center;
}

.article-header h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.article-meta {
    font-size: 0.9rem;
    color: var(--light-text-color);
    font-style: italic;
    text-transform: uppercase;
}

.article-content {
    font-size: 1.1rem;
}

.article-content h2 {
    margin-top: 2.8rem;
    text-align: center;
    font-size: 1.8rem;
}

.article-content h3 {
    margin-top: 2.2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    padding: 1.8rem;
    margin: 2rem auto;
    font-style: italic;
    color: var(--light-text-color);
    background: #fff;
    max-width: 80%;
    text-align: center;
}

.cta-section {
    background: var(--footer-bg);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    text-align: center;
    margin: 3rem 0;
}
.cta-section h2 {
    color: var(--secondary-color);
}
.cta-section a.btn {
    margin-top: 1rem;
}


/* --- Contact Page Specifics --- */
.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: #fff;
    color: #4a443d;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(140, 109, 70, 0.2);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

/* --- Responsive Media Queries --- */
@media (min-width: 768px) {
    .layout-grid {
        grid-template-columns: 2.5fr 1fr;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .article-header h1 {
        font-size: 3.8rem;
    }
}
