/* ==========================================================================
   This Way Mart · base.css
   Fonts, reset, document defaults, typography and focus. No components.
   ========================================================================== */

@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('../assets/fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('../assets/fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../assets/fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('../assets/fonts/manrope-latin-800-normal.woff2') format('woff2'); }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---- Document ---- */
html { background: var(--bg); }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

/* ---- Typography ---- */
.t-display { font-size: var(--fs-display); font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--track-tight); }
.t-h1      { font-size: var(--fs-h1);      font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.03em; }
.t-h2      { font-size: var(--fs-h2);      font-weight: 700; line-height: 1.2;  letter-spacing: var(--track-head); }
.t-h3      { font-size: var(--fs-h3);      font-weight: 700; line-height: 1.25; letter-spacing: var(--track-head); }
.t-body    { font-size: var(--fs-body);    color: var(--text-muted); }
.t-small   { font-size: var(--fs-small); }
.t-label   { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); }
.t-muted   { color: var(--text-muted); }
.t-strong  { font-weight: 700; color: var(--text); }
.t-price   { font-size: 2rem; font-weight: 800; letter-spacing: var(--track-head); }

/* ---- Focus: visible, on-brand, never removed ---- */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* ---- Accessibility helpers ---- */
.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; }

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

.t-center { text-align: center; }
