/* ==========================================================================
   Modern CSS Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  word-break: break-word;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pb-header-height) + 20px);
}

body {
  min-height: 100%;
  line-height: var(--pb-line-height-normal);
  font-family: var(--pb-font-body);
  font-size: var(--pb-font-size-base);
  color: var(--pb-text-primary);
  background-color: var(--pb-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

body.admin-bar {
  scroll-padding-top: calc(var(--pb-header-height) + 52px);
}

/* Reset lists */
ul, ol {
  list-style: none;
}

/* Reset links */
a {
  color: inherit;
  text-decoration: none;
}

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

/* Reset form elements */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
}

/* Reset tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* Reset headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--pb-font-heading);
  font-weight: var(--pb-font-weight-bold);
  line-height: var(--pb-line-height-tight);
}

/* Reset misc */
blockquote, q {
  quotes: none;
}

hr {
  border: none;
  border-top: 1px solid var(--pb-border-color);
}

iframe {
  max-width: 100%;
  border: none;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--pb-primary);
  outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--pb-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--pb-border-dark);
  border-radius: var(--pb-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pb-text-muted);
}

/* Selection */
::selection {
  background-color: rgba(var(--pb-primary-rgb), 0.15);
  color: var(--pb-primary-dark);
}
