/* ============================================================
   Bodpie — Base: reset, design tokens, typography, primitives
   ============================================================ */

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

:root {
  /* Palette — warm, earthy, premium */
  --ink:        #1c1a16;
  --ink-soft:   #3b382f;
  --muted:      #6c675b;
  --faint:      #9a9382;
  --line:       rgba(28, 26, 22, 0.12);
  --line-soft:  rgba(28, 26, 22, 0.07);

  --cream:      #faf7f0;
  --cream-alt:  #f2ece0;
  --paper:      #ffffff;

  --wheat:      #c19a53;
  --wheat-deep: #a37c37;
  --wheat-soft: rgba(193, 154, 83, 0.14);

  /* Dark hero surface (placeholder for future video/photo) */
  --hero-a:     #26241f;
  --hero-b:     #17150f;
  --on-dark:    #f6f2e9;
  --on-dark-mut:rgba(246, 242, 233, 0.66);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.55s;

  --shadow-sm: 0 2px 10px rgba(28, 26, 22, 0.06);
  --shadow:    0 18px 50px -24px rgba(28, 26, 22, 0.35);
  --shadow-lg: 0 40px 90px -40px rgba(28, 26, 22, 0.5);
}

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* Headings use the serif display face */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; letter-spacing: 0.005em; }

/* Layout primitives */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--muted { background: var(--cream-alt); }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wheat-deep);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--wheat); }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section-title--center { text-align: center; margin-inline: auto; }
.section-title--sm { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.section p { color: var(--muted); }

/* Accessibility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--wheat); outline-offset: 3px; border-radius: 4px; }

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