/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

html {
    background-color: #000;
}

body{
    background-color: #000;
    font-family: 'Roboto Mono', monospace;
    color: yellow;
    overflow-x: clip;
}

.life {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

h1{
    font-size: 60px;
    font-family: 'Major Mono Display', monospace;
}

strong{
    font-weight: bold;
}

.container{
    width: 500px;
    margin: 0 auto;
    background-color: #000;
}
.wandering-computer-logo{
    width: min(300px, 100%);
    max-width: 100%;
    min-width: 0;
    height: auto;
    display: block;
    margin: 0;
}
.intro{
    text-align: center;
    width: 100%;
    padding-top: 20px;
}
.lead{
    margin-top: 20px;
    font-size: 20px;
    color: rgb(255, 255, 49);
    line-height: 140%;
}
.signup{
    margin: 0 0 0 auto;
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: auto;
    max-width: 100%;
    min-width: 0;
    font-family: 'Roboto Mono', monospace;
}
.signup .email{
    box-sizing: border-box;
    border-top: 1px yellow solid;
    border-bottom: 1px yellow solid;
    border-right: 0px;
    border-left: 1px solid yellow;
    background-color: #000;
    padding: 10px;
    font-size: 16px;
    color:rgb(255, 255, 49);
    font-family: 'Roboto Mono', monospace;
    width: 220px;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 180px;
}
.signup .btn{
    box-sizing: border-box;
    background-color: yellow;
    font-size: 16px;
    outline: none;
    padding: 10px 14px;
    border-radius: 0px;
    font-family: 'Roboto Mono', monospace;
    cursor: pointer;
    -webkit-appearance: inherit;
    border: 1px solid yellow;
    width: auto;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}
.signup .btn:active{
    outline: none;
    
}
.more{
    width: 70%;
    margin-top: 20px;
    font-size: 20px;
    color: rgb(174, 174, 61);
    line-height: 140%;
}
.more a {
    color: rgb(174, 174, 61);
}

.chrome {
    width: 100%;
    overflow: hidden;
    max-height: calc((1 - var(--mast, 0)) * 360px);
    opacity: calc(1 - var(--mast, 0));
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    width: 100%;
    padding: 0 28px;
    box-sizing: border-box;
    min-height: 100px;
}

.reveal-sticky > .wandering-computer-logo {
    position: absolute;
    z-index: 3;
    top: 32px;
    left: calc(28px * (1 - var(--mast, 0)) + 50% * var(--mast, 0));
    width: 300px;
    max-width: calc(100% - 56px);
    margin: 0;
    transform: translateX(calc(var(--mast, 0) * -50%));
    pointer-events: none;
}

.pair {
    position: relative;
}

.reveal-sticky > .lead {
    position: static;
    z-index: 2;
    width: min(44ch, 88%);
    margin: 36px auto 0;
    transform: none;
    text-align: center;
    font-size: 18px;
    pointer-events: none;
}

.js .reveal-sticky > .lead {
    overflow: hidden;
    opacity: calc(var(--enter, 0) * (1 - var(--mast, 0)));
    max-height: calc(var(--enter, 0) * (1 - var(--mast, 0)) * 12rem);
}

.hint {
    font-size: 12px;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    text-transform: uppercase;
    color: rgb(174, 174, 61);
    background: #000;
    padding: 8px 14px;
    margin-bottom: 40px;
    opacity: calc(var(--enter, 0) * (1 - var(--mast, 0)));
    animation: hint-blink 2.4s ease-in-out infinite;
}

.hint::after {
    content: "↓";
    display: inline-block;
    margin-left: 0.55em;
    letter-spacing: 0;
}

@keyframes hint-blink {
    0%, 40%, 100% { color: rgb(174, 174, 61); }
    70% { color: rgba(174, 174, 61, 0.15); }
}

.js .reveal {
    height: 410vh;
}

.reveal-sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    box-sizing: border-box;
    padding: 12px 0 16px;
}

.reveal-sticky::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #000;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 20%);
    mask-image: linear-gradient(to top, transparent 0%, #000 20%);
}

