:root {
    --color-bg: #f7f3ea;
    --color-text: #4a3f35;
    --color-mustard: #e2a536;
    --color-terracotta: #c15c3d;
    --color-ocean: #2a6f97;
    
    --font-heading: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Gritty Texture */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--color-terracotta);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 4rem 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 1.5rem 0;
    color: var(--color-ocean);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--color-terracotta);
    color: #fff;
    border: 2px solid var(--color-terracotta);
}

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

.hero-image-wrapper {
    position: relative;
    height: 600px;
}

.image-frame {
    position: absolute;
    border: 12px solid #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tilt-right {
    width: 350px;
    height: 450px;
    top: 0;
    right: 40px;
    transform: rotate(4deg);
    z-index: 2;
}

.tilt-left {
    width: 300px;
    height: 400px;
    bottom: 0;
    left: 20px;
    transform: rotate(-6deg);
    z-index: 1;
}

.accent-frame {
    border-color: var(--color-mustard);
}

/* Manifesto Section */
.manifesto {
    background-color: var(--color-ocean);
    color: #fff;
    padding: 8rem 4rem;
    position: relative;
}

/* Wavy top border */
.manifesto::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--color-ocean);
    border-radius: 50% 50% 0 0;
}

.manifesto-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin: 0 0 1rem 0;
    color: var(--color-mustard);
}

.lead-text {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 5rem;
    line-height: 1.4;
    font-family: var(--font-heading);
    font-style: italic;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: var(--color-terracotta);
}

.feature-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Shop Styles */
.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem 8rem 4rem;
}

.shop-header {
    text-align: center;
    margin-bottom: 4rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 1 / 1;
    background: #f0ebe1;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.3) saturate(1.2); /* Warm nostalgic tone */
    mix-blend-mode: multiply;
}

.product-title {
    font-family: var(--font-heading);
    color: var(--color-ocean);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.product-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-mustard);
    font-weight: 700;
}

/* Mission Styles */
.mission-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 4rem 8rem 4rem;
}

.mission-header {
    text-align: center;
}

.mission-timeline {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    margin-top: 6rem;
}

.timeline-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.timeline-entry.reverse {
    direction: rtl;
}

.timeline-entry.reverse > * {
    direction: ltr;
}

.timeline-img-wrapper {
    position: relative;
    border: 12px solid #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: #f0ebe1;
}

.timeline-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(0.2) saturate(1.1);
}

.timeline-date {
    font-weight: 600;
    color: var(--color-ocean);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.timeline-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-terracotta);
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
}

.timeline-content p {
    font-size: 1.15rem;
    color: var(--color-text);
}

/* Diaries Styles */
.diaries-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem 8rem 4rem;
}

.diaries-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

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

.blog-img-wrapper {
    position: relative;
    border: 12px solid #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    background: #f0ebe1;
    margin-bottom: 2rem;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post:hover .blog-img-wrapper {
    transform: translateY(-5px);
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(0.2) saturate(1.1);
}

.blog-date {
    font-weight: 600;
    color: var(--color-mustard);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.blog-title a {
    text-decoration: none;
    color: var(--color-ocean);
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--color-terracotta);
}

.blog-excerpt {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    font-weight: 600;
    color: var(--color-terracotta);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.blog-read-more:hover {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-image-wrapper {
        height: 500px;
    }
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
    }
}
