/* ======================================================
   LINKDECK
   MAIN STYLESHEET
====================================================== */


/* ======================================================
   RESET
====================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}


/* ======================================================
   DESIGN SYSTEM
====================================================== */

:root {
    --background: #242424;
    --background-light: #2d2d2d;
    --background-lighter: #343434;

    --white: #ffffff;

    --text: #ffffff;
    --text-soft: #bdbdbd;
    --text-muted: #8d8d8d;
    --text-dark-muted: #6f6f6f;

    --line: rgba(255, 255, 255, 0.28);
    --line-soft: rgba(255, 255, 255, 0.08);

    --field-text: #242424;
    --field-placeholder: #4e4e4e;

    --radius-pill: 999px;
}


/* ======================================================
   BASE
====================================================== */

body {
    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    background: var(--background);

    color: var(--text);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ======================================================
   LANDING PAGE
====================================================== */

.landing-page {
    min-height: 100vh;

    overflow: hidden;

    background: var(--background);
}


/* ======================================================
   LANDING HEADER
====================================================== */

.landing-header {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 100;
}


/* ======================================================
   HAMBURGER
====================================================== */

.hamburger {
    position: absolute;

    top: 18px;
    left: 18px;

    width: 38px;
    height: 30px;

    padding: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: transparent;

    cursor: pointer;
}

.hamburger span {
    display: block;

    width: 100%;
    height: 3px;

    background: var(--white);

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}


/* Hamburger becomes X */

.hamburger.is-open span:nth-child(1) {
    transform:
        translateY(13.5px)
        rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform:
        translateY(-13.5px)
        rotate(-45deg);
}


/* ======================================================
   LANDING MENU
====================================================== */

.landing-menu {
    position: absolute;

    top: 65px;
    left: 18px;

    width: 210px;

    padding: 16px;

    display: flex;
    flex-direction: column;

    gap: 4px;

    background: var(--background-light);

    border:
        1px solid
        var(--line-soft);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px);

    transition:
        opacity 150ms ease,
        transform 150ms ease,
        visibility 150ms ease;
}

