@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Young+Serif&display=swap');

:root {
    font-size: 16px;
    --color-bg: rgb(71,50,171);
    --page-padding: 1.5rem 2rem;

    --color: #ffffff;
    --color-hover: #4732AB;
    --background: #fff;

    --color-alt: #1afc94;
    --color-bg-alt: #4732AB;
}

body {
    margin: 0;
    color: var(--color);
    background-color: var(--color-bg);
    font-family: area-normal,-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: linear-gradient(
            180deg,
            hsl(240deg 91% 49%) 0%,
            hsl(252deg 93% 47%) 10%,
            hsl(258deg 93% 46%) 20%,
            hsl(263deg 93% 46%) 30%,
            hsl(266deg 91% 45%) 40%,
            hsl(269deg 88% 45%) 50%,
            hsl(272deg 78% 43%) 60%,
            hsl(275deg 69% 40%) 70%,
            hsl(277deg 60% 37%) 80%,
            hsl(294deg 74% 43%) 90%,
            hsl(258deg 76% 45%) 100%
    );
    overflow-x: hidden;
}

.unbutton {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.unbutton:focus {
    outline: none;
}

body {
    counter-reset: section;
}

p {
    line-height: 140%;
}

.splitting .word {
    white-space: nowrap;
}

.intro {
    height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.intro__title {
    display: grid;
    place-items: center;
    margin: 0;
    line-height: 0.9;
    font-weight: 300;
}

.intro__title-pre {
    font-family: norman-stencil, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(2rem,10vw,9rem);
}

.intro__title-sub {
    font-size: clamp(1rem,6vw,2.75rem);
}

.intro__info {
    position: relative;
    max-width: 230px;
    opacity: 0.6;
    line-height: 1.2;
    margin-bottom: 4rem;
    padding-bottom: 1rem;
}

.intro__info::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1px;
    height: 2rem;
    background: #fff;
    top: 100%;
}

.content {
    display: flex;
    flex-direction: column;
    width: 100vw;
    position: relative;
    padding: var(--page-padding);
}

.content:last-child {
    padding-bottom: 25vh;
}

.content--full {
    padding: 0;
}

.content p {
    max-width: 660px;
    margin: 1.5rem auto;
    font-size: 1.25rem;
}

.content--highlight p {
    font-size: clamp(1rem,3vw,2rem);
}

.content__title {
    font-size: 12vw;
    line-height: 0.8;
    counter-increment: section;
    text-align: center;
    display: grid;
    gap: 2rem;
}

.content__title::before {
    content: '.'counter(section);
    font-weight: 400;
    font-family: area-normal, sans-serif;
    display: block;
    font-size: 1rem;
    margin-bottom: 10vh;
    text-align: center;
}

.content__title--sides {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 100%;
    text-align: left;
    gap: 2rem;
}

.content__title--sides span:last-child {
    justify-self: end;
}

.font-1 {
    font-family: wayfinder-cf, serif;
    font-weight: 100;
}

.font-2 {
    font-family: campaign-serif, sans-serif;
    font-weight: 400;
}

.font-3 {
    font-family: area-normal, sans-serif;
    font-weight: 600;
}

.font-4 {
    font-family: campaign-serif, sans-serif;
    font-weight: 400;
    font-style: italic;
}

.font-5 {
    font-family: zedou, sans-serif;
    font-weight: 300;
    text-transform: uppercase;
}

.font-6 {
    font-family: afronaut, sans-serif;
    font-weight: 400;
}

.font-7 {
    font-family: hoss-round-wide, sans-serif;
    font-weight: 400;
}

.font-8 {
    font-family: monotalic, sans-serif;
    font-weight: 400;
    text-transform: lowercase;
}

.font-9 {
    font-family: aziga, sans-serif;
    font-weight: 400;
}

.font-10 {
    font-family: norman-stencil, sans-serif;
    font-weight: 800;
}

.font-11 {
    font-family: neighbor, sans-serif;
    font-weight: 400;
}

.font-12 {
    font-family: halogen, sans-serif;
    font-weight: 700;
}

.font-height {
    line-height: 1.4;
}

.font-larger {
    font-size: 27vw;
}

.font-upper {
    text-transform: uppercase;
}

.font-sub {
    font-size: 5vw;
    margin-top: 2rem;
    display: block;
}

.splitting .font-sub .word {
    display: grid;
    grid-auto-flow: column;
}

.font-medium {
    font-size: 6vw;
    margin-top: 3rem;
}

.char-wrap {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

@media screen and (min-width: 53em) {
    .frame {
        justify-items: start;
        grid-gap: 2rem;
        grid-template-columns: auto auto 1fr;
        grid-template-rows: auto;
        grid-template-areas: 'title prev blank';
    }
}
