
/*
Theme Name: Kannela
Version: 1.4
*/

* {
    box-sizing: border-box;
}

html {
    background: #050505;
    color: #e0dedd;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
}

#matrix {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: .55;
}

main {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5vw 0;
}

h1 {
    width: min(100%, 1800px);
    margin: 0;
    line-height: 0;
    mix-blend-mode: screen;
}

h1 img {
    display: block;
    width: 100%;
    height: auto;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent,
        #000 17%,
        #000 85%,
        transparent
    );

    mask-image: linear-gradient(
        to bottom,
        transparent,
        #000 17%,
        #000 85%,
        transparent
    );
}

.motto {
    --spacing: clamp(.20em, .55vw, .65em);

    max-width: 94vw;
    min-height: 1.5em;
    margin: 0 0 clamp(20px, 3vw, 48px);
    padding-left: var(--spacing);

    color: #c3c0be;

    font: 500 clamp(12px, 1.1vw, 18px) / 1.5
        "Helvetica Neue", Arial, sans-serif;

    letter-spacing: var(--spacing);
    word-spacing: .35em;
    text-align: center;
    text-shadow: 0 0 8px #000, 0 0 16px #000;
}

.field {
    width: min(46rem, 78vw);
    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid #87827e;
    margin-top: 2vw;

    font: clamp(16px, 1.4vw, 23px) Menlo, monospace;
    letter-spacing: .1em;

    background: rgba(5, 5, 5, .65);
}

.field label {
    font-size: .5em;
    letter-spacing: .12em;
    white-space: nowrap;
    flex-shrink: 0;
}

input {
    min-width: 0;
    flex: 1;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    caret-color: #ff2635;
    padding: 10px 0;
    outline: 0;
}

.field:focus-within {
    border-color: #e33;
}

button {
    color: #aaa;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    padding: 9px;
}

button:hover {
    color: #ff2635;
}

@media (max-width: 600px) {

    .motto {
        letter-spacing: .18em;
        font-size: 12px;
        min-height: 3em;
    }

    .field {
        width: 82vw;
        font-size: 16px;
    }

    .field label {
        font-size: 8px;
    }

    .field input {
        font-size: 16px;
    }

    #matrix {
        opacity: .40;
    }
}

@media (prefers-reduced-motion: reduce) {

    #matrix {
        display: none;
    }
}
