/**
 * Global defaults: box model, typography, links, motion.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-black);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-lg);
  top: var(--space-lg);
  padding: 0.5rem 1rem;
  background: var(--color-black);
  color: var(--color-bg);
  text-decoration: none;
}

/* Utility: constrain prose width */
.u-prose-narrow {
  max-width: 28rem;
}

.u-text-muted {
  color: var(--color-gray);
  font-size: 0.8125rem;
}

.u-mt-md {
  margin-top: var(--space-md);
}

.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;
}

/* Bilingual: toggle visibility with html[data-site-lang="en"|"fr"] (set by ts/site.ts) */
html[data-site-lang="en"] .i18n--fr,
html[data-site-lang="fr"] .i18n--en {
  display: none !important;
}

.i18n--en,
.i18n--fr {
  display: inline;
}

.i18n--block {
  display: block;
}

.hero__title .i18n--en,
.hero__title .i18n--fr {
  display: block;
}

.hero__lead .i18n--en,
.hero__lead .i18n--fr {
  display: block;
}

.card__body .i18n--en,
.card__body .i18n--fr,
.callout__body .i18n--en,
.callout__body .i18n--fr {
  display: block;
}
