/* GetAsset UI — reset, type, focus. Ship this file with tokens and components. */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 14px/1.45 var(--font-sans);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

body > #content {
  flex: 1 0 auto;
  width: 100%;
}

body.is-locked {
  overflow: hidden;
}

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

.logo img {
  width: auto;
  max-width: 180px;
  height: 32px;
}

.ui-header .logo img {
  max-width: none;
  height: auto;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

h4 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

::selection {
  background: var(--color-brand);
  color: var(--color-on-brand);
}

:focus-visible {
  outline: 2px solid var(--color-line);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.ui-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text-2);
}

.ui-text-muted {
  color: var(--color-text-3);
}

.ui-caption {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-4);
}

.ui-link {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ui-link:hover {
  color: var(--color-brand-hover);
}

.ui-divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--color-line);
}

/* Сообщения msgbox / {info} — по центру страницы */
.ui-page-message {
  width: min(560px, calc(100% - 32px));
  margin: 48px auto 64px;
  padding: 0;
}

.ui-page-message--wide {
  width: min(var(--page-width), calc(100% - 48px));
}

.ui-page-message__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-2);
}

.ui-page-message__body a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ui-page-message__body a:hover {
  color: var(--color-brand-hover);
}

@media (max-width: 700px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
