/*
 * COEMA — Foundation
 * Design tokens, reset, and base element styles.
 * Breakpoints (mobile-first, min-width). var() cannot be used inside
 * @media conditions, so values are written literally.
 *   md: 768px   lg: 1024px
 */

:root {
  /* Brand palette */
  --green-deep: #133226;
  --green-darker: #0d241b;
  --terracotta: #cf5f3a;
  --gold: #e3b33f;
  --gold-soft: #f0c96e;

  --ink: #1c2b22;
  --ink-soft: #4a544c;
  --muted: #8a8878;
  --line: #ded5bd;
  --bg: #faf4e4;
  --bg-soft: #f5eeda;

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1000px;
  --container-narrow: 680px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

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