* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
    font: inherit;
}

html {
    font-size: 18px;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 400;
    color: #1e2a38;
    background: #f5f5f5;
}

.body--noscroll {
    overflow: hidden;
}

.body--loading, .body--loading .frame, .body--loading * {
    cursor: wait;
}

.body--loading .frame {
    pointer-events: none;
}

a {
    color: #0077cc;
    transition: all .2s cubic-bezier(0.33, 1, 0.68, 1);
}

a:hover {
    color: #1e2a38;
}

.main {
    display: grid;
    grid-template-columns: repeat(12, minmax(0,1fr));
}

.text {
    grid-column: 7 / span 6;
    padding-top: 28px;
    padding-top: 5.5vw;
    font-family: 'Literata-Regular', serif;
    padding-right: 28px;
}

p {
    max-width: 680px;
}

.pages {
    margin-top: 5.6rem;
    padding-bottom: 96px;
    list-style-type: none;
    background: #fff;

    grid-column: 6 / span 7;
    padding-top: 5.6rem;
}

.footer {
    grid-column: 6 / span 7;
    background: rgba(77,94,106,.12);
    background: rgba(77,94,106,.06);
    color: rgba(77,94,106,1);
    /* background: rgba(77,94,106,1); */
    font-family: 'Literata-Regular', sans-serif;
    padding: 28px;
    padding-left: 8.34vw;
    /* padding-bottom: 42px; */
    font-size: .8em;
}

.footer a {
    text-decoration: underline;
    color: inherit;
}

.footer a:hover {
    text-decoration: none;
}

.page {
    display: block;
    color: inherit;
    transition: all .2s cubic-bezier(0.33, 1, 0.68, 1);
    padding-left: 8.34vw;
    padding-right: 24px;
    padding-top: 1.4em;
    padding-bottom: 1.4em;
    margin-top: -.7em;
    margin-bottom: -.7em;
}

.page p {
    margin-bottom: 0;
    max-width: 60ch;
}

.page strong {
    color: #0077cc;
}

.page p {
    font-family: 'Literata-Regular', sans-serif;
}

.page:hover {
    background: rgba(77,94,106,.12);
}

.page:hover strong {
}

.page:before {
    content: '→';
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-left: -2.4em;
    margin-top: -.2em;
    position: absolute;
    font-size: 1.4em;
    transition: all .3s cubic-bezier(0.33, 1, 0.68, 1);
}

.page:hover:before {
    margin-left: -2em;
    color: #0077cc;
}

p {
    margin-bottom: 1.4em;
}

.text p {
    margin-bottom: 1.4em;
}

h2 {
    font-size: 2.7rem;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    line-height: 1em;
}

h3 {
    font-size: 1.5rem;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    line-height: 1em;
    margin-bottom: 2.8rem;
    margin-left: 8.34vw;
}

.more {
    visibility: hidden;
    pointer-events: none;
    height: 0;
    transition: all .1s cubic-bezier(0.33, 1, 0.68, 1);
    opacity: 0;
    position: relative;
}

.more--visible {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    height: auto;
    margin-top: calc(-14em - 10px);
    z-index: 100;
}

.readmore, .readless {
    cursor: pointer;
    display: inline;
    appearance: none;
    background: none;
    border: none;

    display: inline-block;
    background: rgba(77,94,106,.15);
    padding: .1em .8em .2em .8em;
    margin-top: .7em;
    margin-left: -.5em;
    border-radius: 24em;
    font-size: .75em;
    color: inherit;
    transition: all .2s cubic-bezier(0.33, 1, 0.68, 1);
}

.readmore:hover, .readless:hover {
    background: rgba(77,94,106,.3);
}

.summary {
    transition: all .2s cubic-bezier(0.33, 1, 0.68, 1);
    transition: all .15s;
    padding: 10px;
    margin-left: -10px;
    margin-bottom: -10px;
    margin-top: calc(2.1em - 10px);
}

