/**
 * Scanmelabs Reset & Base
 */

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

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

body {
  font-family: var(--sl-font-sans);
  font-size: var(--sl-text-base);
  font-weight: var(--sl-weight-regular);
  line-height: var(--sl-leading-normal);
  color: var(--sl-color-text);
  background-color: var(--sl-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--sl-color-primary);
  text-decoration: none;
  transition: color var(--sl-transition);
}

a:hover {
  color: var(--sl-navy-mid);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  border: var(--sl-border);
  border-radius: var(--sl-radius-sm);
  padding: var(--sl-space-2) var(--sl-space-3);
  background: var(--sl-color-bg);
  color: var(--sl-color-text);
  width: 100%;
  transition: border-color var(--sl-transition), box-shadow var(--sl-transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sl-color-primary);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--sl-weight-medium);
  line-height: var(--sl-leading-tight);
  color: var(--sl-color-text);
}

h1 { font-size: var(--sl-text-4xl); }
h2 { font-size: var(--sl-text-3xl); }
h3 { font-size: var(--sl-text-2xl); }
h4 { font-size: var(--sl-text-xl); }
h5 { font-size: var(--sl-text-lg); }
h6 { font-size: var(--sl-text-md); }

p {
  line-height: var(--sl-leading-normal);
}

p + p {
  margin-top: var(--sl-space-4);
}

hr {
  border: none;
  border-top: var(--sl-border);
  margin: var(--sl-space-6) 0;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sl-space-4);
  background: var(--sl-color-primary);
  color: var(--sl-color-text-inverse);
  padding: var(--sl-space-2) var(--sl-space-4);
  border-radius: var(--sl-radius-sm);
  z-index: calc(var(--sl-z-navbar) + 10);
  font-size: var(--sl-text-sm);
  font-weight: var(--sl-weight-medium);
  transition: top var(--sl-transition);
}

.skip-link:focus {
  top: var(--sl-space-2);
}

/* Visually hidden (accessible) */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.sl-container {
  width: 100%;
  max-width: var(--sl-container-max);
  margin-inline: auto;
  padding-inline: var(--sl-space-6);
}

.sl-container--narrow {
  max-width: var(--sl-container-inner);
}
