
@font-face {
    font-family: "milligram";
    src: url("/fonts/milligram-thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "milligram";
    src: url("/fonts/milligram-text-book.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "milligram";
    src: url("/fonts/milligram-text-book-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "milligram";
    src: url("/fonts/milligram-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "milligram";
    src: url("/fonts/milligram-medium-italic.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "milligram";
    src: url("/fonts/milligram-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    line-height: 1.55;
    font-family: "milligram", "Trebuchet MS", Arial;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

strong, b {
  font-weight: 400;
}

#background {
    position: fixed;
    left: 0;
    bottom: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    inset: 0 0 0 0;
    z-index: -1;
}

body {
    background-color: var(--grey);
}

h1,
h2,
h3 {
    text-wrap: balance;
    margin-left: -0.2rem;
}

h1,
h2,
h3,
h4,
body,
p,
span,
li,
td,
th {
    font-weight: 100;
    /*list-style-position: inside;*/
}

blockquote,
q {
    font-weight: 400;
    font-style: italic;
}

ul {
    list-style-type: circle;

}

ul, ol {
    margin-left: 0.9rem;
}
footer {
    font-weight: 100;
}

p,
ul,
ol,
a,
span,
details,
label,
input,
textarea {
    font-size: 1rem;
}

h1,
h2,
h3 {
    font-size: 1.25rem;
}

h1,
h2,
h3,
h4,
p,
a,
span {
    color: var(--black);
}

hr {
    background: var(--black);
    height: 0.03rem;
    margin: 1rem 6rem 1.2rem;
    opacity: 0.5;
}

table {
    border: 1px solid var(--black);
    border-collapse: collapse;
}

th,
td {
    border: 1px solid var(--black);
    padding: 0.7rem 1rem;
}

<!--/* COMPOSITION */
.screen-height {
    min-height: 100vh;
}
.full-width {
    width: 100%;
}

.margin-center {
    margin-inline: auto;
}

.max-content {
    padding: 0 5vw;
}

.flex {
    display: flex;
    &.wrap {
        flex-wrap: wrap;
    }
    &.flex-center {
        flex-direction: column;
        justify-content: space-between;
    }
}
-->
:root {
    --grey: #dbd8d7;
    --white: #eceaea;
    --white-transparent: oklch(0.9386 0.0022 17.2 / 70%);
    --purple: #b491aa;
    --green: #afaf3c;
    --black: #000000;
    /*--black: #23282d;*/
}

/*
Style guide:
Logotype = Abraham-Regular
Headline = Milligram Variable Bold
Subline = Milligram Variable Bold
“Quote” = Milligram Italic Variable
Header = Milligram Variable Medium
body = Milligram Variable Book
*footer = Milligram Variable Thin
*/

.display-contents {
    display: contents;
}

.base-body {
    display: flex;
    min-height: 100dvh;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-inline: auto;
}

main::after {
    content: "";
}

.back-button {
    /*display: block;*/
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background-color: var(--green);
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    /*box-shadow:;*/
    display: none;
    z-index: 1;
    span {
        color: var(--white);
        font-size: 150%;
    }
    @media (max-width: 768px) {
        &.active {
            display: block;
        }
    }
}

.strapline-research {
    fill: var(--white);
    filter: drop-shadow( 0 0 2px  var(--white));
    cursor: default;
}


/*HEADER*/
header {
    height: 100dvh;
    position: sticky;
    top: 0;
    padding: 3rem 5vw 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    /*strapline:*/
    .strapline-research {
        width: min(80%, 400px);
        align-self: center;
    }
    h1 {
        font-size: 2rem;
        /*margin: 0;*/
        font-weight: 100;
        color: var(--white);
        text-align: center;
    }
}

.logo {
    width: auto;
    figure {
        svg {
            width: 250px;
            /*width: clamp(100px, 50vmin, 250px);*/
            fill: var(--white);
            filter: drop-shadow(none);
            transition: filter 5s;
        }
        svg:hover {
            filter: drop-shadow( 0 0 2px  var(--white));
            transition: filter 0.5s;
        }
    }
}

.mobile-footer {
    display: flex;
    justify-content: space-between;
    svg {

            margin-right: -15px;
    }
}

.tablet-footer {
    display: none;
}

.links {
    margin-right: -100px;
    a {
        font-weight: 400;
        font-size: 1.2rem;
        color: var(--white);
        /*font-weight: bold;*/
        text-wrap: nowrap;
        text-decoration: none;
        text-shadow: none;
        /*transition: color 25s ease-in-out, text-shadow 0.5s;*/
        transition: text-shadow 3s;
    }
    a:nth-child(n + 8) {
        /*font-weight: normal;*/
        font-size: 1rem;
    }
    a:hover{
        /*color: var(--purple);*/
        text-shadow: 0 0 2px  var(--white);
        transition: text-shadow 0.5s;
    }
   a:focus-visible {
        text-shadow: 0 0 2px  var(--white);
        transition: text-shadow 0.5s;
    }
    a.active {
        /*text-shadow: 0 0 10px  var(--white);*/
        text-decoration: underline 1px;
        text-underline-offset: 8px;
        text-decoration-skip-ink: none;
    }
    a.active:nth-child(n + 8) {
        text-underline-offset: 6px;
}
}

/*FOOTER*/
footer {
    height: 100vh;
    align-items: end;
    position: sticky;
    top: 0;
    overflow: visible;
    width: 0%;
    margin-right: 110px;
    display: none;
}

.gh-link {
    overflow: visible;
    display: flex;
    align-items: end;
    margin-bottom: 0.4rem;
    text-decoration: none;
    span {
        color: var(--grey);
        font-weight: 400;
        text-wrap: nowrap;
        margin: 0 -6px -6px 0;
    }
    svg {
        height: 40px;
    }
}

section {
    display: none;
    margin: 0 3vw 4rem;
    a {
        text-decoration: none;
        color: var(--purple);
        font-size: 1rem;
        font-weight: 500;
        text-shadow: 0 0 5px var(--white);

    }
}

section.active {
    display: block;
}

section.sent {
    width: min(90%, 30rem);
    margin-top: 40vmin;
    margin-inline: auto;
    h1,
    p {
        color: var(--white);
    }
    h1 {
        font-size: 150%;
        margin-bottom: 2rem;
    }
    p {
        font-size: 130%;
    }
}

section.strapline {
    display: none;
}

.content-container {
    display: flex;
    flex-direction: column;
}

.page-title {
    margin-right: 3.5rem;
    margin-top: max(2rem, 2vh);
    margin-bottom: 2rem;
    /*margin-top: 0rem;*/
    font-size: 2rem;
    /*text-wrap: nowrap;*/
    color: var(--white);
    font-weight: 100;
    text-align: end;
}

.text-box
/*,*/
/*input,*/
/*textarea */ {
    box-shadow:
        0 0 15px 5px var(--white),
        0 0 3px 1px var(--white) inset;
    border-radius: 30px;
    background-color: var(--white-transparent);
    padding: 2.3rem 4vw 2.4rem 4.2vw;
    p,
    h2,
    h3 {
        padding-bottom: 0.5rem;
    }
    img {
        width: 50%;
    }
}

.contact-form {
    margin-top: 4rem;
    margin-bottom: 8rem;
    font-size: 1rem;
    form {
        /*width: 90%;
        margin-inline: auto;*/
        display: grid;
    }
    label {
        font-size: 1rem;
        color: var(--white);
        margin-left: 20px;
    }
    input {
        padding: 0.5rem 1.5rem;
    }
    textarea {
        padding: 1rem 1.5rem;
        min-height: 12rem;
        height: 40dvh;
        resize: vertical;
    }
    input,
    textarea {
        font-size: 1rem;
        color: var(--black);
        border-radius: 30px;
        margin-bottom: 1rem;
        background-color: var(--white-transparent);

    }
    input[type="submit"] {
        background-color: var(--white-transparent);
        color: var(--black);
        padding: 0.22rem 0.3rem 0.3rem;
        width: 10rem;
        cursor: pointer;
        box-shadow: none;
    }
    input:focus-visible,
    textarea:focus-visible {
        box-shadow:
            0 0 15px 5px var(--white),
            0 0 3px 1px var(--white) inset;
    }
    input[type="submit"]:focus-visible,
    input[type="submit"]:hover {
        color: var(--white);
        box-shadow:
            0 0 15px 5px var(--white),
            0 0 3px 1px var(--white) inset;
    }
    input[type="submit"]:active {
        background-color: var(--purple);
    }
    .form-end {
        display: flex;
        /*flex-direction: column-reverse;*/
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}
.cf-turnstile {
    opacity: 0.7;
    div {
    iframe {
        border-radius: 30px;
    }
    }
}

/*TABLET*/
@media (min-width: 768px) {
    header {
        width: auto;
        padding: 3rem 1rem 1rem 3rem;
        .strapline-research {
            display: none;
        }
    }
    .back-button {
        display: none;
    }
    .tablet-footer {
        display: block;
        height: 100%;
        display: flex;
        justify-content: end;
        margin-top: 30px;
    }
    main {
        padding-right: 3vw;
        width: 100%;
        min-height: 100vh;
    }
    .page-title {
        border-top: solid 1px var(--grey);
        margin-top: 3rem;
        margin-right: 2rem;
        margin-left: 2rem;
    }
    section.active {
        margin: 6rem 0 1rem;
        height: 100%;
    }
    .content-container {
        height: 100%;
    }
    .main-content {
        max-width: 44rem;
        /*width: min(auto, 34rem);*/
        align-self: center;
    }
    .mobile-footer {
        display: contents;
        .gh-link {
            display: none;
        }
    }
    section.strapline {
        margin: 0 0 0;
        &.active {
            display: flex;
            justify-content: center;
            svg{
                width: max(300px, 15dvw);
            }

        }
        /*h1 {
            font-size: 2rem;
            margin: 0;
            font-weight: 100;
            color: var(--white);
            text-align: center;
            animation: fadeIn 1s;
        }*/
    }
    /*.contact-form {
        width: 100%;
        margin-top: 18dvh;
    }*/
    section.info-pages {
        .page-title {
            text-align: center;
        }
    }
    section.sent {
        margin-top: 40vmin;
        margin-inline: auto;
    }
    /*.form-end {
        flex-direction: row;
        justify-content: space-between;
    }*/
}

/*DESKTOP*/
@media (min-width: 1100px) {
    header {
        padding: 3rem 0 1rem 3rem;
        width: auto;
    }
    main {
        padding-right: 0;
    }
    section.active {
        margin: min(14vmin, 220px) 0 4rem -220px;
    }
    .content-container {
        flex-direction: row;
        height: auto;
    }
    .main-content {
        /*padding: 2.3rem 1.8rem 2.4rem 2rem;*/
        /*width: min(90vw, 54rem);*/
        width: auto;
    }
    .page-title {
        text-wrap: nowrap;
        /*width: 29vw;*/
        width: min(100%, 40dvw);
        /*width: clamp(23rem, 100%, 40dvw);*/
        min-width: 20rem;
        position: sticky;
        top: 30vh;
        height: 1em;
    }
    /*section.strapline {
        margin: 0 0 0;
    }*/
    form {
        width: 80%;
    }
    section.strapline {
        margin-left: 0;
        svg {
            /*margin-top: -100px;*/
            margin-top: -14vh;
        }
    }
    section.info-pages {
        margin-left: 4vw;
        .content-container {
            flex-direction: row-reverse;
            align-items: flex-start;
        }
        .page-title {
            top: 20vh;
            text-align: start;
            width: min(100%, 40dvw);
            min-width: auto;
            text-wrap: auto;
        }
    }
    section.sent {
        margin-top: 40vmin;
        margin-inline: auto;
    }
    /*.contact-form {
        width: min(40vw, 40rem);
        margin-top: 14vmin;
        margin-inline: auto;
    }*/
    .tablet-footer {
        display: none;
    }
    footer {
        display: flex;
        margin-left: 1rem;
        /*width: 0;*/
        /*overflow: visible;*/
        .gh-link {
            /*overflow: visible;*/
            margin-bottom: 1.4rem;
        }
    }
}

@media (min-width: 1350px) {
    .page-title {
        width: 40vw;
    }
}

@keyframes fadeIn {
  0% { color: transparent; }
  10% { color: transparent; }
  20% { color: var(--purple); }
  100% { color: var(--white); }
}

