/* ==========================================================================
   main.css — CSS Variables, Font Declarations & Base Reset
   Covara Official Website
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand colors */
  --cvr-paper: #fff4eb;
  --cvr-paper-soft: #f6e7d7;
  --cvr-paper-strong: #fffaf4;
  --cvr-ink: #2b1d19;
  --cvr-muted: #766258;
  --cvr-rust: #8f3d31;
  --cvr-rust-deep: #6f2f26;
  --cvr-gold: #bd9d61;
  --cvr-line: rgba(143, 61, 49, 0.15);
  --cvr-line-strong: rgba(143, 61, 49, 0.28);
  --cvr-shadow: rgba(79, 43, 33, 0.08);

  /* Typography — font stacks */
  --font-headline: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Layout spacing */
  --section-gap: clamp(8rem, 18vh, 16rem);
  --container-max: 1280px;
  --container-padding: clamp(1.5rem, 4vw, 4rem);

  /* Type scale (heading:body ratio ≥ 3:1) */
  --text-body: clamp(1rem, 1.1vw, 1.125rem);
  --text-h1: clamp(3.5rem, 8vw, 7rem);
  --text-h2: clamp(2.5rem, 5vw, 4.5rem);
  --text-h3: clamp(1.5rem, 2.5vw, 2rem);
  --text-eyebrow: clamp(0.7rem, 0.8vw, 0.8rem);
  --text-number: clamp(4rem, 10vw, 8rem);
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Font Display ---------- */
html {
  font-display: swap;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--cvr-ink);
  background-color: var(--cvr-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
