@font-face {
    font-family: "Martian Mono";
    src: url("MartianMono.woff2") format("woff2");
    font-weight: 100 800;
    font-stretch: 75% 112.5%;
    font-style: normal;
    font-display: swap;
}

:root {
    --momo-green: #00FF15;
    --line: 26px;
    --hairline: 1px;
    --pill: 999px;
    --field: 360px;
    color-scheme: light;
}

@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) {
    :root {
        --hairline: 0.5px;
    }
}

@supports (color: color(display-p3 0 1 0.03)) {
    :root {
        --momo-green: color(display-p3 0 1 0.03);
    }
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--momo-green);
    color: #000;
    font-family: "Martian Mono", ui-monospace, monospace;
    font-size: 12px;
    line-height: var(--line);
    font-weight: 270;
    font-variation-settings: "wdth" 90;
    text-align: center;
}

.mark {
    display: block;
    margin: 100px 0 0;
    font-size: 50px;
    line-height: 22px;
    text-decoration: none;
    color: inherit;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

main {
    width: 100%;
    max-width: 851px;
    padding: 0 24px;
    box-sizing: border-box;
}

p {
    margin: 0;
}

h1, h2 {
    font-size: 12px;
    font-weight: 270;
    line-height: var(--line);
    margin: calc(var(--line) * 2) 0 var(--line);
}

main > :first-child {
    margin-top: 0;
}

ul {
    list-style-position: inside;
    margin: 0;
    padding: 0;
}

.updated {
    margin-top: calc(var(--line) * 2);
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

::selection {
    background: #000;
    color: var(--momo-green);
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 40px;
    margin-bottom: 80px;
    padding: 0 24px;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.pill {
    display: inline-block;
    box-sizing: border-box;
    font: inherit;
    font-variation-settings: inherit;
    color: #000;
    background: none;
    border: 0;
    box-shadow: inset 0 0 0 var(--hairline) #000;
    border-radius: var(--pill);
    padding: 6px 20px;
    text-align: center;
    text-decoration: none;
}

a.pill,
button.pill {
    cursor: pointer;
}

@media (hover: hover) {
    a.pill:hover,
    button.pill:hover,
    .round:hover {
        background: #FFF;
        box-shadow: none;
    }
}

input.pill {
    -webkit-appearance: none;
    appearance: none;
    width: min(100%, var(--field));
    caret-color: #000;
}

input.pill::placeholder {
    color: #000;
    opacity: 1;
}

.round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    color: #000;
    background: none;
    border: 0;
    box-shadow: inset 0 0 0 var(--hairline) #000;
    border-radius: 50%;
    cursor: pointer;
}

form .round {
    margin-top: 30px;
}

.round svg {
    display: block;
    width: 24px;
    height: 24px;
}

.notice {
    display: block;
    box-sizing: border-box;
    width: min(100%, var(--field));
    background: #FFF;
    border-radius: var(--pill);
    padding: 6px 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

body.home main,
body.gate main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 583px;
    margin-bottom: 16px;
}

body.home main {
    padding-top: var(--line);
    padding-bottom: var(--line);
}

.more {
    margin-top: var(--line);
}

.store {
    margin-top: calc(var(--line) * 2);
}

body.gate main > * + * {
    margin-top: calc(var(--line) * 2);
}

body.gate h1 {
    margin-bottom: 0;
}

body.doc main {
    margin-top: 200px;
}

body.doc footer {
    margin-top: 200px;
}

@media (max-width: 900px), (max-height: 700px) {
    body.doc main {
        margin-top: calc(var(--line) * 3);
    }

    body.doc footer {
        margin-top: calc(var(--line) * 3);
    }
}

@media (max-width: 600px) {
    :root {
        --line: 25px;
    }

    body,
    h1,
    h2 {
        font-size: 10px;
    }

    .mark {
        font-size: 40px;
    }

    body.home main {
        padding-top: calc(var(--line) * 2);
        padding-bottom: calc(var(--line) * 2);
    }

    footer {
        gap: 0 20px;
    }
}
