/* KVATYRKA — base: reset, typography (UI13), links (UI16, ART10), focus (UI16), skip link.
   No transitions or animations anywhere on the site (UI26). */

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

* {
  margin: 0;
}

*,
*::before,
*::after,
::backdrop {
  animation: none !important;
  transition: none !important;
}

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

body {
  min-height: 100vh;
  background: var(--color-cream);
  color: var(--color-espresso);
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: var(--body-size);
  line-height: var(--body-line);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

.list-reset {
  list-style: none;
  padding: 0;
}

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

/* ---------- Typography (UI13) ---------- */

.t-display {
  font-weight: var(--weight-semibold);
  font-size: var(--display-size);
  line-height: var(--display-line);
  text-transform: uppercase;       /* "Kvatyrka" in HTML, caps by style (CB3) */
  width: fit-content;              /* UI26.1 */
}

h2,
.t-h2 {
  font-weight: var(--weight-semibold);
  font-size: var(--h2-size);
  line-height: var(--h2-line);
}

h3,
.t-h3 {
  font-weight: var(--weight-semibold);
  font-size: var(--h3-size);
  line-height: var(--h3-line);
}

.t-lead {
  font-size: var(--lead-size);
  line-height: var(--lead-line);
}

.t-body {
  font-size: var(--body-size);
  line-height: var(--body-line);
}

.t-accent {
  font-weight: var(--weight-medium);
}

.t-small {
  font-size: var(--small-size);
  line-height: var(--small-line);
}

.t-label {
  font-weight: var(--weight-semibold);
  font-size: var(--label-size);
  line-height: var(--label-line);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  white-space: nowrap;             /* Label is always one line (UI13) */
}

/* ---------- Links (UI16, ART10) ---------- */

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: auto;
}

@media (hover: hover) {
  a:hover {
    text-decoration-thickness: 2px;
  }
}

/* ---------- Focus (UI16) ---------- */

:focus {
  outline: none;
}

:focus-visible,
[data-kbd-focus]:focus {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

/* Text links and nav items: ring radius 2 px (element 0 + 2) */
a:not([class*="button"]) {
  border-radius: 0.01px;
}

/* Programmatic focus on headings: ring only for keyboard-like activation (UI26.1) */
[tabindex="-1"]:focus:not(:focus-visible):not([data-kbd-focus]) {
  outline: none;
}

/* ---------- Dark surface («Еспресо» / «Вершки») ---------- */

.surface-dark {
  --focus-color: var(--color-cream);
  background: var(--color-espresso);
  color: var(--color-cream);
}

/* ---------- Visually hidden (live regions, extra labels) ---------- */

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

/* ---------- Skip link: visible only on keyboard focus ---------- */

.skip-link {
  position: absolute;
  top: 4px;
  left: var(--page-margin);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-control);
  background: var(--color-espresso);
  color: var(--color-cream);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.skip-link:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
