
/* =========================================
   CREJENCE — BASE STYLES
   ========================================= */

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

/* Page defaults */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--color-plum);
}

/* Images and SVGs */
img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

/* Form elements */
button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Keyboard accessibility */
:focus-visible {
  outline: 3px solid var(--color-plum);
  outline-offset: 3px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Screen-reader-only content */

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