/* Base styles — Manrope only, Stitch body setup */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::selection,
*::selection {
  background: var(--primary);
  color: var(--on-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  margin: 0;
  color: var(--on-surface);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 300ms ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Utility layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--sm { max-width: 768px; }
.container--md { max-width: 960px; }
.container--lg { max-width: 1152px; }

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

/* The "eyebrow" — uppercase label used repeatedly in Stitch */
.eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.eyebrow--on-primary {
  color: var(--on-primary);
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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