/* Theme tokens (must load before other business CSS) */
:root {
  --primary: #1E77FF;
  --primary-hover: #1565d6;
  --primary-soft-bg: #e8f0fe;
  --footer-bg: #0F2557;
  --footer-text: #ffffff;
  --body-bg: #ffffff;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --page-gutter: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--body-bg);
  /* Defensive: prevent any rogue child from creating page-level horizontal scroll */
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  /* Global safety: never let raw <img> exceed its container.
     Intentionally NOT setting height: auto — pages that fix img height
     (e.g. .det-screenshots__img with aspect-ratio) need control. */
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}
