/* Nashe Pravo :: base reset + typography */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--lh-tight);
    margin: 0 0 var(--s-4);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--s-5); }

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--ukrainian-yellow); text-decoration: underline; }

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

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

button { cursor: pointer; }

hr {
    border: 0;
    border-top: 1px solid var(--border-subtle);
    margin: var(--s-8) 0;
}

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

pre {
    background: var(--bg-inset);
    padding: var(--s-5);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

blockquote {
    border-left: 3px solid var(--accent-gold);
    margin: var(--s-8) 0;
    padding: var(--s-2) 0 var(--s-2) var(--s-6);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15em;
    color: var(--text-secondary);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent-gold);
    color: var(--midnight-command);
    padding: var(--s-3) var(--s-5);
    font-family: var(--font-sans);
    font-weight: 600;
    z-index: 9999;
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

::selection {
    background: var(--accent-gold);
    color: var(--midnight-command);
}
