/* =========================================================
   Base reset + global styles
   ========================================================= */

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

html, body, #root {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: rgb(59 130 246 / .35); color: #fafafa; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border: 2px solid var(--bg-app);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Type utilities */
.mono { font-family: var(--font-mono); font-feature-settings: "zero", "ss02"; }
.eyebrow {
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tr-wider);
  font-weight: var(--fw-medium);
}
.display { font-size: var(--fs-display); font-weight: var(--fw-semi); letter-spacing: var(--tr-tight); line-height: var(--lh-tight); }
.h1 { font-size: var(--fs-h1); font-weight: var(--fw-semi); letter-spacing: var(--tr-tight); line-height: var(--lh-tight); }
.h2 { font-size: var(--fs-h2); font-weight: var(--fw-semi); letter-spacing: var(--tr-tight); line-height: var(--lh-snug); }
.h3 { font-size: var(--fs-h3); font-weight: var(--fw-semi); letter-spacing: -0.01em; line-height: var(--lh-snug); }
.t-secondary { color: var(--text-secondary); }
.t-tertiary { color: var(--text-tertiary); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
