/* BASE.CSS - Variables, Reset, Typography */

:root {
  /* Warm Neutral Palette */
  --color-bg-body: #F6F1EB;
  /* Main background - warm off-white */
  --color-bg-section-alt: #EFE7DE;
  /* Soft section background - light warm beige */
  --color-bg-fallback: #E4D6CC;
  /* Image fallback / hero gradient base */
  --color-bg-accent-soft: #F2D9D9;
  /* Accent soft - subtle tint */

  --color-text-main: #2F2A26;
  /* Primary text - warm charcoal */
  --color-text-muted: #6F665F;
  /* Muted text - warm gray */
  --color-text-label: #8C8178;
  /* Subtle labels - eyebrow/captions */

  --color-accent: #8A0000;
  /* Primary accent - Deep Red */
  --color-accent-hover: #720000;
  /* Accent hover / pressed */
  --color-btn-text: #FFF7F3;
  /* Button text - warm white */

  --color-border: rgba(47, 42, 38, 0.08);
  /* Soft divider */

  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
  --space-xxl: 128px;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --line-height-body: 1.7;
  --line-height-heading: 1.1;

  --radius-pill: 100px;
  --radius-lg: 24px;
  --radius-md: 8px;
  --radius-sm: 2px;
  /* Editorial sharpness */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* Offset for sticky header */
}

body {
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: var(--space-sm);
}

h1 {
  letter-spacing: -0.02em;
}

p {
  max-width: 65ch;
  /* Readable line length */
  margin-bottom: var(--space-md);
  color: var(--color-text-main);
}

.text-muted {
  color: var(--color-text-muted);
}

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

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
  /* Performance & Clarity */
  image-rendering: -webkit-optimize-contrast;
  object-fit: cover;
  font-style: italic;
  /* Style alt text */
  background: var(--color-bg-fallback);
}

/* Aspect Ratio Utilities for Clarity */
.aspect-landscape {
  aspect-ratio: 16 / 9;
}

.aspect-portrait {
  aspect-ratio: 4 / 5;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-wide {
  aspect-ratio: 21 / 9;
}

/* Performance optimization */
.lazy-image {
  background-color: var(--color-bg-fallback);
  min-height: 200px;
}

.section-alt {
  background-color: var(--color-bg-section-alt);
}