@dark: #781134;
@light: #B61E3A;

.clearfix() {
    display: inline-block;

    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: ' ';
        clear: both;
        height: 0;
    }
}

.border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) {
    border-top-right-radius: @topright;
    border-bottom-right-radius: @bottomright;
    border-bottom-left-radius: @bottomleft;
    border-top-left-radius: @topleft;

    background-clip: padding-box;
}

a {
    color: black;
    text-decoration: none;
    border-bottom: dotted 1px black;

    &:hover {
        border-bottom-color: @light;
        color: @dark;
    }
}

body {
    font-family: 'Source Sans Pro', serif;
    font-size: 18px;
    color: black;
    background-color: white;
    margin: 0;
    padding: 10px;
    user-select: none;
}

header {
    width: 100%;
    min-width: 300px;
    max-width: 700px;
    margin: 0 auto;
    height: 100px;
    border-bottom: solid 1px @light;

    a {
        position: relative;
        top: -110px;
    }

    h1 {
        color: transparent;
        text-align: center;
        margin: 20px 0 0 0;
    }

    img {
        width: 100%;
        max-height: 200px;
        display: block;
        margin: 0 auto;
    }
}

html {
    min-height: 100%;
}

main {
    min-width: 300px;
    max-width: 700px;
    margin: 0 auto;

    h2 {
        font-size: 25px;
        color: @dark;

        &.invisible {
            height: 0;
            color: transparent;
        }
    }

    h3 {
        font-size: 18px;
        font-weight: normal;
        color: @light;
    }

    p {
        margin: 5px 0;
        text-align: justify;
        line-height: 130%;

        &.publication-date {
            text-align: right;
            font-size: 12px;
            color: @light;
        }

        &.spaced {
            margin-top: 20px;
        }
    }

    ol, ul {
        li {
            text-align: justify;
        }
    }

    ul.cases {
        list-style-type: none;
        margin: 0;
        padding: 0;

        li {
            width: 50%;
            float: left;
            margin: 0 0 20px 0;
            padding: 0;
            text-align: center;

            img {
                display: block;
                width: 90%;
                margin: 0 auto;
            }

            @media only screen and (max-width: 699px) {
                width: 100%;
                float: none;

                img {
                    width: 100%;
                }
            }
        }
    }
}
