body {
  background-color: $bodygrey;
  color: $textcolor;
  font-family: $font-family-sans-serif;
  font-size: 16px;
  line-height: 1.5;

  &.white {
    background-color: $white;
  }
}

main {
  @include min-page-height;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 300;
  line-height: 1.375;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.125rem;
  font-weight: 600;
  line-height: normal;
}

h2 {
  font-size: 1.875rem;

  span {
    font-weight: 600;
  }
}

h3,
h4 {
  font-size: 1.25rem;
}

h4 {
  font-weight: bold;
}

h5 {
  font-size: 1rem;
}

small {
  font-size: 0.875rem;
  line-height: 1.571;

  &.xs {
    font-size: 0.75rem;
    line-height: 1.833;
  }

  &.xxs {
    font-size: 0.625rem;
    line-height: 2.2;
  }
}

p,
ul {
  margin-bottom: 1rem;
}

pre {
  white-space: pre-wrap;
}

blockquote {
  color: $black;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
  margin-left: 1rem;
  margin-right: 1rem;
  text-align: center;

  p::before {
    content: '\201C';
    display: inline-block;
    font-size: 1.75rem;
    padding-right: 0.25rem;
  }

  p::after {
    content: '\201D';
    display: inline-block;
  }

  @media (min-width: $bp-medium) {
    margin-left: 5rem;
    margin-right: 5rem;
  }
}

cite {
  color: $black;
  display: block;
  font-size: $font-size-small;
  font-style: normal;
  margin-left: 1rem;
  margin-right: 1rem;
  text-align: center;

  @media (min-width: $bp-medium) {
    margin-left: 5rem;
    margin-right: 5rem;
  }
}

figure {
  display: inline-block;
  position: relative;
}

figcaption {
  z-index: 4;
  font-size: 16px;

  .icon-info {
    color: $white;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    transition: $standard-transition;

    &:hover {
      opacity: 0.8;
      cursor: pointer;
    }

    &::before {
      font-size: 1.5rem;
      text-shadow: $textshadow-light;
    }
  }

  cite {
    background: $white;
    border: none;
    border-radius: 0.25rem;
    bottom: 0.5rem;
    box-shadow: $boxshadow-small;
    color: inherit;
    display: inline;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: normal;
    left: initial;
    line-height: 1.5;
    margin: 0;
    max-width: 75%;
    padding: 0.75rem;
    position: absolute;
    right: 0.5rem;
    text-align: left;

    p {
      color: $mediumgrey;
      display: box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 0.25rem;
    }

    .attribution {
      margin-top: 0.5rem;

      > span {
        margin-left: 0;

        .license {
          font-size: $font-size-small;
          margin-top: -0.1rem;
        }
      }
    }
  }
}

blockquote + p cite {
  padding-top: 0.75rem;
  margin-top: -1rem;
}

img {
  max-width: 100%;
}

video {
  width: 100%;
}

a {
  color: $black;
  text-decoration: underline;

  &:hover {
    color: inherit;
    text-decoration: none;
  }
}

.nuxt-progress {
  background-color: $blue;
  height: 0.25rem;
  left: 0;
  opacity: 1;
  position: fixed;
  right: 0;
  top: 0;
  transition: width 0.1s, opacity 0.4s;
  width: 0;
  z-index: 999999;
}

.btn:focus,
input[type='checkbox']:focus + label {
  outline: auto;

  /* stylelint-disable */
  @media (-webkit-min-device-pixel-ratio: 0) {
    outline: -webkit-focus-ring-color auto 5px;
  }
  /* stylelint-enable */
}

main#default {
  margin-top: 70px;

  @media (min-width: $bp-xxxl) {
    margin-top: calc(3.5vw + 1rem);
  }
}

.organisation-logo {
  height: 72px;
  width: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: $whitegrey;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 66.67%;
  background-blend-mode: multiply;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.default-thumbnail {
  display: flex;
  justify-content: center;
  align-items: center;

  [class^='icon-'],
  [class*=' icon-'] {
    font-size: 3.5rem;
    opacity: 0.3;
    mix-blend-mode: multiply;
  }
}

.white-page {
  background: $white;
  margin-top: -3rem;
  position: relative;

  @include min-page-height;
  @include white-cutout;
}
