/* База: reset, типографіка тексту. Значення тільки з tokens.css. */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
/* як .body-wrapper в оригіналі: довгі слова в заголовках (flexitanks) обрізаються краєм, без горизонтального скролу */

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s; }

h1, h2, h3, h4 { margin: 0; font-weight: var(--fw-regular); line-height: var(--lh-heading); color: var(--c-heading); }

p { margin: 0 0 var(--sp-p); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

/* Текстовий контент карток і сторінок */
.content > h2:first-child { font-size: var(--fs-h1); }
.content h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-heading); }
.content h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-heading); }
.content h4, .content .h4 { font-size: var(--fs-h4-content); margin-bottom: var(--sp-h4); }
.content ul { margin: 0 0 var(--sp-p); }
/* справжні списки WP: відступ і маркер-коло */
.content ul:not(.bullets) { margin-left: var(--list-indent); list-style: disc outside; }
/* списки, зібрані з рядків «•» */
.content ul.bullets li::before { content: "• "; }
.content a { color: var(--c-link); }
.content a:hover { color: var(--c-accent); }
