/* =========================================================
   PUBLICORUM BASE.CSS
   Базовый рендер-слой PUBLICORUM
   ========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background: var(--bg-deep);
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, #231635 0, var(--bg-primary) 52%, var(--bg-deep) 100%);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

input,
textarea,
select {
    color: var(--text-main);
}

::selection {
    background: var(--gold-soft);
    color: var(--text-main);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-doctrine);
    color: var(--text-main);
}

p {
    color: var(--text-soft);
    line-height: 1.65;
}

small,
code {
    font-family: var(--font-code);
}

code {
    color: var(--gold);
}