/* =================================================================
   BASE STYLES — Local-first reset
   Includes: fonts.css + minimal normalize + utility classes
   ================================================================= */

/* Reset & Normalize (минимальный, без зависимостей) */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body, 'Inter', system-ui, -apple-system, sans-serif);
  font-size: var(--text-base, 1rem);
  line-height: 1.5;
  color: var(--color-text, #fff);
  background-color: var(--color-bg, #0a0a0a);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

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

code,
pre {
  font-family: var(--font-mono, 'JetBrains Mono', 'Courier New', monospace);
}

/* ----- Utility classes (для использования без Tailwind) ----- */

.font-mono { font-family: var(--font-mono); }
.font-body { font-family: var(--font-body); }

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Sr-only (для доступности) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}