.reveal-sticky > * {
    position: relative;
    z-index: 1;
}

.pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    align-content: center;
    flex: 1 1 auto;
    min-height: 0;
    column-gap: 0;
    width: min(88vw, calc((58dvh + var(--mast, 0) * 14dvh) * 1535 / 1025));
}

.half {
    width: 100%;
    min-width: 0;
    perspective: 1100px;
}

.from-left,
.blurb-right-hand {
    grid-column: 1;
    grid-row: 1;
}

.from-right,
.blurb-left-hand {
    grid-column: 2;
    grid-row: 1;
}

.device {
    width: 100%;
    align-self: center;
    pointer-events: none;
}

.js .device-left {
    opacity: var(--show-left, 1);
}

.js .device-right {
    opacity: var(--show-right, 1);
}

.flip {
    position: relative;
    transform-style: preserve-3d;
}

.flip-left {
    transform: rotateY(calc(var(--flip-left, 0) * -180deg));
}

.flip-right {
    transform: rotateY(calc(var(--flip-right, 0) * 180deg));
}

.face {
    display: block;
    width: 100%;
    height: auto;
    backface-visibility: hidden;
    user-select: none;
    -webkit-user-drag: none;
}

.face-bottom {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
}

.flip-left .face-bottom {
    transform: rotateY(-180deg);
}

.flip-right .face-bottom {
    transform: rotateY(180deg);
}

.blurb {
    align-self: center;
    max-width: 16em;
    margin: 0;
    padding: 0 8%;
    font-size: 22px;
    line-height: 1.45;
    color: rgb(255, 255, 49);
    z-index: 1;
    pointer-events: none;
}

.blurb p {
    margin: 0;
}

.js .blurb-left-hand {
    justify-self: start;
    text-align: left;
    opacity: var(--text-right, 0);
}

.js .blurb-right-hand {
    justify-self: end;
    text-align: right;
    opacity: var(--text-left, 0);
}

.kicker {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgb(174, 174, 61);
}

.js .from-left,
.js .from-right {
    opacity: var(--enter, 0);
}

.js .from-left {
    transform: translate3d(calc((var(--enter, 0) - 1) * 58vw), 0, 0);
}

.js .from-right {
    transform: translate3d(calc((1 - var(--enter, 0)) * 58vw), 0, 0);
}

.examples {
    position: relative;
    z-index: 1;
    padding: 10vh 0 14vh;
}

.examples img {
    display: block;
    width: min(920px, 88vw);
    height: auto;
    margin: 0 auto;
}

.examples-lead,
.example-copy,
.example figcaption {
    width: min(920px, 88vw);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: rgb(255, 255, 49);
    font-size: 18px;
    line-height: 1.45;
}

.examples-lead {
    margin-bottom: 64px;
}

.example + .examples-lead {
    margin-bottom: 0;
}

.example {
    margin: 0 0 72px;
}

.example-copy {
    margin-bottom: 22px;
}

.example-copy p {
    margin: 0;
}

.example-copy .kicker {
    text-indent: 0.42em;
}

.example figcaption {
    margin-top: 22px;
}

.examples .signup {
    width: max-content;
    max-width: 88vw;
    margin: 36px auto 0;
}

.examples .signup .email {
    flex: 0 0 220px;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .reveal {
        height: auto;
    }

    .reveal-sticky {
        position: relative;
        height: auto;
        padding: 8vh 0 12vh;
    }

    .js .half {
        display: block;
    }

    .js .from-left,
    .js .from-right,
    .flip-left,
    .flip-right,
    .flip-left .face-bottom,
    .flip-right .face-bottom {
        opacity: 1;
        transform: none;
    }

    .hint,
    .js .reveal-sticky > .lead {
        opacity: 1;
        max-height: none;
        overflow: visible;
        animation: none;
    }

    .chrome {
        max-height: none;
        opacity: 1;
    }

    .face-top,
    .face-bottom {
        display: block;
        position: static;
        height: auto;
    }

    .face-bottom {
        margin-top: 20px;
    }

    .js .device-left,
    .js .device-right,
    .js .blurb-left-hand,
    .js .blurb-right-hand {
        opacity: 1;
    }

    .blurb {
        margin-top: 1.5rem;
    }
}

