/* =========================================
   styles/base.css
   Fluid scaling, resets, and theme variables
========================================= */

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

:root {
    /* Color Palette */
    --color-bg-light: #ffffff;
    --color-bg-alt: #f8f8f8;
    --color-accent-red: #8B0000; /* Updated to deep red */
    --color-accent-black: #111111;
    --color-text-main: #333333;
    --color-text-light: #666666;

    /* Fluid Typography (Min Size, Preferred Viewport Math, Max Size) */
    --font-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --font-h2: clamp(2rem, 4vw + 1rem, 3.5rem);
    --font-h3: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
    --font-p: clamp(1rem, 1vw + 0.5rem, 1.125rem);

    /* Fluid Spacing */
    --spacing-section: clamp(4rem, 8vw, 8rem);
    --container-padding: clamp(1rem, 5vw, 3rem);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Apply Serif Font to Headings */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Reusable Editorial Divider */
.editorial-divider {
    width: 60px; /* Short, elegant line */
    height: 2px;
    background-color: var(--color-accent-red);
    margin: 1.5rem 0; /* Spacing above and below */
    border: none;
}