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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-page);
}

body.is-locked {
  overflow: hidden;
}

main,
header,
footer,
nav,
section,
article,
aside,
form,
fieldset,
.site-shell,
.page-content {
  min-width: 0;
}

p,
li,
dd,
dt,
figcaption,
th,
td,
label,
a {
  overflow-wrap: anywhere;
}

img,
svg,
video,
iframe,
embed,
object {
  max-width: 100%;
}

img {
  height: auto;
}

a,
a:visited {
  color: var(--color-blue-deep);
}

a:hover {
  color: var(--color-blue);
}

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

button {
  color: inherit;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--color-text);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin-top: 0;
}

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

#main-content:focus-visible {
  outline-offset: -3px;
}

.site-shell {
  position: relative;
  width: min(calc(100% - 2rem), var(--shell-width));
  margin: 1rem auto 2rem;
  border: 1px solid rgba(89, 126, 151, 0.28);
  border-radius: 16px;
  background: rgba(249, 252, 255, 0.96);
  box-shadow: var(--shadow-shell);
  overflow: hidden;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #f7fbfe 0%, #edf4f8 100%);
}

.site-background span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 0.98),
    rgba(169, 216, 245, 0.34) 50%,
    rgba(169, 216, 245, 0) 72%
  );
}

.site-background span:nth-child(1) {
  width: 32rem;
  height: 32rem;
  right: -10rem;
  top: -13rem;
}

.site-background span:nth-child(2) {
  width: 22rem;
  height: 22rem;
  left: -9rem;
  top: 35%;
}

.site-background span:nth-child(3) {
  width: 28rem;
  height: 28rem;
  right: 8%;
  bottom: -16rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

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

.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--color-blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button-row--center {
  justify-content: center;
}

.site-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(20, 44, 62, 0.28);
  backdrop-filter: blur(2px);
}

.site-overlay[hidden] {
  display: none;
}

@media (max-width: 360px) {
  .button-row {
    align-items: stretch;
  }

  .button-row .button {
    max-width: 100%;
    white-space: normal;
  }
}

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

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

  .button:hover {
    transform: none;
  }

  .news-youtube__consent:hover .news-youtube__play,
  .news-youtube__consent:focus-visible .news-youtube__play {
    transform: translate(-50%, -50%);
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }

  .button,
  .icon-button,
  .primary-nav__link,
  input,
  select,
  textarea {
    border-color: ButtonText;
  }
}
