/*
 * Design tokens. This is the ONLY place VoxelSite expects colours and fonts to live.
 * Spacing, radius and layout stay in Tailwind classes in the pages and partials.
 * Do not put component classes here (.hero, .card, .btn): the compiler reads classes from
 * the HTML. Map TypeUI tokens onto these custom properties (design/typeui-to-voxelsite.md).
 */
:root {
  --color-primary: #0b5d46;
  --color-primary-light: #1f7f63;
  --color-primary-dark: #073f30;
  --color-accent: #b4530a;
  --color-bg: #fbfaf7;
  --color-bg-alt: #f1eee6;
  --color-text: #1b1d1c;
  --color-text-muted: #4a4f4c;
  --color-border: #d9d5c8;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-width: 1100px;

  /* ── Standard Tokens (auto-injected) ── */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --radius-default: 4px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html { scroll-behavior: smooth; }

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

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

/* ── Base typography (auto-injected) ── */
body { font-family: var(--font-body, 'Inter', -apple-system, system-ui, sans-serif); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading, var(--font-body, 'Inter', -apple-system, system-ui, sans-serif)); }


/* -- Mobile Nav Safety Net (auto-injected) -- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
}
.mobile-menu { background-color: var(--color-bg, #111); }
.mobile-menu { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
}
