/* =============================================================================
   Mission Ready by Ashford Fitness
   Base — reset, global styles, typography foundation
   ============================================================================= */

/* ── Reset ──────────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-body);
  color: var(--colour-text);
  background-color: var(--colour-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--colour-accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

code, pre {
  font-family: var(--font-mono);
}

/* ── Layout ──────────────────────────────────────────────────────────────────── */

.app-wrapper {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-4);
  padding-bottom: var(--space-16);
}

/* ── App header ──────────────────────────────────────────────────────────────── */

.app-header {
  padding: var(--space-8) 0 var(--space-6);
  text-align: center;
}

.app-header__wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.app-header__icon {
  width: 36px;
  height: 36px;
  background: var(--colour-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-header__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-header__name {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--colour-text);
  line-height: var(--leading-tight);
}

.app-header__descriptor {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--colour-accent-light);
  margin-bottom: var(--space-2);
}

.app-header__tagline {
  font-size: var(--text-base);
  color: var(--colour-text-secondary);
}

.app-header__tagline strong {
  color: var(--colour-text);
  font-weight: var(--weight-semi);
}

/* ── Section spacing ─────────────────────────────────────────────────────────── */

.section {
  margin-bottom: var(--space-6);
}

/* ── Utility ──────────────────────────────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.text-muted  { color: var(--colour-text-secondary); }
.text-accent { color: var(--colour-accent-light); }
.text-error  { color: var(--colour-error); }
.text-mono   { font-family: var(--font-mono); font-size: var(--text-sm); }
.text-small  { font-size: var(--text-sm); }

/* ── Scrollbar (cosmetic) ────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--colour-bg); }
::-webkit-scrollbar-thumb { background: var(--colour-border-light); border-radius: 3px; }

/* ── Focus ring ──────────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--colour-accent-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Reduced motion ──────────────────────────────────────────────────────────── */

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

