/* =============================================================
   MR. SPICEE / BOULANGERIE MENAGO
   base.css — Variables · Reset · Typography · Spacing
   Inherited by all 7 pages. Do not put page content here.
   ============================================================= */

/* ---- Colour System ---- */
:root {
  /* Primary */
  --color-navy:        #1A3A5C;   /* navigation, headers */
  --color-red:         #C0392B;   /* consumer calls-to-action */
  --color-gold:        #C9922A;   /* accents */
  --color-cream:       #FAF6F0;   /* default background */
  --color-green:       #1E8449;   /* Rock Cakes / Ontario only */

  /* Derived */
  --color-navy-dark:   #122840;
  --color-navy-light:  #24527E;
  --color-cream-dark:  #EDE8E1;
  --color-cream-mid:   #F2EDE6;
  --color-red-dark:    #a93226;
  --color-gold-light:  #E3AD50;

  /* Text */
  --color-text:        #1C1916;
  --color-text-muted:  #6B6560;
  --color-text-faint:  #A09890;
  --color-border:      #DDD8D0;

  --color-white:       #FFFFFF;

  /* ---- Typography ---- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  1.875rem;   /* 30px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */
  --text-6xl:  4.5rem;     /* 72px */

  /* ---- Spacing Scale ---- */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 96px;
  --space-3xl: 160px;

  /* ---- Layout ---- */
  --max-width:        1200px;
  --body-copy-width:  680px;
  --gutter:           var(--space-lg);

  /* ---- Borders ---- */
  --radius-none: 0;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ---- Base Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 700;
  color: var(--color-navy);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  max-width: var(--body-copy-width);
  line-height: 1.75;
  color: var(--color-text);
}

/* ---- Layout Primitives ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section--lg {
  padding: var(--space-2xl) 0;
}

/* ---- Responsive Breakpoints ---- */
@media (max-width: 1024px) {
  :root { --gutter: var(--space-md); }
}

@media (max-width: 768px) {
  :root {
    --text-6xl: 3.25rem;
    --text-5xl: 2.75rem;
    --text-4xl: 2.25rem;
    --text-3xl: 1.875rem;
    --text-2xl: 1.5rem;
    --text-xl:  1.3125rem;
    --text-lg:  1.125rem;
    --text-md:  1.0625rem;
    --gutter:   var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    --text-6xl: 2.75rem;
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.625rem;
    --text-2xl: 1.375rem;
    --text-xl:  1.1875rem;
    --text-lg:  1.0625rem;
    --text-md:  1rem;
  }
}