.landing-menu.is-open {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.landing-menu a {
    padding: 11px 12px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;

    text-decoration: none;

    text-transform: uppercase;

    letter-spacing: 1px;

    transition:
        color 140ms ease,
        background 140ms ease;
}

.landing-menu a:hover {
    color: var(--white);

    background:
        rgba(255, 255, 255, 0.05);
}


/* ======================================================
   LANDING MAIN
====================================================== */

.landing-main {
    width: 100%;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}


/* ======================================================
   LANDING BRAND
====================================================== */

.landing-brand {
    width:
        min(
            540px,
            88vw
        );
}


/* ======================================================
   WORDMARK
====================================================== */

.wordmark {
    display: flex;

    align-items: flex-end;
    justify-content: center;

    width: 100%;
}


/* ------------------------------------------------------
   Vertical LINK
------------------------------------------------------ */

.wordmark-link {
    width: 58px;
    height: 160px;

    margin-right: 8px;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    padding-bottom: 3px;

    color: var(--white);

    font-size: 27px;
    font-weight: 200;

    letter-spacing: 5px;

    writing-mode: vertical-rl;

    transform:
        rotate(180deg);

    line-height: 1;
}


/* ------------------------------------------------------
   DECK
------------------------------------------------------ */

.wordmark-deck {
    flex: 1;

    color: var(--white);

    font-family:
        "Arial Narrow",
        "Helvetica Neue",
        Arial,
        sans-serif;

    font-size:
        clamp(
            100px,
            10vw,
            155px
        );

    font-weight: 300;

    line-height: 0.8;

    letter-spacing: -8px;

    white-space: nowrap;

    transform:
        scaleX(0.82);

    transform-origin:
        left bottom;
}


/* ======================================================
   LANDING LOGIN
====================================================== */

.landing-login {
    width: 100%;

    margin-top: 24px;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        34px;

    gap: 12px;

    align-items: center;
}


/* ======================================================
   LANDING LOGIN PILLS
====================================================== */

.pill-input {
    height: 31px;

    background: var(--white);

    border-radius:
        var(--radius-pill);

    overflow: hidden;
}

.pill-input input {
    width: 100%;
    height: 100%;

    padding:
        0 12px;

    color:
        var(--field-text);

    background:
        transparent;

    border: 0;

    outline: none;

    font-size: 18px;
    font-weight: 300;

    letter-spacing: -0.5px;
}

.pill-input input::placeholder {
    color:
        var(--field-placeholder);

    opacity: 1;
}


/* ======================================================
   LANDING LOGIN BUTTON
====================================================== */

.login-button {
    width: 31px;
    height: 31px;

    padding: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        var(--background);

    background:
        var(--white);

    border-radius: 50%;

    font-size: 21px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 140ms ease,
        background 140ms ease;
}

.login-button:hover {
    transform:
        translateX(2px);

    background:
        #ededed;
}


/* ======================================================
   LANDING SECONDARY LINKS
====================================================== */

.landing-actions {
    margin-top: 9px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 13px;

    color: #747474;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.landing-actions a {
    text-decoration: none;

    transition:
        color 140ms ease;
}

.landing-actions a:hover {
    color: var(--white);
}

.landing-actions span {
    width: 3px;
    height: 3px;

    background: #777777;

    border-radius: 50%;
}


/* ======================================================
   SIGNUP PAGE
====================================================== */

.signup-page {
    min-height: 100vh;

    background:
        var(--background);

    color:
        var(--white);
}


/* ======================================================
   SIGNUP MAIN
====================================================== */

.signup-main {
    width: 100%;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        50px
        20px;
}


/* ======================================================
   SIGNUP PANEL
====================================================== */

.signup-panel {
    width: 100%;

    max-width: 430px;
}


/* ======================================================
   SIGNUP LOGO
====================================================== */

.signup-logo {
    display: inline-block;

    margin-bottom: 40px;

    color:
        var(--white);

    font-size: 16px;
    font-weight: 300;

    letter-spacing: 3px;

    text-decoration: none;
}

.signup-logo span {
    font-weight: 700;
}


/* ======================================================
   SIGNUP HEADING
====================================================== */

.signup-panel h1 {
    margin: 0;

    color:
        var(--white);

    font-size: 42px;
    font-weight: 300;

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.signup-intro {
    margin:
        10px
        0
        34px;

    color:
        var(--text-muted);

    font-size: 14px;

    line-height: 1.5;
}


/* ======================================================
   SIGNUP FORM
====================================================== */

.signup-form {
    width: 100%;
}


/* ======================================================
   SIGNUP FIELDS
====================================================== */

.signup-field {
    width: 100%;

    margin-bottom: 20px;
}

.signup-field label {
    display: block;

    margin:
        0
        0
        7px
        3px;

    color:
        var(--text-muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.signup-field input {
    display: block;

    width: 100%;
    height: 43px;

    padding:
        0
        15px;

    color:
        var(--field-text);

    background:
        var(--white);

    border: 0;

    border-radius:
        var(--radius-pill);

    outline: none;

    font-size: 16px;

    transition:
        box-shadow 140ms ease,
        background 140ms ease;
}

.signup-field input:focus {
    box-shadow:
        0 0 0 3px
        rgba(255, 255, 255, 0.18);
}

.signup-field input::placeholder {
    color:
        #8a8a8a;

    opacity: 1;
}


/* ======================================================
   CAPTCHA
====================================================== */

.turnstile-wrap {
    margin:
        28px
        0
        22px;

    display: flex;

    justify-content: center;
}

.captcha-dev-notice {
    margin:
        26px
        0
        20px;

    padding:
        12px
        15px;

    color:
        #777777;

    border:
        1px solid
        #3e3e3e;

    font-size: 11px;

    line-height: 1.4;
}


/* ======================================================
   SIGNUP BUTTON
====================================================== */

.signup-submit {
    display: block;

    width: 100%;
    height: 45px;

    padding:
        0
        20px;

    color:
        var(--background);

    background:
        var(--white);

    border: 0;

    border-radius:
        var(--radius-pill);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform 140ms ease,
        background 140ms ease;
}

.signup-submit:hover {
    background:
        #ececec;

    transform:
        translateY(-1px);
}

.signup-submit:active {
    transform:
        translateY(0);
}


/* ======================================================
   SIGNUP ERRORS
====================================================== */

.form-errors {
    width: 100%;

    margin:
        0
        0
        25px;

    padding:
        13px
        16px;

    color:
        #d5d5d5;

    background:
        #2c2c2c;

    border-left:
        2px solid
        var(--white);

    font-size: 12px;

    line-height: 1.5;
}

.form-errors p {
    margin:
        4px
        0;
}


/* ======================================================
   SIGNUP LOGIN LINK
====================================================== */

.signup-login-link {
    margin:
        20px
        0
        0;

    color:
        var(--text-dark-muted);

    font-size: 11px;

    text-align: center;
}

.signup-login-link a {
    color:
        var(--text-soft);

    text-decoration: none;

    transition:
        color 140ms ease;
}

.signup-login-link a:hover {
    color:
        var(--white);
}


/* ======================================================
   ACCESSIBILITY
====================================================== */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip:
        rect(
            0,
            0,
            0,
            0
        );

    white-space: nowrap;

    border: 0;
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {

    /* --------------------------------------------------
       Landing hamburger
    -------------------------------------------------- */

    .hamburger {
        top: 16px;
        left: 16px;

        width: 31px;
        height: 25px;
    }

    .hamburger.is-open span:nth-child(1) {
        transform:
            translateY(11px)
            rotate(45deg);
    }

    .hamburger.is-open span:nth-child(3) {
        transform:
            translateY(-11px)
            rotate(-45deg);
    }


    /* --------------------------------------------------
       Landing menu
    -------------------------------------------------- */

    .landing-menu {
        top: 56px;
        left: 16px;
    }


    /* --------------------------------------------------
       Landing layout
    -------------------------------------------------- */

    .landing-main {
        padding:
            40px
            18px;
    }

    .landing-brand {
        width: 90vw;
    }


    /* --------------------------------------------------
       Landing logo
    -------------------------------------------------- */

    .wordmark-link {
        width: 45px;
        height: 103px;

        margin-right: 6px;

        font-size: 18px;

        letter-spacing: 3px;
    }

    .wordmark-deck {
        font-size:
            clamp(
                70px,
                22vw,
                105px
            );

        letter-spacing: -5px;

        transform:
            scaleX(0.84);
    }


    /* --------------------------------------------------
       Landing login
    -------------------------------------------------- */

    .landing-login {
        margin-top: 19px;

        grid-template-columns:
            1fr
            1fr
            30px;

        gap: 7px;
    }

    .pill-input {
        height: 29px;
    }

    .pill-input input {
        padding:
            0
            10px;

        font-size: 14px;
    }

    .login-button {
        width: 29px;
        height: 29px;

        font-size: 18px;
    }

    .landing-actions {
        margin-top: 9px;

        gap: 9px;

        font-size: 8px;
    }


    /* --------------------------------------------------
       Signup
    -------------------------------------------------- */

    .signup-main {
        align-items: flex-start;

        padding:
            45px
            20px;
    }

    .signup-panel {
        max-width: 100%;
    }

    .signup-logo {
        margin-bottom: 32px;
    }

    .signup-panel h1 {
        font-size: 35px;
    }

    .signup-intro {
        margin-bottom: 28px;
    }

    .signup-field {
        margin-bottom: 17px;
    }

    .signup-field input {
        height: 42px;

        font-size: 16px;
    }

}


/* ======================================================
   VERY SMALL MOBILE
====================================================== */

@media (max-width: 380px) {

    .wordmark-link {
        width: 38px;
        height: 90px;

        font-size: 16px;
    }

    .wordmark-deck {
        font-size: 76px;

        letter-spacing: -4px;
    }

    .landing-login {
        grid-template-columns:
            1fr
            1fr
            28px;

        gap: 6px;
    }

    .pill-input {
        height: 27px;
    }

    .pill-input input {
        font-size: 12px;
    }

    .login-button {
        width: 27px;
        height: 27px;

        font-size: 16px;
    }

}