@font-face {
  font-family: "Anya Sans";
  src: url(OverusedGrotesk-Roman.woff2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

:root {
    --margin: 1rem;
    --margin-wide: 5rem;
    --line-height-regular: 1.5em;
    --base-size: 1vw;
    --text-size: clamp(14px, 1.2vw, 20px);
    --max-width-text: 76rem;
    --padding-text: 10vw;
}

* {
    box-sizing: border-box;
    font-size: 1rem;
    line-height: var(--line-height-regular);
    font-weight: normal;
    margin: 0;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

html {
    font-size: var(--base-size);
    font-family: "Anya Sans", sans-serif;
}

body {
    margin: 0;
}

.Header {
    position: fixed;
    padding: var(--text-size);
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    width: 100%;
    z-index: 100;
    top: 0;
    left: 0;
}

.Footer {
    position: fixed;
    padding: var(--text-size);
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    width: 100%;
    z-index: 100;
    bottom: 0;
    left: 0;
}

.Header *,
.Footer * {
    font-size: var(--text-size);
    line-height: var(--line-height-regular);
}

.About {
    width: 100%;
    height: auto;
    min-height: 100vh;
    position: relative;
    inset: 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation-name: fadeIn;
    animation-duration: 0.2s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.About-content {
    padding: var(--padding-text);
    max-width: var(--max-width-text);
    width: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: left;
    margin: var(--margin-wide);
    gap: var(--line-height-regular);
}

.About-content * {
    width: 100%;
    font-size: var(--text-size);
    line-height: var(--line-height-regular);
    max-width: calc(var(--max-width-text) - (var(--padding-text) * 2 + var(--margin-wide) * 2));
}

.About img {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--padding-text);
    height: auto;
}

@media screen and (orientation: portrait) {
    .About-content {
        margin: calc(var(--text-size) * 6) 0;
        padding: var(--text-size);
        max-width: 100%;
    }

    .About-content * {
        max-width: 100%;
    }

    .About img {
        width: 30vw;
        position: relative;
        margin-left: auto;
        margin-bottom: var(--text-size);
    }
}

.Grid {
    display: block;
    position: relative;
    width: calc(100% - (var(--margin-wide) * 2));
    margin-top: calc(var(--text-size) * 2);
    margin-inline: var(--margin-wide);
}

.Grid-caption {
    font-size: var(--text-size);
    line-height: var(--line-height-regular);
}

@media screen and (orientation: portrait) {
    .Grid {
        margin-top: calc(var(--text-size) * 4);
    }
    .Grid-item {
        position: relative;
        width: 100%!important;
        top: 0!important;
        left: 0!important;
        margin-bottom: var(--margin-wide);
    }
}