/* Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: normal;
    font-size: 1rem;
    padding: 0;
    margin: 0;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Definitions */

:root {
    --clr-light: hsl(234, 70%, 85%);
    --clr-lighter: hsl(234, 70%, 95%);
    --clr-dark: hsl(234, 70%, 15%);
    --clr-darker: hsl(234, 70%, 5%);
}

/* Typography */

body {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    background-color: var(--clr-lighter);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--clr-darker);
}

h2 {
    font-size: 2.5rem;
    color: var(--clr-darker);
}

/* Layout */

body {
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    width: min(90%, 50rem);
    margin: 0 auto;
}

.vspace {
    padding: 2rem 0;
}

article {
    max-width: 40em;
}

.page-content {
    margin-bottom: 0;
}

/* Hero */

.hero {
    position: relative;
    background-color: var(--clr-dark);
    color: var(--clr-lighter);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
}

h1.hero-title {
    font-family: 'Bungee';
    font-size: clamp(2.8rem, 10vw, 4.5rem);
    line-height: 0.95;
    text-align: center;
    color: var(--clr-light);
}

.hero-author {
    margin: .3em 0 0;
    opacity: 0.7;
}

/* Footer */

.footer {
    margin: 0;
    background-color: var(--clr-darker);
    color: var(--clr-light);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
}

.footer-link>a {
    text-decoration: none;
    color: inherit;
    opacity: 0.6;
}

.footer-link>a:hover {
    opacity: 0.9;
}

/* Impressum */

.impressum p {
    margin: 1rem 0 0.5rem;
    padding: 0;
}

.impressum address {
    margin: 0 0 2rem 2rem;
}

/* Hit counter */

.hit-counter {
    inset: auto 0 0 auto;
    position: absolute;
    color: var(--clr-light);
    font-size: .8rem;
    padding: 1em;
}
