@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

:root {
    /* Colors - Elegant Rustic Palette */
    --primary: #3D2B1F;
    --primary-light: #523D2E;
    --secondary: #7A8450;
    --secondary-light: #949E6B;
    --accent: #C68642;
    --bg-paper: #FDFBF7;
    --bg-linen: #F4EDE0;
    --text-main: #1A1410;
    --text-muted: #5C5248;
    --border-color: #E2D9CD;
    --white: #FFFFFF;

    /* Typography - Professional Scale */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lora', serif; 
    --font-display: 'Playfair Display', serif;

    /* Spacing & Sizing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --container-max: 1280px;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(61, 43, 31, 0.05);
    --shadow-md: 0 12px 24px -12px rgba(61, 43, 31, 0.15);
    --shadow-lg: 0 24px 48px -12px rgba(61, 43, 31, 0.2);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-paper);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-lg) 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: var(--space-md); }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--space-md); }
h3 { font-size: 1.75rem; margin-bottom: var(--space-sm); }

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-sm) 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

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

/* Buttons & CTA */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.75rem;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Cards & Components */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--space-md);
    flex-grow: 1;
}

/* Magazine Grid Layouts */
.grid-asymmetric {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
}

.grid-asymmetric .item-large { grid-column: span 8; }
.grid-asymmetric .item-small { grid-column: span 4; }

/* Interactive Tools UI */
.tool-header {
    background: var(--bg-linen);
    padding: var(--space-lg) 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    max-width: 600px;
    margin: -2rem auto var(--space-md);
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
}

.search-box input {
    flex-grow: 1;
    border: none;
    padding: 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
}

/* Season Calendar Styling */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.season-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    background: var(--white);
    transition: var(--transition);
}

.season-item.active {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--bg-linen);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand h2 {
    color: var(--bg-linen);
    margin-bottom: var(--space-sm);
}

.footer-links h4 {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(244, 237, 224, 0.5);
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .grid-asymmetric .item-large,
    .grid-asymmetric .item-small {
        grid-column: span 12;
    }
}

@media (max-width: 600px) {
    :root {
        --space-lg: 2.5rem;
        --space-xl: 4rem;
    }
    
    .search-box {
        flex-direction: column;
        padding: 1rem;
        margin-top: -1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Specialized Content Pages (Manifeste, Article) */
.prose {
    max-width: 720px;
    margin: 0 auto;
}

.prose p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.prose h2 {
    margin-top: 3rem;
}

.quote-box {
    background: var(--bg-linen);
    padding: var(--space-md);
    border-left: 4px solid var(--secondary);
    margin: var(--space-md) 0;
    font-style: italic;
    font-size: 1.25rem;
}