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

* {
  margin: 0;
}

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

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

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-semi-max); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-secondary); }

html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-12xl); }
h2 { font-size: var(--text-9xl); }
h3 { font-size: var(--text-6xl); }
h4 { font-size: var(--text-4xl); }
h5 { font-size: var(--text-3xl); }
h6 { font-size: var(--text-2xl); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

strong, b { font-weight: var(--font-weight-semibold); }

small { font-size: var(--text-xl); }

ul, ol {
  list-style: none;
  padding: 0;
}

.pivenor-container {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

@media (max-width: 768px) {
  .pivenor-container {
    padding-inline: var(--space-4);
  }
}

.pivenor-container--narrow {
  max-width: var(--page-width-narrow);
}

.pivenor-section {
  padding-block: var(--space-section);
}

.pivenor-grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.pivenor-flex {
  display: flex;
  gap: var(--space-4);
}

.pivenor-flex--between {
  justify-content: space-between;
  align-items: center;
}

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

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

[tabindex="-1"]:focus {
  outline: none;
}

.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.text-small  { font-size: var(--text-xl); }
.uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.hidden { display: none !important; }

body.is-locked {
  overflow: hidden;
}

@keyframes pivenor-spin {
	to { transform: rotate(360deg); }
}

.pivenor-spinner {
	width: 44px;
	height: 44px;
	border: 4px solid var(--color-border);
	border-top-color: var(--color-accent-1);
	border-radius: var(--radius-half-percent);
	animation: pivenor-spin 0.8s linear infinite;
}

.pivenor-icon-svg--huge {
	width: 130px;
	height: 130px;
	display: block;
	flex-shrink: 0;
	stroke-width: 1.2;
}
