@font-face{
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-400.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-500.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-700.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video, svg{ display: block; max-width: 100%; }
img{ height: auto; }

h1,h2,h3,h4,h5{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
  color: var(--text-heading);
}
h1{ font-size: var(--fs-h1); }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); }
h4{ font-size: var(--fs-h4); font-weight: 500; }
p{ margin: 0 0 var(--space-sm); color: var(--text-secondary); }
p:last-child{ margin-bottom: 0; }

a{ color: inherit; text-decoration: none; }

ul,ol{ margin:0; padding:0; list-style:none; }

button, input, textarea, select{ font: inherit; color: inherit; }

::selection{ background: var(--primary); color: var(--on-primary); }

:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--primary);
  color: var(--on-primary);
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: var(--z-modal);
  transition: top var(--dur-base) var(--ease-out);
  font-weight: 600;
}
.skip-link:focus{ top: 1rem; }

::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--surface-3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover{ background: var(--border-strong); }
