/* === Reset ============================================================
 * Modern, minimal reset matching the Tasks aesthetic.
 * ===================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
*:focus { outline: none; }
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* Inputs handle their own focus via border/box-shadow */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}

html, body { height: 100%; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--tx);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "tnum" on, "lnum" on, "ss01" on;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

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

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--b2);
  border-radius: 4px;
  transition: background var(--t-fast);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* iOS input zoom prevention */
@supports (-webkit-touch-callout: none) {
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="search"], input[type="tel"],
  input[type="url"], input[type="date"], textarea {
    font-size: 16px;
  }
}

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