/* =========================================================
   RENTIGUE
   Global foundation / reset
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #f5f1ea;
  color: #1b1917;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

fieldset {
  margin: 0;
}

::selection {
  background: #1b1917;
  color: #fff;
}

:focus-visible {
  outline: 2px solid #1b1917;
  outline-offset: 4px;
}

/* =========================================================
   Django / shared helpers
   ========================================================= */

.messages {
  width: min(92%, 1400px);
  margin: 20px auto;
}

.messages li {
  padding: 14px 18px;
  margin-bottom: 8px;
  border: 1px solid rgba(27, 25, 23, 0.12);
  background: #fbf9f5;
  font-size: 12px;
}

.messages .success {
  background: #eef4ec;
}

.messages .error {
  background: #f7eaea;
}

.messages .warning {
  background: #f8f1df;
}

.messages .info {
  background: #edf2f5;
}

/* =========================================================
   Forms
   ========================================================= */

input,
select,
textarea {
  border-radius: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #817a72;
  opacity: 0.8;
}

/* =========================================================
   Generic utility
   ========================================================= */

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

/* =========================================================
   Reduced motion
   ========================================================= */

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
