/* TEAR · base styles · resets + globals */

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-normal);
  color: var(--text-hi);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';  /* Geist contextual */
}

body {
  margin: 0;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin: 0;
  color: var(--text-md);
}

a {
  color: var(--accent-400);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-out);
}

a:hover {
  color: var(--accent-300);
}

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

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

::selection {
  background: var(--accent-500);
  color: var(--accent-fg);
}

/* Focus ring · Radix pattern */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* Scrollbar · Linear-style minimal */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-3);
}

/* Utility classes (minimal · expand quando necessário) */
.container {
  max-width: var(--width-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); }
.text-md-color { color: var(--text-md); }
.text-lo-color { color: var(--text-lo); }
