:root {
  --action-color: oklch(0.55 0.09 197.63);
  --action-color-light: oklch(0.73 0.13 194.77);
  --action-color-ultra-light: oklch(0.94 0.02 215.28);

  --text-color: oklch(0 0 0 / 0.87);
  --text-color-on-action-color: oklch(1 0 0 / 0.87);
  --text-color-on-action-color-light: oklch(0 0 0 / 0.87);

  --bg-img-green-dark: var(--action-color);
  --bg-img-green: var(--action-color-light);
  --bg-img-green-light: var(--action-color-ultra-light);

  --success-color: oklch(0.616 0.145 153.083);
  --success-bg-color: oklch(0.919 0.031 162.167);

  --error-color: oklch(0.613 0.217 29.007);
  --error-bg-color: oklch(0.909 0.041 23.564);

  --info-color: oklch(0.532 0.142 247.603);
  --info-bg-color: oklch(0.901 0.031 237.578);

  --main-width: 40.5rem;

  --table-head-border-color: oklch(0 0 0 / 1);
  --table-border-color: oklch(0 0 0 / 0.125);
  --table-bg-even: oklch(0 0 0 / 0.05);
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  row-gap: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  * {
    font-family: 'Unistra A', sans-serif;
    box-sizing: border-box;
    font-size: 1.25rem;
    line-height: 1.2;

    &:focus {
      outline: 2px solid var(--action-color);
    }
  }

  > div[aria-hidden='true'] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: center;

    svg {
      path {
        &:nth-of-type(3) {
          fill: var(--bg-img-green-dark);
        }

        &:nth-of-type(2) {
          fill: var(--bg-img-green);
        }

        &:nth-of-type(1) {
          fill: var(--bg-img-green-light);
        }
      }
    }

    > div {
      position: absolute;
      top: 50%;
      display: grid;
      grid-template-columns: 282px 507px 507px 282px;
      margin-block: auto;
      width: fit-content;
      height: 30rem;

      img {
        &:nth-of-type(1) {
          width: 220px;
          align-self: flex-end;
        }

        &:nth-of-type(1), &:nth-of-type(2) {
          transform: scaleX(-1);
        }

        &:nth-of-type(2), &:nth-of-type(3) {
          width: 150px;
        }

        &:nth-of-type(4) {
          width: 250px;
        }

        &:nth-of-type(3) {
          justify-self: flex-end;
        }

        &:nth-of-type(3), &:nth-of-type(4) {
          align-self: flex-end;
        }
      }
    }
  }

  main {
    --additional-padding: 4.25rem;

    width: 100%;
    max-width: var(--main-width);
    background-color: white;
    padding: 1rem 2rem;
    border-block-end: 1px solid var(--bg-img-green-dark);

    @media (width >= 768px) {
      border: 1px solid var(--bg-img-green-dark);
    }

    > header {
      nav {
        width: 100%;
        display: flex;
        justify-content: flex-end;

        menu {
          display: flex;
          padding: 0;
          margin: 0;

          li {
            list-style: none;

            &:not(:last-child) {
              a {
                abbr {
                  border-right: 1px solid var(--text-color);
                }
              }
            }

            &:last-child {
              a {
                abbr {
                  padding-right: 0;
                }
              }
            }

            a {
              abbr {
                text-decoration: none;
                padding: 0 0.5rem;
                display: flex;
                justify-content: center;
                align-items: center;
              }
            }
          }
        }
      }

      h1 {
        text-align: center;
        font-size: 1.75rem;
        margin: 2rem 0;
        font-weight: normal;

        @media (width >= 768px) {
          font-size: 2.5rem;
          padding-inline: var(--additional-padding);
        }
      }
    }

    > footer {
      @media (width >= 768px) {
        padding-inline: var(--additional-padding);
      }

      > div {
        display: flex;
        justify-content: space-evenly;

        &:not(.charactersMobile) {
          img {
            height: 2rem;
          }
        }

        &.charactersMobile {
          align-items: flex-end;
          margin-block-start: 1rem;

          @media (width >= 768px) {
            display: none;
          }

          img {
            &:nth-of-type(1), &:nth-of-type(4) {
              width: 4.5rem;
            }

            &:nth-of-type(2), &:nth-of-type(3) {
              width: 3.25rem;
            }

            &:nth-of-type(1), &:nth-of-type(2) {
              transform: scaleX(-1);
            }
          }
        }
      }
    }
  }

  > footer {
    display: flex;
    justify-content: center;

    p {
      margin: 0;
      padding: 0;
      text-align: center;
    }
  }
}

a {
  color: var(--action-color);

  &[target='_blank']::after {
    content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Eopen-in-new%3C%2Ftitle%3E%3Cpath%20d%3D%22M14%2C3V5H17.59L7.76%2C14.83L9.17%2C16.24L19%2C6.41V10H21V3M19%2C19H5V5H12V3H5C3.89%2C3%203%2C3.9%203%2C5V19A2%2C2%200%200%2C0%205%2C21H19A2%2C2%200%200%2C0%2021%2C19V12H19V19Z%22%20%2F%3E%3C%2Fsvg%3E");
    width: 1rem;
    height: 1rem;
    display: inline-block;
    position: relative;
    top: 3px;
    margin-left: 0.25rem;
  }
}

.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.bold {
  font-weight: bold;
}

.a-btn {
  border: 1px solid var(--action-color);
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  background-color: white;

  @media (prefers-reduced-motion: no-preference) {
    transition: all 250ms ease-in-out;
  }

  &:hover, &:focus {
    background-color: var(--action-color);
    color: var(--text-color-on-action-color);
  }
}

