@font-face {
  font-family: "SFMono";
  src: local("SFMono Regular"), local("SFMono-Regular"),
    url("./fonts/SFMonoRegular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  margin: 0;
  font-family: "SFMono", Courier New, monospace;
  font-size: 10.5px;
  line-height: 1.1;
  color: black;
  cursor: url("./cursor/cursor__default.svg"), auto;
  --max-grid-width: 900px;
}

body {
  /* set body padding in pixels instead of rem because of 10.5 */
  padding: 5px;
  /* reset user agent behaviour */
  margin: 0;
}

@media screen and (min-width: 768px) {
  :root {
    font-size: 12px;
  }

  body {
    padding: 6px;
  }
}

.max-width-container {
  max-width: var(--max-grid-width);
}

/**
* vanilla-lazyload styling
.lazy {
  filter: none;
  transition: filter ease-in-out 300ms;
}

.lazy:not(.loaded) {
  filter: blur(15px);
}
*/

input {
  cursor: url("./cursor/cursor__hover.svg"), auto;
}

/* cursor */
.cursor-down,
.cursor-down * {
  cursor: url("./cursor/cursor__hover.svg"), auto;
}

.cursor-up,
.cursor-up * {
  cursor: url("./cursor/cursor__hover.svg"), auto;
}

.swiper-container .cursor-left {
  cursor: url("./cursor/cursor__hover.svg"), auto;
}

.swiper-container .cursor-right {
  cursor: url("./cursor/cursor__hover.svg"), auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1rem;
  font-weight: inherit;
  line-height: inherit;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-bottom: 1rem;
}

p {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* link reset */
a {
  text-decoration: underline;
  color: inherit;
  display: block;
  cursor: url("./cursor/cursor__hover.svg"), auto;
}

/* list reset */
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* clearfix */
ul::after {
  content: "";
  display: block;
  clear: both;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(10, 10fr);
  grid-column-gap: 1rem; /* deprecated but for legacy reasons */
  column-gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.grid div,
.grid p {
  /* maybe overflow: auto is needed, because otherwise column layout gets shifted but then there fields are scrollable.. */
  overflow: visible;
}

.grid p {
  align-self: start;
}

.grid-item-first {
  grid-column: 1 / 2;
}

.grid-item-second {
  grid-column: 2 / 3;
}

.grid-item-third {
  grid-column: 3 / 4;
}

.grid-item-span-four-left {
  grid-column: 2 / 6;
}

.grid-item-span-four-right {
  grid-column: 6 / 10;
}

.grid-item-last-two {
  grid-column: 10 / 10;
  justify-self: end;
}

.grid-item-first-two {
  grid-column: 1 / 3;
}

.grid-item-second-two {
  grid-column: 3 / 5;
}

@media only screen and (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

/* normalize buttons
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.1; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
  /* 1 */
  overflow: visible;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  margin-bottom: 1rem;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

button:hover,
button:focus {
  background: #0053ba;
}

button:focus {
  outline: 1px solid #fff;
  outline-offset: -4px;
}

button:active {
  transform: scale(0.99);
}

*:focus {
  outline: none;
}
