/* ==========================================================================
   AuraFit — Base / Reset
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  transition: background var(--dur-med) var(--ease-soft), color var(--dur-med) var(--ease-soft);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.15rem; }

p { margin: 0; }

a { color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

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

input {
  font-family: inherit;
  color: var(--text-primary);
}

svg { display: block; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* Scrollbar (webkit) — soft-UI friendly */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--shadow-dark);
  border-radius: var(--r-pill);
  border: 2px solid var(--bg);
}

/* Utility text */
.subdued { color: var(--text-secondary); }
.small { font-size: 0.82rem; }
.text-accent { color: var(--accent); }
.unit { font-size: 0.55em; font-weight: 600; color: var(--text-secondary); margin-left: 4px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 6px;
}

.is-hidden { display: none !important; }

/* Focus visibility for keyboard users, layered on top of soft-UI shadows */
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--sh-raised-sm), var(--focus-ring);
}

/* Reduced motion */
@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;
  }
}
