/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/roboto-v32-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  overflow-y: scroll;
}

body.dark {
  background: #121212;
  color: #f8f8f8;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

header .lang-switch {
  max-width: 40px;
}

header h1 {
  display: inline-block;
}

.accordion .accordion {
  padding-left: 1rem;
}

.accordion__title {
  cursor: pointer;
}

.accordion__content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s;
}

.accordion__content .inner {
  align-self: end;
  min-height: 0;
  opacity: 0;
  transition: all 0.6s;
  visibility: hidden;
  line-height: 1.2;
}

.accordion__content.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion__content.is-open .inner {
  visibility: visible;
  opacity: 1;
}

.accordion h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0.5em 0;
  padding: 0;
}

.accordion h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0.5em 0;
  padding: 0;
}

.accordion .accordion .accordion__content .inner p:last-child {
  margin-bottom: 0;
}

.accordion .inner .content {
  padding: 1.2rem 1rem;
  background: #f8f8f8;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  margin-bottom: 1.2rem;
}

body.dark .accordion .inner .content {
  background: #363636;
}

.accordion .inner img {
  width: 100%;
  max-width: 600px;
}

.accordion .inner img:not(:last-child) {
  margin-bottom: 1rem;
}
