/* ==========================================================================
   Red Barn Butchers - base.css
   Reset, design tokens, and typography.
   ========================================================================== */

:root {
  --color-barn-red:      #A81E1E;
  --color-barn-red-dark: #7E1616;
  --color-black:         #0B0B0B;
  --color-charcoal:      #1A1A1A;
  --color-white:         #FFFFFF;
  --color-off-white:     #ECECEC;
  --color-text-dark:     #222222;
  --color-text-light:    #E8E8E8;
  --color-text-muted:    #9A9A9A;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 2px;
  --transition-standard: 400ms cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-width: 1240px;

  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-off-white);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--color-text-dark);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p {
  margin: 0 0 1em;
}

address {
  font-style: normal;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* iOS Safari zooms the page on focus if a form field computes under 16px,
   regardless of the viewport meta tag. Never size a field below this -
   adjust perceived size with padding/line-height instead. */
input, textarea, select, button {
  font-size: 16px !important;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-barn-red);
  margin: 0 0 0.9em;
}

.lede {
  font-size: 1.1rem;
  color: rgba(34,34,34,0.75);
  max-width: 46em;
}

.muted {
  color: rgba(34,34,34,0.55);
}

.section-head {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-head h2 {
  max-width: 30em;
}

:focus-visible {
  outline: 2px solid var(--color-barn-red);
  outline-offset: 3px;
}
