html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --color-off-white: #E2DED9;
    --color-dark: #000000;
}

/* --- CSS GRID LAYOUT --- */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    width: 100%;
}

/* Hosts */
.content-panel {
    background-color: var(--color-off-white);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

@media (min-width: 768px) {
    .content-panel { padding: 6rem; }
}

.graphic-panel {
    background-color: black;
    position: relative;
}

/* Accessibility focus ring */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* --- Mobile layout: stack left (content) above right (graphic) --- */
@media (max-width: 820px) {
    /* Allow page to scroll on small screens */
    html, body {
        height: auto;
        overflow: auto;
    }

    .main-container {
        display: grid;
        grid-template-columns: 1fr; /* single column */
        grid-auto-rows: minmax(100vh, auto);
        height: auto;               /* let content define height */
        min-height: 100vh;          /* still fill the viewport at minimum */
        width: 100%;
    }

    .content-panel {
        padding: 3rem 1rem;
        box-sizing: border-box;
        overflow: auto; /* allow internal scroll if content exceeds viewport */
    }

    .graphic-panel {
        box-sizing: border-box;
        overflow: auto; /* allow internal scroll if content exceeds viewport */
    }
}
