/*
Theme Name: Move the Bit
Theme URI: https://movethebit.com/
Author: Diego Villanueva
Description: Minimal Twenty Twenty-Four child theme for Move the Bit.
Version: 1.1.3
Template: twentytwentyfour
Text Domain: move-the-bit
*/

:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    background: #fdfdfd;
    color: #000;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #fdfdfd;
}

body {
    min-height: 100svh;
    overflow-x: hidden;
}

.mtb-page {
    width: min(100% - 40px, 1180px);
    min-height: 100svh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: center;
    padding: clamp(28px, 6vh, 72px) 0;
}

.mtb-intro {
    display: grid;
    gap: 0.45rem;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.mtb-title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.mtb-accent {
    color: #e32024;
}

.mtb-figure {
    width: 100%;
    margin: 0;
    display: grid;
    place-items: center;
}

.mtb-figure img {
    display: block;
    width: min(100%, 1080px);
    height: auto;
    max-height: 68svh;
    object-fit: contain;
}

.mtb-status {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.admin-bar .mtb-page {
    min-height: calc(100svh - 32px);
}

@media (max-width: 600px) {
    .mtb-page {
        width: min(100% - 28px, 1180px);
        padding: 24px 0;
    }

    .mtb-figure img {
        width: 100%;
        max-width: 100%;
    }

    .admin-bar .mtb-page {
        min-height: calc(100svh - 46px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .mtb-figure img {
        animation: mtb-arrive 700ms ease-out both;
    }

    @keyframes mtb-arrive {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
