/* ==========================================================
   base.css — brand tokens, reset, typography
   Change colors and fonts here; everything else uses these.
   Values below are PLACEHOLDERS until the brand is finalized.
   ========================================================== */

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f3ef;
  --color-text: #222222;
  --color-muted: #666666;
  --color-primary: #7a5c4f;      /* placeholder accent */
  --color-primary-contrast: #ffffff;
  --color-border: #e4ded7;

  /* Typography */
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-base: 1.0625rem;
  --line-height: 1.6;

  /* Spacing & layout */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --container: 72rem;
  --radius: 0.5rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }

/* Typography */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p + p { margin-top: var(--space-2); }

a { color: var(--color-primary); }
a:hover { text-decoration-thickness: 2px; }

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

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -3rem;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: var(--space-2); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