.summary--blur {
    color: #ccc;
    filter: blur(3px);
    opacity: .7;
    user-select: none;
    cursor: pointer;
    -webkit-mask-image: linear-gradient(to bottom, black 25%, transparent 75%);
    mask-image: linear-gradient(to bottom, black 25%, transparent 75%);
}

em {
    font-family: 'Literata-Italic';
}

strong {
    font-weight: bold;
    font-weight: 700;
}

a {
    text-decoration: none;
}

.signature:before {
    content: '— ';
    margin-left: -1.2em;
}

.frame {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
    background: #fff;
    transition: all .2s cubic-bezier(0.33, 1, 0.68, 1);
    opacity: 0;
    transform: scale(0);
}

.frame--visible {
    z-index: 800;
    opacity: 1;
    transform: scale(1);
}

.closeframe {
    position: fixed;
    top: 4px;
    left: 4px;
    width: 44px;
    height: 44px;
    transform: translateX(-120%);
    background: #fff;
    background: rgba(250,250,250,.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    border: solid 1px #bbb;
    box-shadow: rgba(0,0,0,.2) 0 4px 10px 4px;
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
    cursor: pointer !important;
    justify-content: center;
    align-items: center;
    z-index: 900;
    pointer-events: none;
    transition: all .1s cubic-bezier(0.33, 1, 0.68, 1);
}

.body--loading button.closeframe {
    cursor: pointer !important;
}

.closeframe--visible {
    display: flex;
    transform: translateX(0);
    pointer-events: auto;
}

.closeframe:after {
    content: attr(title);
    display: none;
    position: absolute;
    font-size: 14px;
    background-color: rgba(0,0,0,.8);
    color: #fff;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 4%;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    padding: 4px 9px;
    border-radius: 8px;
    pointer-events: none;
    left: 66px;
}

.closeframe:hover:after {
    display: block;
}

.closeframe svg {
    stroke: #666;
}

.closeframe:hover svg {
    stroke: #000;
}

::selection {
    color: #f5f5f5;
    background: #0077cc;
}

.mobilenote {
    display: none;
}



/* title */
h1 {
    font-size: 8vw;
    line-height: 1;
    grid-column: 1 / span 6;
    position: fixed;
    /* outline: solid 2px red; */
    width: 50vw;
    user-select: none;
    cursor: pointer;
}

h1 span {
    display: block;
    white-space: nowrap;
    width: fit-content;
    line-height: 6vw;
    background: #fff;
}


@media (max-width: 1300px) {
    html {
        font-size: 16px;
    }
}

/* @media (max-width: 1160px) { */
@media (max-width: 1164px) {
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 960px) {
    .main {
        display: block;
    }

    .text {
        padding-top: 5.6rem;
        padding-left: 48px;
        padding-right: 48px;
    }

    h3 {
        margin-left: 48px;
    }

    .page {
        padding-left: 48px;
        padding-right: 48px;
    }

    .footer {
        padding-left: 48px;
    }

    .page:before {
        /* display: none; */
        margin-left: -1.6em;
    }

    .page:hover:before {
        margin-left: -1.6em;
    }

    h1 {
        position: static;
        width: 100vw;
        font-size: 12vw;
    }

    h1 span {
        line-height: 10vw;
    }
}

@media (max-width: 600px) {
    .more--visible {
        margin-top: calc(-16.8em - 10px);
    }

    .mobilenote {
        display: block;
        margin-left: 48px;
        font-size: 1.5rem;
        color: red;
        margin-top: -1.6em;
        margin-bottom: 1.4em;
        font-weight: bold;
        padding-right: 24px;
        line-height: 1.4;
    }

    .page {
        pointer-events: none;
        opacity: .7;
        filter: grayscale(1);
        user-select: none;
    }
}


.archivenote {
    position: sticky;
    top: 0;
    background: #0077cc;
    background: #ebedec;
    background: rgba(77,94,106,.12);
    background: #e9ebed;
    /* box-shadow: rgba(0,0,0,.5) 1px 1px 10px; */
    border-bottom: solid 1px #aaa;
    padding: 12px;
    z-index: 400;
}