/* BASE VARIABLES & SETUP */
:root {
    /* Color Palette */
    --c-ink-violet: #30213F;
    --c-plum: #56304F;
    --c-saffron: #E5A72E;
    --c-chilli: #C94B3D;
    --c-pistachio: #B7C98B;
    --c-paper: #F5EBDD;
    --c-charcoal: #242124;
    --c-paper-dark: #E8DCC8;
    
    /* Typography */
    --f-serif: 'Playfair Display', Georgia, serif;
    --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --f-mono: 'Courier Prime', 'Courier New', monospace;

    /* Spacing & Layout */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --container-width: 1280px;
    
    /* Borders & Shadows */
    --border-thin: 1px solid var(--c-charcoal);
    --border-light: 1px solid rgba(36, 33, 36, 0.15);
    --shadow-subtle: 0 4px 12px rgba(48, 33, 63, 0.08);
}

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

body {
    background-color: var(--c-paper);
    color: var(--c-charcoal);
    font-family: var(--f-sans);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background-color: var(--c-saffron);
    color: var(--c-charcoal);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-serif);
    font-weight: 700;
    line-height: 1.1;
    color: var(--c-ink-violet);
    margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; font-family: var(--f-sans); font-weight: 600; }

p {
    margin-bottom: var(--space-sm);
}

.label {
    font-family: var(--f-mono);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--c-chilli);
    display: block;
    margin-bottom: var(--space-xs);
}

.intro-text {
    font-size: 1.25rem;
    font-family: var(--f-serif);
    color: var(--c-plum);
    line-height: 1.5;
}

/* LAYOUT & CONTAINERS */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section {
    padding: var(--space-xl) 0;
    border-bottom: var(--border-light);
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-family: var(--f-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--c-ink-violet);
    color: var(--c-paper);
}

.btn-primary:hover {
    background-color: var(--c-plum);
}

.btn-secondary {
    background-color: transparent;
    color: var(--c-charcoal);
    border: var(--border-thin);
}

.btn-secondary:hover {
    background-color: var(--c-charcoal);
    color: var(--c-paper);
}

.btn-text {
    padding: 0;
    font-family: var(--f-sans);
    font-weight: 600;
    color: var(--c-plum);
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    color: var(--c-chilli);
    border-bottom: 1px solid var(--c-chilli);
}

/* HEADER */
.site-header {
    background-color: var(--c-paper);
    border-bottom: var(--border-thin);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--f-sans);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--c-ink-violet);
}

.site-title-sub {
    font-family: var(--f-serif);
    font-size: 0.8rem;
    color: var(--c-plum);
    font-style: italic;
}

.main-nav {
    display: none;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--c-chilli);
}

.header-actions {
    display: none;
}

.mobile-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--c-ink-violet);
    display: block;
}

@media (min-width: 1024px) {
    .main-nav { display: block; }
    .header-actions { display: block; }
    .mobile-toggle { display: none; }
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--c-paper);
    z-index: 99;
    padding: 6rem 2rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-family: var(--f-serif);
    font-size: 2rem;
    color: var(--c-ink-violet);
}

/* HERO (EDITORIAL) */
.hero-editorial {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: var(--border-thin);
}

@media (min-width: 768px) {
    .hero-editorial {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: var(--border-thin);
}

.hero-image {
    position: relative;
    min-height: 400px;
}

.hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

/* NOTEBOOK CARDS (Editorial style) */
.notebook-card {
    background: var(--c-paper);
    border: var(--border-thin);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notebook-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-subtle);
}

.card-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-bottom: var(--border-thin);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* INGREDIENT/TECHNIQUE DETAIL PAGES */
.detail-header {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.detail-hero-img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    border-top: var(--border-thin);
    border-bottom: var(--border-thin);
    margin-bottom: var(--space-lg);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--c-charcoal);
}

.article-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
}

/* FLAVOUR LAB & INTERACTIVE ELEMENTS */
.flavour-wheel-container {
    background-color: var(--c-ink-violet);
    color: var(--c-paper);
    padding: var(--space-lg) var(--space-md);
    border-radius: 8px;
    margin-top: var(--space-lg);
}

.flavour-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
    justify-content: center;
}

.flavour-btn {
    background: transparent;
    border: 1px solid var(--c-paper);
    color: var(--c-paper);
    padding: 0.5rem 1rem;
    font-family: var(--f-mono);
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.flavour-btn.active, .flavour-btn:hover {
    background: var(--c-saffron);
    color: var(--c-ink-violet);
    border-color: var(--c-saffron);
}

.flavour-display {
    background: rgba(255,255,255,0.1);
    padding: var(--space-md);
    border-radius: 4px;
    min-height: 200px;
}

.flavour-panel {
    display: none;
}

.flavour-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* SEASONAL TABS */
.seasonal-tabs {
    display: flex;
    border-bottom: var(--border-thin);
    margin-bottom: var(--space-md);
    overflow-x: auto;
}

.season-btn {
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    font-family: var(--f-serif);
    font-size: 1.2rem;
    color: rgba(36, 33, 36, 0.5);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.season-btn.active {
    color: var(--c-ink-violet);
    border-bottom-color: var(--c-chilli);
}

.season-panel {
    display: none;
}

.season-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.form-group label {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: var(--border-thin);
    font-family: var(--f-sans);
    font-size: 1rem;
    color: var(--c-charcoal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-ink-violet);
    background: rgba(255,255,255,0.5);
}

/* FOOTER */
.site-footer {
    background-color: var(--c-charcoal);
    color: var(--c-paper);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand h2 {
    color: var(--c-paper);
    margin-bottom: 0.2rem;
}

.footer-brand .site-title-sub {
    color: var(--c-pistachio);
    display: block;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--c-saffron);
    font-family: var(--f-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: rgba(245, 235, 221, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--c-paper);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 235, 221, 0.2);
    padding-top: var(--space-sm);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(245, 235, 221, 0.5);
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    background-color: var(--c-ink-violet);
    color: var(--c-paper);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
    border: 1px solid var(--c-plum);
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.4s ease-out;
}

.cookie-popup h3 {
    color: var(--c-paper);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cookie-popup p {
    font-size: 0.9rem;
    color: rgba(245, 235, 221, 0.8);
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-buttons .btn {
    width: 100%;
}

.cookie-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--c-saffron);
    text-decoration: underline;
}

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* UTILITIES */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }