/**
 * main.css — БАЗА ТЕМЫ
 *
 * Содержит:
 * - reset
 * - базовые стили body
 * - глобальные элементы (button, input)
 * - класс .i для SVG-иконок
 *
 * ⚠️ ВАЖНО:
 * - НЕ содержит layout (app-container, sidebar и т.д.)
 * - НЕ содержит catalog / entity стили
 * - НЕ содержит CSS переменные (они в style.css)
 */

/* ==========================================================================
   RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   BODY
   ========================================================================== */
body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow: hidden;
    height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

body.menu-open::before {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   BASE ELEMENTS
   ========================================================================== */
button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

input {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

a {
    text-decoration: none;
}

h2 {
    font-size: 1.2rem;
}

/* ==========================================================================
   SVG ICON BASE
   ========================================================================== */
.i {
    stroke: currentColor;
    stroke-width: inherit;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.prose a {
    color: var(--text-link);
    /* text-decoration: underline;
    text-decoration-color: color-mix(in oklab, var(--text-link) 35%, transparent);
    text-underline-offset: 3px; */
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.prose a:hover {
    color: var(--accent);
    text-decoration-color: color-mix(in oklab, var(--accent) 60%, transparent);
}