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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: max(var(--font-size-md), var(--font-size-min-mobile));
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(1000px 600px at 88% -12%, var(--color-brand-100), transparent 62%),
    radial-gradient(760px 520px at -10% 8%, var(--color-wash), transparent 58%);
  background-attachment: fixed;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

a,
button,
[role="button"] {
  touch-action: manipulation;
}

a {
  color: var(--color-brand-600);
  text-decoration: none;
}

a:hover {
  color: var(--color-brand-500);
}

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

ul,
ol {
  padding: 0;
}

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

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: calc(var(--z-header) + 10);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  color: var(--color-on-brand);
  background: var(--color-brand-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform var(--duration-fast) var(--easing-standard);
}

.skip-link:focus {
  transform: translateY(0);
}

.u-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;
}

@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;
  }
}

