/* Front page styles for the child theme
	 Kept separate and small. Loaded only on the front page.
*/

.front-hero {
    background-color: #111;
    background-size: cover;
    background-position: center left;
}

.front-hero h1,
.front-hero p,
.front-hero .description {
    color: var(--nt-accent);
    font-family: "Roboto Mono", monospace;
}

/* Fallback for old browsers */
.front-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(11, 0, 31, 0.65);
    /* A solid approximate color */
}

/* Modern browsers */
@supports (background: color-mix(in srgb, red, white)) {
    .front-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: color-mix(in srgb, var(--nt-bg) 0%, transparent);
    }
}

.front-hero .title {
    margin-bottom: 18px;
    font-size: 60px;
}

@media (min-width: 480px) {
    .break-line {
        display: block;
    }
}

.front-hero .description {
    font-size: 18px;
    margin-top: 0;
    font-style: italic;
}

.front-hero .wp-block-group.alignwide {
    max-width: 780px;
}

.front-subtitle {
    opacity: 0.95;
    letter-spacing: 0.2px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 16px
}

.front-hero h2 {
    color: var(--nt-accent);
    line-height: rem;
}

@media (max-width:800px) {
    .front-hero .has-text-align-left {
        font-size: clamp(28px, 6vw, 40px)
    }

    .front-hero {
        padding-top: 3rem;
        padding-bottom: 3rem
    }

    .front-hero .title {
        margin-bottom: 18px;
        font-size: 32px;
    }

    .front-hero .description {
        font-size: 16px;
        margin-top: 0;
        font-style: italic;
    }

    .front-hero .description p {
        margin: 0.7em 0;
    }

    .front-hero .front-subtitle {
        font-size: 14px;
    }
}

.front-hero .description p {
    position: relative; /* Anchor for the typing layer */
    margin-bottom: 1em;
}

.typing-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.ghost-text {
    visibility: hidden; /* Holds the height/wrap space but isn't seen */
    pointer-events: none;
}
