/* MoveCar base reset + typography. See /DESIGN.md section 3-4. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* [hidden] must always win over a component's own `display: flex`/`grid` (e.g. .stack,
   .banner) — same specificity as those class selectors, so without this the later rule
   in source order silently keeps a "hidden" element visible. */
[hidden] {
  display: none !important;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--text-body-size);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--surface-secondary);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

a {
  color: var(--accent-primary);
}

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

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.text-display {
  font-size: var(--text-display-size);
  font-weight: 700;
  line-height: 1.3;
}

.text-h1 {
  font-size: var(--text-h1-size);
  font-weight: 700;
  line-height: 1.35;
}

.text-h2 {
  font-size: var(--text-h2-size);
  font-weight: 600;
  line-height: 1.4;
}

.text-body-lg {
  font-size: var(--text-body-lg-size);
  font-weight: 500;
  line-height: 1.6;
}

.text-body-sm {
  font-size: var(--text-body-sm-size);
  color: var(--text-secondary);
  line-height: 1.55;
}

.text-caption {
  font-size: var(--text-caption-size);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
