/* TapShop — Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-primary);
  background: var(--surface-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  text-rendering: optimizeLegibility;
}

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

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brand-secondary); color: var(--brand-primary); }

/* Utility classes (used throughout screens) */
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.h1 { font-size: var(--fs-h1); font-weight: var(--fw-semibold); line-height: var(--lh-tight); letter-spacing: -0.01em; margin: 0; }
.h2 { font-size: var(--fs-h2); font-weight: var(--fw-semibold); line-height: var(--lh-snug);  letter-spacing: -0.005em; margin: 0; }
.h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: var(--lh-snug); margin: 0; }
.t-display { font-family: var(--font-num); font-size: var(--fs-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.t-small   { font-size: var(--fs-small); }
.t-micro   { font-size: var(--fs-micro); }
.t-sec     { color: var(--text-secondary); }
.t-ter     { color: var(--text-tertiary); }
.t-medium  { font-weight: var(--fw-medium); }
.t-semi    { font-weight: var(--fw-semibold); }

.divider { height: 1px; background: var(--divider); width: 100%; }

.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }
.gap-8 { gap: var(--s-8); }
.flex-1 { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.center  { justify-content: center; align-items: center; }
.wrap    { flex-wrap: wrap; }

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