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

html {
  min-width: 320px;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--yg-color-background);
  color: var(--yg-color-text);
  font-family: var(--yg-font-body);
  font-size: var(--yg-font-size-md);
  font-weight: var(--yg-font-weight-regular);
  letter-spacing: 0;
  line-height: var(--yg-line-height-body);
  text-rendering: optimizeLegibility;
}

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

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0 var(--yg-space-2);
  color: var(--yg-color-text);
  font-family: var(--yg-font-heading);
  font-weight: var(--yg-font-weight-semibold);
  letter-spacing: 0;
  line-height: var(--yg-line-height-heading);
  text-wrap: balance;
}

p,
ul,
ol,
blockquote {
  margin-block: 0 var(--yg-space-3);
}

a {
  color: var(--yg-color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--yg-color-accent-hover);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

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

::selection {
  background: var(--yg-color-accent-soft);
  color: var(--yg-color-text);
}

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

.screen-reader-text:focus,
.yg-skip-link:focus {
  position: fixed !important;
  z-index: calc(var(--yg-z-toast) + 1);
  top: var(--yg-space-2);
  left: var(--yg-space-2);
  width: auto;
  height: auto;
  padding: var(--yg-space-1) var(--yg-space-2);
  clip: auto;
  background: var(--yg-color-surface);
  color: var(--yg-color-text);
  white-space: normal;
}

.yg-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.yg-site {
  min-height: 100vh;
}

.yg-shell {
  width: min(100%, var(--yg-shell-public));
  margin-inline: auto;
  padding-inline: var(--yg-gutter-mobile);
}

.yg-entry__inner {
  padding-block: var(--yg-space-5);
}

.yg-entry__inner--reading {
  max-width: var(--yg-shell-reading);
}

.yg-entry__title {
  font-size: var(--yg-font-size-3xl);
}

.yg-entry--elementor,
.yg-entry--elementor .elementor {
  width: 100%;
  max-width: none;
}

@media (min-width: 782px) {
  .yg-shell {
    padding-inline: var(--yg-gutter-desktop);
  }
}

@media (min-width: 1180px) {
  .yg-shell {
    padding-inline: var(--yg-gutter-wide);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
