body {
    counter-reset: footnote;
    line-height: 1.7;
    padding: 0;
    --background-color: #fff;
    --text-color: #101010;
    --link-color: #101010;
    --h1-color: #4d1ac3;
    --h2-color: #c300ff;
}
body::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 65px;
    background: black;
    background: linear-gradient(to bottom, #000000FF, var(--h1-color) 30%, var(--h2-color) 60%, #00000010);
    pointer-events: none;
}

header > div.container {
    max-width: 100%;
    padding: 0 15px;
}
header a {
    --link-color: #6ac3ff;
}
a {
    text-decoration: underline;
}

sub { /* Do not increase line-height through sub */
    font-size: 0.8em;
    vertical-align: baseline;
    position: relative;
    bottom: -0.4em;
}

div.logo-small img {
    z-index: 10;
    position: absolute;
    max-width: 40px;
    max-height: 40px;
}

h1 {
    text-align: center;
    margin: 0 auto 1em auto;
    padding: 0;
}
h1 > a {
    color: var(--h1-color);
}

h2 {
    line-height: 1.4;
    position: relative;
    padding-bottom: 0.2em;
    margin-bottom: 1.6em;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    bottom: -12px;
    background: var(--h2-color);
    pointer-events: none; /* lets clicks through to text below */
}

p.whitepapertitle {
    font-style: italic;
}
p.subtitle {
    text-align: center;
    font-weight: 700;
}

div.disclaimer {
    font-style: italic;
}

div.disclaimer > p:first-of-type::before {
    content: "Disclaimer: ";
    font-weight: bold;
}

span.footnote {
    position: relative;
    cursor: pointer;
    counter-increment: footnote;
}

span.footnote::before,
span.footnote > span::before {
    content: counter(footnote);
    vertical-align: super;
    font-size: 0.8em;
}

span.footnote > span {
    visibility: hidden;
    opacity: 0;
    width: 35vw;
    position: absolute;
    z-index: 10;
    top: 20px;
    left: 20px;
    transition: opacity 0.2s;
    padding: 0.5ex 1ex;

  background: #f9f9f9;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* show popup on hover */
span.footnote:hover > span {
    visibility: visible;
    opacity: 1;
}

div.userstory {
    border: 2px solid #808080;
    border-radius: 20px;
    padding: 0px 20px;
    font-style: italic;
}

div.userstory > p:first-of-type::before {
    content: "User story: ";
    font-weight: bold;
}

div.rationale {
    font-size: 75%;
}

nav.page-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 75%;
    margin: 4em 0;
}
span.arr {
    color: var(--h2-color);
}

div.contact {
    line-height: 1.3;
    text-align: center;
    padding: 4px 8px;
    position: fixed;
    z-index: 5;
    bottom: 0;
    width: 100%;

    background-color: #d0d0d0b0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(8px);
}
div.contact,
div.contact > a {
    color: var(--h2-color);
}

@media screen and (max-width: 1120px) {
    main {
        padding: 0 10px;
    }
    body::before {
        width: 5px;
    }
}
