html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--g-surface-canvas);
  color: var(--g-text-primary);
  font-family: var(--g-font-body);
  font-size: var(--g-type-body-md);
  font-weight: 300;
  letter-spacing: 0;
  line-height: var(--g-line-body);
  margin: 0;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

:where(h1, h2, h3, h4, h5, h6, p) {
  margin-block: 0;
}

:where(h1, h2, h3, h4, h5, h6) {
  color: var(--g-text-primary);
  font-family: var(--g-font-display);
  font-weight: 300;
  letter-spacing: 0;
  line-height: var(--g-line-heading);
}

h1 {
  font-size: var(--g-type-h1);
}

h2 {
  font-size: var(--g-type-h2);
}

h3 {
  font-size: var(--g-type-h3);
}

h4 {
  font-size: var(--g-type-h4);
}

p,
li {
  color: var(--g-text-primary);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

:where(img, video, svg) {
  display: block;
  max-width: 100%;
}

:where(button, input, textarea, select) {
  font: inherit;
}

:focus-visible {
  border-radius: var(--g-radius-xs);
  box-shadow: var(--g-shadow-focus);
  outline: none;
}

.wp-site-blocks {
  min-height: 100vh;
  overflow-x: clip;
}

.g-container {
  margin-inline: auto;
  width: min(100% - 40px, var(--g-container));
}

.g-container--wide {
  width: min(100% - 40px, var(--g-container-wide));
}

.g-container--narrow {
  width: min(100% - 40px, var(--g-container-narrow));
}

.g-container--editorial {
  width: min(100% - 40px, var(--g-container-editorial));
}

.g-section {
  padding-block: var(--g-section-y);
}

@media (max-width: 767px) {
  .g-container,
  .g-container--wide,
  .g-container--narrow,
  .g-container--editorial {
    width: min(100% - 32px, var(--g-container));
  }
}