@media only screen and (max-width: 900px) {
    h1{
        font-size: 40px;
    }
    .container {
        margin: 0 auto;
        width: 100%;
        padding-top: 20px;
    }
    .intro, .more{
        width: 90%;
        margin: 0 auto;
    }

    .js .reveal,
    .reveal {
        height: auto;
    }

    .reveal-sticky {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        padding: 20px 0 48px;
        overflow-x: clip;
    }

    .chrome { order: 1; }
    .reveal-sticky > .lead { order: 2; }
    .hint { order: 3; }
    .pair { order: 4; }

    .chrome,
    .topbar,
    .pair,
    .half,
    .device,
    .flip,
    .signup,
    .wandering-computer-logo {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .chrome {
        max-height: none;
        opacity: 1;
        overflow: visible;
        box-sizing: border-box;
        padding: 0 16px;
    }

    .topbar {
        padding: 0;
        min-width: 0;
        min-height: 0;
    }

    .reveal-sticky > .wandering-computer-logo {
        position: relative;
        z-index: 3;
        top: auto;
        left: auto;
        width: min(300px, 100%);
        max-width: 100%;
        margin: 0 16px 12px;
        transform: none;
        order: 0;
    }

    .signup {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .signup .email,
    .signup .btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
        box-sizing: border-box;
    }

    .signup .email {
        border-right: 1px solid yellow;
        border-bottom: 0;
    }

    .reveal-sticky > .lead,
    .js .reveal-sticky > .lead {
        position: static;
        transform: none;
        overflow: visible;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        max-height: none;
        margin: 40px 0 4px;
        padding: 0 16px;
        font-size: 18px;
        text-align: left;
        opacity: 1;
        order: 2;
    }

    .hint {
        opacity: 1;
        display: block;
        box-sizing: border-box;
        width: 100%;
        margin: 28px 0;
        padding: 8px 16px;
        text-align: left;
    }

    .pair {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 8px;
    }

    .from-left { order: 1; }
    .blurb-left-hand { order: 2; }
    .from-right { order: 4; }
    .blurb-right-hand { order: 5; }

    .half,
    .device,
    .flip,
    .blurb {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-column: auto;
        grid-row: auto;
        overflow: hidden;
    }

    .js .from-left,
    .js .from-right,
    .js .device-left,
    .js .device-right,
    .js .blurb-left-hand,
    .js .blurb-right-hand,
    .flip-left,
    .flip-right,
    .flip-left .face-bottom,
    .flip-right .face-bottom {
        opacity: 1 !important;
        transform: none !important;
    }

    .face-top,
    .face-bottom,
    .half img {
        display: block;
        position: static;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
    }

    .face-bottom {
        margin-top: 20px;
    }

    .blurb {
        box-sizing: border-box;
        margin: 8px 0 36px;
        padding: 0 16px;
        font-size: 16px;
        text-align: left;
        pointer-events: auto;
    }

    .js .blurb-left-hand,
    .js .blurb-right-hand {
        justify-self: stretch;
        text-align: left;
    }

    .signup .email,
    .signup .btn {
        font-size: 16px;
        padding: 12px;
    }

    .examples {
        padding: 48px 16px 72px;
    }

    .examples img {
        width: calc(100% + 32px);
        max-width: none;
        margin: 0 -16px;
    }

    .examples-lead,
    .example-copy,
    .example figcaption {
        width: 100%;
        text-align: left;
    }

    .example-copy .kicker {
        text-indent: 0;
    }

    .examples-lead {
        margin-bottom: 36px;
    }

    .example {
        margin-bottom: 48px;
    }

    .examples .signup {
        width: 100%;
        margin: 28px 0 0;
    }

    .examples .signup .email {
        flex: none;
        height: auto;
    }
}