/**
 * Base/reset styles — typography defaults, box-sizing, logical-property
 * conventions for RTL support (Step 4 §3: margin-inline-*, not margin-left).
 *
 * @package XCursionGuide
 */

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--xcg-font-body);
  font-size: var(--xcg-text-body);
  line-height: 1.6;
  color: var(--xcg-color-charcoal);
  background: var(--xcg-color-sand-50);
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--xcg-font-display);
  line-height: 1.2;
  margin-block: var(--xcg-space-3) var(--xcg-space-2);
}

h1 { font-size: var(--xcg-text-h1); }
h2 { font-size: var(--xcg-text-h2); }
h3 { font-size: var(--xcg-text-h3); }

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

a {
  color: var(--xcg-color-link);
}

button {
  font-family: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Focus visibility — never remove outlines without a replacement (accessibility, Step 1). */
:focus-visible {
  outline: 2px solid var(--xcg-color-majorelle);
  outline-offset: 2px;
}
